From 2e0844060690f3c4b9de8b3c9d72f79d233716dd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 09:55:09 +0000 Subject: [PATCH 1/2] Update Dependencies --- package-lock.json | 216 +++++++++++++++++++++++----------------------- 1 file changed, 108 insertions(+), 108 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7b00c7a..d798cbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,17 +64,17 @@ "license": "MIT" }, "node_modules/@aws-sdk/client-sts": { - "version": "3.1097.0", - "integrity": "sha512-p/4ikF8BDPkA7RudQrbT/NQvLzYiMZzhiWFE2MoHI+osDxxYVPiV28wbZ/Eq/bdan+lkk6m0DzaEkU4OgkTSfg==", + "version": "3.1098.0", + "integrity": "sha512-sUJG66pXP6TU7KVReLuoDTXsbpjq8nkF1S8ORg42I2/HGRQKm+r7eXXKA1M2DGBkM6/oaGYusGsR+1RrODkD/Q==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/credential-provider-node": "^3.972.74", - "@aws-sdk/signature-v4-multi-region": "^3.996.42", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/credential-provider-node": "^3.972.75", + "@aws-sdk/signature-v4-multi-region": "^3.996.43", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", - "@smithy/fetch-http-handler": "^5.6.10", - "@smithy/node-http-handler": "^4.9.10", + "@smithy/core": "^3.31.1", + "@smithy/fetch-http-handler": "^5.6.13", + "@smithy/node-http-handler": "^4.9.13", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -83,17 +83,17 @@ } }, "node_modules/@aws-sdk/client-timestream-write": { - "version": "3.1097.0", - "integrity": "sha512-cwojc/5m85c2Nhnk4qUpks5+Bd0zIN1HTrqzI53v82N8kILb12X7VjFJIUTQcsqe9eWLLrLe07ymckdqKwxFSA==", + "version": "3.1098.0", + "integrity": "sha512-tfrawg4aursSaUjt33MYxhRpHc1NHkzfM8dknSlHgEEvZyxkePK0fbtaSMyhrN97dmsLbWai8IYc1NP6XoNcNw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/credential-provider-node": "^3.972.74", - "@aws-sdk/middleware-endpoint-discovery": "^3.972.26", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/credential-provider-node": "^3.972.75", + "@aws-sdk/middleware-endpoint-discovery": "^3.972.27", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", - "@smithy/fetch-http-handler": "^5.6.10", - "@smithy/node-http-handler": "^4.9.10", + "@smithy/core": "^3.31.1", + "@smithy/fetch-http-handler": "^5.6.13", + "@smithy/node-http-handler": "^4.9.13", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -102,16 +102,16 @@ } }, "node_modules/@aws-sdk/core": { - "version": "3.977.2", - "integrity": "sha512-8sT/M5vDcagx5/iM0Bfx7f6i3mfVOQkA34+GTMwp0lIWZb6ma+bjkzDS/r9yqU2yTPBqqMBFPT3+d9kUuuNDJA==", + "version": "3.977.3", + "integrity": "sha512-6YZTpF5Zzl0KdSrztM0l6ErKdnXrnnodIDYfayHE9SFfZU8Ubxls7H2XnfWT121jgwiG+WP1z5kyfVDsH5V4qA==", "deprecated": "Deprecated due to Document number parsing bug in JSON, see\n https://github.com/aws/aws-sdk-js-v3/issues/8246. Newer version available.", "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "^3.974.2", "@aws-sdk/xml-builder": "^3.972.37", "@aws/lambda-invoke-store": "^0.3.0", - "@smithy/core": "^3.29.8", - "@smithy/signature-v4": "^5.6.9", + "@smithy/core": "^3.31.1", + "@smithy/signature-v4": "^5.6.12", "@smithy/types": "^4.16.1", "bowser": "^2.11.0", "tslib": "^2.6.2" @@ -121,13 +121,13 @@ } }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.972.63", - "integrity": "sha512-VSS9dftt7r7GiZ4gs8z0PNaMLVAaSj/MXVr6WQBtsrQQB9miJo7I6lQuJND1/ugFwK9x7OHCYZDkLSYh0FIZtA==", + "version": "3.972.64", + "integrity": "sha512-14kkR5aj1c7D+cYCrEcG2W3xw87wMYAEUeB/tMiQ2j0RVKzzdewd4mJw1+Q0JVLr4IFU1JHGDCyj0WqLrtIixg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", + "@aws-sdk/core": "^3.977.3", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -136,15 +136,15 @@ } }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.972.65", - "integrity": "sha512-SH/ec7p1J0CfC28+ypH38IwGENd7tQEvTpmuRSlinthiGxKlwzJbXGXxIMAhn0/lpxnIxudNmCsw3Cy0PDRoAg==", + "version": "3.972.66", + "integrity": "sha512-BrZxoXScBZ+nTOYy388zHkz1n5cS8C+uGFMozD4w9OKEWMq39Cu/9l/k385Hb54dtv0VIeh12f8h67o3xDNH9g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", + "@aws-sdk/core": "^3.977.3", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", - "@smithy/fetch-http-handler": "^5.6.10", - "@smithy/node-http-handler": "^4.9.10", + "@smithy/core": "^3.31.1", + "@smithy/fetch-http-handler": "^5.6.13", + "@smithy/node-http-handler": "^4.9.13", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -153,21 +153,21 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.973.8", - "integrity": "sha512-alkQpDUHsjHGVXvlV0XFXpPfh9+aTMmN6UYRky0Qky8SbvdxoQdDHftT4uugq8XShP6WtDQW7bo5YQ0SfNSxRQ==", + "version": "3.973.9", + "integrity": "sha512-d/mMvS+sQjSWNA6+JCldK1YB/jQmtoWM8Izj10mrOZdRCeWNVb8IYQuuyHHKKKXcpGo5Pd0LIK6onHbLvlhuVQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/credential-provider-env": "^3.972.63", - "@aws-sdk/credential-provider-http": "^3.972.65", - "@aws-sdk/credential-provider-login": "^3.972.70", - "@aws-sdk/credential-provider-process": "^3.972.63", - "@aws-sdk/credential-provider-sso": "^3.973.7", - "@aws-sdk/credential-provider-web-identity": "^3.972.69", - "@aws-sdk/nested-clients": "^3.997.37", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/credential-provider-env": "^3.972.64", + "@aws-sdk/credential-provider-http": "^3.972.66", + "@aws-sdk/credential-provider-login": "^3.972.71", + "@aws-sdk/credential-provider-process": "^3.972.64", + "@aws-sdk/credential-provider-sso": "^3.973.8", + "@aws-sdk/credential-provider-web-identity": "^3.972.70", + "@aws-sdk/nested-clients": "^3.997.38", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", - "@smithy/credential-provider-imds": "^4.4.13", + "@smithy/core": "^3.31.1", + "@smithy/credential-provider-imds": "^4.4.16", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -176,14 +176,14 @@ } }, "node_modules/@aws-sdk/credential-provider-login": { - "version": "3.972.70", - "integrity": "sha512-JlUjK6bYJAxN9PkWWCI/TiOYEdvXNKq61x2DTaEKxRMxAOYNk2LX8m4wVtDFxTZwyXx7Tpmxb49dNprkW/uqXQ==", + "version": "3.972.71", + "integrity": "sha512-l93922lXnTs5RjM3QrMCXSmXiEgLFLaQ0Lco9F3tJ08o0mzGdAj6m2nAXDuTMHoUuL0u7RKmrhm+Z8/7GCilyg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/nested-clients": "^3.997.37", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/nested-clients": "^3.997.38", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -192,19 +192,19 @@ } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.972.74", - "integrity": "sha512-V+7pzT0OzROL2uKcQ2+MpnfwKONvozYojmdn8RguAMX9o48gtSVvt+7aCkwWCH2thDXOnUPCN6qn4kiFDelZWA==", + "version": "3.972.75", + "integrity": "sha512-sdFhR4E3HWZefGL6OsBhxqXdqtFvxGOh8VLfiu9yttPgVNcpEozEDPmrTYmXA3CIf6npUETVLveQPGQ7GBzVhg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "^3.972.63", - "@aws-sdk/credential-provider-http": "^3.972.65", - "@aws-sdk/credential-provider-ini": "^3.973.8", - "@aws-sdk/credential-provider-process": "^3.972.63", - "@aws-sdk/credential-provider-sso": "^3.973.7", - "@aws-sdk/credential-provider-web-identity": "^3.972.69", + "@aws-sdk/credential-provider-env": "^3.972.64", + "@aws-sdk/credential-provider-http": "^3.972.66", + "@aws-sdk/credential-provider-ini": "^3.973.9", + "@aws-sdk/credential-provider-process": "^3.972.64", + "@aws-sdk/credential-provider-sso": "^3.973.8", + "@aws-sdk/credential-provider-web-identity": "^3.972.70", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", - "@smithy/credential-provider-imds": "^4.4.13", + "@smithy/core": "^3.31.1", + "@smithy/credential-provider-imds": "^4.4.16", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -213,13 +213,13 @@ } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.972.63", - "integrity": "sha512-lPt2oGMcvP3uPhhxX5EquHrzBI/ZgJce+CHKcOGZl2ZQAXLLSxu7k/Cgo0HIktyi9dmDFljbOkj4XAnXD93YVQ==", + "version": "3.972.64", + "integrity": "sha512-Q5noG5vfFo++bUaLGcjj8OHX5tmwa1O/5nDVMeaSSZgjzgvWbW6tgu/gSa+aENwcJXjoXDQh+8TRZR2zHds/aw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", + "@aws-sdk/core": "^3.977.3", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -228,15 +228,15 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.973.7", - "integrity": "sha512-FR2b+7QNXP/q+eslVzrCjGKvso8Lcr/B18BvFyD2iLNhq42XSo+wnh8FfX6mtqgaVsL1vuB27uGXuY+xUTa7pg==", + "version": "3.973.8", + "integrity": "sha512-37okeZyRdVkGrU6nyKBPGqQvyl/7CEiMpUVOb0+BCNCIR0VAuBxNgjMb0mnsR1EXm8dqQFfQZOJ5YW/0sBfa1w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/nested-clients": "^3.997.37", - "@aws-sdk/token-providers": "3.1097.0", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/nested-clients": "^3.997.38", + "@aws-sdk/token-providers": "3.1098.0", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -245,14 +245,14 @@ } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.972.69", - "integrity": "sha512-RWNTKGXRkzMJe8bgIAdlz9q0N97m7fThD9KOjBt2CSY+/xnIbrA1/Dnm/ZEz8ZeQ1Of5D+fLaPeoD3lGt6AU4Q==", + "version": "3.972.70", + "integrity": "sha512-Ps/f9USafScb6CSQTRPNMzdKL5x5XRwDIRgFvnuFWfClGZe7/fI7iCFqXdxKjc9LBxP28E7iUgNloGgfgw406w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/nested-clients": "^3.997.37", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/nested-clients": "^3.997.38", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -273,13 +273,13 @@ } }, "node_modules/@aws-sdk/middleware-endpoint-discovery": { - "version": "3.972.26", - "integrity": "sha512-suOMAYAM43aSyC3cLBvvJIuNyg96nUsPvYQUrq4G+8Prt2qTpFETgaiXX7JP1gIcK5FF0Z2IdyEsPXseZATOPw==", + "version": "3.972.27", + "integrity": "sha512-5AJlxrsg27IGGiQauWOdVyqK55EN0EMIwXndkVHhBiPT4CtdSaz89/sAENSw+GP4KF+BOWcgycZFNjkOLmfo1A==", "license": "Apache-2.0", "dependencies": { "@aws-sdk/endpoint-cache": "^3.972.9", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -288,16 +288,16 @@ } }, "node_modules/@aws-sdk/nested-clients": { - "version": "3.997.37", - "integrity": "sha512-vfDmA6APjX1LWxvt6/zcAmTCgRXCj35M+bC9Ujmy40QxYs9Fa9bE7oblOB3ODZ4mdN9R5osU0hTzoJjJlQqqTg==", + "version": "3.997.38", + "integrity": "sha512-jQDs+nxnmgo4+WPOmY373HIC8jx4KyYYMYDI74FWrzX3Ba9fYsV0dSA+7PNYNkhRbbRCRLre83tQ31F1ACCHkA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/signature-v4-multi-region": "^3.996.42", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/signature-v4-multi-region": "^3.996.43", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", - "@smithy/fetch-http-handler": "^5.6.10", - "@smithy/node-http-handler": "^4.9.10", + "@smithy/core": "^3.31.1", + "@smithy/fetch-http-handler": "^5.6.13", + "@smithy/node-http-handler": "^4.9.13", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -306,12 +306,12 @@ } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.996.42", - "integrity": "sha512-DBV4naZP6HYBlAvPpoQzOP12Wvfou/5rN8yJPXjBTBylU5qwCbh/tXr2MddHoIjgoRkEl/eS+IljiUqvmwey1Q==", + "version": "3.996.43", + "integrity": "sha512-lKekx8bLBXSv4O+cslk9Zfnw2XKSkWBs3uWL5QGhH2ZAQfNS7FE0vcSSN2vD/AhxX54ZTywWxR4STThoeOXlBA==", "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "^3.974.2", - "@smithy/signature-v4": "^5.6.9", + "@smithy/signature-v4": "^5.6.12", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -320,14 +320,14 @@ } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.1097.0", - "integrity": "sha512-EIsdmy/f5IGc5r01RjKWNvrbBra6z0xudQM0D6Wf8DeGuPoRlubkLqr7VgWijFucO4kg0mtev9H3RX/ZOubUhg==", + "version": "3.1098.0", + "integrity": "sha512-6cFAviffeqYGjrXn4FqGbWcTxB3nbpBpQXUm6MvnrWZThJaVBTHHnespHgSUh4yVLfzhipSh9H/XjzkHQd9P4g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.977.2", - "@aws-sdk/nested-clients": "^3.997.37", + "@aws-sdk/core": "^3.977.3", + "@aws-sdk/nested-clients": "^3.997.38", "@aws-sdk/types": "^3.974.2", - "@smithy/core": "^3.29.8", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -1247,8 +1247,8 @@ } }, "node_modules/@smithy/core": { - "version": "3.31.0", - "integrity": "sha512-sylYk2l9d7CmRv8ts8p0SDQUr3VO+HMeS1nrjL6+UtbO8ktJHTOeQ1McX+aAyvGGccp5aZX9eNtdcXrSwzoZaw==", + "version": "3.31.1", + "integrity": "sha512-CyogUINxvi7C7LDsh8Syo6hVJOT9ckz4rG8dRZfTJ8r91HkMY59PnNooaj7WcHyxEkxPfBAmbgztZU+xTo76lg==", "license": "Apache-2.0", "dependencies": { "@smithy/types": "^4.16.1", @@ -1259,11 +1259,11 @@ } }, "node_modules/@smithy/credential-provider-imds": { - "version": "4.4.15", - "integrity": "sha512-xYVGrisQqTJWhOnScUhbx8s9H63TMtoxzuUoxG6mP8J+B/YbX3vZxVsgV0xDf43abJnJP0fjP7BkQh7OESwuRA==", + "version": "4.4.16", + "integrity": "sha512-QfuLWAkLzptffFW980AFeHZFdqds2B64rpEd3uJ6lgs3xVn9QegGMUgUcj+4d7dRrAsya3r58ZKpku97WcFb4w==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.31.0", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -1272,11 +1272,11 @@ } }, "node_modules/@smithy/fetch-http-handler": { - "version": "5.6.12", - "integrity": "sha512-OpQgP6IGH4j0NJ2zjfYZLjQL85ai+Wi/q51EmZJovXsEwKSvu89qiXUq77Q6EmwZ/hSl7fKpn2Z9mhiDN6OM+Q==", + "version": "5.6.13", + "integrity": "sha512-4fW86pEUOMbrD5nkbyl/tTvPHHWJFbuB2odl6ps9lWfHoXf9HWh3Q/Smh59qH1g7+c/BSZghX6bbUk4gsiMs8A==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.31.0", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -1285,11 +1285,11 @@ } }, "node_modules/@smithy/node-http-handler": { - "version": "4.9.12", - "integrity": "sha512-dWW5KRt4mnEvjNzbGqGeCuAvgum85Y9ZoyuMQqcTEfapndyVJ1k9BEHK7kdXJZ32enyRmmwcFjMwlB/KgLKI3Q==", + "version": "4.9.13", + "integrity": "sha512-Nmd/Nl35zfYrd+a6OO2cDJb3GPh9bgTjIUhcM+JFfjpp8/osCgboDV5nCT1I01Pv6R13eSKDKLSoVa5ZB6Zsfw==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.31.0", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -1298,11 +1298,11 @@ } }, "node_modules/@smithy/signature-v4": { - "version": "5.6.11", - "integrity": "sha512-7HsspeiNCZvZHEJ22vV5L/QYuJdTyJvPJvMrYD3AgkM3IJB0pkln4jkjPvtpTWRMkHXbO8WKwNjoVdVlBFwHmw==", + "version": "5.6.12", + "integrity": "sha512-I6KLtq3H0qqSuV9vLglfi8puHqzygzWHOnI4z/Rdoo+q50vvo18vBRdPAvvEtcaKROz7Zn6qnPa14kRfPH6PcQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.31.0", + "@smithy/core": "^3.31.1", "@smithy/types": "^4.16.1", "tslib": "^2.6.2" }, @@ -2153,8 +2153,8 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.11.6", - "integrity": "sha512-69D/imtToCsIcAl8WBS2YaRwA4jO/j0HhU+hELqMEu9f54MoUtI6+XH5mrKU8rEFNEk/Ui1I2MK4/JkWacclGw==", + "version": "2.11.7", + "integrity": "sha512-APw5YuIQAg6L9w4sHDI6j26DGFJI6RpYOhnkMPdC9lWbkKvsyPHzDsve1yd73lk21yz7Y09Kci8B2Pp9FonzWA==", "dev": true, "license": "Apache-2.0", "peer": true, @@ -4041,8 +4041,8 @@ } }, "node_modules/flatted": { - "version": "3.4.3", - "integrity": "sha512-/zipXxyO6rGvuNGDiULY9MvEGSkb2gaG4GGH4ygMi0ZZzyMHdUZBmntJmx5x1G2VuPytCwGN4xsJP6cw+sK+vQ==", + "version": "3.4.4", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", "dev": true, "license": "ISC" }, From 0cb5da21a367acbb1b7340806c73bf15359565c1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 09:03:45 -0400 Subject: [PATCH 2/2] Update Build (#1431) Co-authored-by: d2l-github-action-tokens[bot] <78449032+d2l-github-action-tokens[bot]@users.noreply.github.com> --- dist/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index f15cd69..8a23a37 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,9 +1,9 @@ -import{createRequire as t}from"module";var n={1695:(t,n,i)=>{var a;const{awsEndpointFunctions:A,emitWarningIfUnsupportedVersion:c,createDefaultUserAgentProvider:l,NODE_APP_ID_CONFIG_OPTIONS:d,getAwsRegionExtensionConfiguration:h,resolveAwsRegionExtensionConfiguration:f,resolveUserAgentConfig:g,resolveHostHeaderConfig:p,getUserAgentPlugin:m,getHostHeaderPlugin:E,getLoggerPlugin:C,getRecursionDetectionPlugin:I,setCredentialFeature:y,stsRegionDefaultResolver:B}=i(5152);const{NoAuthSigner:Q,getHttpAuthSchemeEndpointRuleSetPlugin:w,DefaultIdentityProviderConfig:S,getHttpSigningPlugin:b}=i(402);const{normalizeProvider:R,getSmithyContext:v,ServiceException:k,NoOpLogger:D,emitWarningIfUnsupportedVersion:T,loadConfigsForDefaultMode:N,getDefaultExtensionConfiguration:M,resolveDefaultRuntimeConfig:F,Client:x,makeBuilder:U,createAggregatedClient:P}=i(2658);const{Command:L}=i(2658);a=L;a=x;const{resolveDefaultsModeConfig:O,loadConfig:H,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:G,NODE_REGION_CONFIG_OPTIONS:V,NODE_REGION_CONFIG_FILE_OPTIONS:Y,resolveRegionConfig:J}=i(7291);const{BinaryDecisionDiagram:W,EndpointCache:q,decideEndpoint:j,customEndpointFunctions:z,resolveParams:K,resolveEndpointConfig:Z,getEndpointPlugin:X}=i(2085);const{parseUrl:ee,getHttpHandlerExtensionConfiguration:te,resolveHttpHandlerRuntimeConfig:re,getContentLengthPlugin:ne}=i(3422);const{DEFAULT_RETRY_MODE:se,NODE_RETRY_MODE_CONFIG_OPTIONS:oe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ie,resolveRetryConfig:ae,getRetryPlugin:Ae}=i(3609);const{TypeRegistry:ce,getSchemaSerdePlugin:le}=i(6890);const{resolveAwsSdkSigV4Config:ue,resolveAwsSdkSigV4AConfig:de,AwsSdkSigV4Signer:he,AwsSdkSigV4ASigner:fe,NODE_SIGV4A_CONFIG_OPTIONS:ge,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:pe}=i(7523);const{SignatureV4MultiRegion:me}=i(5785);const{defaultProvider:Ee}=i(5861);const{toUtf8:Ce,fromUtf8:Ie,toBase64:ye,fromBase64:Be,calculateBodyLength:Qe}=i(2430);const{streamCollector:we,NodeHttpHandler:Se}=i(1279);const{AwsQueryProtocol:be}=i(7288);const{Sha256:Re}=i(9542);const ve="ref";const ke=-1,De=true,Te="isSet",Ne="PartitionResult",Me="booleanEquals",Fe="stringEquals",xe="getAttr",Ue="us-east-1",Pe="sigv4",Le="sts",_e="https://sts.{Region}.{PartitionResult#dnsSuffix}",Oe={[ve]:"Endpoint"},He={[ve]:"Region"},$e={[ve]:Ne},Ge={},Ve=[He];const Ye={conditions:[[Te,[Oe]],[Te,Ve],["aws.partition",Ve,Ne],[Me,[{[ve]:"UseFIPS"},De]],[Me,[{[ve]:"UseDualStack"},De]],[Fe,[He,"aws-global"]],[Me,[{[ve]:"UseGlobalEndpoint"},De]],[Fe,[He,"eu-central-1"]],[Me,[{fn:xe,argv:[$e,"supportsDualStack"]},De]],[Me,[{fn:xe,argv:[$e,"supportsFIPS"]},De]],[Fe,[He,"ap-south-1"]],[Fe,[He,"eu-north-1"]],[Fe,[He,"eu-west-1"]],[Fe,[He,"eu-west-2"]],[Fe,[He,"eu-west-3"]],[Fe,[He,"sa-east-1"]],[Fe,[He,Ue]],[Fe,[He,"us-east-2"]],[Fe,[He,"us-west-2"]],[Fe,[He,"us-west-1"]],[Fe,[He,"ca-central-1"]],[Fe,[He,"ap-southeast-1"]],[Fe,[He,"ap-northeast-1"]],[Fe,[He,"ap-southeast-2"]],[Fe,[{fn:xe,argv:[$e,"name"]},"aws-us-gov"]]],results:[[ke],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:Le,signingRegion:Ue}]}],[_e,{authSchemes:[{name:Pe,signingName:Le,signingRegion:"{Region}"}]}],[ke,"Invalid Configuration: FIPS and custom endpoint are not supported"],[ke,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Oe,Ge],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ge],[ke,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Ge],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Ge],[ke,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Ge],[ke,"DualStack is enabled but this partition does not support DualStack"],[_e,Ge],[ke,"Invalid Configuration: Missing Region"]]};const Je=2;const We=1e8;const qe=new Int32Array([-1,1,-1,0,30,3,1,4,We+14,2,5,We+14,3,25,6,4,24,7,5,We+1,8,6,9,We+13,7,We+1,10,10,We+1,11,11,We+1,12,12,We+1,13,13,We+1,14,14,We+1,15,15,We+1,16,16,We+1,17,17,We+1,18,18,We+1,19,19,We+1,20,20,We+1,21,21,We+1,22,22,We+1,23,23,We+1,We+2,8,We+11,We+12,4,28,26,9,27,We+10,24,We+8,We+9,8,29,We+7,9,We+6,We+7,3,We+3,31,4,We+4,We+5]);const je=W.from(qe,Je,Ye.conditions,Ye.results);const ze=new q({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(t,n={})=>ze.get(t,()=>j(je,{endpointParams:t,logger:n.logger}));z.aws=A;const createEndpointRuleSetHttpAuthSchemeParametersProvider=t=>async(n,i,a)=>{if(!a){throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`")}const A=await t(n,i,a);const c=v(i)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c){throw new Error(`getEndpointParameterInstructions() is not defined on '${i.commandName}'`)}const l=await K(a,{getEndpointParameterInstructions:c},n);return Object.assign(A,l)};const _defaultSTSHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:v(n).operation,region:await R(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const Ke=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createAwsAuthSigv4aHttpAuthOption(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const createEndpointRuleSetHttpAuthSchemeProvider=(t,n,i)=>{const endpointRuleSetHttpAuthSchemeProvider=a=>{const A=t(a);const c=A.properties?.authSchemes;if(!c){return n(a)}const l=[];for(const t of c){const{name:n,properties:A={},...d}=t;const h=n.toLowerCase();if(n!==h){console.warn(`HttpAuthScheme has been normalized with lowercasing: '${n}' to '${h}'`)}let f;if(h==="sigv4a"){f="aws.auth#sigv4a";const t=c.find(t=>{const n=t.name.toLowerCase();return n!=="sigv4a"&&n.startsWith("sigv4")});if(me.sigv4aDependency()==="none"&&t){continue}}else if(h.startsWith("sigv4")){f="aws.auth#sigv4"}else{throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${h}'`)}const g=i[f];if(!g){throw new Error(`Could not find HttpAuthOption create function for '${f}'`)}const p=g(a);p.schemeId=f;p.signingProperties={...p.signingProperties||{},...d,...A};l.push(p)}return l};return endpointRuleSetHttpAuthSchemeProvider};const _defaultSTSHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"AssumeRoleWithSAML":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}case"AssumeRoleWithWebIdentity":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t));n.push(createAwsAuthSigv4aHttpAuthOption(t))}}return n};const Ze=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultSTSHttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption,"smithy.api#noAuth":createSmithyApiNoAuthHttpAuthOption});const resolveHttpAuthSchemeConfig=t=>{const n=ue(t);const i=de(n);return Object.assign(i,{authSchemePreference:R(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,useGlobalEndpoint:t.useGlobalEndpoint??false,defaultSigningName:"sts"});const Xe={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var et="3.1096.0";var tt={version:et};class STSServiceException extends k{constructor(t){super(t);Object.setPrototypeOf(this,STSServiceException.prototype)}}class ExpiredTokenException extends STSServiceException{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends STSServiceException{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}class InvalidAuthorizationMessageException extends STSServiceException{name="InvalidAuthorizationMessageException";$fault="client";constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}class ExpiredTradeInTokenException extends STSServiceException{name="ExpiredTradeInTokenException";$fault="client";constructor(t){super({name:"ExpiredTradeInTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTradeInTokenException.prototype)}}class JWTPayloadSizeExceededException extends STSServiceException{name="JWTPayloadSizeExceededException";$fault="client";constructor(t){super({name:"JWTPayloadSizeExceededException",$fault:"client",...t});Object.setPrototypeOf(this,JWTPayloadSizeExceededException.prototype)}}class OutboundWebIdentityFederationDisabledException extends STSServiceException{name="OutboundWebIdentityFederationDisabledException";$fault="client";constructor(t){super({name:"OutboundWebIdentityFederationDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,OutboundWebIdentityFederationDisabledException.prototype)}}class SessionDurationEscalationException extends STSServiceException{name="SessionDurationEscalationException";$fault="client";constructor(t){super({name:"SessionDurationEscalationException",$fault:"client",...t});Object.setPrototypeOf(this,SessionDurationEscalationException.prototype)}}const rt="Arn";const nt="AccessKeyId";const st="AssumedPrincipal";const ot="AssumeRole";const it="AssumedRoleId";const at="AssumeRoleRequest";const At="AssumeRoleResponse";const ct="AssumeRootRequest";const lt="AssumeRootResponse";const ut="AssumedRoleUser";const dt="AssumeRoleWithSAML";const ht="AssumeRoleWithSAMLRequest";const ft="AssumeRoleWithSAMLResponse";const gt="AssumeRoleWithWebIdentity";const pt="AssumeRoleWithWebIdentityRequest";const mt="AssumeRoleWithWebIdentityResponse";const Et="AssumeRoot";const Ct="Account";const It="Audience";const yt="Credentials";const Bt="ContextAssertion";const Qt="DecodeAuthorizationMessage";const wt="DecodeAuthorizationMessageRequest";const St="DecodeAuthorizationMessageResponse";const bt="DecodedMessage";const Rt="DurationSeconds";const vt="Expiration";const kt="ExternalId";const Dt="EncodedMessage";const Tt="ExpiredTokenException";const Nt="ExpiredTradeInTokenException";const Mt="FederatedUser";const Ft="FederatedUserId";const xt="GetAccessKeyInfo";const Ut="GetAccessKeyInfoRequest";const Pt="GetAccessKeyInfoResponse";const Lt="GetCallerIdentity";const _t="GetCallerIdentityRequest";const Ot="GetCallerIdentityResponse";const Ht="GetDelegatedAccessToken";const $t="GetDelegatedAccessTokenRequest";const Gt="GetDelegatedAccessTokenResponse";const Vt="GetFederationToken";const Yt="GetFederationTokenRequest";const Jt="GetFederationTokenResponse";const Wt="GetSessionToken";const qt="GetSessionTokenRequest";const jt="GetSessionTokenResponse";const zt="GetWebIdentityToken";const Kt="GetWebIdentityTokenRequest";const Zt="GetWebIdentityTokenResponse";const Xt="Issuer";const er="InvalidAuthorizationMessageException";const tr="IDPCommunicationErrorException";const rr="IDPRejectedClaimException";const nr="InvalidIdentityTokenException";const sr="JWTPayloadSizeExceededException";const ir="Key";const ar="MalformedPolicyDocumentException";const Ar="Name";const cr="NameQualifier";const lr="OutboundWebIdentityFederationDisabledException";const ur="Policy";const dr="PolicyArns";const hr="PrincipalArn";const fr="ProviderArn";const gr="ProvidedContexts";const pr="ProvidedContextsListType";const mr="ProvidedContext";const Er="PolicyDescriptorType";const Cr="ProviderId";const Ir="PackedPolicySize";const yr="PackedPolicyTooLargeException";const Br="Provider";const Qr="RoleArn";const wr="RegionDisabledException";const Sr="RoleSessionName";const br="Subject";const Rr="SigningAlgorithm";const vr="SecretAccessKey";const kr="SAMLAssertion";const Dr="SAMLAssertionType";const Tr="SessionDurationEscalationException";const Nr="SubjectFromWebIdentityToken";const Mr="SourceIdentity";const Fr="SerialNumber";const xr="SubjectType";const Ur="SessionToken";const Pr="Tags";const Lr="TokenCode";const _r="TradeInToken";const Or="TargetPrincipal";const Hr="TaskPolicyArn";const $r="TransitiveTagKeys";const Gr="Tag";const Vr="UserId";const Yr="Value";const Jr="WebIdentityToken";const Wr="arn";const qr="accessKeySecretType";const jr="awsQueryError";const zr="client";const Kr="clientTokenType";const Zr="error";const Xr="httpError";const en="message";const tn="policyDescriptorListType";const rn="smithy.ts.sdk.synthetic.com.amazonaws.sts";const nn="tradeInTokenType";const sn="tagListType";const on="webIdentityTokenType";const an="com.amazonaws.sts";const An=ce.for(rn);var cn=[-3,rn,"STSServiceException",0,[],[]];An.registerError(cn,STSServiceException);const ln=ce.for(an);var un=[-3,an,Tt,{[jr]:[`ExpiredTokenException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(un,ExpiredTokenException);var dn=[-3,an,Nt,{[jr]:[`ExpiredTradeInTokenException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(dn,ExpiredTradeInTokenException);var hn=[-3,an,tr,{[jr]:[`IDPCommunicationError`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(hn,IDPCommunicationErrorException);var gn=[-3,an,rr,{[jr]:[`IDPRejectedClaim`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(gn,IDPRejectedClaimException);var pn=[-3,an,er,{[jr]:[`InvalidAuthorizationMessageException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(pn,InvalidAuthorizationMessageException);var mn=[-3,an,nr,{[jr]:[`InvalidIdentityToken`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(mn,InvalidIdentityTokenException);var En=[-3,an,sr,{[jr]:[`JWTPayloadSizeExceededException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(En,JWTPayloadSizeExceededException);var Cn=[-3,an,ar,{[jr]:[`MalformedPolicyDocument`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(Cn,MalformedPolicyDocumentException);var In=[-3,an,lr,{[jr]:[`OutboundWebIdentityFederationDisabledException`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(In,OutboundWebIdentityFederationDisabledException);var yn=[-3,an,yr,{[jr]:[`PackedPolicyTooLarge`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(yn,PackedPolicyTooLargeException);var Bn=[-3,an,wr,{[jr]:[`RegionDisabledException`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(Bn,RegionDisabledException);var Qn=[-3,an,Tr,{[jr]:[`SessionDurationEscalationException`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(Qn,SessionDurationEscalationException);const wn=[An,ln];var Sn=[0,an,qr,8,0];var bn=[0,an,Kr,8,0];var Rn=[0,an,Dr,8,0];var vn=[0,an,nn,8,0];var kn=[0,an,on,8,0];var Dn=[3,an,ut,0,[it,rt],[0,0],2];var Tn=[3,an,at,0,[Qr,Sr,dr,ur,Rt,Pr,$r,kt,Fr,Lr,Mr,gr],[0,0,()=>ss,0,1,()=>is,64|0,0,0,0,0,()=>os],2];var Nn=[3,an,At,0,[yt,ut,Ir,Mr],[[()=>_n,0],()=>Dn,1,0]];var Mn=[3,an,ht,0,[Qr,hr,kr,dr,ur,Rt],[0,0,[()=>Rn,0],()=>ss,0,1],3];var Fn=[3,an,ft,0,[yt,ut,Ir,br,xr,Xt,It,cr,Mr],[[()=>_n,0],()=>Dn,1,0,0,0,0,0,0]];var xn=[3,an,pt,0,[Qr,Sr,Jr,Cr,dr,ur,Rt],[0,0,[()=>bn,0],0,()=>ss,0,1],3];var Un=[3,an,mt,0,[yt,Nr,ut,Ir,Br,It,Mr],[[()=>_n,0],0,()=>Dn,1,0,0,0]];var Pn=[3,an,ct,0,[Or,Hr,Rt],[0,()=>ts,1],2];var Ln=[3,an,lt,0,[yt,Mr],[[()=>_n,0],0]];var _n=[3,an,yt,0,[nt,vr,Ur,vt],[0,[()=>Sn,0],0,4],4];var On=[3,an,wt,0,[Dt],[0],1];var Hn=[3,an,St,0,[bt],[0]];var $n=[3,an,Mt,0,[Ft,rt],[0,0],2];var Gn=[3,an,Ut,0,[nt],[0],1];var Vn=[3,an,Pt,0,[Ct],[0]];var Yn=[3,an,_t,0,[],[]];var Jn=[3,an,Ot,0,[Vr,Ct,rt],[0,0,0]];var Wn=[3,an,$t,0,[_r],[[()=>vn,0]],1];var qn=[3,an,Gt,0,[yt,Ir,st],[[()=>_n,0],1,0]];var jn=[3,an,Yt,0,[Ar,ur,dr,Rt,Pr],[0,0,()=>ss,1,()=>is],1];var zn=[3,an,Jt,0,[yt,Mt,Ir],[[()=>_n,0],()=>$n,1]];var Kn=[3,an,qt,0,[Rt,Fr,Lr],[1,0,0]];var Zn=[3,an,jt,0,[yt],[[()=>_n,0]]];var Xn=[3,an,Kt,0,[It,Rr,Rt,Pr],[64|0,0,1,()=>is],2];var es=[3,an,Zt,0,[Jr,vt],[[()=>kn,0],4]];var ts=[3,an,Er,0,[Wr],[0]];var rs=[3,an,mr,0,[fr,Bt],[0,0]];var ns=[3,an,Gr,0,[ir,Yr],[0,0],2];var ss=[1,an,tn,0,()=>ts];var os=[1,an,pr,0,()=>rs];var is=[1,an,sn,0,()=>ns];var as=[9,an,ot,0,()=>Tn,()=>Nn];var As=[9,an,dt,0,()=>Mn,()=>Fn];var cs=[9,an,gt,0,()=>xn,()=>Un];var ls=[9,an,Et,0,()=>Pn,()=>Ln];var us=[9,an,Qt,0,()=>On,()=>Hn];var ds=[9,an,xt,0,()=>Gn,()=>Vn];var hs=[9,an,Lt,0,()=>Yn,()=>Jn];var fs=[9,an,Ht,0,()=>Wn,()=>qn];var gs=[9,an,Vt,0,()=>jn,()=>zn];var ps=[9,an,Wt,0,()=>Kn,()=>Zn];var ms=[9,an,zt,0,()=>Xn,()=>es];const getRuntimeConfig$1=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Be,base64Encoder:t?.base64Encoder??ye,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Ze,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new he},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q}],logger:t?.logger??new D,protocol:t?.protocol??be,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:wn,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Re,signerConstructor:t?.signerConstructor??me,urlParser:t?.urlParser??ee,utf8Decoder:t?.utf8Decoder??Ie,utf8Encoder:t?.utf8Encoder??Ce});const getRuntimeConfig=t=>{T(process.version);const n=O(t);const defaultConfigProvider=()=>n().then(N);const i=getRuntimeConfig$1(t);c(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??H(pe,a),bodyLengthChecker:t?.bodyLengthChecker??Qe,credentialDefaultProvider:t?.credentialDefaultProvider??Ee,defaultUserAgentProvider:t?.defaultUserAgentProvider??l({serviceId:i.serviceId,clientVersion:tt.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4")||(async t=>await Ee(t?.__config||{})()),signer:new he},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q}],maxAttempts:t?.maxAttempts??H(ie,t),region:t?.region??H(V,{...Y,...a}),requestHandler:Se.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??H({...oe,default:async()=>(await defaultConfigProvider()).retryMode||se},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??H(ge,a),streamCollector:t?.streamCollector??we,useDualstackEndpoint:t?.useDualstackEndpoint??H(G,a),useFipsEndpoint:t?.useFipsEndpoint??H($,a),userAgentAppId:t?.userAgentAppId??H(d,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(h(t),M(t),te(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,f(i),F(i),re(i),resolveHttpAuthRuntimeConfig(i))};class STSClient extends x{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=g(i);const A=ae(a);const c=J(A);const l=p(c);const d=Z(l);const h=resolveHttpAuthSchemeConfig(d);const f=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=f;this.middlewareStack.use(le(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(Ae(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(I(this.config));this.middlewareStack.use(w(this.config,{httpAuthSchemeParametersProvider:Ke,identityProviderConfigProvider:async t=>new S({"aws.auth#sigv4":t.credentials,"aws.auth#sigv4a":t.credentials})}));this.middlewareStack.use(b(this.config))}destroy(){super.destroy()}}const Es=U(Xe,"AWSSecurityTokenServiceV20110615","STSClient",X);const Cs={};const _mw0=(t,n,i,a)=>[];class AssumeRoleCommand extends(Es(Cs,_mw0,"AssumeRole",as)){}class AssumeRoleWithSAMLCommand extends(Es(Cs,_mw0,"AssumeRoleWithSAML",As)){}class AssumeRoleWithWebIdentityCommand extends(Es(Cs,_mw0,"AssumeRoleWithWebIdentity",cs)){}class AssumeRootCommand extends(Es(Cs,_mw0,"AssumeRoot",ls)){}class DecodeAuthorizationMessageCommand extends(Es(Cs,_mw0,"DecodeAuthorizationMessage",us)){}class GetAccessKeyInfoCommand extends(Es(Cs,_mw0,"GetAccessKeyInfo",ds)){}class GetCallerIdentityCommand extends(Es(Cs,_mw0,"GetCallerIdentity",hs)){}class GetDelegatedAccessTokenCommand extends(Es(Cs,_mw0,"GetDelegatedAccessToken",fs)){}class GetFederationTokenCommand extends(Es(Cs,_mw0,"GetFederationToken",gs)){}class GetSessionTokenCommand extends(Es(Cs,_mw0,"GetSessionToken",ps)){}class GetWebIdentityTokenCommand extends(Es(Cs,_mw0,"GetWebIdentityToken",ms)){}const Is={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithSAMLCommand:AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand,AssumeRootCommand:AssumeRootCommand,DecodeAuthorizationMessageCommand:DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:GetAccessKeyInfoCommand,GetCallerIdentityCommand:GetCallerIdentityCommand,GetDelegatedAccessTokenCommand:GetDelegatedAccessTokenCommand,GetFederationTokenCommand:GetFederationTokenCommand,GetSessionTokenCommand:GetSessionTokenCommand,GetWebIdentityTokenCommand:GetWebIdentityTokenCommand};class STS extends STSClient{}P(Is,STS);const getAccountIdFromAssumedRoleUser=t=>{if(typeof t?.Arn==="string"){const n=t.Arn.split(":");if(n.length>4&&n[4]!==""){return n[4]}}return undefined};const resolveRegion=async(t,n,i,a={})=>{const A=typeof t==="function"?await t():t;const c=typeof n==="function"?await n():n;let l="";const d=A??c??(l=await B(a)());i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${A} (credential provider clientConfig)`,`${c} (contextual client)`,`${l} (STS default: AWS_REGION, profile region, or us-east-1)`);return d};const getDefaultRoleAssumer$1=(t,n)=>{let i;let a;return async(A,c)=>{a=A;if(!i){const{logger:A=t?.parentClientConfig?.logger,profile:c=t?.parentClientConfig?.profile,region:l,requestHandler:d=t?.parentClientConfig?.requestHandler,credentialProviderLogger:h,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t;const g=await resolveRegion(l,t?.parentClientConfig?.region,h,{logger:A,profile:c});const p=!isH2(d);i=new n({...t,userAgentAppId:f,profile:c,credentialDefaultProvider:()=>async()=>a,region:g,requestHandler:p?d:undefined,logger:A})}const{Credentials:l,AssumedRoleUser:d}=await i.send(new AssumeRoleCommand(c));if(!l||!l.AccessKeyId||!l.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${c.RoleArn}`)}const h=getAccountIdFromAssumedRoleUser(d);const f={accessKeyId:l.AccessKeyId,secretAccessKey:l.SecretAccessKey,sessionToken:l.SessionToken,expiration:l.Expiration,...l.CredentialScope&&{credentialScope:l.CredentialScope},...h&&{accountId:h}};y(f,"CREDENTIALS_STS_ASSUME_ROLE","i");return f}};const getDefaultRoleAssumerWithWebIdentity$1=(t,n)=>{let i;return async a=>{if(!i){const{logger:a=t?.parentClientConfig?.logger,profile:A=t?.parentClientConfig?.profile,region:c,requestHandler:l=t?.parentClientConfig?.requestHandler,credentialProviderLogger:d,userAgentAppId:h=t?.parentClientConfig?.userAgentAppId}=t;const f=await resolveRegion(c,t?.parentClientConfig?.region,d,{logger:a,profile:A});const g=!isH2(l);i=new n({...t,userAgentAppId:h,profile:A,region:f,requestHandler:g?l:undefined,logger:a})}const{Credentials:A,AssumedRoleUser:c}=await i.send(new AssumeRoleWithWebIdentityCommand(a));if(!A||!A.AccessKeyId||!A.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${a.RoleArn}`)}const l=getAccountIdFromAssumedRoleUser(c);const d={accessKeyId:A.AccessKeyId,secretAccessKey:A.SecretAccessKey,sessionToken:A.SessionToken,expiration:A.Expiration,...A.CredentialScope&&{credentialScope:A.CredentialScope},...l&&{accountId:l}};if(l){y(d,"RESOLVED_ACCOUNT_ID","T")}y(d,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return d}};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(t,n)=>{if(!n)return t;else return class CustomizableSTSClient extends t{constructor(t){super(t);for(const t of n){this.middlewareStack.use(t)}}}};const getDefaultRoleAssumer=(t={},n)=>getDefaultRoleAssumer$1(t,getCustomizableStsClientCtor(STSClient,n));const getDefaultRoleAssumerWithWebIdentity=(t={},n)=>getDefaultRoleAssumerWithWebIdentity$1(t,getCustomizableStsClientCtor(STSClient,n));const decorateDefaultCredentialProvider=t=>n=>t({roleAssumer:getDefaultRoleAssumer(n),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(n),...n});a=as;n.QL=AssumeRoleCommand;a=Tn;a=Nn;a=As;a=AssumeRoleWithSAMLCommand;a=Mn;a=Fn;a=cs;a=AssumeRoleWithWebIdentityCommand;a=xn;a=Un;a=ls;a=AssumeRootCommand;a=Pn;a=Ln;a=Dn;a=_n;a=us;a=DecodeAuthorizationMessageCommand;a=On;a=Hn;a=ExpiredTokenException;a=un;a=ExpiredTradeInTokenException;a=dn;a=$n;a=ds;a=GetAccessKeyInfoCommand;a=Gn;a=Vn;a=hs;a=GetCallerIdentityCommand;a=Yn;a=Jn;a=fs;a=GetDelegatedAccessTokenCommand;a=Wn;a=qn;a=gs;a=GetFederationTokenCommand;a=jn;a=zn;a=ps;a=GetSessionTokenCommand;a=Kn;a=Zn;a=ms;a=GetWebIdentityTokenCommand;a=Xn;a=es;a=IDPCommunicationErrorException;a=hn;a=IDPRejectedClaimException;a=gn;a=InvalidAuthorizationMessageException;a=pn;a=InvalidIdentityTokenException;a=mn;a=JWTPayloadSizeExceededException;a=En;a=MalformedPolicyDocumentException;a=Cn;a=OutboundWebIdentityFederationDisabledException;a=In;a=PackedPolicyTooLargeException;a=yn;a=ts;a=rs;a=RegionDisabledException;a=Bn;a=STS;n.iM=STSClient;a=STSServiceException;a=cn;a=SessionDurationEscalationException;a=Qn;a=ns;a=decorateDefaultCredentialProvider;a=wn;a=getDefaultRoleAssumer;a=getDefaultRoleAssumerWithWebIdentity},4316:(t,n,i)=>{var a;const{awsEndpointFunctions:A,emitWarningIfUnsupportedVersion:c,createDefaultUserAgentProvider:l,NODE_APP_ID_CONFIG_OPTIONS:d,getAwsRegionExtensionConfiguration:h,resolveAwsRegionExtensionConfiguration:f,resolveUserAgentConfig:g,resolveHostHeaderConfig:p,getUserAgentPlugin:m,getHostHeaderPlugin:E,getLoggerPlugin:C,getRecursionDetectionPlugin:I}=i(5152);const{getEndpointDiscoveryPlugin:y,NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS:B,resolveEndpointDiscoveryConfig:Q}=i(3688);const{getHttpAuthSchemeEndpointRuleSetPlugin:w,DefaultIdentityProviderConfig:S,getHttpSigningPlugin:b,createPaginator:R}=i(402);const{normalizeProvider:v,getSmithyContext:k,makeBuilder:D,ServiceException:T,NoOpLogger:N,emitWarningIfUnsupportedVersion:M,loadConfigsForDefaultMode:F,getDefaultExtensionConfiguration:x,resolveDefaultRuntimeConfig:U,Client:P,createAggregatedClient:L}=i(2658);const{Command:O}=i(2658);a=O;a=P;const{resolveDefaultsModeConfig:H,loadConfig:$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:G,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:V,NODE_REGION_CONFIG_OPTIONS:Y,NODE_REGION_CONFIG_FILE_OPTIONS:J,resolveRegionConfig:W}=i(7291);const{getEndpointPlugin:q,BinaryDecisionDiagram:j,EndpointCache:z,decideEndpoint:K,customEndpointFunctions:Z,resolveEndpointConfig:X}=i(2085);const{parseUrl:ee,getHttpHandlerExtensionConfiguration:te,resolveHttpHandlerRuntimeConfig:re,getContentLengthPlugin:ne}=i(3422);const{DEFAULT_RETRY_MODE:se,NODE_RETRY_MODE_CONFIG_OPTIONS:oe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ie,resolveRetryConfig:ae,getRetryPlugin:Ae}=i(3609);const{TypeRegistry:ce,getSchemaSerdePlugin:le}=i(6890);const{resolveAwsSdkSigV4Config:ue,AwsSdkSigV4Signer:de,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:he}=i(7523);const{defaultProvider:fe}=i(5861);const{toUtf8:ge,fromUtf8:pe,toBase64:me,fromBase64:Ee,calculateBodyLength:Ce}=i(2430);const{streamCollector:Ie,NodeHttpHandler:ye}=i(1279);const{AwsJson1_0Protocol:Be}=i(7288);const{Sha256:Qe}=i(9542);const defaultTimestreamWriteHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:k(n).operation,region:await v(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"timestream",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const defaultTimestreamWriteHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ue(t);return Object.assign(n,{authSchemePreference:v(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"timestream"});const we={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const Se=D(we,"Timestream_20181101","TimestreamWriteClient",q);const be={};const _mw0=(t,n,i,a)=>[y(i,{clientStack:n,options:a,isDiscoveredEndpointRequired:true})];const _mw1=(t,n,i,a)=>[];class TimestreamWriteServiceException extends T{constructor(t){super(t);Object.setPrototypeOf(this,TimestreamWriteServiceException.prototype)}}class AccessDeniedException extends TimestreamWriteServiceException{name="AccessDeniedException";$fault="client";Message;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.Message=t.Message}}class ConflictException extends TimestreamWriteServiceException{name="ConflictException";$fault="client";Message;constructor(t){super({name:"ConflictException",$fault:"client",...t});Object.setPrototypeOf(this,ConflictException.prototype);this.Message=t.Message}}class InternalServerException extends TimestreamWriteServiceException{name="InternalServerException";$fault="server";Message;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.Message=t.Message}}class InvalidEndpointException extends TimestreamWriteServiceException{name="InvalidEndpointException";$fault="client";Message;constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidEndpointException.prototype);this.Message=t.Message}}class ResourceNotFoundException extends TimestreamWriteServiceException{name="ResourceNotFoundException";$fault="client";Message;constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ResourceNotFoundException.prototype);this.Message=t.Message}}class ServiceQuotaExceededException extends TimestreamWriteServiceException{name="ServiceQuotaExceededException";$fault="client";Message;constructor(t){super({name:"ServiceQuotaExceededException",$fault:"client",...t});Object.setPrototypeOf(this,ServiceQuotaExceededException.prototype);this.Message=t.Message}}class ThrottlingException extends TimestreamWriteServiceException{name="ThrottlingException";$fault="client";Message;constructor(t){super({name:"ThrottlingException",$fault:"client",...t});Object.setPrototypeOf(this,ThrottlingException.prototype);this.Message=t.Message}}class ValidationException extends TimestreamWriteServiceException{name="ValidationException";$fault="client";Message;constructor(t){super({name:"ValidationException",$fault:"client",...t});Object.setPrototypeOf(this,ValidationException.prototype);this.Message=t.Message}}class RejectedRecordsException extends TimestreamWriteServiceException{name="RejectedRecordsException";$fault="client";Message;RejectedRecords;constructor(t){super({name:"RejectedRecordsException",$fault:"client",...t});Object.setPrototypeOf(this,RejectedRecordsException.prototype);this.Message=t.Message;this.RejectedRecords=t.RejectedRecords}}const Re="Arn";const ve="AccessDeniedException";const ke="Address";const De="BatchLoadProgressReport";const Te="BatchLoadTask";const Ne="BatchLoadTaskDescription";const Me="BatchLoadTaskList";const Fe="BatchLoadTasks";const xe="BytesMetered";const Ue="BucketName";const Pe="CommonAttributes";const Le="CreateBatchLoadTask";const _e="CreateBatchLoadTaskRequest";const Oe="CreateBatchLoadTaskResponse";const He="CsvConfiguration";const $e="CreateDatabase";const Ge="CreateDatabaseRequest";const Ve="CreateDatabaseResponse";const Ye="ConflictException";const Je="CachePeriodInMinutes";const We="CompositePartitionKey";const qe="ClientRequestToken";const je="ColumnSeparator";const ze="CreationTime";const Ke="CreateTableRequest";const Ze="CreateTableResponse";const Xe="ClientToken";const et="CreateTable";const tt="Database";const rt="DescribeBatchLoadTask";const nt="DescribeBatchLoadTaskRequest";const st="DescribeBatchLoadTaskResponse";const ot="DestinationColumn";const it="DeleteDatabase";const at="DeleteDatabaseRequest";const At="DescribeDatabaseRequest";const ct="DescribeDatabaseResponse";const lt="DescribeDatabase";const ut="DescribeEndpoints";const dt="DescribeEndpointsRequest";const ht="DescribeEndpointsResponse";const ft="DataFormat";const gt="DatabaseList";const pt="DataModel";const mt="DataModelConfiguration";const Et="DataModelS3Configuration";const Ct="DimensionMappings";const It="DimensionMapping";const yt="DatabaseName";const Bt="DataSourceConfiguration";const Qt="DataSourceS3Configuration";const wt="DeleteTable";const St="DeleteTableRequest";const bt="DescribeTableRequest";const Rt="DescribeTableResponse";const vt="DescribeTable";const kt="DimensionValueType";const Dt="Databases";const Tt="Dimension";const Nt="Dimensions";const Mt="Endpoints";const Ft="EscapeChar";const xt="EnforcementInRecord";const Ut="ErrorMessage";const Pt="EnableMagneticStoreWrites";const Lt="EncryptionOption";const _t="ExistingVersion";const Ot="Endpoint";const Ht="FileFailures";const $t="InvalidEndpointException";const Gt="InternalServerException";const Vt="Key";const Yt="KmsKeyId";const Jt="ListBatchLoadTasks";const Wt="ListBatchLoadTasksRequest";const qt="ListBatchLoadTasksResponse";const jt="ListDatabases";const zt="ListDatabasesRequest";const Kt="ListDatabasesResponse";const Zt="ListTables";const Xt="ListTagsForResource";const er="ListTagsForResourceRequest";const tr="ListTagsForResourceResponse";const rr="ListTablesRequest";const nr="ListTablesResponse";const sr="LastUpdatedTime";const ir="Message";const ar="MultiMeasureAttributeMappings";const Ar="MultiMeasureAttributeMappingList";const cr="MultiMeasureAttributeMapping";const lr="MultiMeasureMappings";const ur="MixedMeasureMappingList";const dr="MixedMeasureMappings";const hr="MixedMeasureMapping";const fr="MeasureName";const gr="MeasureNameColumn";const pr="MaxResults";const mr="MemoryStore";const Er="MagneticStoreRejectedDataLocation";const Cr="MagneticStoreRetentionPeriodInDays";const Ir="MemoryStoreRetentionPeriodInHours";const yr="MagneticStoreWriteProperties";const Br="MagneticStore";const Qr="MeasureValue";const wr="MeasureValueType";const Sr="MeasureValues";const br="Name";const Rr="NextToken";const vr="NullValue";const kr="ObjectKey";const Dr="ObjectKeyPrefix";const Tr="ParseFailures";const Nr="PartitionKey";const Mr="PartitionKeyList";const Fr="ProgressReport";const xr="QuoteChar";const Ur="Record";const Pr="ResourceARN";const Lr="ResumeBatchLoadTask";const _r="ResumeBatchLoadTaskRequest";const Or="ResumeBatchLoadTaskResponse";const Hr="ReportConfiguration";const $r="RecordsIngested";const Gr="RecordIngestionFailures";const Vr="RecordIndex";const Yr="ResourceNotFoundException";const Jr="RecordsProcessed";const Wr="RetentionProperties";const qr="RejectedRecords";const jr="RejectedRecordsException";const zr="RejectedRecord";const Kr="ReportS3Configuration";const Zr="ResumableUntil";const Xr="RecordVersion";const en="Reason";const tn="Records";const rn="Schema";const nn="SourceColumn";const sn="S3Configuration";const on="ServiceQuotaExceededException";const an="Tags";const An="TableCount";const cn="TimeColumn";const ln="TargetDatabaseName";const un="ThrottlingException";const dn="TaskId";const hn="TagKeys";const gn="TableList";const pn="TagList";const mn="TargetMultiMeasureAttributeName";const En="TargetMultiMeasureName";const Cn="TargetMeasureName";const In="TableName";const yn="TagResource";const Bn="TagResourceRequest";const Qn="TagResourceResponse";const wn="TaskStatus";const Sn="TableStatus";const bn="TargetTableName";const Rn="TimeUnit";const vn="TrimWhiteSpace";const kn="Table";const Dn="Tables";const Tn="Tag";const Nn="Time";const Mn="Total";const Fn="Type";const xn="UpdateDatabase";const Un="UpdateDatabaseRequest";const Pn="UpdateDatabaseResponse";const Ln="UntagResource";const _n="UntagResourceRequest";const On="UntagResourceResponse";const Hn="UpdateTable";const $n="UpdateTableRequest";const Gn="UpdateTableResponse";const Vn="Value";const Yn="ValidationException";const Jn="Version";const Wn="WriteRecords";const qn="WriteRecordsRequest";const jn="WriteRecordsResponse";const zn="client";const Kn="error";const Zn="httpError";const Xn="smithy.ts.sdk.synthetic.com.amazonaws.timestreamwrite";const es="server";const ts="com.amazonaws.timestreamwrite";const rs=ce.for(Xn);var ns=[-3,Xn,"TimestreamWriteServiceException",0,[],[]];rs.registerError(ns,TimestreamWriteServiceException);const ss=ce.for(ts);var os=[-3,ts,ve,{[Kn]:zn,[Zn]:403},[ir],[0],1];ss.registerError(os,AccessDeniedException);var is=[-3,ts,Ye,{[Kn]:zn,[Zn]:409},[ir],[0],1];ss.registerError(is,ConflictException);var as=[-3,ts,Gt,{[Kn]:es,[Zn]:500},[ir],[0],1];ss.registerError(as,InternalServerException);var As=[-3,ts,$t,{[Kn]:zn,[Zn]:421},[ir],[0]];ss.registerError(As,InvalidEndpointException);var cs=[-3,ts,jr,{[Kn]:zn,[Zn]:419},[ir,qr],[0,()=>Oo]];ss.registerError(cs,RejectedRecordsException);var ls=[-3,ts,Yr,{[Kn]:zn,[Zn]:404},[ir],[0]];ss.registerError(ls,ResourceNotFoundException);var us=[-3,ts,on,{[Kn]:zn,[Zn]:402},[ir],[0]];ss.registerError(us,ServiceQuotaExceededException);var ds=[-3,ts,un,{[Kn]:zn,[Zn]:429},[ir],[0],1];ss.registerError(ds,ThrottlingException);var hs=[-3,ts,Yn,{[Kn]:zn,[Zn]:400},[ir],[0],1];ss.registerError(hs,ValidationException);const fs=[rs,ss];var gs=[0,ts,qe,8,0];var ps=[3,ts,De,0,[Jr,$r,Tr,Gr,Ht,xe],[1,1,1,1,1,1]];var ms=[3,ts,Te,0,[dn,wn,yt,In,ze,sr,Zr],[0,0,0,0,4,4,4]];var Es=[3,ts,Ne,0,[dn,Ut,Bt,Fr,Hr,mt,ln,bn,wn,Xr,ze,sr,Zr],[0,0,()=>Ds,()=>ps,()=>co,()=>vs,0,0,0,1,4,4,4]];var Cs=[3,ts,_e,0,[Bt,Hr,ln,bn,Xe,mt,Xr],[()=>Ds,()=>co,0,0,[()=>gs,4],()=>vs,1],4];var Is=[3,ts,Oe,0,[dn],[0],1];var ys=[3,ts,Ge,0,[yt,Yt,an],[0,0,()=>$o],1];var Bs=[3,ts,Ve,0,[tt],[()=>bs]];var Qs=[3,ts,Ke,0,[yt,In,Wr,an,yr,rn],[0,0,()=>fo,()=>$o,()=>eo,()=>po],2];var ws=[3,ts,Ze,0,[kn],[()=>mo]];var Ss=[3,ts,He,0,[je,Ft,xr,vr,vn],[0,0,0,0,2]];var bs=[3,ts,tt,0,[Re,yt,An,Yt,ze,sr],[0,0,1,0,4,4]];var Rs=[3,ts,pt,0,[Ct,cn,Rn,lr,dr,gr],[()=>No,0,0,()=>so,()=>Uo,0],1];var vs=[3,ts,mt,0,[pt,Et],[()=>Rs,()=>ks]];var ks=[3,ts,Et,0,[Ue,kr],[0,0]];var Ds=[3,ts,Bt,0,[Qt,ft,He],[()=>Ts,0,()=>Ss],2];var Ts=[3,ts,Qt,0,[Ue,Dr],[0,0],1];var Ns=[3,ts,at,0,[yt],[0],1];var Ms=[3,ts,St,0,[yt,In],[0,0],2];var Fs=[3,ts,nt,0,[dn],[0],1];var xs=[3,ts,st,0,[Ne],[()=>Es],1];var Us=[3,ts,At,0,[yt],[0],1];var Ps=[3,ts,ct,0,[tt],[()=>bs]];var Ls=[3,ts,dt,0,[],[]];var _s=[3,ts,ht,0,[Mt],[()=>Fo],1];var Os=[3,ts,bt,0,[yt,In],[0,0],2];var Hs=[3,ts,Rt,0,[kn],[()=>mo]];var $s=[3,ts,Tt,0,[br,Vn,kt],[0,0,0],2];var Gs=[3,ts,It,0,[nn,ot],[0,0]];var Vs=[3,ts,Ot,0,[ke,Je],[0,1],2];var Ys=[3,ts,Wt,0,[Rr,pr,wn],[0,1,0]];var Js=[3,ts,qt,0,[Rr,Fe],[0,()=>Do]];var Ws=[3,ts,zt,0,[Rr,pr],[0,1]];var qs=[3,ts,Kt,0,[Dt,Rr],[()=>To,0]];var js=[3,ts,rr,0,[yt,Rr,pr],[0,0,1]];var zs=[3,ts,nr,0,[Dn,Rr],[()=>Ho,0]];var Ks=[3,ts,er,0,[Pr],[0],1];var Zs=[3,ts,tr,0,[an],[()=>$o]];var Xs=[3,ts,Er,0,[sn],[()=>go]];var eo=[3,ts,yr,0,[Pt,Er],[2,()=>Xs],1];var to=[3,ts,Qr,0,[br,Vn,Fn],[0,0,0],3];var ro=[3,ts,hr,0,[wr,fr,nn,Cn,ar],[0,0,0,0,()=>Po],1];var no=[3,ts,cr,0,[nn,mn,wr],[0,0,0],1];var so=[3,ts,lr,0,[ar,En],[()=>Po,0],1];var oo=[3,ts,Nr,0,[Fn,br,xt],[0,0,0],1];var io=[3,ts,Ur,0,[Nt,fr,Qr,wr,Nn,Rn,Jn,Sr],[()=>Mo,0,0,0,0,0,1,()=>xo]];var ao=[3,ts,$r,0,[Mn,mr,Br],[1,1,1]];var Ao=[3,ts,zr,0,[Vr,en,_t],[1,0,1]];var co=[3,ts,Hr,0,[Kr],[()=>lo]];var lo=[3,ts,Kr,0,[Ue,Dr,Lt,Yt],[0,0,0,0],1];var uo=[3,ts,_r,0,[dn],[0],1];var ho=[3,ts,Or,0,[],[]];var fo=[3,ts,Wr,0,[Ir,Cr],[1,1],2];var go=[3,ts,sn,0,[Ue,Dr,Lt,Yt],[0,0,0,0]];var po=[3,ts,rn,0,[We],[()=>Lo]];var mo=[3,ts,kn,0,[Re,In,yt,Sn,Wr,ze,sr,yr,rn],[0,0,0,0,()=>fo,4,4,()=>eo,()=>po]];var Eo=[3,ts,Tn,0,[Vt,Vn],[0,0],2];var Co=[3,ts,Bn,0,[Pr,an],[0,()=>$o],2];var Io=[3,ts,Qn,0,[],[]];var yo=[3,ts,_n,0,[Pr,hn],[0,64|0],2];var Bo=[3,ts,On,0,[],[]];var Qo=[3,ts,Un,0,[yt,Yt],[0,0],2];var wo=[3,ts,Pn,0,[tt],[()=>bs]];var So=[3,ts,$n,0,[yt,In,Wr,yr,rn],[0,0,()=>fo,()=>eo,()=>po],2];var bo=[3,ts,Gn,0,[kn],[()=>mo]];var Ro=[3,ts,qn,0,[yt,In,tn,Pe],[0,0,()=>_o,()=>io],3];var vo=[3,ts,jn,0,[$r],[()=>ao]];var ko="unit";var Do=[1,ts,Me,0,()=>ms];var To=[1,ts,gt,0,()=>bs];var No=[1,ts,Ct,0,()=>Gs];var Mo=[1,ts,Nt,0,()=>$s];var Fo=[1,ts,Mt,0,()=>Vs];var xo=[1,ts,Sr,0,()=>to];var Uo=[1,ts,ur,0,()=>ro];var Po=[1,ts,Ar,0,()=>no];var Lo=[1,ts,Mr,0,()=>oo];var _o=[1,ts,tn,0,()=>io];var Oo=[1,ts,qr,0,()=>Ao];var Ho=[1,ts,gn,0,()=>mo];var $o=[1,ts,pn,0,()=>Eo];var Go=[9,ts,Le,0,()=>Cs,()=>Is];var Vo=[9,ts,$e,0,()=>ys,()=>Bs];var Yo=[9,ts,et,0,()=>Qs,()=>ws];var Jo=[9,ts,it,0,()=>Ns,()=>ko];var Wo=[9,ts,wt,0,()=>Ms,()=>ko];var qo=[9,ts,rt,0,()=>Fs,()=>xs];var jo=[9,ts,lt,0,()=>Us,()=>Ps];var zo=[9,ts,ut,0,()=>Ls,()=>_s];var Ko=[9,ts,vt,0,()=>Os,()=>Hs];var Zo=[9,ts,Jt,0,()=>Ys,()=>Js];var Xo=[9,ts,jt,0,()=>Ws,()=>qs];var ei=[9,ts,Zt,0,()=>js,()=>zs];var ti=[9,ts,Xt,0,()=>Ks,()=>Zs];var ri=[9,ts,Lr,0,()=>uo,()=>ho];var ni=[9,ts,yn,0,()=>Co,()=>Io];var si=[9,ts,Ln,0,()=>yo,()=>Bo];var oi=[9,ts,xn,0,()=>Qo,()=>wo];var ii=[9,ts,Hn,0,()=>So,()=>bo];var ai=[9,ts,Wn,0,()=>Ro,()=>vo];class DescribeEndpointsCommand extends(Se(be,_mw1,"DescribeEndpoints",zo)){}var Ai="3.1096.0";var ci={version:Ai};const li="ref";const ui=-1,di=true,hi="isSet",fi="PartitionResult",gi="booleanEquals",pi="getAttr",mi="stringEquals",Ei={[li]:"Endpoint"},Ci={[li]:fi},Ii={fn:pi,argv:[Ci,"name"]},yi={},Bi=[{[li]:"Region"}];const Qi={conditions:[[hi,[Ei]],[hi,Bi],["aws.partition",Bi,fi],[gi,[{[li]:"UseFIPS"},di]],[gi,[{[li]:"UseDualStack"},di]],[gi,[{fn:pi,argv:[Ci,"supportsFIPS"]},di]],[gi,[{fn:pi,argv:[Ci,"supportsDualStack"]},di]],[mi,[Ii,"aws"]],[mi,[Ii,"aws-us-gov"]]],results:[[ui],[ui,"Invalid Configuration: FIPS and custom endpoint are not supported"],[ui,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ei,yi],["https://timestream-ingest-fips.{Region}.api.aws",yi],["https://timestream-ingest.{Region}.api.aws",yi],["https://ingest.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",yi],[ui,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://ingest.timestream.{Region}.amazonaws.com",yi],["https://ingest.timestream-fips.{Region}.{PartitionResult#dnsSuffix}",yi],[ui,"FIPS is enabled but this partition does not support FIPS"],["https://ingest.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}",yi],[ui,"DualStack is enabled but this partition does not support DualStack"],["https://ingest.timestream.{Region}.{PartitionResult#dnsSuffix}",yi],[ui,"Invalid Configuration: Missing Region"]]};const wi=2;const Si=1e8;const bi=new Int32Array([-1,1,-1,0,17,3,1,4,Si+14,2,5,Si+14,3,10,6,4,7,Si+13,6,8,Si+12,7,Si+5,9,8,Si+5,Si+11,4,13,11,5,12,Si+10,8,Si+8,Si+9,5,14,Si+7,6,15,Si+7,7,Si+4,16,8,Si+5,Si+6,3,Si+1,18,4,Si+2,Si+3]);const Ri=j.from(bi,wi,Qi.conditions,Qi.results);const vi=new z({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>vi.get(t,()=>K(Ri,{endpointParams:t,logger:n.logger}));Z.aws=A;const getRuntimeConfig$1=t=>({apiVersion:"2018-11-01",base64Decoder:t?.base64Decoder??Ee,base64Encoder:t?.base64Encoder??me,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultTimestreamWriteHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new de}],logger:t?.logger??new N,protocol:t?.protocol??Be,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.timestreamwrite",errorTypeRegistries:fs,version:"2018-11-01",serviceTarget:"Timestream_20181101"},serviceId:t?.serviceId??"Timestream Write",sha256:t?.sha256??Qe,urlParser:t?.urlParser??ee,utf8Decoder:t?.utf8Decoder??pe,utf8Encoder:t?.utf8Encoder??ge});const getRuntimeConfig=t=>{M(process.version);const n=H(t);const defaultConfigProvider=()=>n().then(F);const i=getRuntimeConfig$1(t);c(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??$(he,a),bodyLengthChecker:t?.bodyLengthChecker??Ce,credentialDefaultProvider:t?.credentialDefaultProvider??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??l({serviceId:i.serviceId,clientVersion:ci.version}),endpointDiscoveryEnabledProvider:t?.endpointDiscoveryEnabledProvider??$(B,a),maxAttempts:t?.maxAttempts??$(ie,t),region:t?.region??$(Y,{...J,...a}),requestHandler:ye.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??$({...oe,default:async()=>(await defaultConfigProvider()).retryMode||se},t),streamCollector:t?.streamCollector??Ie,useDualstackEndpoint:t?.useDualstackEndpoint??$(V,a),useFipsEndpoint:t?.useFipsEndpoint??$(G,a),userAgentAppId:t?.userAgentAppId??$(d,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(h(t),x(t),te(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,f(i),U(i),re(i),resolveHttpAuthRuntimeConfig(i))};class TimestreamWriteClient extends P{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=g(i);const A=ae(a);const c=W(A);const l=p(c);const d=X(l);const h=resolveHttpAuthSchemeConfig(d);const f=Q(h,{endpointDiscoveryCommandCtor:DescribeEndpointsCommand});const y=resolveRuntimeExtensions(f,t?.extensions||[]);this.config=y;this.middlewareStack.use(le(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(Ae(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(I(this.config));this.middlewareStack.use(w(this.config,{httpAuthSchemeParametersProvider:defaultTimestreamWriteHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new S({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(b(this.config))}destroy(){super.destroy()}}class CreateBatchLoadTaskCommand extends(Se(be,_mw0,"CreateBatchLoadTask",Go)){}class CreateDatabaseCommand extends(Se(be,_mw0,"CreateDatabase",Vo)){}class CreateTableCommand extends(Se(be,_mw0,"CreateTable",Yo)){}class DeleteDatabaseCommand extends(Se(be,_mw0,"DeleteDatabase",Jo)){}class DeleteTableCommand extends(Se(be,_mw0,"DeleteTable",Wo)){}class DescribeBatchLoadTaskCommand extends(Se(be,_mw0,"DescribeBatchLoadTask",qo)){}class DescribeDatabaseCommand extends(Se(be,_mw0,"DescribeDatabase",jo)){}class DescribeTableCommand extends(Se(be,_mw0,"DescribeTable",Ko)){}class ListBatchLoadTasksCommand extends(Se(be,_mw0,"ListBatchLoadTasks",Zo)){}class ListDatabasesCommand extends(Se(be,_mw0,"ListDatabases",Xo)){}class ListTablesCommand extends(Se(be,_mw0,"ListTables",ei)){}class ListTagsForResourceCommand extends(Se(be,_mw0,"ListTagsForResource",ti)){}class ResumeBatchLoadTaskCommand extends(Se(be,_mw0,"ResumeBatchLoadTask",ri)){}class TagResourceCommand extends(Se(be,_mw0,"TagResource",ni)){}class UntagResourceCommand extends(Se(be,_mw0,"UntagResource",si)){}class UpdateDatabaseCommand extends(Se(be,_mw0,"UpdateDatabase",oi)){}class UpdateTableCommand extends(Se(be,_mw0,"UpdateTable",ii)){}class WriteRecordsCommand extends(Se(be,_mw0,"WriteRecords",ai)){}const ki=R(TimestreamWriteClient,ListBatchLoadTasksCommand,"NextToken","NextToken","MaxResults");const Di=R(TimestreamWriteClient,ListDatabasesCommand,"NextToken","NextToken","MaxResults");const Ti=R(TimestreamWriteClient,ListTablesCommand,"NextToken","NextToken","MaxResults");const Ni={CreateBatchLoadTaskCommand:CreateBatchLoadTaskCommand,CreateDatabaseCommand:CreateDatabaseCommand,CreateTableCommand:CreateTableCommand,DeleteDatabaseCommand:DeleteDatabaseCommand,DeleteTableCommand:DeleteTableCommand,DescribeBatchLoadTaskCommand:DescribeBatchLoadTaskCommand,DescribeDatabaseCommand:DescribeDatabaseCommand,DescribeEndpointsCommand:DescribeEndpointsCommand,DescribeTableCommand:DescribeTableCommand,ListBatchLoadTasksCommand:ListBatchLoadTasksCommand,ListDatabasesCommand:ListDatabasesCommand,ListTablesCommand:ListTablesCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,ResumeBatchLoadTaskCommand:ResumeBatchLoadTaskCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateDatabaseCommand:UpdateDatabaseCommand,UpdateTableCommand:UpdateTableCommand,WriteRecordsCommand:WriteRecordsCommand};const Mi={paginateListBatchLoadTasks:ki,paginateListDatabases:Di,paginateListTables:Ti};class TimestreamWrite extends TimestreamWriteClient{}L(Ni,TimestreamWrite,{paginators:Mi});const Fi={CSV:"CSV"};const xi={CREATED:"CREATED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PENDING_RESUME:"PENDING_RESUME",PROGRESS_STOPPED:"PROGRESS_STOPPED",SUCCEEDED:"SUCCEEDED"};const Ui={BIGINT:"BIGINT",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",MULTI:"MULTI",TIMESTAMP:"TIMESTAMP",VARCHAR:"VARCHAR"};const Pi={BIGINT:"BIGINT",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",TIMESTAMP:"TIMESTAMP",VARCHAR:"VARCHAR"};const Li={MICROSECONDS:"MICROSECONDS",MILLISECONDS:"MILLISECONDS",NANOSECONDS:"NANOSECONDS",SECONDS:"SECONDS"};const _i={SSE_KMS:"SSE_KMS",SSE_S3:"SSE_S3"};const Oi={OPTIONAL:"OPTIONAL",REQUIRED:"REQUIRED"};const Hi={DIMENSION:"DIMENSION",MEASURE:"MEASURE"};const $i={ACTIVE:"ACTIVE",DELETING:"DELETING",RESTORING:"RESTORING"};const Gi={VARCHAR:"VARCHAR"};a=AccessDeniedException;a=os;a=Fi;a=ps;a=xi;a=ms;a=Es;a=ConflictException;a=is;a=Go;a=CreateBatchLoadTaskCommand;a=Cs;a=Is;a=Vo;a=CreateDatabaseCommand;a=ys;a=Bs;a=Yo;a=CreateTableCommand;a=Qs;a=ws;a=Ss;a=Rs;a=vs;a=ks;a=Ds;a=Ts;a=bs;a=Jo;a=DeleteDatabaseCommand;a=Ns;a=Wo;a=DeleteTableCommand;a=Ms;a=qo;a=DescribeBatchLoadTaskCommand;a=Fs;a=xs;a=jo;a=DescribeDatabaseCommand;a=Us;a=Ps;a=zo;a=DescribeEndpointsCommand;a=Ls;a=_s;a=Ko;a=DescribeTableCommand;a=Os;a=Hs;a=$s;a=Gs;a=Gi;a=Vs;a=InternalServerException;a=as;a=InvalidEndpointException;a=As;a=Zo;a=ListBatchLoadTasksCommand;a=Ys;a=Js;a=Xo;a=ListDatabasesCommand;a=Ws;a=qs;a=ei;a=ListTablesCommand;a=js;a=zs;a=ti;a=ListTagsForResourceCommand;a=Ks;a=Zs;a=Xs;a=eo;a=to;n.Q3=Ui;a=ro;a=no;a=so;a=oo;a=Oi;a=Hi;a=ao;a=Ao;a=RejectedRecordsException;a=cs;a=co;a=lo;a=ResourceNotFoundException;a=ls;a=ri;a=ResumeBatchLoadTaskCommand;a=uo;a=ho;a=fo;a=go;a=_i;a=Pi;a=po;a=ServiceQuotaExceededException;a=us;a=mo;a=$i;a=Eo;a=ni;a=TagResourceCommand;a=Co;a=Io;a=ThrottlingException;a=ds;n.yr=Li;a=TimestreamWrite;n.Go=TimestreamWriteClient;a=TimestreamWriteServiceException;a=ns;a=si;a=UntagResourceCommand;a=yo;a=Bo;a=oi;a=UpdateDatabaseCommand;a=Qo;a=wo;a=ii;a=UpdateTableCommand;a=So;a=bo;a=ValidationException;a=hs;a=ai;n.Nj=WriteRecordsCommand;a=Ro;a=vo;a=io;a=fs;a=ki;a=Di;a=Ti},5152:(t,n,i)=>{const{Retry:a,RETRY_MODES:A}=i(3609);const{HttpRequest:c,parseUrl:l}=i(3422);const{InvokeStore:d}=i(9320);const{normalizeProvider:h}=i(402);const{platform:f,release:g}=i(8161);const{versions:p,env:m}=i(1708);const{isValidHostLabel:E,isIpAddress:C,customEndpointFunctions:I}=i(2085);const{EndpointError:y,resolveEndpoint:B}=i(2085);n.EndpointError=y;n.isIpAddress=C;n.resolveEndpoint=B;const{loadConfig:Q,NODE_REGION_CONFIG_OPTIONS:w,NODE_REGION_CONFIG_FILE_OPTIONS:S}=i(7291);const{REGION_ENV_NAME:b,REGION_INI_NAME:R,resolveRegionConfig:v}=i(7291);n.NODE_REGION_CONFIG_FILE_OPTIONS=S;n.NODE_REGION_CONFIG_OPTIONS=w;n.REGION_ENV_NAME=b;n.REGION_INI_NAME=R;n.resolveRegionConfig=v;const k={warningEmitted:false};const emitWarningIfUnsupportedVersion=t=>{if(t&&!k.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){k.warningEmitted=true;return}const n=parseInt(t.substring(1,t.indexOf(".")));const i=22;if(n=${i}. You are running node ${t}.\n\nTo continue receiving updates to AWS services, bug fixes,\nand security updates please upgrade to node >=${i}.\n\nMore information can be found at: https://a.co/c895JFp`)}}};const longPollMiddleware=()=>(t,n)=>async i=>{n.__retryLongPoll=true;return t(i)};const D={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:true};const getLongPollPlugin=t=>({applyToStack:t=>{t.add(longPollMiddleware(),D)}});function setCredentialFeature(t,n,i){if(!t.$source){t.$source={}}t.$source[n]=i;return t}a.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function setFeature(t,n,i){if(!t.__aws_sdk_context){t.__aws_sdk_context={features:{}}}else if(!t.__aws_sdk_context.features){t.__aws_sdk_context.features={}}t.__aws_sdk_context.features[n]=i}function setTokenFeature(t,n,i){if(!t.$source){t.$source={}}t.$source[n]=i;return t}function resolveHostHeaderConfig(t){return t}const hostHeaderMiddleware=t=>n=>async i=>{if(!c.isInstance(i.request))return n(i);const{request:a}=i;const{handlerProtocol:A=""}=t.requestHandler.metadata||{};if(A.indexOf("h2")>=0&&!a.headers[":authority"]){delete a.headers["host"];a.headers[":authority"]=a.hostname+(a.port?":"+a.port:"")}else if(!a.headers["host"]){let t=a.hostname;if(a.port!=null)t+=`:${a.port}`;a.headers["host"]=t}return n(i)};const T={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=t=>({applyToStack:n=>{n.add(hostHeaderMiddleware(t),T)}});const loggerMiddleware=()=>(t,n)=>async i=>{try{const a=await t(i);const{clientName:A,commandName:c,logger:l,dynamoDbDocumentClientOptions:d={}}=n;const{overrideInputFilterSensitiveLog:h,overrideOutputFilterSensitiveLog:f}=d;const g=h??n.inputFilterSensitiveLog;const p=f??n.outputFilterSensitiveLog;const{$metadata:m,...E}=a.output;l?.info?.({clientName:A,commandName:c,input:g(i.input),output:p(E),metadata:m});return a}catch(t){const{clientName:a,commandName:A,logger:c,dynamoDbDocumentClientOptions:l={}}=n;const{overrideInputFilterSensitiveLog:d}=l;const h=d??n.inputFilterSensitiveLog;c?.error?.({clientName:a,commandName:A,input:h(i.input),error:t,metadata:t.$metadata});throw t}};const N={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=t=>({applyToStack:t=>{t.add(loggerMiddleware(),N)}});const M={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const F="AWS_LAMBDA_FUNCTION_NAME";const x="_X_AMZN_TRACE_ID";const U="X-Amzn-Trace-Id";const P="traceparent";const L="tracestate";const O="baggage";const recursionDetectionMiddleware=()=>t=>async n=>{const{request:i}=n;if(!c.isInstance(i)){return t(n)}let a;{const t=Object.keys(i.headers??{}).find(t=>t.toLowerCase()===U.toLowerCase())??U;if(!i.headers.hasOwnProperty(t)){const t=process.env[F];const n=process.env[x];a??=await d.getInstanceAsync();const A=a?.getXRayTraceId();const c=A??n;const nonEmptyString=t=>typeof t==="string"&&t.length>0;if(nonEmptyString(t)&&nonEmptyString(c)){i.headers[U]=c}}}{sanitizeTraceHeaders(i.headers);const t=i.headers[P];if(!t){const t=(a??=await d.getInstanceAsync())?.getTraceparent?.();if(t){i.headers[P]=t;const n=a?.getTracestate?.();if(n){i.headers[L]=n}const A=a?.getBaggage?.();if(A){i.headers[O]=A}}}}return t(n)};function sanitizeTraceHeaders(t){for(const n of Object.keys(t)){const i=n.toLowerCase();if(n!==i&&(i===P||i===L||i===O)){t[i]=t[n];delete t[n]}}}const getRecursionDetectionPlugin=t=>({applyToStack:t=>{t.add(recursionDetectionMiddleware(),M)}});const H=undefined;function isValidUserAgentAppId(t){if(t===undefined){return true}return typeof t==="string"&&t.length<=50}function resolveUserAgentConfig(t){const n=h(t.userAgentAppId??H);const{customUserAgent:i}=t;return Object.assign(t,{customUserAgent:typeof i==="string"?[[i]]:i,userAgentAppId:async()=>{const i=await n();if(!isValidUserAgentAppId(i)){const n=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;if(typeof i!=="string"){n?.warn("userAgentAppId must be a string or undefined.")}else if(i.length>50){n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return i}})}const $={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};let G=$;let V="";const partition=t=>{const{partitions:n}=G;for(const i of n){const{regions:n,outputs:a}=i;for(const[i,A]of Object.entries(n)){if(i===t){return{...a,...A}}}}for(const i of n){const{regionRegex:n,outputs:a}=i;if(new RegExp(n).test(t)){return{...a}}}const i=n.find(t=>t.id==="aws");if(!i){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...i.outputs}};const setPartitionInfo=(t,n="")=>{G=t;V=n};const useDefaultPartitionInfo=()=>{setPartitionInfo($,"")};const getUserAgentPrefix=()=>V;const Y=/\d{12}\.ddb/;async function checkFeatures(t,n,i){const a=i.request;if(a?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){setFeature(t,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof n.retryStrategy==="function"){const i=await n.retryStrategy();if(typeof i.mode==="string"){switch(i.mode){case A.ADAPTIVE:setFeature(t,"RETRY_MODE_ADAPTIVE","F");break;case A.STANDARD:setFeature(t,"RETRY_MODE_STANDARD","E");break}}}if(typeof n.accountIdEndpointMode==="function"){const i=t.endpointV2;if(String(i?.url?.hostname).match(Y)){setFeature(t,"ACCOUNT_ID_ENDPOINT","O")}switch(await(n.accountIdEndpointMode?.())){case"disabled":setFeature(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":setFeature(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":setFeature(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const c=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(c?.$source){const n=c;if(n.accountId){setFeature(t,"RESOLVED_ACCOUNT_ID","T")}for(const[i,a]of Object.entries(n.$source??{})){setFeature(t,i,a)}}}const J="user-agent";const W="x-amz-user-agent";const q=" ";const j="/";const z=/[^!$%&'*+\-.^_`|~\w]/g;const K=/[^!$%&'*+\-.^_`|~\w#]/g;const Z="-";const X=1024;function encodeFeatures(t){let n="";for(const i in t){const a=t[i];if(n.length+a.length+1<=X){if(n.length){n+=","+a}else{n+=a}continue}break}return n}const userAgentMiddleware=t=>(n,i)=>async a=>{const{request:A}=a;if(!c.isInstance(A)){return n(a)}const{headers:l}=A;const d=i?.userAgent?.map(escapeUserAgent)||[];const h=(await t.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(i,t,a);const f=i;h.push(`m/${encodeFeatures(Object.assign({},i.__smithy_context?.features,f.__aws_sdk_context?.features))}`);const g=t?.customUserAgent?.map(escapeUserAgent)||[];const p=await t.userAgentAppId();if(p){h.push(escapeUserAgent([`app`,`${p}`]))}const m=getUserAgentPrefix();const E=(m?[m]:[]).concat([...h,...d,...g]).join(q);const C=[...h.filter(t=>t.startsWith("aws-sdk-")),...g].join(q);if(t.runtime!=="browser"){if(C){l[W]=l[W]?`${l[J]} ${C}`:C}l[J]=E}else{l[W]=E}return n({...a,request:A})};const escapeUserAgent=t=>{const n=t[0].split(j).map(t=>t.replace(z,Z)).join(j);const i=t[1]?.replace(K,Z);const a=n.indexOf(j);const A=n.substring(0,a);let c=n.substring(a+1);if(A==="api"){c=c.toLowerCase()}return[A,c,i].filter(t=>t&&t.length>0).reduce((t,n,i)=>{switch(i){case 0:return n;case 1:return`${t}/${n}`;default:return`${t}#${n}`}},"")};const ee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=t=>({applyToStack:n=>{n.add(userAgentMiddleware(t),ee)}});const getRuntimeUserAgentPair=()=>{const t=["deno","bun","llrt"];for(const n of t){if(p[n]){return[`md/${n}`,p[n]]}}return["md/nodejs",p.node]};const te={isCrtAvailable:false};const isCrtAvailable=()=>{if(te.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:t,clientVersion:n})=>{const i=getRuntimeUserAgentPair();return async a=>{const A=[["aws-sdk-js",n],["ua","2.1"],[`os/${f()}`,g()],["lang/js"],i];const c=isCrtAvailable();if(c){A.push(c)}if(t){A.push([`api/${t}`,n])}if(m.AWS_EXECUTION_ENV){A.push([`exec-env/${m.AWS_EXECUTION_ENV}`])}const l=await(a?.userAgentAppId?.());const d=l?[...A,[`app/${l}`]]:[...A];return d}};const re=createDefaultUserAgentProvider;const ne="AWS_SDK_UA_APP_ID";const se="sdk_ua_app_id";const oe="sdk-ua-app-id";const ie={environmentVariableSelector:t=>t[ne],configFileSelector:t=>t[se]??t[oe],default:H};const createUserAgentStringParsingProvider=({serviceId:t,clientVersion:n})=>async a=>{const A=i(9449);const c=A.parse??A.default.parse??(()=>"");const l=typeof window!=="undefined"&&window?.navigator?.userAgent?c(window.navigator.userAgent):undefined;const d=[["aws-sdk-js",n],["ua","2.1"],[`os/${l?.os?.name||"other"}`,l?.os?.version],["lang/js"],["md/browser",`${l?.browser?.name??"unknown"}_${l?.browser?.version??"unknown"}`]];if(t){d.push([`api/${t}`,n])}const h=await(a?.userAgentAppId?.());if(h){d.push([`app/${h}`])}return d};const ae={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux";return undefined},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari";return undefined}};const isVirtualHostableS3Bucket=(t,n=false)=>{if(n){for(const n of t.split(".")){if(!isVirtualHostableS3Bucket(n)){return false}}return true}if(!E(t)){return false}if(t.length<3||t.length>63){return false}if(t!==t.toLowerCase()){return false}if(C(t)){return false}return true};const Ae=":";const ce="/";const parseArn=t=>{const n=t.split(Ae);if(n.length<6)return null;const[i,a,A,c,l,...d]=n;if(i!=="arn"||a===""||A===""||d.join(Ae)==="")return null;const h=d.map(t=>t.split(ce)).flat();return{partition:a,service:A,region:c,accountId:l,resourceId:h}};const le={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};I.aws=le;const resolveDefaultAwsRegionalEndpointsConfig=t=>{if(typeof t.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:n}=t;if(n===undefined){t.endpoint=async()=>toEndpointV1(t.endpointProvider({Region:typeof t.region==="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint==="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint==="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:undefined},{logger:t.logger}))}return t};const toEndpointV1=t=>l(t.url);function stsRegionDefaultResolver(t={}){return Q({...w,async default(){if(!ue.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...S,...t})}const ue={silence:false};const getAwsRegionExtensionConfiguration=t=>({setRegion(n){t.region=n},region(){return t.region}});const resolveAwsRegionExtensionConfiguration=t=>({region:t.region()});n.DEFAULT_UA_APP_ID=H;n.NODE_APP_ID_CONFIG_OPTIONS=ie;n.UA_APP_ID_ENV_NAME=ne;n.UA_APP_ID_INI_NAME=se;n.awsEndpointFunctions=le;n.createDefaultUserAgentProvider=createDefaultUserAgentProvider;n.createUserAgentStringParsingProvider=createUserAgentStringParsingProvider;n.crtAvailability=te;n.defaultUserAgent=re;n.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;n.fallback=ae;n.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;n.getHostHeaderPlugin=getHostHeaderPlugin;n.getLoggerPlugin=getLoggerPlugin;n.getLongPollPlugin=getLongPollPlugin;n.getRecursionDetectionPlugin=getRecursionDetectionPlugin;n.getUserAgentMiddlewareOptions=ee;n.getUserAgentPlugin=getUserAgentPlugin;n.getUserAgentPrefix=getUserAgentPrefix;n.hostHeaderMiddleware=hostHeaderMiddleware;n.hostHeaderMiddlewareOptions=T;n.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket;n.loggerMiddleware=loggerMiddleware;n.loggerMiddlewareOptions=N;n.parseArn=parseArn;n.partition=partition;n.recursionDetectionMiddleware=recursionDetectionMiddleware;n.recursionDetectionMiddlewareOptions=M;n.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;n.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;n.resolveHostHeaderConfig=resolveHostHeaderConfig;n.resolveUserAgentConfig=resolveUserAgentConfig;n.setCredentialFeature=setCredentialFeature;n.setFeature=setFeature;n.setPartitionInfo=setPartitionInfo;n.setTokenFeature=setTokenFeature;n.state=k;n.stsRegionDefaultResolver=stsRegionDefaultResolver;n.stsRegionWarning=ue;n.toEndpointV1=toEndpointV1;n.useDefaultPartitionInfo=useDefaultPartitionInfo;n.userAgentMiddleware=userAgentMiddleware},7523:(t,n,i)=>{const{ProviderError:a,booleanSelector:A,SelectorType:c,loadConfig:l}=i(7291);const{setCredentialFeature:d}=i(5152);const{normalizeProvider:h,memoizeIdentityProvider:f,isIdentityExpired:g,doesIdentityRequireRefresh:p}=i(402);const{SignatureV4:m}=i(5118);const{HttpResponse:E,HttpRequest:C}=i(3422);const getDateHeader=t=>E.isInstance(t)?t.headers?.date??t.headers?.Date:undefined;const getAgeHeader=t=>E.isInstance(t)?t.headers?.age??t.headers?.Age:undefined;const getSkewCorrectedDate=t=>new Date(Date.now()+t);const getUpdatedSystemClockOffset=(t,n,i,a)=>{if(a!==undefined){return n}const A=Date.parse(t);const c=Date.now();if(i!==undefined&&c-i>9e5){return n}const l=i!==undefined?A-(i+c)/2:A-c;return l};const throwSigningPropertyError=(t,n)=>{if(!n){throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`)}return n};const validateSigningProperties=async t=>{const n=throwSigningPropertyError("context",t.context);const i=throwSigningPropertyError("config",t.config);const a=n.endpointV2?.properties?.authSchemes?.[0];const A=throwSigningPropertyError("signer",i.signer);const c=await A(a);const l=t?.signingRegion;const d=t?.signingRegionSet;const h=t?.signingName;return{config:i,signer:c,signingRegion:l,signingRegionSet:d,signingName:h}};class AwsSdkSigV4Signer{async sign(t,n,i){if(!C.isInstance(t)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const a=await validateSigningProperties(i);const{config:A,signer:c}=a;let{signingRegion:l,signingName:d}=a;const h=i.context;if(h?.authSchemes?.length??0>1){const[t,n]=h.authSchemes;if(t?.name==="sigv4a"&&n?.name==="sigv4"){l=n?.signingRegion??l;d=n?.signingName??d}}const f=await(A.disableClockSkewCorrection?.())===true;i._disableClockSkewCorrection=f;if(!f){i._preRequestSystemClockOffset=A.systemClockOffset;i._requestSentAt=Date.now()}const g=await c.sign(t,{signingDate:f?new Date:getSkewCorrectedDate(A.systemClockOffset),signingRegion:l,signingService:d});return g}errorHandler(t){return n=>{const i=n;if(!t._disableClockSkewCorrection){const n=i.ServerTime??getDateHeader(i.$response);if(n){const a=throwSigningPropertyError("config",t.config);const A=t._preRequestSystemClockOffset;const c=t._requestSentAt;const l=getAgeHeader(i.$response);const d=getUpdatedSystemClockOffset(n,a.systemClockOffset,c,l);a.systemClockOffset=d;const h=Math.abs(d)>=24e4;const f=d!==A;const g=A!==undefined&&A!==d;if(h&&(f||g)&&i.$metadata){i.$metadata.clockSkewCorrected=true}}}throw n}}successHandler(t,n){if(n._disableClockSkewCorrection){return}const i=getDateHeader(t);if(i){const a=throwSigningPropertyError("config",n.config);const A=n._requestSentAt;const c=getAgeHeader(t);a.systemClockOffset=getUpdatedSystemClockOffset(i,a.systemClockOffset,A,c)}}}const I=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(t,n,i){if(!C.isInstance(t)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:a,signer:A,signingRegion:c,signingRegionSet:l,signingName:d}=await validateSigningProperties(i);const h=await(a.sigv4aSigningRegionSet?.());const f=(h??l??[c]).join(",");const g=await(a.disableClockSkewCorrection?.())===true;i._disableClockSkewCorrection=g;if(!g){i._preRequestSystemClockOffset=a.systemClockOffset;i._requestSentAt=Date.now()}const p=await A.sign(t,{signingDate:g?new Date:getSkewCorrectedDate(a.systemClockOffset),signingRegion:f,signingService:d});return p}}const getArrayForCommaSeparatedString=t=>typeof t==="string"&&t.length>0?t.split(",").map(t=>t.trim()):[];const getBearerTokenEnvKey=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`;const y="AWS_AUTH_SCHEME_PREFERENCE";const B="auth_scheme_preference";const Q={environmentVariableSelector:(t,n)=>{if(n?.signingName){const i=getBearerTokenEnvKey(n.signingName);if(i in t)return["httpBearerAuth"]}if(!(y in t))return undefined;return getArrayForCommaSeparatedString(t[y])},configFileSelector:t=>{if(!(B in t))return undefined;return getArrayForCommaSeparatedString(t[B])},default:[]};const resolveAwsSdkSigV4AConfig=t=>{t.sigv4aSigningRegionSet=h(t.sigv4aSigningRegionSet);return t};const w={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET){return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(t=>t.trim())}throw new a("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(t){if(t.sigv4a_signing_region_set){return(t.sigv4a_signing_region_set??"").split(",").map(t=>t.trim())}throw new a("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const bindResolveAwsSdkSigV4Config=t=>n=>{let i=n.credentials;let a=!!n.credentials;let A=undefined;Object.defineProperty(n,"credentials",{set(t){if(t&&t!==i&&t!==A){a=true}i=t;const c=normalizeCredentialProvider(n,{credentials:i,credentialDefaultProvider:n.credentialDefaultProvider});const l=bindCallerConfig(n,c);if(a&&!l.attributed){const t=typeof i==="object"&&i!==null;A=async n=>{const i=await l(n);const a=i;if(t&&(!a.$source||Object.keys(a.$source).length===0)){return d(a,"CREDENTIALS_CODE","e")}return a};A.memoized=l.memoized;A.configBound=l.configBound;A.attributed=true}else{A=l}},get(){return A},enumerable:true,configurable:true});n.credentials=i;const{signingEscapePath:c=true,systemClockOffset:l=n.systemClockOffset||0,sha256:f}=n;let g;if(n.signer){g=h(n.signer)}else if(n.regionInfoProvider){g=()=>h(n.region)().then(async t=>[await n.regionInfoProvider(t,{useFipsEndpoint:await n.useFipsEndpoint(),useDualstackEndpoint:await n.useDualstackEndpoint()})||{},t]).then(([t,i])=>{const{signingRegion:a,signingService:A}=t;n.signingRegion=n.signingRegion||a||i;n.signingName=n.signingName||A||n.serviceId;const l={...n,credentials:n.credentials,region:n.signingRegion,service:n.signingName,sha256:f,uriEscapePath:c};const d=n.signerConstructor||m;return new d(l)})}else{g=async t=>{t=Object.assign({},{name:"sigv4",signingName:n.signingName||n.defaultSigningName,signingRegion:await h(n.region)(),properties:{}},t);const i=t.signingRegion;const a=t.signingName;n.signingRegion=n.signingRegion||i;n.signingName=n.signingName||a||n.serviceId;const A={...n,credentials:n.credentials,region:n.signingRegion,service:n.signingName,sha256:f,uriEscapePath:c};const l=n.signerConstructor||m;return new l(A)}}const p=Object.assign(n,{systemClockOffset:l,signingEscapePath:c,signer:g,disableClockSkewCorrection:h(n.disableClockSkewCorrection??t)});return p};function normalizeCredentialProvider(t,{credentials:n,credentialDefaultProvider:i}){let a;if(n){if(!n?.memoized){a=f(n,g,p)}else{a=n}}else{if(i){a=h(i(Object.assign({},t,{parentClientConfig:t})))}else{a=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}a.memoized=true;return a}function bindCallerConfig(t,n){if(n.configBound){return n}const fn=async i=>n({...i,callerClientConfig:t});fn.memoized=n.memoized;fn.configBound=true;return fn}const S="AWS_DISABLE_CLOCK_SKEW_CORRECTION";const b="disable_clock_skew_correction";const R={environmentVariableSelector:t=>A(t,S,c.ENV),configFileSelector:t=>A(t,b,c.CONFIG),default:false};const v=l(R);const k=bindResolveAwsSdkSigV4Config(v);const D=k;n.AWSSDKSigV4Signer=I;n.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;n.AwsSdkSigV4Signer=AwsSdkSigV4Signer;n.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=Q;n.NODE_SIGV4A_CONFIG_OPTIONS=w;n.getBearerTokenEnvKey=getBearerTokenEnvKey;n.resolveAWSSDKSigV4Config=D;n.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;n.resolveAwsSdkSigV4Config=k;n.validateSigningProperties=validateSigningProperties},7288:(t,n,i)=>{const{SmithyRpcV2CborProtocol:a,loadSmithyRpcV2CborErrorCode:A}=i(4645);const{TypeRegistry:c,NormalizedSchema:l,deref:d}=i(6890);const{decorateServiceException:h,getValueFromTextNode:f}=i(2658);const{collectBody:g,determineTimestampFormat:p,RpcProtocol:m,HttpBindingProtocol:E,HttpInterceptingShapeSerializer:C,HttpInterceptingShapeDeserializer:I,FromStringShapeDeserializer:y,extendedEncodeURIComponent:B}=i(3422);const{NumericValue:Q,toUtf8:w,fromBase64:S,LazyJsonString:b,parseEpochTimestamp:R,parseRfc7231DateTime:v,parseRfc3339DateTimeWithOffset:k,toBase64:D,dateToUtcString:T,generateIdempotencyToken:N,expectUnion:M}=i(2430);const{parseXML:F,XmlNode:x,XmlText:U}=i(4274);class ProtocolLib{queryCompat;errorRegistry;constructor(t=false){this.queryCompat=t}resolveRestContentType(t,n){const i=n.getMemberSchemas();const a=Object.values(i).find(t=>!!t.getMergedTraits().httpPayload);if(a){const n=a.getMergedTraits().mediaType;if(n){return n}else if(a.isStringSchema()){return"text/plain"}else if(a.isBlobSchema()){return"application/octet-stream"}else{return t}}else if(!n.isUnitSchema()){const n=Object.values(i).find(t=>{const{httpQuery:n,httpQueryParams:i,httpHeader:a,httpLabel:A,httpPrefixHeaders:c}=t.getMergedTraits();const l=c===void 0;return!n&&!i&&!a&&!A&&l});if(n){return t}}}async getErrorSchemaOrThrowBaseException(t,n,i,a,A,c){let l=t;if(t.includes("#")){[,l]=t.split("#")}const d={$metadata:A,$fault:i.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const n=c?.(this.errorRegistry,l)??this.errorRegistry.getSchema(t);return{errorSchema:n,errorMetadata:d}}catch(t){a.message=a.message??a.Message??"UnknownError";const n=this.errorRegistry;const i=n.getBaseException();if(i){const t=n.getErrorCtor(i)??Error;throw this.decorateServiceException(Object.assign(new t({name:l}),d),a)}const A=a;const c=A?.message??A?.Message??A?.Error?.Message??A?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(c),{name:l},d),a)}}compose(t,n,i){let a=i;if(n.includes("#")){[a]=n.split("#")}const A=c.for(a);const l=c.for("smithy.ts.sdk.synthetic."+i);t.copyFrom(A);t.copyFrom(l);this.errorRegistry=t}decorateServiceException(t,n={}){if(this.queryCompat){const i=t.Message??n.Message;const a=h(t,n);if(i){a.message=i}const A=a.Error??{};A.Type=a.Error?.Type;A.Code=a.Error?.Code;A.Message=a.Error?.message??a.Error?.Message??i;a.Error=A;const c=a.$metadata.requestId;if(c){a.RequestId=c}return a}return h(t,n)}setQueryCompatError(t,n){const i=n.headers?.["x-amzn-query-error"];if(t!==undefined&&i!=null){const[n,a]=i.split(";");const A=Object.keys(t);const c={Code:n,Type:a};t.Code=n;t.Type=a;for(let n=0;nl.of(t).getMergedTraits().awsQueryError?.[0]===n)}}}class AwsSmithyRpcV2CborProtocol extends a{awsQueryCompatible;mixin;constructor({defaultNamespace:t,errorTypeRegistries:n,awsQueryCompatible:i}){super({defaultNamespace:t,errorTypeRegistries:n});this.awsQueryCompatible=!!i;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);if(this.awsQueryCompatible){a.headers["x-amzn-query-mode"]="true"}return a}async handleError(t,n,i,a,c){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(a,i)}const d=(()=>{const t=i.headers["x-amzn-query-error"];if(t&&this.awsQueryCompatible){return t.split(";")[0]}return A(i,a)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,i,a,c,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const g=l.of(h);const p=a.message??a.Message??"UnknownError";const m=this.compositeErrorRegistry.getErrorCtor(h)??Error;const E=new m({});const C={};for(const[t,n]of g.structIterator()){if(a[t]!=null){C[t]=this.deserializer.readValue(n,a[t])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(a,C)}throw this.mixin.decorateServiceException(Object.assign(E,f,{$fault:g.getMergedTraits().error,message:p},C),a)}}const _toStr=t=>{if(t==null){return t}if(typeof t==="number"||typeof t==="bigint"){const n=new Error(`Received number ${t} where a string was expected.`);n.name="Warning";console.warn(n);return String(t)}if(typeof t==="boolean"){const n=new Error(`Received boolean ${t} where a string was expected.`);n.name="Warning";console.warn(n);return String(t)}return t};const _toBool=t=>{if(t==null){return t}if(typeof t==="string"){const n=t.toLowerCase();if(t!==""&&n!=="false"&&n!=="true"){const n=new Error(`Received string "${t}" where a boolean was expected.`);n.name="Warning";console.warn(n)}return t!==""&&n!=="false"}return t};const _toNum=t=>{if(t==null){return t}if(typeof t==="string"){const n=Number(t);if(n.toString()!==t){const n=new Error(`Received string "${t}" where a number was expected.`);n.name="Warning";console.warn(n);return t}return n}return t};class SerdeContextConfig{serdeContext;setSerdeContext(t){this.serdeContext=t}}class UnionSerde{from;to;keys;constructor(t,n){this.from=t;this.to=n;const i=Object.keys(this.from);const a=new Set(i);a.delete("__type");this.keys=a}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value;const n=this.from[t];this.to.$unknown=[t,n]}}}function jsonReviver(t,n,i){if(i?.source){const t=i.source;if(typeof n==="number"){const i=n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER;if(!i||t!==String(n)){if(i&&/[eE]/.test(t)&&String(Number(t))===String(n)){return n}if(isFractionalNumeric(t)){return new Q(t,"bigDecimal")}else{if(/[eE]/.test(t)){return BigInt(Number(t))}return BigInt(t)}}}}return n}function isFractionalNumeric(t){const n=t.indexOf(".");if(n===-1){return false}const i=t.search(/[eE]/);if(i===-1){return true}const a=i-n-1;const A=parseInt(t.slice(i+1),10);return Ag(t,n).then(t=>(n?.utf8Encoder??w)(t));let L;function detectBufferParsing(){if(L===undefined){try{if(typeof Buffer!=="function"){L=false}else{const t=JSON.parse(Buffer.from([123,125]));L=t!==null&&typeof t==="object"}}catch{L=false}}return L}async function parseJsonBody(t,n,i){let a;if(detectBufferParsing()&&typeof t?.[Symbol.asyncIterator]==="function"){const i=await g(t,n);if(typeof Buffer==="function"){if(Buffer.isBuffer(i)){a=i}else{a=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}}}if(!a){a=await collectBodyString(t,n)}if(a.length===0){return{}}const A=i&&needsReviver(i)?jsonReviver:undefined;try{return JSON.parse(a,A)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:typeof a==="string"?a:a.toString("utf8")})}throw t}}const parseJsonErrorBody=async(t,n)=>{const i=await parseJsonBody(t,n);i.message=i.message??i.Message;return i};const findKey=(t,n)=>Object.keys(t).find(t=>t.toLowerCase()===n.toLowerCase());const sanitizeErrorCode=t=>{let n=t;if(typeof n==="number"){n=n.toString()}if(n.indexOf(",")>=0){n=n.split(",")[0]}if(n.indexOf(":")>=0){n=n.split(":")[0]}if(n.indexOf("#")>=0){n=n.split("#")[1]}return n};const loadRestJsonErrorCode=(t,n)=>loadErrorCode(t,n,["header","code","type"]);const loadJsonRpcErrorCode=(t,n,i=false)=>loadErrorCode(t,n,i?["code","header","type"]:["type","code","header"]);const loadErrorCode=({headers:t},n,i)=>{while(i.length>0){const a=i.shift();switch(a){case"header":const i=findKey(t??{},"x-amzn-errortype");if(i!==undefined){return sanitizeErrorCode(t[i])}break;case"code":const a=findKey(n??{},"code");if(a&&n[a]!==undefined){return sanitizeErrorCode(n[a])}break;case"type":if(n?.__type!==undefined){return sanitizeErrorCode(n.__type)}break}}};function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}async read(t,n){const i=needsReviver(t)?jsonReviver:undefined;return this._read(t,typeof n==="string"?JSON.parse(n,i):await parseJsonBody(n,this.serdeContext,t))}readObject(t,n){return this._read(t,n)}_read(t,n){const i=n!==null&&typeof n==="object";const a=l.of(t);if(i){if(a.isStructSchema()){const t=n;const i=a.isUnionSchema();const A={};let c=void 0;const{jsonName:l}=this.settings;if(l){c={}}let d;if(i){d=new UnionSerde(t,A)}for(const[n,h]of a.structIterator()){let a=n;if(l){a=h.getMergedTraits().jsonName??a;c[a]=n}if(i){d.mark(a)}if(t[a]!=null){A[n]=this._read(h,t[a])}}if(i){d.writeUnknown()}else if(typeof t.__type==="string"){for(const n in t){const i=t[n];const a=l?c[n]??n:n;if(!(a in A)){A[a]=i}}}return A}if(Array.isArray(n)&&a.isListSchema()){const t=a.getValueSchema();const i=[];for(const a of n){i.push(this._read(t,a))}return i}if(a.isMapSchema()){const t=a.getValueSchema();const i={};for(const a in n){if(a==="__proto__"){writeKey(i)}i[a]=this._read(t,n[a])}return i}}if(a.isBlobSchema()&&typeof n==="string"){return S(n)}const A=a.getMergedTraits().mediaType;if(a.isStringSchema()&&typeof n==="string"&&A){const t=A==="application/json"||A.endsWith("+json");if(t){return b.from(n)}return n}if(a.isTimestampSchema()&&n!=null){const t=p(a,this.settings);switch(t){case 5:return k(n);case 6:return v(n);case 7:return R(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(a.isBigIntegerSchema()&&(typeof n==="number"||typeof n==="string")){return BigInt(n)}if(a.isBigDecimalSchema()&&n!=undefined){if(n instanceof Q){return n}const t=n;if(t.type==="bigDecimal"&&"string"in t){return new Q(t.string,t.type)}return new Q(String(n),"bigDecimal")}if(a.isNumericSchema()&&typeof n==="string"){switch(n){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return n}if(a.isDocumentSchema()){if(i){const t=Array.isArray(n)?[]:{};for(const i in n){if(i==="__proto__"){writeKey(t)}const A=n[i];if(A instanceof Q){t[i]=A}else{t[i]=this._read(a,A)}}return t}else{return structuredClone(n)}}return n}}const O=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(t,n)=>{if(n instanceof Q){const t=`${O+"nv"+this.counter++}_`+n.string;this.values.set(`"${t}"`,n.string);return t}if(typeof n==="bigint"){const t=n.toString();const i=`${O+"b"+this.counter++}_`+t;this.values.set(`"${i}"`,t);return i}return n}}replaceInJson(t){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return t}for(const[n,i]of this.values){t=t.replace(n,i)}return t}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(t){super();this.settings=t}write(t,n){this.rootSchema=l.of(t);this.buffer=this._write(this.rootSchema,n)}flush(){const{rootSchema:t,useReplacer:n}=this;this.rootSchema=undefined;this.useReplacer=false;if(t?.isStructSchema()||t?.isDocumentSchema()){if(!n){return JSON.stringify(this.buffer)}const t=new JsonReplacer;return t.replaceInJson(JSON.stringify(this.buffer,t.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(t,n){this.write(t,n);if(typeof this.buffer==="object"){this.buffer.__type=l.of(t).getName(true)}}_write(t,n,i){const a=n!==null&&typeof n==="object";const A=l.of(t);if(a){if(A.isStructSchema()){const t=n;const i={};const{jsonName:a}=this.settings;let c=void 0;if(a){c={}}let l=0;for(const[n,d]of A.structIterator()){const h=this._write(d,t[n],A);if(h!==undefined){let t=n;if(a){t=d.getMergedTraits().jsonName??n;c[n]=t}i[t]=h;l++}}if(A.isUnionSchema()&&l===0){const{$unknown:n}=t;if(Array.isArray(n)){const[t,a]=n;if(t==="__proto__"){writeKey(i)}i[t]=this._write(15,a)}}else if(typeof t.__type==="string"){for(const n in t){const A=t[n];const l=a?c[n]??n:n;if(!(l in i)){i[l]=this._write(15,A)}}}return i}if(Array.isArray(n)&&A.isListSchema()){const t=A.getValueSchema();const i=[];const a=!!A.getMergedTraits().sparse;for(const A of n){if(a||A!=null){i.push(this._write(t,A))}}return i}if(A.isMapSchema()){const t=A.getValueSchema();const i={};const a=!!A.getMergedTraits().sparse;for(const A in n){const c=n[A];if(a||c!=null){if(A==="__proto__"){writeKey(i)}i[A]=this._write(t,c)}}return i}if(n instanceof Uint8Array&&(A.isBlobSchema()||A.isDocumentSchema())){if(A===this.rootSchema){return n}return(this.serdeContext?.base64Encoder??D)(n)}if(n instanceof Date&&(A.isTimestampSchema()||A.isDocumentSchema())){const t=p(A,this.settings);switch(t){case 5:return n.toISOString().replace(".000Z","Z");case 6:return T(n);case 7:return n.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",n);return n.getTime()/1e3}}if(n instanceof Q){this.useReplacer=true}}if(n===null&&i?.isStructSchema()){return void 0}if(A.isStringSchema()){if(typeof n==="undefined"&&A.isIdempotencyToken()){return N()}const t=A.getMergedTraits().mediaType;if(n!=null&&t){const i=t==="application/json"||t.endsWith("+json");if(i){return b.from(n)}}return n}if(typeof n==="number"&&A.isNumericSchema()){if(Math.abs(n)===Infinity||isNaN(n)){return String(n)}return n}if(typeof n==="string"&&A.isBlobSchema()){if(A===this.rootSchema){return n}return(this.serdeContext?.base64Encoder??D)(n)}if(typeof n==="bigint"){this.useReplacer=true}if(A.isDocumentSchema()){if(a){const t=Array.isArray(n)?[]:{};for(const i in n){const a=n[i];if(i==="__proto__"){writeKey(t)}if(a instanceof Q){this.useReplacer=true;t[i]=a}else{t[i]=this._write(A,a)}}return t}else{return structuredClone(n)}}return n}}class JsonCodec extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new JsonShapeSerializer(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new JsonShapeDeserializer(this.settings);t.setSerdeContext(this.serdeContext);return t}}class AwsJsonRpcProtocol extends m{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:A}){super({defaultNamespace:t,errorTypeRegistries:n});this.serviceTarget=i;this.codec=A??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!a;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);if(!a.path.endsWith("/")){a.path+="/"}a.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`;a.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`;if(this.awsQueryCompatible){a.headers["x-amzn-query-mode"]="true"}if(d(t.input)==="unit"||!a.body){a.body="{}"}return a}getPayloadCodec(){return this.codec}async handleError(t,n,i,a,A){const{awsQueryCompatible:c}=this;if(c){this.mixin.setQueryCompatError(a,i)}const d=loadJsonRpcErrorCode(i,a,c)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,i,a,A,c?this.mixin.findQueryCompatibleError:undefined);const g=l.of(h);const p=a.message??a.Message??"UnknownError";const m=this.compositeErrorRegistry.getErrorCtor(h)??Error;const E=new m({});const C={};const I=this.codec.createDeserializer();for(const[t,n]of g.structIterator()){if(a[t]!=null){C[t]=I.readObject(n,a[t])}}if(c){this.mixin.queryCompatOutput(a,C)}throw this.mixin.decorateServiceException(Object.assign(E,f,{$fault:g.getMergedTraits().error,message:p},C),a)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:A}){super({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:A})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:A}){super({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:A})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends E{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:t,errorTypeRegistries:n}){super({defaultNamespace:t,errorTypeRegistries:n});const i={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(i);this.serializer=new C(this.codec.createSerializer(),i);this.deserializer=new I(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(t){this.codec.setSerdeContext(t);super.setSerdeContext(t)}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);const A=l.of(t.input);if(!a.headers["content-type"]){const t=this.mixin.resolveRestContentType(this.getDefaultContentType(),A);if(t){a.headers["content-type"]=t}}if(a.body==null&&a.headers["content-type"]===this.getDefaultContentType()){a.body="{}"}return a}async deserializeResponse(t,n,i){const a=await super.deserializeResponse(t,n,i);const A=l.of(t.output);for(const[t,n]of A.structIterator()){if(n.getMemberTraits().httpPayload&&!(t in a)){a[t]=null}}return a}async handleError(t,n,i,a,A){const c=loadRestJsonErrorCode(i,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);const{errorSchema:d,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,i,a,A);const f=l.of(d);const g=a.message??a.Message??"UnknownError";const p=this.compositeErrorRegistry.getErrorCtor(d)??Error;const m=new p({});await this.deserializeHttpMessage(d,n,i,a);const E={};const C=this.codec.createDeserializer();for(const[t,n]of f.structIterator()){const i=n.getMergedTraits().jsonName??t;E[t]=C.readObject(n,a[i])}throw this.mixin.decorateServiceException(Object.assign(m,h,{$fault:f.getMergedTraits().error,message:g},E),a)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=t=>{if(t==null){return undefined}if(typeof t==="object"&&"__type"in t){delete t.__type}return M(t)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(t){super();this.settings=t;this.stringDeserializer=new y(t)}setSerdeContext(t){this.serdeContext=t;this.stringDeserializer.setSerdeContext(t)}read(t,n,i){const a=l.of(t);const A=a.getMemberSchemas();const c=a.isStructSchema()&&a.isMemberSchema()&&!!Object.values(A).find(t=>!!t.getMemberTraits().eventPayload);if(c){const t={};const i=Object.keys(A)[0];const a=A[i];if(a.isBlobSchema()){t[i]=n}else{t[i]=this.read(A[i],n)}return t}const d=(this.serdeContext?.utf8Encoder??w)(n);const h=this.parseXml(d);return this.readSchema(t,i?h[i]:h)}readSchema(t,n){const i=l.of(t);if(i.isUnitSchema()){return}const a=i.getMergedTraits();if(i.isListSchema()&&!Array.isArray(n)){return this.readSchema(i,[n])}if(n==null){return n}if(typeof n==="object"){const t=!!a.xmlFlattened;if(i.isListSchema()){const a=i.getValueSchema();const A=[];const c=a.getMergedTraits().xmlName??"member";const l=t?n:(n[0]??n)[c];if(l==null){return A}const d=Array.isArray(l)?l:[l];for(const t of d){A.push(this.readSchema(a,t))}return A}const A={};if(i.isMapSchema()){const a=i.getKeySchema();const c=i.getValueSchema();let l;if(t){l=Array.isArray(n)?n:[n]}else{l=Array.isArray(n.entry)?n.entry:[n.entry]}const d=a.getMergedTraits().xmlName??"key";const h=c.getMergedTraits().xmlName??"value";for(const t of l){const n=t[d];const i=t[h];if(n==="__proto__"){writeKey(A)}A[n]=this.readSchema(c,i)}return A}if(i.isStructSchema()){const t=i.isUnionSchema();let a;if(t){a=new UnionSerde(n,A)}for(const[c,l]of i.structIterator()){const i=l.getMergedTraits();const d=!i.httpPayload?l.getMemberTraits().xmlName??c:i.xmlName??l.getName();if(t){a.mark(d)}if(n[d]!=null){A[c]=this.readSchema(l,n[d])}}if(t){a.writeUnknown()}return A}if(i.isDocumentSchema()){return n}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${i.getName(true)}`)}if(i.isListSchema()){return[]}if(i.isMapSchema()||i.isStructSchema()){return{}}return this.stringDeserializer.read(i,n)}parseXml(t){if(t.length){let n;try{n=F(t)}catch(n){if(n&&typeof n==="object"){Object.defineProperty(n,"$responseBodyText",{value:t})}throw n}const i="#text";const a=Object.keys(n)[0];const A=n[a];if(A[i]){A[a]=A[i];delete A[i]}return f(A)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(t){super();this.settings=t}write(t,n,i=""){if(this.buffer===undefined){this.buffer=""}const a=l.of(t);if(i&&!i.endsWith(".")){i+="."}if(a.isBlobSchema()){if(typeof n==="string"||n instanceof Uint8Array){this.writeKey(i);this.writeValue((this.serdeContext?.base64Encoder??D)(n))}}else if(a.isBooleanSchema()||a.isNumericSchema()||a.isStringSchema()){if(n!=null){this.writeKey(i);this.writeValue(String(n))}else if(a.isIdempotencyToken()){this.writeKey(i);this.writeValue(N())}}else if(a.isBigIntegerSchema()){if(n!=null){this.writeKey(i);this.writeValue(String(n))}}else if(a.isBigDecimalSchema()){if(n!=null){this.writeKey(i);this.writeValue(n instanceof Q?n.string:String(n))}}else if(a.isTimestampSchema()){if(n instanceof Date){this.writeKey(i);const t=p(a,this.settings);switch(t){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(T(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}}else if(a.isDocumentSchema()){if(Array.isArray(n)){this.write(64|15,n,i)}else if(n instanceof Date){this.write(4,n,i)}else if(n instanceof Uint8Array){this.write(21,n,i)}else if(n&&typeof n==="object"){this.write(128|15,n,i)}else{this.writeKey(i);this.writeValue(String(n))}}else if(a.isListSchema()){if(Array.isArray(n)){if(n.length===0){if(this.settings.serializeEmptyLists){this.writeKey(i);this.writeValue("")}}else{const t=a.getValueSchema();const A=this.settings.flattenLists||a.getMergedTraits().xmlFlattened;let c=1;for(const a of n){if(a==null){continue}const n=t.getMergedTraits();const l=this.getKey("member",n.xmlName,n.ec2QueryName);const d=A?`${i}${c}`:`${i}${l}.${c}`;this.write(t,a,d);++c}}}}else if(a.isMapSchema()){if(n&&typeof n==="object"){const t=a.getKeySchema();const A=a.getValueSchema();const c=a.getMergedTraits().xmlFlattened;let l=1;for(const a in n){const d=n[a];if(d==null){continue}const h=t.getMergedTraits();const f=this.getKey("key",h.xmlName,h.ec2QueryName);const g=c?`${i}${l}.${f}`:`${i}entry.${l}.${f}`;const p=A.getMergedTraits();const m=this.getKey("value",p.xmlName,p.ec2QueryName);const E=c?`${i}${l}.${m}`:`${i}entry.${l}.${m}`;this.write(t,a,g);this.write(A,d,E);++l}}}else if(a.isStructSchema()){if(n&&typeof n==="object"){let t=false;for(const[A,c]of a.structIterator()){if(n[A]==null&&!c.isIdempotencyToken()){continue}const a=c.getMergedTraits();const l=this.getKey(A,a.xmlName,a.ec2QueryName,"struct");const d=`${i}${l}`;this.write(c,n[A],d);t=true}if(!t&&a.isUnionSchema()){const{$unknown:t}=n;if(Array.isArray(t)){const[n,a]=t;const A=`${i}${n}`;this.write(15,a,A)}}}}else if(a.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${a.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const t=this.buffer;delete this.buffer;return t}getKey(t,n,i,a){const{ec2:A,capitalizeKeys:c}=this.settings;if(A&&i){return i}const l=n??t;if(c&&a==="struct"){return l[0].toUpperCase()+l.slice(1)}return l}writeKey(t){if(t.endsWith(".")){t=t.slice(0,t.length-1)}this.buffer+=`&${B(t)}=`}writeValue(t){this.buffer+=B(t)}}class AwsQueryProtocol extends m{options;serializer;deserializer;mixin=new ProtocolLib;constructor(t){super({defaultNamespace:t.defaultNamespace,errorTypeRegistries:t.errorTypeRegistries});this.options=t;const n={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(n);this.deserializer=new XmlShapeDeserializer(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t);this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);if(!a.path.endsWith("/")){a.path+="/"}a.headers["content-type"]="application/x-www-form-urlencoded";if(d(t.input)==="unit"||!a.body){a.body=""}const A=t.name.split("#")[1]??t.name;a.body=`Action=${A}&Version=${this.options.version}`+a.body;if(a.body.endsWith("&")){a.body=a.body.slice(-1)}return a}async deserializeResponse(t,n,i){const a=this.deserializer;const A=l.of(t.output);const c={};if(i.statusCode>=300){const A=await g(i.body,n);if(A.byteLength>0){Object.assign(c,await a.read(15,A))}await this.handleError(t,n,i,c,this.deserializeMetadata(i))}for(const t in i.headers){const n=i.headers[t];delete i.headers[t];i.headers[t.toLowerCase()]=n}const d=t.name.split("#")[1]??t.name;const h=A.isStructSchema()&&this.useNestedResult()?d+"Result":undefined;const f=await g(i.body,n);if(f.byteLength>0){Object.assign(c,await a.read(A,f,h))}c.$metadata=this.deserializeMetadata(i);return c}useNestedResult(){return true}async handleError(t,n,i,a,A){const c=this.loadQueryErrorCode(i,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);const d=this.loadQueryError(a)??{};const h=this.loadQueryErrorMessage(a);d.message=h;d.Error={Type:d.Type,Code:d.Code,Message:h};const{errorSchema:f,errorMetadata:g}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,i,d,A,this.mixin.findQueryCompatibleError);const p=l.of(f);const m=this.compositeErrorRegistry.getErrorCtor(f)??Error;const E=new m({});const C={Type:d.Error.Type,Code:d.Error.Code,Error:d.Error};for(const[t,n]of p.structIterator()){const i=n.getMergedTraits().xmlName??t;const A=d[i]??a[i];C[t]=this.deserializer.readSchema(n,A)}throw this.mixin.decorateServiceException(Object.assign(E,g,{$fault:p.getMergedTraits().error,message:h},C),a)}loadQueryErrorCode(t,n){const i=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(i!==undefined){return i}if(t.statusCode==404){return"NotFound"}}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(t){super(t);this.options=t;const n={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,n)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(t,n)=>collectBodyString(t,n).then(t=>{if(t.length){let n;try{n=F(t)}catch(n){if(n&&typeof n==="object"){Object.defineProperty(n,"$responseBodyText",{value:t})}throw n}const i="#text";const a=Object.keys(n)[0];const A=n[a];if(A[i]){A[a]=A[i];delete A[i]}return f(A)}return{}});const parseXmlErrorBody=async(t,n)=>{const i=await parseXmlBody(t,n);if(i.Error){i.Error.message=i.Error.message??i.Error.Message}return i};const loadRestXmlErrorCode=(t,n)=>{if(n?.Error?.Code!==undefined){return n.Error.Code}if(n?.Code!==undefined){return n.Code}if(t.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(t){super();this.settings=t}write(t,n){const i=l.of(t);if(i.isStringSchema()&&typeof n==="string"){this.stringBuffer=n}else if(i.isBlobSchema()){this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??S)(n)}else{this.buffer=this.writeStruct(i,n,undefined);const t=i.getMergedTraits();if(t.httpPayload&&!t.xmlName){this.buffer.withName(i.getName())}}}flush(){if(this.byteBuffer!==undefined){const t=this.byteBuffer;delete this.byteBuffer;return t}if(this.stringBuffer!==undefined){const t=this.stringBuffer;delete this.stringBuffer;return t}const t=this.buffer;if(this.settings.xmlNamespace){if(!t?.attributes?.["xmlns"]){t.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return t.toString()}writeStruct(t,n,i){const a=t.getMergedTraits();const A=t.isMemberSchema()&&!a.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():a.xmlName??t.getName();if(!A||!t.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(true)}.`)}const c=x.of(A);const[l,d]=this.getXmlnsAttribute(t,i);for(const[i,a]of t.structIterator()){const t=n[i];if(t!=null||a.isIdempotencyToken()){if(a.getMergedTraits().xmlAttribute){c.addAttribute(a.getMergedTraits().xmlName??i,this.writeSimple(a,t));continue}if(a.isListSchema()){this.writeList(a,t,c,d)}else if(a.isMapSchema()){this.writeMap(a,t,c,d)}else if(a.isStructSchema()){c.addChildNode(this.writeStruct(a,t,d))}else{const n=x.of(a.getMergedTraits().xmlName??a.getMemberName());this.writeSimpleInto(a,t,n,d);c.addChildNode(n)}}}const{$unknown:h}=n;if(h&&t.isUnionSchema()&&Array.isArray(h)&&Object.keys(n).length===1){const[t,i]=h;const a=x.of(t);if(typeof i!=="string"){if(n instanceof x||n instanceof U){c.addChildNode(n)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,i,a,d);c.addChildNode(a)}if(d){c.addAttribute(l,d)}return c}writeList(t,n,i,a){if(!t.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(true)}`)}const A=t.getMergedTraits();const c=t.getValueSchema();const l=c.getMergedTraits();const d=!!l.sparse;const h=!!A.xmlFlattened;const[f,g]=this.getXmlnsAttribute(t,a);const writeItem=(n,i)=>{if(c.isListSchema()){this.writeList(c,Array.isArray(i)?i:[i],n,g)}else if(c.isMapSchema()){this.writeMap(c,i,n,g)}else if(c.isStructSchema()){const a=this.writeStruct(c,i,g);n.addChildNode(a.withName(h?A.xmlName??t.getMemberName():l.xmlName??"member"))}else{const a=x.of(h?A.xmlName??t.getMemberName():l.xmlName??"member");this.writeSimpleInto(c,i,a,g);n.addChildNode(a)}};if(h){for(const t of n){if(d||t!=null){writeItem(i,t)}}}else{const a=x.of(A.xmlName??t.getMemberName());if(g){a.addAttribute(f,g)}for(const t of n){if(d||t!=null){writeItem(a,t)}}i.addChildNode(a)}}writeMap(t,n,i,a,A=false){if(!t.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(true)}`)}const c=t.getMergedTraits();const l=t.getKeySchema();const d=l.getMergedTraits();const h=d.xmlName??"key";const f=t.getValueSchema();const g=f.getMergedTraits();const p=g.xmlName??"value";const m=!!g.sparse;const E=!!c.xmlFlattened;const[C,I]=this.getXmlnsAttribute(t,a);const addKeyValue=(t,n,i)=>{const a=x.of(h,n);const[A,c]=this.getXmlnsAttribute(l,I);if(c){a.addAttribute(A,c)}t.addChildNode(a);let d=x.of(p);if(f.isListSchema()){this.writeList(f,i,d,I)}else if(f.isMapSchema()){this.writeMap(f,i,d,I,true)}else if(f.isStructSchema()){d=this.writeStruct(f,i,I)}else{this.writeSimpleInto(f,i,d,I)}t.addChildNode(d)};if(E){for(const a in n){const A=n[a];if(m||A!=null){const n=x.of(c.xmlName??t.getMemberName());addKeyValue(n,a,A);i.addChildNode(n)}}}else{let a;if(!A){a=x.of(c.xmlName??t.getMemberName());if(I){a.addAttribute(C,I)}i.addChildNode(a)}for(const t in n){const c=n[t];if(m||c!=null){const n=x.of("entry");addKeyValue(n,t,c);(A?i:a).addChildNode(n)}}}}writeSimple(t,n){if(null===n){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const i=l.of(t);let a=null;if(n&&typeof n==="object"){if(i.isBlobSchema()){a=(this.serdeContext?.base64Encoder??D)(n)}else if(i.isTimestampSchema()&&n instanceof Date){const t=p(i,this.settings);switch(t){case 5:a=n.toISOString().replace(".000Z","Z");break;case 6:a=T(n);break;case 7:a=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n);a=T(n);break}}else if(i.isBigDecimalSchema()&&n){if(n instanceof Q){return n.string}return String(n)}else if(i.isMapSchema()||i.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${i.getName(true)}`)}}if(i.isBooleanSchema()||i.isNumericSchema()||i.isBigIntegerSchema()||i.isBigDecimalSchema()){a=String(n)}if(i.isStringSchema()){if(n===undefined&&i.isIdempotencyToken()){a=N()}else{a=String(n)}}if(a===null){throw new Error(`Unhandled schema-value pair ${i.getName(true)}=${n}`)}return a}writeSimpleInto(t,n,i,a){const A=this.writeSimple(t,n);const c=l.of(t);const d=new U(A);const[h,f]=this.getXmlnsAttribute(c,a);if(f){i.addAttribute(h,f)}i.addChildNode(d)}getXmlnsAttribute(t,n){const i=t.getMergedTraits();const[a,A]=i.xmlNamespace??[];if(A&&A!==n){return[a?`xmlns:${a}`:"xmlns",A]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new XmlShapeSerializer(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new XmlShapeDeserializer(this.settings);t.setSerdeContext(this.serdeContext);return t}}class AwsRestXmlProtocol extends E{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(t){super(t);const n={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new XmlCodec(n);this.serializer=new C(this.codec.createSerializer(),n);this.deserializer=new I(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);const A=l.of(t.input);if(!a.headers["content-type"]){const t=this.mixin.resolveRestContentType(this.getDefaultContentType(),A);if(t){a.headers["content-type"]=t}}if(typeof a.body==="string"&&a.headers["content-type"]===this.getDefaultContentType()&&!a.body.startsWith("'+a.body}return a}async deserializeResponse(t,n,i){return super.deserializeResponse(t,n,i)}async handleError(t,n,i,a,A){const c=loadRestXmlErrorCode(i,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);if(a.Error&&typeof a.Error==="object"){for(const t of Object.keys(a.Error)){a[t]=a.Error[t];if(t.toLowerCase()==="message"){a.message=a.Error[t]}}}if(a.RequestId&&!A.requestId){A.requestId=a.RequestId}const{errorSchema:d,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,i,a,A);const f=l.of(d);const g=a.Error?.message??a.Error?.Message??a.message??a.Message??"UnknownError";const p=this.compositeErrorRegistry.getErrorCtor(d)??Error;const m=new p({});await this.deserializeHttpMessage(d,n,i,a);const E={};const C=this.codec.createDeserializer();for(const[t,n]of f.structIterator()){const i=n.getMergedTraits().xmlName??t;const A=a.Error?.[i]??a[i];E[t]=C.readSchema(n,A)}throw this.mixin.decorateServiceException(Object.assign(m,h,{$fault:f.getMergedTraits().error,message:g},E),a)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator()){if(n.getMergedTraits().httpPayload){return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema())}}return false}}n.AwsEc2QueryProtocol=AwsEc2QueryProtocol;n.AwsJson1_0Protocol=AwsJson1_0Protocol;n.AwsJson1_1Protocol=AwsJson1_1Protocol;n.AwsJsonRpcProtocol=AwsJsonRpcProtocol;n.AwsQueryProtocol=AwsQueryProtocol;n.AwsRestJsonProtocol=AwsRestJsonProtocol;n.AwsRestXmlProtocol=AwsRestXmlProtocol;n.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;n.JsonCodec=JsonCodec;n.JsonShapeDeserializer=JsonShapeDeserializer;n.JsonShapeSerializer=JsonShapeSerializer;n.QueryShapeSerializer=QueryShapeSerializer;n.XmlCodec=XmlCodec;n.XmlShapeDeserializer=XmlShapeDeserializer;n.XmlShapeSerializer=XmlShapeSerializer;n._toBool=_toBool;n._toNum=_toNum;n._toStr=_toStr;n.awsExpectUnion=awsExpectUnion;n.loadJsonRpcErrorCode=loadJsonRpcErrorCode;n.loadRestJsonErrorCode=loadRestJsonErrorCode;n.loadRestXmlErrorCode=loadRestXmlErrorCode;n.parseJsonBody=parseJsonBody;n.parseJsonErrorBody=parseJsonErrorBody;n.parseXmlBody=parseXmlBody;n.parseXmlErrorBody=parseXmlErrorBody},5606:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:A}=i(7291);const c="AWS_ACCESS_KEY_ID";const l="AWS_SECRET_ACCESS_KEY";const d="AWS_SESSION_TOKEN";const h="AWS_CREDENTIAL_EXPIRATION";const f="AWS_CREDENTIAL_SCOPE";const g="AWS_ACCOUNT_ID";const fromEnv=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const n=process.env[c];const i=process.env[l];const p=process.env[d];const m=process.env[h];const E=process.env[f];const C=process.env[g];if(n&&i){const t={accessKeyId:n,secretAccessKey:i,...p&&{sessionToken:p},...m&&{expiration:new Date(m)},...E&&{credentialScope:E},...C&&{accountId:C}};a(t,"CREDENTIALS_ENV_VARS","g");return t}throw new A("Unable to find environment variable credentials.",{logger:t?.logger})};n.ENV_ACCOUNT_ID=g;n.ENV_CREDENTIAL_SCOPE=f;n.ENV_EXPIRATION=h;n.ENV_KEY=c;n.ENV_SECRET=l;n.ENV_SESSION=d;n.fromEnv=fromEnv},8605:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:A}=i(7291);const{NodeHttpHandler:c}=i(1279);const l=i(1455);const{HttpRequest:d}=i(3422);const{sdkStreamMixin:h,parseRfc3339DateTime:f}=i(2430);const g="169.254.170.2";const p="169.254.170.23";const m="[fd00:ec2::23]";const checkUrl=(t,n)=>{if(t.protocol==="https:"){return}if(t.hostname===g||t.hostname===p||t.hostname===m){return}if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]"){return}}else{if(t.hostname==="localhost"){return}const n=t.hostname.split(".");const inRange=t=>{const n=parseInt(t,10);return 0<=n&&n<=255};if(n[0]==="127"&&inRange(n[1])&&inRange(n[2])&&inRange(n[3])&&n.length===4){return}}throw new A(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:n})};function createGetRequest(t){return new d({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((t,[n,i])=>{t[n]=i;return t},{}),fragment:t.hash})}async function getCredentials(t,n){const i=h(t.body);const a=await i.transformToString();if(t.statusCode===200){const t=JSON.parse(a);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string"){throw new A("HTTP credential provider response not of the required format, an object matching: "+"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:n})}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:f(t.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let i={};try{i=JSON.parse(a)}catch(t){}throw Object.assign(new A(`Server responded with status: ${t.statusCode}`,{logger:n}),{Code:i.Code,Message:i.Message})}throw new A(`Server responded with status: ${t.statusCode}`,{logger:n})}const retryWrapper=(t,n,i)=>async()=>{for(let a=0;asetTimeout(t,i))}}return await t()};const E="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const C="http://169.254.170.2";const I="AWS_CONTAINER_CREDENTIALS_FULL_URI";const y="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";const B="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromHttp=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let n;const i=t.awsContainerCredentialsRelativeUri??process.env[E];const d=t.awsContainerCredentialsFullUri??process.env[I];const h=t.awsContainerAuthorizationToken??process.env[B];const f=t.awsContainerAuthorizationTokenFile??process.env[y];const g=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(i&&d){g("@aws-sdk/credential-provider-http: "+"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");g("awsContainerCredentialsRelativeUri will take precedence.")}if(h&&f){g("@aws-sdk/credential-provider-http: "+"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");g("awsContainerAuthorizationTokenFile will take precedence.")}if(i){n=`${C}${i}`}else if(d){n=d}else{throw new A(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger})}const p=new URL(n);checkUrl(p,t.logger);const m=c.create({connectionTimeout:t.timeout??1e3});const Q=t.timeout??1e3;const w=retryWrapper(async()=>{const n=createGetRequest(p);if(f){n.headers.Authorization=validateToken((await l.readFile(f)).toString())}else if(h){n.headers.Authorization=validateToken(h)}try{const t=await m.handle(n,{requestTimeout:Q});return getCredentials(t.response).then(t=>a(t,"CREDENTIALS_HTTP","z"))}catch(n){throw new A(String(n),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await w()}finally{m.destroy?.()}}};const validateToken=t=>{if(t.includes("\r\n")){throw new A("Authorization token contains invalid \\r\\n sequence.")}return t};n.fromHttp=fromHttp},5869:(t,n,i)=>{const{CredentialsProviderError:a,chain:A,getProfileName:c,parseKnownFiles:l}=i(7291);const{setCredentialFeature:d}=i(5152);const resolveCredentialSource=(t,n,c)=>{const l={EcsContainer:async t=>{const{fromHttp:n}=i(8605);const{fromContainerMetadata:a}=i(566);c?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");return async()=>A(n(t??{}),a(t))().then(setNamedProvider)},Ec2InstanceMetadata:async t=>{c?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:n}=i(566);return async()=>n(t)().then(setNamedProvider)},Environment:async t=>{c?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:n}=i(5606);return async()=>n(t)().then(setNamedProvider)}};if(t in l){return l[t]}else{throw new a(`Unsupported credential source in profile ${n}. Got ${t}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:c})}};const setNamedProvider=t=>d(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");const isAssumeRoleProfile=(t,{profile:n="default",logger:i}={})=>Boolean(t)&&typeof t==="object"&&typeof t.role_arn==="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(t,{profile:n,logger:i})||isCredentialSourceProfile(t,{profile:n,logger:i}));const isAssumeRoleWithSourceProfile=(t,{profile:n,logger:i})=>{const a=typeof t.source_profile==="string"&&typeof t.credential_source==="undefined";if(a){i?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`)}return a};const isCredentialSourceProfile=(t,{profile:n,logger:i})=>{const a=typeof t.credential_source==="string"&&typeof t.source_profile==="undefined";if(a){i?.debug?.(` ${n} isCredentialSourceProfile credential_source=${t.credential_source}`)}return a};const resolveAssumeRoleCredentials=async(t,n,A,l,h={},f)=>{A.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const g=n[t];const{source_profile:p,region:m}=g;if(!A.roleAssumer){const{getDefaultRoleAssumer:t}=i(1136);A.roleAssumer=t({...A.clientConfig,credentialProviderLogger:A.logger,parentClientConfig:{...l,...A?.parentClientConfig,region:m??A?.parentClientConfig?.region??l?.region}},A.clientPlugins)}if(p&&p in h){throw new a(`Detected a cycle attempting to resolve credentials for profile`+` ${c(A)}. Profiles visited: `+Object.keys(h).join(", "),{logger:A.logger})}A.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${p?`source_profile=[${p}]`:`profile=[${t}]`}`);const E=p?f(p,n,A,l,{...h,[p]:true},isCredentialSourceWithoutRoleArn(n[p]??{})):(await resolveCredentialSource(g.credential_source,t,A.logger)(A))();if(isCredentialSourceWithoutRoleArn(g)){return E.then(t=>d(t,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}else{const n={RoleArn:g.role_arn,RoleSessionName:g.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:g.external_id,DurationSeconds:parseInt(g.duration_seconds||"3600",10)};const{mfa_serial:i}=g;if(i){if(!A.mfaCodeProvider){throw new a(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:A.logger,tryNextLink:false})}n.SerialNumber=i;n.TokenCode=await A.mfaCodeProvider(i)}const c=await E;return A.roleAssumer(c,n).then(t=>d(t,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}};const isCredentialSourceWithoutRoleArn=t=>!t.role_arn&&!!t.credential_source;const isLoginProfile=t=>Boolean(t&&t.login_session);const resolveLoginCredentials=async(t,n,a)=>{const{fromLoginCredentials:A}=i(4072);const c=await A({...n,profile:t})({callerClientConfig:a});return d(c,"CREDENTIALS_PROFILE_LOGIN","AC")};const isProcessProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.credential_process==="string";const resolveProcessCredentials=async(t,n)=>{const{fromProcess:a}=i(5360);const A=await a({...t,profile:n})();return d(A,"CREDENTIALS_PROFILE_PROCESS","v")};const resolveSsoCredentials=async(t,n,a={},A)=>{const{fromSSO:c}=i(998);return c({profile:t,logger:a.logger,parentClientConfig:a.parentClientConfig,clientConfig:a.clientConfig})({callerClientConfig:A}).then(t=>{if(n.sso_session){return d(t,"CREDENTIALS_PROFILE_SSO","r")}else{return d(t,"CREDENTIALS_PROFILE_SSO_LEGACY","t")}})};const isSsoProfile=t=>t&&(typeof t.sso_start_url==="string"||typeof t.sso_account_id==="string"||typeof t.sso_session==="string"||typeof t.sso_region==="string"||typeof t.sso_role_name==="string");const isStaticCredsProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.aws_access_key_id==="string"&&typeof t.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1;const resolveStaticCredentials=async(t,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const i={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return d(i,"CREDENTIALS_PROFILE","n")};const isWebIdentityProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.web_identity_token_file==="string"&&typeof t.role_arn==="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1;const resolveWebIdentityCredentials=async(t,n,a)=>{const{fromTokenFile:A}=i(9956);const c=await A({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:a});return d(c,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")};const resolveProfileData=async(t,n,i,A,c={},l=false)=>{const d=n[t];if(Object.keys(c).length>0&&isStaticCredsProfile(d)){return resolveStaticCredentials(d,i)}if(l||isAssumeRoleProfile(d,{profile:t,logger:i.logger})){return resolveAssumeRoleCredentials(t,n,i,A,c,resolveProfileData)}if(isStaticCredsProfile(d)){return resolveStaticCredentials(d,i)}if(isWebIdentityProfile(d)){return resolveWebIdentityCredentials(d,i,A)}if(isProcessProfile(d)){return resolveProcessCredentials(i,t)}if(isSsoProfile(d)){return await resolveSsoCredentials(t,d,i,A)}if(isLoginProfile(d)){return resolveLoginCredentials(t,i,A)}throw new a(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:i.logger})};const fromIni=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const i=await l(t);return resolveProfileData(c({profile:t.profile??n?.profile}),i,t,n)};n.fromIni=fromIni},4072:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:A,readFile:c,parseKnownFiles:l,getProfileName:d}=i(7291);const{HttpRequest:h}=i(3422);const{createHash:f,createPrivateKey:g,createPublicKey:p,sign:m}=i(7598);const{promises:E}=i(3024);const{homedir:C}=i(8161);const{dirname:I,join:y}=i(6760);class LoginCredentialsFetcher{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=5*60*1e3;constructor(t,n,i){this.profileData=t;this.init=n;this.callerClientConfig=i}async loadCredentials(){const t=await this.loadToken();if(!t){throw new A(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:false,logger:this.logger})}const n=t.accessToken;const i=Date.now();const a=new Date(n.expiresAt).getTime();const c=a-i;if(c<=LoginCredentialsFetcher.REFRESH_THRESHOLD){return this.refresh(t)}return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(t){const{SigninClient:n,CreateOAuth2TokenCommand:a}=i(9762);const{logger:c,userAgentAppId:l}=this.callerClientConfig??{};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const d=isH2(this.callerClientConfig?.requestHandler)?undefined:this.callerClientConfig?.requestHandler;const h=this.profileData.region??await(this.callerClientConfig?.region?.())??process.env.AWS_REGION;const f=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:d,logger:c,userAgentAppId:l,...this.init?.clientConfig});this.createDPoPInterceptor(f.middlewareStack);const g={tokenInput:{clientId:t.clientId,refreshToken:t.refreshToken,grantType:"refresh_token"}};try{const n=await f.send(new a(g));const{accessKeyId:i,secretAccessKey:c,sessionToken:l}=n.tokenOutput?.accessToken??{};const{refreshToken:d,expiresIn:h}=n.tokenOutput??{};if(!i||!c||!l||!d){throw new A("Token refresh response missing required fields",{logger:this.logger,tryNextLink:false})}const p=(h??900)*1e3;const m=new Date(Date.now()+p);const E={...t,accessToken:{...t.accessToken,accessKeyId:i,secretAccessKey:c,sessionToken:l,expiresAt:m.toISOString()},refreshToken:d};await this.saveToken(E);const C=E.accessToken;return{accessKeyId:C.accessKeyId,secretAccessKey:C.secretAccessKey,sessionToken:C.sessionToken,accountId:C.accountId,expiration:m}}catch(t){if(t.name==="AccessDeniedException"){const n=t.error;let i;switch(n){case"TOKEN_EXPIRED":i="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":i="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":i="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:i=`Failed to refresh token: ${String(t)}. Please re-authenticate using \`aws login\``}throw new A(i,{logger:this.logger,tryNextLink:false})}throw new A(`Failed to refresh token: ${String(t)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){const t=this.getTokenFilePath();try{let n;try{n=await c(t,{ignoreCache:this.init?.ignoreCache})}catch{n=await E.readFile(t,"utf8")}const i=JSON.parse(n);const a=["accessToken","clientId","refreshToken","dpopKey"].filter(t=>!i[t]);if(!i.accessToken?.accountId){a.push("accountId")}if(a.length>0){throw new A(`Token validation failed, missing fields: ${a.join(", ")}`,{logger:this.logger,tryNextLink:false})}return i}catch(n){throw new A(`Failed to load token from ${t}: ${String(n)}`,{logger:this.logger,tryNextLink:false})}}async saveToken(t){const n=this.getTokenFilePath();const i=I(n);try{await E.mkdir(i,{recursive:true})}catch(t){}await E.writeFile(n,JSON.stringify(t,null,2),"utf8")}getTokenFilePath(){const t=process.env.AWS_LOGIN_CACHE_DIRECTORY??y(C(),".aws","login","cache");const n=Buffer.from(this.loginSession,"utf8");const i=f("sha256").update(n).digest("hex");return y(t,`${i}.json`)}derToRawSignature(t){let n=2;if(t[n]!==2){throw new Error("Invalid DER signature")}n++;const i=t[n++];let a=t.subarray(n,n+i);n+=i;if(t[n]!==2){throw new Error("Invalid DER signature")}n++;const A=t[n++];let c=t.subarray(n,n+A);a=a[0]===0?a.subarray(1):a;c=c[0]===0?c.subarray(1):c;const l=Buffer.concat([Buffer.alloc(32-a.length),a]);const d=Buffer.concat([Buffer.alloc(32-c.length),c]);return Buffer.concat([l,d])}createDPoPInterceptor(t){t.add(t=>async n=>{if(h.isInstance(n.request)){const t=n.request;const i=`${t.protocol}//${t.hostname}${t.port?`:${t.port}`:""}${t.path}`;const a=await this.generateDpop(t.method,i);t.headers={...t.headers,DPoP:a}}return t(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:true})}async generateDpop(t="POST",n){const i=await this.loadToken();try{const a=g({key:i.dpopKey,format:"pem",type:"sec1"});const A=p(a);const c=A.export({format:"der",type:"spki"});let l=-1;for(let t=0;tasync({callerClientConfig:n}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");const i=await l(t||{});const c=d({profile:t?.profile??n?.profile});const h=i[c];if(!h?.login_session){throw new A(`Profile ${c} does not contain login_session.`,{tryNextLink:true,logger:t?.logger})}const f=new LoginCredentialsFetcher(h,t,n);const g=await f.loadCredentials();return a(g,"CREDENTIALS_LOGIN","AD")};n.fromLoginCredentials=fromLoginCredentials},5861:(t,n,i)=>{const{ENV_KEY:a,ENV_SECRET:A,fromEnv:c}=i(5606);const{chain:l,CredentialsProviderError:d,ENV_PROFILE:h}=i(7291);const f="AWS_EC2_METADATA_DISABLED";const remoteProvider=async t=>{const{ENV_CMDS_FULL_URI:n,ENV_CMDS_RELATIVE_URI:a,fromContainerMetadata:A,fromInstanceMetadata:c}=i(566);if(process.env[a]||process.env[n]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:n}=i(8605);return l(n(t),A(t))}if(process.env[f]&&process.env[f]!=="false"){return async()=>{throw new d("EC2 Instance Metadata Service access disabled",{logger:t.logger})}}t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return c(t)};function memoizeChain(t,n){const i=internalCreateChain(t);let a;let A;let c;let l;const provider=async t=>{if(t?.forceRefresh){if(!l){l=i(t).then(t=>{c=t}).finally(()=>{l=undefined})}await l;return c}if(c?.expiration){if(c?.expiration?.getTime(){c=t}).finally(()=>{A=undefined})}}else{a=i(t).then(t=>{c=t}).finally(()=>{a=undefined});return provider(t)}}return c};return provider}const internalCreateChain=t=>async n=>{let i;for(const a of t){try{return await a(n)}catch(t){i=t;if(t?.tryNextLink){continue}throw t}}throw i};let g=false;const defaultProvider=(t={})=>memoizeChain([async()=>{const n=t.profile??process.env[h];if(n){const n=process.env[a]&&process.env[A];if(n){if(!g){const n=t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn;n(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);g=true}}throw new d("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:true})}t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return c(t)()},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:a,ssoAccountId:A,ssoRegion:c,ssoRoleName:l,ssoSession:h}=t;if(!a&&!A&&!c&&!l&&!h){throw new d("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger})}const{fromSSO:f}=i(998);return f(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:a}=i(5869);return a(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:a}=i(5360);return a(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:a}=i(9956);return a(t)(n)},async()=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(t))()},async()=>{throw new d("Could not load credentials from any providers",{tryNextLink:false,logger:t.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=t=>t?.expiration!==undefined;const credentialsTreatedAsExpired=t=>t?.expiration!==undefined&&t.expiration.getTime()-Date.now()<3e5;n.credentialsTreatedAsExpired=credentialsTreatedAsExpired;n.credentialsWillNeedRefresh=credentialsWillNeedRefresh;n.defaultProvider=defaultProvider},5360:(t,n,i)=>{const{externalDataInterceptor:a,CredentialsProviderError:A,parseKnownFiles:c,getProfileName:l}=i(7291);const{exec:d}=i(1421);const{promisify:h}=i(7975);const{setCredentialFeature:f}=i(5152);const getValidatedProcessCredentials=(t,n,i)=>{if(n.Version!==1){throw Error(`Profile ${t} credential_process did not return Version 1.`)}if(n.AccessKeyId===undefined||n.SecretAccessKey===undefined){throw Error(`Profile ${t} credential_process returned invalid credentials.`)}if(n.Expiration){const i=new Date;const a=new Date(n.Expiration);if(a{const c=n[t];if(n[t]){const l=c["credential_process"];if(l!==undefined){const c=h(a?.getTokenRecord?.().exec??d);try{const{stdout:i}=await c(l);let a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return getValidatedProcessCredentials(t,a,n)}catch(t){throw new A(t.message,{logger:i})}}else{throw new A(`Profile ${t} did not contain credential_process.`,{logger:i})}}else{throw new A(`Profile ${t} could not be found in shared credentials file.`,{logger:i})}};const fromProcess=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const i=await c(t);return resolveProcessCredentials(l({profile:t.profile??n?.profile}),i,t.logger)};n.fromProcess=fromProcess},998:(t,n,i)=>{const{CredentialsProviderError:a,getSSOTokenFromFile:A,getProfileName:c,parseKnownFiles:l,loadSsoSessionData:d}=i(7291);const{setCredentialFeature:h}=i(5152);const{fromSso:f}=i(5433);const isSsoProfile=t=>t&&(typeof t.sso_start_url==="string"||typeof t.sso_account_id==="string"||typeof t.sso_session==="string"||typeof t.sso_region==="string"||typeof t.sso_role_name==="string");const g=false;const resolveSSOCredentials=async({ssoStartUrl:t,ssoSession:n,ssoAccountId:c,ssoRegion:l,ssoRoleName:d,ssoClient:p,clientConfig:m,parentClientConfig:E,callerClientConfig:C,profile:I,filepath:y,configFilepath:B,ignoreCache:Q,logger:w})=>{let S;const b=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(n){try{const t=await f({profile:I,filepath:y,configFilepath:B,ignoreCache:Q,clientConfig:m,parentClientConfig:E,logger:w})({callerClientConfig:C});S={accessToken:t.token,expiresAt:new Date(t.expiration).toISOString()}}catch(t){throw new a(t.message,{tryNextLink:g,logger:w})}}else{try{S=await A(t)}catch(t){throw new a(`The SSO session associated with this profile is invalid. ${b}`,{tryNextLink:g,logger:w})}}if(new Date(S.expiresAt).getTime()-Date.now()<=0){throw new a(`The SSO session associated with this profile has expired. ${b}`,{tryNextLink:g,logger:w})}const{accessToken:R}=S;const{SSOClient:v,GetRoleCredentialsCommand:k}=i(3707);const D=p||new v(Object.assign({},m??{},{logger:m?.logger??C?.logger??E?.logger,region:m?.region??l,userAgentAppId:m?.userAgentAppId??C?.userAgentAppId??E?.userAgentAppId}));let T;try{T=await D.send(new k({accountId:c,roleName:d,accessToken:R}))}catch(t){throw new a(t,{tryNextLink:g,logger:w})}const{roleCredentials:{accessKeyId:N,secretAccessKey:M,sessionToken:F,expiration:x,credentialScope:U,accountId:P}={}}=T;if(!N||!M||!F||!x){throw new a("SSO returns an invalid temporary credential.",{tryNextLink:g,logger:w})}const L={accessKeyId:N,secretAccessKey:M,sessionToken:F,expiration:new Date(x),...U&&{credentialScope:U},...P&&{accountId:P}};if(n){h(L,"CREDENTIALS_SSO","s")}else{h(L,"CREDENTIALS_SSO_LEGACY","u")}return L};const validateSsoProfile=(t,n)=>{const{sso_start_url:i,sso_account_id:A,sso_region:c,sso_role_name:l}=t;if(!i||!A||!c||!l){throw new a(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:false,logger:n})}return t};const fromSSO=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:i,ssoAccountId:A,ssoRegion:h,ssoRoleName:f,ssoSession:g}=t;const{ssoClient:p}=t;const m=c({profile:t.profile??n?.profile});if(!i&&!A&&!h&&!f&&!g){const n=await l(t);const A=n[m];if(!A){throw new a(`Profile ${m} was not found.`,{logger:t.logger})}if(!isSsoProfile(A)){throw new a(`Profile ${m} is not configured with SSO credentials.`,{logger:t.logger})}if(A?.sso_session){const n=await d(t);const c=n[A.sso_session];const l=` configurations in profile ${m} and sso-session ${A.sso_session}`;if(h&&h!==c.sso_region){throw new a(`Conflicting SSO region`+l,{tryNextLink:false,logger:t.logger})}if(i&&i!==c.sso_start_url){throw new a(`Conflicting SSO start_url`+l,{tryNextLink:false,logger:t.logger})}A.sso_region=c.sso_region;A.sso_start_url=c.sso_start_url}const{sso_start_url:c,sso_account_id:f,sso_region:g,sso_role_name:E,sso_session:C}=validateSsoProfile(A,t.logger);return resolveSSOCredentials({ssoStartUrl:c,ssoSession:C,ssoAccountId:f,ssoRegion:g,ssoRoleName:E,ssoClient:p,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:m,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else if(!i||!A||!h||!f){throw new a("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:false,logger:t.logger})}else{return resolveSSOCredentials({ssoStartUrl:i,ssoSession:g,ssoAccountId:A,ssoRegion:h,ssoRoleName:f,ssoClient:p,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:m,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};n.fromSSO=fromSSO;n.isSsoProfile=isSsoProfile;n.validateSsoProfile=validateSsoProfile},3707:(t,n,i)=>{const{GetRoleCredentialsCommand:a,SSOClient:A}=i(2579);n.GetRoleCredentialsCommand=a;n.SSOClient=A},9956:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:A,externalDataInterceptor:c}=i(7291);const{readFileSync:l}=i(3024);const fromWebToken=t=>async n=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:a,roleSessionName:A,webIdentityToken:c,providerId:l,policyArns:d,policy:h,durationSeconds:f}=t;let{roleAssumerWithWebIdentity:g}=t;if(!g){const{getDefaultRoleAssumerWithWebIdentity:a}=i(1136);g=a({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return g({RoleArn:a,RoleSessionName:A??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:c,ProviderId:l,PolicyArns:d,Policy:h,DurationSeconds:f})};const d="AWS_WEB_IDENTITY_TOKEN_FILE";const h="AWS_ROLE_ARN";const f="AWS_ROLE_SESSION_NAME";const fromTokenFile=(t={})=>async n=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const i=t?.webIdentityTokenFile??process.env[d];const g=t?.roleArn??process.env[h];const p=t?.roleSessionName??process.env[f];if(!i||!g){throw new A("Web identity configuration not specified",{logger:t.logger})}const m=await fromWebToken({...t,webIdentityToken:c?.getTokenRecord?.()[i]??l(i,{encoding:"ascii"}),roleArn:g,roleSessionName:p})(n);if(i===process.env[d]){a(m,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h")}return m};n.fromTokenFile=fromTokenFile;n.fromWebToken=fromWebToken},4431:(t,n,i)=>{const a=i(9214);class EndpointCache{cache;constructor(t){this.cache=new a(t)}getEndpoint(t){const n=this.get(t);if(!n||n.length===0){return undefined}const i=n.map(t=>t.Address);return i[Math.floor(Math.random()*i.length)]}get(t){if(!this.has(t)){return}const n=this.cache.get(t);if(!n){return}const i=Date.now();const a=n.filter(t=>i({Address:t,Expires:i+n*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t)){return false}const n=this.cache.peek(t);if(!n){return false}return n.length>0}clear(){this.cache.clear()}}n.EndpointCache=EndpointCache},3688:(t,n,i)=>{const{HttpRequest:a}=i(3422);const{EndpointCache:A}=i(4431);const c=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];const l="endpoint_discovery_enabled";const isFalsy=t=>["false","0"].indexOf(t)>=0;const d={environmentVariableSelector:t=>{for(let n=0;n{if(l in t){const n=t[l];if(n===undefined){throw Error(`Shared config entry ${l} can't be undefined, got "${n}"`)}return!isFalsy(n)}},default:undefined};const getCacheKey=async(t,n,i)=>{const{accessKeyId:a}=await n.credentials();const{identifiers:A}=i;return JSON.stringify({...a&&{accessKeyId:a},...A&&{commandName:t,identifiers:Object.entries(A).sort().reduce((t,[n,i])=>({...t,[n]:i}),{})}})};const h={};const updateDiscoveredEndpointInCache=async(t,n)=>new Promise((i,a)=>{const{endpointCache:A}=t;const{cacheKey:c,commandName:l,identifiers:d}=n;const f=A.get(c);if(f&&f.length===1&&f[0].Address===""){if(n.isDiscoveredEndpointRequired){if(!h[c])h[c]=[];h[c].push({resolve:i,reject:a})}else{i()}}else if(f&&f.length>0){i()}else{const f=[{Address:"",CachePeriodInMinutes:1}];A.set(c,f);const g=new n.endpointDiscoveryCommandCtor({Operation:l.slice(0,-7),Identifiers:d});const p=g.resolveMiddleware(n.clientStack,t,n.options);p(g).then(t=>{A.set(c,t.output.Endpoints);if(h[c]){h[c].forEach(({resolve:t})=>{t()});delete h[c]}i()}).catch(t=>{A.delete(c);const l=Object.assign(new Error(`The operation to discover endpoint failed.`+` Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.`),{reason:t});if(h[c]){h[c].forEach(({reject:t})=>{t(l)});delete h[c]}if(n.isDiscoveredEndpointRequired){a(l)}else{A.set(c,f);i()}})}});const endpointDiscoveryMiddleware=(t,n)=>(i,A)=>async c=>{if(t.isCustomEndpoint){if(t.isClientEndpointDiscoveryEnabled){throw new Error(`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.`)}return i(c)}const{endpointDiscoveryCommandCtor:l}=t;const{isDiscoveredEndpointRequired:d,identifiers:h}=n;const f=A.clientName;const g=A.commandName;const p=await t.endpointDiscoveryEnabled();const m=await getCacheKey(g,t,{identifiers:h});if(d){if(p===false){throw new Error(`Endpoint Discovery is disabled but ${g} on ${f} requires it.`+` Please check your configurations.`)}await updateDiscoveredEndpointInCache(t,{...n,commandName:g,cacheKey:m,endpointDiscoveryCommandCtor:l})}else if(p){updateDiscoveredEndpointInCache(t,{...n,commandName:g,cacheKey:m,endpointDiscoveryCommandCtor:l})}const{request:E}=c;if(m&&a.isInstance(E)){const n=t.endpointCache.getEndpoint(m);if(n){E.hostname=n}}return i(c)};const f={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:true};const getEndpointDiscoveryPlugin=(t,n)=>({applyToStack:i=>{i.add(endpointDiscoveryMiddleware(t,n),f)}});const getEndpointDiscoveryRequiredPlugin=(t,n)=>({applyToStack:i=>{i.add(endpointDiscoveryMiddleware(t,{...n,isDiscoveredEndpointRequired:true}),f)}});const getEndpointDiscoveryOptionalPlugin=(t,n)=>({applyToStack:i=>{i.add(endpointDiscoveryMiddleware(t,{...n,isDiscoveredEndpointRequired:false}),f)}});const resolveEndpointDiscoveryConfig=(t,{endpointDiscoveryCommandCtor:n})=>{const{endpointCacheSize:i,endpointDiscoveryEnabled:a,endpointDiscoveryEnabledProvider:c}=t;return Object.assign(t,{endpointDiscoveryCommandCtor:n,endpointCache:new A(i??1e3),endpointDiscoveryEnabled:a!==undefined?()=>Promise.resolve(a):c,isClientEndpointDiscoveryEnabled:a!==undefined})};n.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=d;n.endpointDiscoveryMiddlewareOptions=f;n.getEndpointDiscoveryOptionalPlugin=getEndpointDiscoveryOptionalPlugin;n.getEndpointDiscoveryPlugin=getEndpointDiscoveryPlugin;n.getEndpointDiscoveryRequiredPlugin=getEndpointDiscoveryRequiredPlugin;n.resolveEndpointDiscoveryConfig=resolveEndpointDiscoveryConfig},9762:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:c,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C}=i(5152);const{NoAuthSigner:I,getHttpAuthSchemeEndpointRuleSetPlugin:y,DefaultIdentityProviderConfig:B,getHttpSigningPlugin:Q}=i(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:b,NoOpLogger:R,emitWarningIfUnsupportedVersion:v,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:D,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:M,createAggregatedClient:F}=i(2658);const{Command:x}=i(2658);n.$Command=x;n.__Client=N;const{resolveDefaultsModeConfig:U,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_FILE_OPTIONS:$,resolveRegionConfig:G}=i(7291);const{BinaryDecisionDiagram:V,EndpointCache:Y,decideEndpoint:J,customEndpointFunctions:W,resolveEndpointConfig:q,getEndpointPlugin:j}=i(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:K,resolveHttpHandlerRuntimeConfig:Z,getContentLengthPlugin:X}=i(3422);const{DEFAULT_RETRY_MODE:ee,NODE_RETRY_MODE_CONFIG_OPTIONS:te,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:ne,getRetryPlugin:se}=i(3609);const{TypeRegistry:oe,getSchemaSerdePlugin:ie}=i(6890);const{resolveAwsSdkSigV4Config:ae,AwsSdkSigV4Signer:Ae,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ce}=i(7523);const{toUtf8:le,fromUtf8:ue,toBase64:de,fromBase64:he,calculateBodyLength:fe}=i(2430);const{streamCollector:ge,NodeHttpHandler:pe}=i(1279);const{AwsRestJsonProtocol:me}=i(7288);const{Sha256:Ee}=i(9542);const defaultSigninHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSigninHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"CreateOAuth2Token":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ae(t);return Object.assign(n,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"signin"});const Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ie="3.997.36";var ye={version:Ie};const Be="ref";const Qe=-1,we=false,Se=true,be="isSet",Re="booleanEquals",ve="coalesce",ke="PartitionResult",De="stringEquals",Te="getAttr",Ne="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",Me={[Be]:"Endpoint"},Fe={fn:Te,argv:[{[Be]:ke},"name"]},xe={[Be]:"Region"},Ue={[Be]:ke},Pe={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Le={},_e=[xe];const Oe={conditions:[[be,_e],[Re,[{fn:ve,argv:[{[Be]:"IsControlPlane"},we]},Se]],[be,[Me]],["aws.partition",_e,ke],[Re,[{[Be]:"UseFIPS"},Se]],[De,[Fe,"aws"]],[Re,[{fn:ve,argv:[{[Be]:"IsOAuthEndpoint"},we]},Se]],[Re,[{[Be]:"UseDualStack"},Se]],[De,[Fe,"aws-cn"]],[De,[xe,"us-gov-west-1"]],[De,[Fe,"aws-us-gov"]],[Re,[{fn:Te,argv:[Ue,"supportsFIPS"]},Se]],[De,[Fe,"aws-iso"]],[De,[Fe,"aws-iso-b"]],[De,[Fe,"aws-iso-f"]],[De,[Fe,"aws-iso-e"]],[De,[Fe,"aws-eusc"]],[Re,[{fn:Te,argv:[Ue,"supportsDualStack"]},Se]]],results:[[Qe],["https://signin.{Region}.api.aws",Pe],["https://signin.{Region}.api.amazonwebservices.com.cn",Pe],[Ne,Pe],[Qe,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",Pe],["https://{Region}.signin.aws.amazon.com",Le],["https://{Region}.signin.amazonaws.cn",Le],["https://{Region}.signin.amazonaws-us-gov.com",Le],["https://{Region}.signin.c2shome.ic.gov",Le],["https://{Region}.signin.sc2shome.sgov.gov",Le],["https://{Region}.signin.csphome.hci.ic.gov",Le],["https://{Region}.signin.csphome.adc-e.uk",Le],["https://{Region}.signin.amazonaws-eusc.eu",Le],["https://signin-fips.amazonaws-us-gov.com",Le],["https://{Region}.signin-fips.amazonaws-us-gov.com",Le],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Le],[Qe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Me,Le],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Le],[Qe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Le],[Qe,"FIPS is enabled but this partition does not support FIPS"],[Ne,Le],[Qe,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Le],[Qe,"Invalid Configuration: Missing Region"]]};const He=2;const $e=1e8;const Ge=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,$e+27,6,$e+4,$e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,$e+7,13,10,$e+8,14,12,$e+9,15,13,$e+10,16,14,$e+11,17,15,$e+12,18,16,$e+13,$e+16,6,$e+5,20,7,21,$e+6,17,$e+24,$e+25,6,$e+4,23,7,27,24,9,$e+14,25,10,$e+15,26,11,$e+22,$e+23,11,28,$e+21,17,$e+20,$e+21,2,35,30,3,39,31,4,32,$e+27,6,$e+4,33,7,$e+27,34,9,$e+14,$e+27,3,39,36,4,38,37,7,$e+18,$e+19,6,$e+4,$e+17,5,$e+1,40,8,$e+2,$e+3]);const Ve=V.from(Ge,He,Oe.conditions,Oe.results);const Ye=new Y({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Ye.get(t,()=>J(Ve,{endpointParams:t,logger:n.logger}));W.aws=a;class SigninServiceException extends b{constructor(t){super(t);Object.setPrototypeOf(this,SigninServiceException.prototype)}}class AccessDeniedException extends SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=t.error}}class InternalServerException extends SigninServiceException{name="InternalServerException";$fault="server";error;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.error=t.error}}class TooManyRequestsError extends SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(t){super({name:"TooManyRequestsError",$fault:"client",...t});Object.setPrototypeOf(this,TooManyRequestsError.prototype);this.error=t.error}}class ValidationException extends SigninServiceException{name="ValidationException";$fault="client";error;constructor(t){super({name:"ValidationException",$fault:"client",...t});Object.setPrototypeOf(this,ValidationException.prototype);this.error=t.error}}const Je="AccessDeniedException";const We="AccessToken";const qe="CreateOAuth2Token";const je="CreateOAuth2TokenRequest";const ze="CreateOAuth2TokenRequestBody";const Ke="CreateOAuth2TokenResponseBody";const Ze="CreateOAuth2TokenResponse";const Xe="CreateOAuth2TokenWithIAM";const et="CreateOAuth2TokenWithIAMRequest";const tt="CreateOAuth2TokenWithIAMResponse";const rt="InternalServerException";const nt="OAuthAccessToken";const st="RefreshToken";const ot="TooManyRequestsError";const it="ValidationException";const at="accessKeyId";const At="accessToken";const ct="access_token";const lt="client";const ut="clientId";const dt="codeVerifier";const ht="code";const ft="error";const gt="expiresIn";const pt="expires_in";const mt="grantType";const Et="grant_type";const Ct="http";const It="httpError";const yt="idToken";const Bt="jsonName";const Qt="message";const wt="resource";const St="refreshToken";const bt="redirectUri";const Rt="smithy.ts.sdk.synthetic.com.amazonaws.signin";const vt="secretAccessKey";const kt="sessionToken";const Dt="server";const Tt="tokenInput";const Nt="tokenOutput";const Mt="tokenType";const Ft="token_type";const xt="com.amazonaws.signin";const Ut=oe.for(Rt);var Pt=[-3,Rt,"SigninServiceException",0,[],[]];Ut.registerError(Pt,SigninServiceException);const Lt=oe.for(xt);var _t=[-3,xt,Je,{[ft]:lt},[ft,Qt],[0,0],2];Lt.registerError(_t,AccessDeniedException);var Ot=[-3,xt,rt,{[ft]:Dt,[It]:500},[ft,Qt],[0,0],2];Lt.registerError(Ot,InternalServerException);var Ht=[-3,xt,ot,{[ft]:lt,[It]:429},[ft,Qt],[0,0],2];Lt.registerError(Ht,TooManyRequestsError);var $t=[-3,xt,it,{[ft]:lt,[It]:400},[ft,Qt],[0,0],2];Lt.registerError($t,ValidationException);const Gt=[Ut,Lt];var Vt=[0,xt,nt,8,0];var Yt=[0,xt,st,8,0];var Jt=[3,xt,We,8,[at,vt,kt],[[0,{[Bt]:at}],[0,{[Bt]:vt}],[0,{[Bt]:kt}]],3];var Wt=[3,xt,je,0,[Tt],[[()=>qt,16]],1];var qt=[3,xt,ze,0,[ut,mt,ht,bt,dt,St],[[0,{[Bt]:ut}],[0,{[Bt]:mt}],0,[0,{[Bt]:bt}],[0,{[Bt]:dt}],[()=>Yt,{[Bt]:St}]],2];var jt=[3,xt,Ze,0,[Nt],[[()=>zt,16]],1];var zt=[3,xt,Ke,0,[At,Mt,gt,St,yt],[[()=>Jt,{[Bt]:At}],[0,{[Bt]:Mt}],[1,{[Bt]:gt}],[()=>Yt,{[Bt]:St}],[0,{[Bt]:yt}]],4];var Kt=[3,xt,et,0,[mt,wt],[[0,{[Bt]:Et}],0],2];var Zt=[3,xt,tt,0,[At,Mt,gt],[[()=>Vt,{[Bt]:ct}],[0,{[Bt]:Ft}],[1,{[Bt]:pt}]],3];var Xt=[9,xt,qe,{[Ct]:["POST","/v1/token",200]},()=>Wt,()=>jt];var er=[9,xt,Xe,{[Ct]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>Kt,()=>Zt];const getRuntimeConfig$1=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??he,base64Encoder:t?.base64Encoder??de,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Ae},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new I}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Gt,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ue,utf8Encoder:t?.utf8Encoder??le});const getRuntimeConfig=t=>{v(process.version);const n=U(t);const defaultConfigProvider=()=>n().then(k);const i=getRuntimeConfig$1(t);A(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(ce,a),bodyLengthChecker:t?.bodyLengthChecker??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??c({serviceId:i.serviceId,clientVersion:ye.version}),maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(H,{...$,...a}),requestHandler:pe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...te,default:async()=>(await defaultConfigProvider()).retryMode||ee},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??P(O,a),useFipsEndpoint:t?.useFipsEndpoint??P(L,a),userAgentAppId:t?.userAgentAppId??P(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),D(t),K(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),T(i),Z(i),resolveHttpAuthRuntimeConfig(i))};class SigninClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const A=ne(a);const c=G(A);const l=g(c);const d=q(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ie(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(se(this.config));this.middlewareStack.use(X(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(y(this.config,{httpAuthSchemeParametersProvider:defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new B({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(Q(this.config))}destroy(){super.destroy()}}const tr=M(Ce,"Signin","SigninClient",j);const rr={IsControlPlane:{type:"staticContextParams",value:false}};const nr={IsOAuthEndpoint:{type:"staticContextParams",value:true}};const _mw0=(t,n,i,a)=>[];class CreateOAuth2TokenCommand extends(tr(rr,_mw0,"CreateOAuth2Token",Xt)){}class CreateOAuth2TokenWithIAMCommand extends(tr(nr,_mw0,"CreateOAuth2TokenWithIAM",er)){}const sr={CreateOAuth2TokenCommand:CreateOAuth2TokenCommand,CreateOAuth2TokenWithIAMCommand:CreateOAuth2TokenWithIAMCommand};class Signin extends SigninClient{}F(sr,Signin);const ir={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};n.AccessDeniedException=AccessDeniedException;n.AccessDeniedException$=_t;n.AccessToken$=Jt;n.CreateOAuth2Token$=Xt;n.CreateOAuth2TokenCommand=CreateOAuth2TokenCommand;n.CreateOAuth2TokenRequest$=Wt;n.CreateOAuth2TokenRequestBody$=qt;n.CreateOAuth2TokenResponse$=jt;n.CreateOAuth2TokenResponseBody$=zt;n.CreateOAuth2TokenWithIAM$=er;n.CreateOAuth2TokenWithIAMCommand=CreateOAuth2TokenWithIAMCommand;n.CreateOAuth2TokenWithIAMRequest$=Kt;n.CreateOAuth2TokenWithIAMResponse$=Zt;n.InternalServerException=InternalServerException;n.InternalServerException$=Ot;n.OAuth2ErrorCode=ir;n.Signin=Signin;n.SigninClient=SigninClient;n.SigninServiceException=SigninServiceException;n.SigninServiceException$=Pt;n.TooManyRequestsError=TooManyRequestsError;n.TooManyRequestsError$=Ht;n.ValidationException=ValidationException;n.ValidationException$=$t;n.errorTypeRegistries=Gt},9443:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:c,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C}=i(5152);const{NoAuthSigner:I,getHttpAuthSchemeEndpointRuleSetPlugin:y,DefaultIdentityProviderConfig:B,getHttpSigningPlugin:Q}=i(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:b,NoOpLogger:R,emitWarningIfUnsupportedVersion:v,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:D,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:M,createAggregatedClient:F}=i(2658);const{Command:x}=i(2658);n.$Command=x;n.__Client=N;const{resolveDefaultsModeConfig:U,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_FILE_OPTIONS:$,resolveRegionConfig:G}=i(7291);const{BinaryDecisionDiagram:V,EndpointCache:Y,decideEndpoint:J,customEndpointFunctions:W,resolveEndpointConfig:q,getEndpointPlugin:j}=i(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:K,resolveHttpHandlerRuntimeConfig:Z,getContentLengthPlugin:X}=i(3422);const{DEFAULT_RETRY_MODE:ee,NODE_RETRY_MODE_CONFIG_OPTIONS:te,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:ne,getRetryPlugin:se}=i(3609);const{TypeRegistry:oe,getSchemaSerdePlugin:ie}=i(6890);const{resolveAwsSdkSigV4Config:ae,AwsSdkSigV4Signer:Ae,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ce}=i(7523);const{toUtf8:le,fromUtf8:ue,toBase64:de,fromBase64:he,calculateBodyLength:fe}=i(2430);const{streamCollector:ge,NodeHttpHandler:pe}=i(1279);const{AwsRestJsonProtocol:me}=i(7288);const{Sha256:Ee}=i(9542);const defaultSSOOIDCHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSSOOIDCHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"CreateToken":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ae(t);return Object.assign(n,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"sso-oauth"});const Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ie="3.997.36";var ye={version:Ie};const Be="ref";const Qe=-1,we=true,Se="isSet",be="PartitionResult",Re="booleanEquals",ve="getAttr",ke={[Be]:"Endpoint"},De={[Be]:be},Te={},Ne=[{[Be]:"Region"}];const Me={conditions:[[Se,[ke]],[Se,Ne],["aws.partition",Ne,be],[Re,[{[Be]:"UseFIPS"},we]],[Re,[{[Be]:"UseDualStack"},we]],[Re,[{fn:ve,argv:[De,"supportsDualStack"]},we]],[Re,[{fn:ve,argv:[De,"supportsFIPS"]},we]],["stringEquals",[{fn:ve,argv:[De,"name"]},"aws-us-gov"]]],results:[[Qe],[Qe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ke,Te],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Te],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"Invalid Configuration: Missing Region"]]};const Fe=2;const xe=1e8;const Ue=new Int32Array([-1,1,-1,0,13,3,1,4,xe+12,2,5,xe+12,3,8,6,4,7,xe+11,5,xe+9,xe+10,4,11,9,6,10,xe+8,7,xe+6,xe+7,5,12,xe+5,6,xe+4,xe+5,3,xe+1,14,4,xe+2,xe+3]);const Pe=V.from(Ue,Fe,Me.conditions,Me.results);const Le=new Y({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Le.get(t,()=>J(Pe,{endpointParams:t,logger:n.logger}));W.aws=a;class SSOOIDCServiceException extends b{constructor(t){super(t);Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}class AccessDeniedException extends SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=t.error;this.reason=t.reason;this.error_description=t.error_description}}class AuthorizationPendingException extends SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t});Object.setPrototypeOf(this,AuthorizationPendingException.prototype);this.error=t.error;this.error_description=t.error_description}}class ExpiredTokenException extends SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype);this.error=t.error;this.error_description=t.error_description}}class InternalServerException extends SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidClientException extends SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(t){super({name:"InvalidClientException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidClientException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidGrantException extends SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(t){super({name:"InvalidGrantException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidGrantException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidRequestException extends SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidRequestException.prototype);this.error=t.error;this.reason=t.reason;this.error_description=t.error_description}}class InvalidScopeException extends SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(t){super({name:"InvalidScopeException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidScopeException.prototype);this.error=t.error;this.error_description=t.error_description}}class SlowDownException extends SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(t){super({name:"SlowDownException",$fault:"client",...t});Object.setPrototypeOf(this,SlowDownException.prototype);this.error=t.error;this.error_description=t.error_description}}class UnauthorizedClientException extends SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t});Object.setPrototypeOf(this,UnauthorizedClientException.prototype);this.error=t.error;this.error_description=t.error_description}}class UnsupportedGrantTypeException extends SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t});Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype);this.error=t.error;this.error_description=t.error_description}}const _e="AccessDeniedException";const Oe="AuthorizationPendingException";const He="AccessToken";const $e="ClientSecret";const Ge="CreateToken";const Ve="CreateTokenRequest";const Ye="CreateTokenResponse";const Je="CodeVerifier";const We="ExpiredTokenException";const qe="InvalidClientException";const je="InvalidGrantException";const ze="InvalidRequestException";const Ke="InternalServerException";const Ze="InvalidScopeException";const Xe="IdToken";const et="RefreshToken";const tt="SlowDownException";const rt="UnauthorizedClientException";const nt="UnsupportedGrantTypeException";const st="accessToken";const ot="client";const it="clientId";const at="clientSecret";const At="codeVerifier";const ct="code";const lt="deviceCode";const ut="error";const dt="expiresIn";const ht="error_description";const ft="grantType";const gt="http";const pt="httpError";const mt="idToken";const Et="reason";const Ct="refreshToken";const It="redirectUri";const yt="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";const Bt="scope";const Qt="server";const wt="tokenType";const St="com.amazonaws.ssooidc";const bt=oe.for(yt);var Rt=[-3,yt,"SSOOIDCServiceException",0,[],[]];bt.registerError(Rt,SSOOIDCServiceException);const vt=oe.for(St);var kt=[-3,St,_e,{[ut]:ot,[pt]:400},[ut,Et,ht],[0,0,0]];vt.registerError(kt,AccessDeniedException);var Dt=[-3,St,Oe,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Dt,AuthorizationPendingException);var Tt=[-3,St,We,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Tt,ExpiredTokenException);var Nt=[-3,St,Ke,{[ut]:Qt,[pt]:500},[ut,ht],[0,0]];vt.registerError(Nt,InternalServerException);var Mt=[-3,St,qe,{[ut]:ot,[pt]:401},[ut,ht],[0,0]];vt.registerError(Mt,InvalidClientException);var Ft=[-3,St,je,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Ft,InvalidGrantException);var xt=[-3,St,ze,{[ut]:ot,[pt]:400},[ut,Et,ht],[0,0,0]];vt.registerError(xt,InvalidRequestException);var Ut=[-3,St,Ze,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Ut,InvalidScopeException);var Pt=[-3,St,tt,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Pt,SlowDownException);var Lt=[-3,St,rt,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Lt,UnauthorizedClientException);var _t=[-3,St,nt,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(_t,UnsupportedGrantTypeException);const Ot=[bt,vt];var Ht=[0,St,He,8,0];var $t=[0,St,$e,8,0];var Gt=[0,St,Je,8,0];var Vt=[0,St,Xe,8,0];var Yt=[0,St,et,8,0];var Jt=[3,St,Ve,0,[it,at,ft,lt,ct,Ct,Bt,It,At],[0,[()=>$t,0],0,0,0,[()=>Yt,0],64|0,0,[()=>Gt,0]],3];var Wt=[3,St,Ye,0,[st,wt,dt,Ct,mt],[[()=>Ht,0],0,1,[()=>Yt,0],[()=>Vt,0]]];var qt=[9,St,Ge,{[gt]:["POST","/token",200]},()=>Jt,()=>Wt];const getRuntimeConfig$1=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??he,base64Encoder:t?.base64Encoder??de,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Ae},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new I}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Ot,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ue,utf8Encoder:t?.utf8Encoder??le});const getRuntimeConfig=t=>{v(process.version);const n=U(t);const defaultConfigProvider=()=>n().then(k);const i=getRuntimeConfig$1(t);A(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(ce,a),bodyLengthChecker:t?.bodyLengthChecker??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??c({serviceId:i.serviceId,clientVersion:ye.version}),maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(H,{...$,...a}),requestHandler:pe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...te,default:async()=>(await defaultConfigProvider()).retryMode||ee},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??P(O,a),useFipsEndpoint:t?.useFipsEndpoint??P(L,a),userAgentAppId:t?.userAgentAppId??P(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),D(t),K(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),T(i),Z(i),resolveHttpAuthRuntimeConfig(i))};class SSOOIDCClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const A=ne(a);const c=G(A);const l=g(c);const d=q(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ie(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(se(this.config));this.middlewareStack.use(X(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(y(this.config,{httpAuthSchemeParametersProvider:defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new B({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(Q(this.config))}destroy(){super.destroy()}}const jt=M(Ce,"AWSSSOOIDCService","SSOOIDCClient",j);const zt={};const _mw0=(t,n,i,a)=>[];class CreateTokenCommand extends(jt(zt,_mw0,"CreateToken",qt)){}const Kt={CreateTokenCommand:CreateTokenCommand};class SSOOIDC extends SSOOIDCClient{}F(Kt,SSOOIDC);const Zt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"};const Xt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};n.AccessDeniedException=AccessDeniedException;n.AccessDeniedException$=kt;n.AccessDeniedExceptionReason=Zt;n.AuthorizationPendingException=AuthorizationPendingException;n.AuthorizationPendingException$=Dt;n.CreateToken$=qt;n.CreateTokenCommand=CreateTokenCommand;n.CreateTokenRequest$=Jt;n.CreateTokenResponse$=Wt;n.ExpiredTokenException=ExpiredTokenException;n.ExpiredTokenException$=Tt;n.InternalServerException=InternalServerException;n.InternalServerException$=Nt;n.InvalidClientException=InvalidClientException;n.InvalidClientException$=Mt;n.InvalidGrantException=InvalidGrantException;n.InvalidGrantException$=Ft;n.InvalidRequestException=InvalidRequestException;n.InvalidRequestException$=xt;n.InvalidRequestExceptionReason=Xt;n.InvalidScopeException=InvalidScopeException;n.InvalidScopeException$=Ut;n.SSOOIDC=SSOOIDC;n.SSOOIDCClient=SSOOIDCClient;n.SSOOIDCServiceException=SSOOIDCServiceException;n.SSOOIDCServiceException$=Rt;n.SlowDownException=SlowDownException;n.SlowDownException$=Pt;n.UnauthorizedClientException=UnauthorizedClientException;n.UnauthorizedClientException$=Lt;n.UnsupportedGrantTypeException=UnsupportedGrantTypeException;n.UnsupportedGrantTypeException$=_t;n.errorTypeRegistries=Ot},2579:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:c,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C}=i(5152);const{NoAuthSigner:I,getHttpAuthSchemeEndpointRuleSetPlugin:y,DefaultIdentityProviderConfig:B,getHttpSigningPlugin:Q}=i(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:b,NoOpLogger:R,emitWarningIfUnsupportedVersion:v,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:D,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:M,createAggregatedClient:F}=i(2658);const{Command:x}=i(2658);n.$Command=x;n.__Client=N;const{resolveDefaultsModeConfig:U,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_FILE_OPTIONS:$,resolveRegionConfig:G}=i(7291);const{BinaryDecisionDiagram:V,EndpointCache:Y,decideEndpoint:J,customEndpointFunctions:W,resolveEndpointConfig:q,getEndpointPlugin:j}=i(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:K,resolveHttpHandlerRuntimeConfig:Z,getContentLengthPlugin:X}=i(3422);const{DEFAULT_RETRY_MODE:ee,NODE_RETRY_MODE_CONFIG_OPTIONS:te,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:ne,getRetryPlugin:se}=i(3609);const{TypeRegistry:oe,getSchemaSerdePlugin:ie}=i(6890);const{resolveAwsSdkSigV4Config:ae,AwsSdkSigV4Signer:Ae,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ce}=i(7523);const{toUtf8:le,fromUtf8:ue,toBase64:de,fromBase64:he,calculateBodyLength:fe}=i(2430);const{streamCollector:ge,NodeHttpHandler:pe}=i(1279);const{AwsRestJsonProtocol:me}=i(7288);const{Sha256:Ee}=i(9542);const defaultSSOHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSSOHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"GetRoleCredentials":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ae(t);return Object.assign(n,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});const Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ie="3.997.36";var ye={version:Ie};const Be="ref";const Qe=-1,we=true,Se="isSet",be="PartitionResult",Re="booleanEquals",ve="getAttr",ke={[Be]:"Endpoint"},De={[Be]:be},Te={},Ne=[{[Be]:"Region"}];const Me={conditions:[[Se,[ke]],[Se,Ne],["aws.partition",Ne,be],[Re,[{[Be]:"UseFIPS"},we]],[Re,[{[Be]:"UseDualStack"},we]],[Re,[{fn:ve,argv:[De,"supportsDualStack"]},we]],[Re,[{fn:ve,argv:[De,"supportsFIPS"]},we]],["stringEquals",[{fn:ve,argv:[De,"name"]},"aws-us-gov"]]],results:[[Qe],[Qe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ke,Te],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Te],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"Invalid Configuration: Missing Region"]]};const Fe=2;const xe=1e8;const Ue=new Int32Array([-1,1,-1,0,13,3,1,4,xe+12,2,5,xe+12,3,8,6,4,7,xe+11,5,xe+9,xe+10,4,11,9,6,10,xe+8,7,xe+6,xe+7,5,12,xe+5,6,xe+4,xe+5,3,xe+1,14,4,xe+2,xe+3]);const Pe=V.from(Ue,Fe,Me.conditions,Me.results);const Le=new Y({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Le.get(t,()=>J(Pe,{endpointParams:t,logger:n.logger}));W.aws=a;class SSOServiceException extends b{constructor(t){super(t);Object.setPrototypeOf(this,SSOServiceException.prototype)}}class InvalidRequestException extends SSOServiceException{name="InvalidRequestException";$fault="client";constructor(t){super({name:"InvalidRequestException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidRequestException.prototype)}}class ResourceNotFoundException extends SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}class TooManyRequestsException extends SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}class UnauthorizedException extends SSOServiceException{name="UnauthorizedException";$fault="client";constructor(t){super({name:"UnauthorizedException",$fault:"client",...t});Object.setPrototypeOf(this,UnauthorizedException.prototype)}}const _e="AccessTokenType";const Oe="GetRoleCredentials";const He="GetRoleCredentialsRequest";const $e="GetRoleCredentialsResponse";const Ge="InvalidRequestException";const Ve="RoleCredentials";const Ye="ResourceNotFoundException";const Je="SecretAccessKeyType";const We="SessionTokenType";const qe="TooManyRequestsException";const je="UnauthorizedException";const ze="accountId";const Ke="accessKeyId";const Ze="accessToken";const Xe="account_id";const et="client";const tt="error";const rt="expiration";const nt="http";const st="httpError";const ot="httpHeader";const it="httpQuery";const at="message";const At="roleCredentials";const ct="roleName";const lt="role_name";const ut="smithy.ts.sdk.synthetic.com.amazonaws.sso";const dt="secretAccessKey";const ht="sessionToken";const ft="x-amz-sso_bearer_token";const gt="com.amazonaws.sso";const pt=oe.for(ut);var mt=[-3,ut,"SSOServiceException",0,[],[]];pt.registerError(mt,SSOServiceException);const Et=oe.for(gt);var Ct=[-3,gt,Ge,{[tt]:et,[st]:400},[at],[0]];Et.registerError(Ct,InvalidRequestException);var It=[-3,gt,Ye,{[tt]:et,[st]:404},[at],[0]];Et.registerError(It,ResourceNotFoundException);var yt=[-3,gt,qe,{[tt]:et,[st]:429},[at],[0]];Et.registerError(yt,TooManyRequestsException);var Bt=[-3,gt,je,{[tt]:et,[st]:401},[at],[0]];Et.registerError(Bt,UnauthorizedException);const Qt=[pt,Et];var wt=[0,gt,_e,8,0];var St=[0,gt,Je,8,0];var bt=[0,gt,We,8,0];var Rt=[3,gt,He,0,[ct,ze,Ze],[[0,{[it]:lt}],[0,{[it]:Xe}],[()=>wt,{[ot]:ft}]],3];var vt=[3,gt,$e,0,[At],[[()=>kt,0]]];var kt=[3,gt,Ve,0,[Ke,dt,ht,rt],[0,[()=>St,0],[()=>bt,0],1]];var Dt=[9,gt,Oe,{[nt]:["GET","/federation/credentials",200]},()=>Rt,()=>vt];const getRuntimeConfig$1=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??he,base64Encoder:t?.base64Encoder??de,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Ae},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new I}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Qt,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ue,utf8Encoder:t?.utf8Encoder??le});const getRuntimeConfig=t=>{v(process.version);const n=U(t);const defaultConfigProvider=()=>n().then(k);const i=getRuntimeConfig$1(t);A(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(ce,a),bodyLengthChecker:t?.bodyLengthChecker??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??c({serviceId:i.serviceId,clientVersion:ye.version}),maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(H,{...$,...a}),requestHandler:pe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...te,default:async()=>(await defaultConfigProvider()).retryMode||ee},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??P(O,a),useFipsEndpoint:t?.useFipsEndpoint??P(L,a),userAgentAppId:t?.userAgentAppId??P(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),D(t),K(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),T(i),Z(i),resolveHttpAuthRuntimeConfig(i))};class SSOClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const A=ne(a);const c=G(A);const l=g(c);const d=q(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ie(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(se(this.config));this.middlewareStack.use(X(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(y(this.config,{httpAuthSchemeParametersProvider:defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new B({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(Q(this.config))}destroy(){super.destroy()}}const Tt=M(Ce,"SWBPortalService","SSOClient",j);const Nt={};const _mw0=(t,n,i,a)=>[];class GetRoleCredentialsCommand extends(Tt(Nt,_mw0,"GetRoleCredentials",Dt)){}const Mt={GetRoleCredentialsCommand:GetRoleCredentialsCommand};class SSO extends SSOClient{}F(Mt,SSO);n.GetRoleCredentials$=Dt;n.GetRoleCredentialsCommand=GetRoleCredentialsCommand;n.GetRoleCredentialsRequest$=Rt;n.GetRoleCredentialsResponse$=vt;n.InvalidRequestException=InvalidRequestException;n.InvalidRequestException$=Ct;n.ResourceNotFoundException=ResourceNotFoundException;n.ResourceNotFoundException$=It;n.RoleCredentials$=kt;n.SSO=SSO;n.SSOClient=SSOClient;n.SSOServiceException=SSOServiceException;n.SSOServiceException$=mt;n.TooManyRequestsException=TooManyRequestsException;n.TooManyRequestsException$=yt;n.UnauthorizedException=UnauthorizedException;n.UnauthorizedException$=Bt;n.errorTypeRegistries=Qt},1136:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:c,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C,setCredentialFeature:I,stsRegionDefaultResolver:y}=i(5152);const{NoAuthSigner:B,getHttpAuthSchemeEndpointRuleSetPlugin:Q,DefaultIdentityProviderConfig:w,getHttpSigningPlugin:S}=i(402);const{normalizeProvider:b,getSmithyContext:R,ServiceException:v,NoOpLogger:k,emitWarningIfUnsupportedVersion:D,loadConfigsForDefaultMode:T,getDefaultExtensionConfiguration:N,resolveDefaultRuntimeConfig:M,Client:F,makeBuilder:x,createAggregatedClient:U}=i(2658);const{Command:P}=i(2658);n.$Command=P;n.__Client=F;const{resolveDefaultsModeConfig:L,loadConfig:O,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:H,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:$,NODE_REGION_CONFIG_OPTIONS:G,NODE_REGION_CONFIG_FILE_OPTIONS:V,resolveRegionConfig:Y}=i(7291);const{BinaryDecisionDiagram:J,EndpointCache:W,decideEndpoint:q,customEndpointFunctions:j,resolveParams:z,resolveEndpointConfig:K,getEndpointPlugin:Z}=i(2085);const{parseUrl:X,getHttpHandlerExtensionConfiguration:ee,resolveHttpHandlerRuntimeConfig:te,getContentLengthPlugin:re}=i(3422);const{DEFAULT_RETRY_MODE:ne,NODE_RETRY_MODE_CONFIG_OPTIONS:se,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:oe,resolveRetryConfig:ie,getRetryPlugin:ae}=i(3609);const{TypeRegistry:Ae,getSchemaSerdePlugin:ce}=i(6890);const{resolveAwsSdkSigV4Config:le,resolveAwsSdkSigV4AConfig:ue,AwsSdkSigV4Signer:de,AwsSdkSigV4ASigner:he,NODE_SIGV4A_CONFIG_OPTIONS:fe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ge}=i(7523);const{SignatureV4MultiRegion:pe}=i(5785);const{toUtf8:me,fromUtf8:Ee,toBase64:Ce,fromBase64:Ie,calculateBodyLength:ye}=i(2430);const{streamCollector:Be,NodeHttpHandler:Qe}=i(1279);const{AwsQueryProtocol:we}=i(7288);const{Sha256:Se}=i(9542);const be="ref";const Re=-1,ve=true,ke="isSet",De="PartitionResult",Te="booleanEquals",Ne="stringEquals",Me="getAttr",Fe="us-east-1",xe="sigv4",Ue="sts",Pe="https://sts.{Region}.{PartitionResult#dnsSuffix}",Le={[be]:"Endpoint"},_e={[be]:"Region"},Oe={[be]:De},He={},$e=[_e];const Ge={conditions:[[ke,[Le]],[ke,$e],["aws.partition",$e,De],[Te,[{[be]:"UseFIPS"},ve]],[Te,[{[be]:"UseDualStack"},ve]],[Ne,[_e,"aws-global"]],[Te,[{[be]:"UseGlobalEndpoint"},ve]],[Ne,[_e,"eu-central-1"]],[Te,[{fn:Me,argv:[Oe,"supportsDualStack"]},ve]],[Te,[{fn:Me,argv:[Oe,"supportsFIPS"]},ve]],[Ne,[_e,"ap-south-1"]],[Ne,[_e,"eu-north-1"]],[Ne,[_e,"eu-west-1"]],[Ne,[_e,"eu-west-2"]],[Ne,[_e,"eu-west-3"]],[Ne,[_e,"sa-east-1"]],[Ne,[_e,Fe]],[Ne,[_e,"us-east-2"]],[Ne,[_e,"us-west-2"]],[Ne,[_e,"us-west-1"]],[Ne,[_e,"ca-central-1"]],[Ne,[_e,"ap-southeast-1"]],[Ne,[_e,"ap-northeast-1"]],[Ne,[_e,"ap-southeast-2"]],[Ne,[{fn:Me,argv:[Oe,"name"]},"aws-us-gov"]]],results:[[Re],["https://sts.amazonaws.com",{authSchemes:[{name:xe,signingName:Ue,signingRegion:Fe}]}],[Pe,{authSchemes:[{name:xe,signingName:Ue,signingRegion:"{Region}"}]}],[Re,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Re,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Le,He],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",He],[Re,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",He],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",He],[Re,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",He],[Re,"DualStack is enabled but this partition does not support DualStack"],[Pe,He],[Re,"Invalid Configuration: Missing Region"]]};const Ve=2;const Ye=1e8;const Je=new Int32Array([-1,1,-1,0,30,3,1,4,Ye+14,2,5,Ye+14,3,25,6,4,24,7,5,Ye+1,8,6,9,Ye+13,7,Ye+1,10,10,Ye+1,11,11,Ye+1,12,12,Ye+1,13,13,Ye+1,14,14,Ye+1,15,15,Ye+1,16,16,Ye+1,17,17,Ye+1,18,18,Ye+1,19,19,Ye+1,20,20,Ye+1,21,21,Ye+1,22,22,Ye+1,23,23,Ye+1,Ye+2,8,Ye+11,Ye+12,4,28,26,9,27,Ye+10,24,Ye+8,Ye+9,8,29,Ye+7,9,Ye+6,Ye+7,3,Ye+3,31,4,Ye+4,Ye+5]);const We=J.from(Je,Ve,Ge.conditions,Ge.results);const qe=new W({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(t,n={})=>qe.get(t,()=>q(We,{endpointParams:t,logger:n.logger}));j.aws=a;const createEndpointRuleSetHttpAuthSchemeParametersProvider=t=>async(n,i,a)=>{if(!a){throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`")}const A=await t(n,i,a);const c=R(i)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c){throw new Error(`getEndpointParameterInstructions() is not defined on '${i.commandName}'`)}const l=await z(a,{getEndpointParameterInstructions:c},n);return Object.assign(A,l)};const _defaultSTSHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:R(n).operation,region:await b(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const je=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createAwsAuthSigv4aHttpAuthOption(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const createEndpointRuleSetHttpAuthSchemeProvider=(t,n,i)=>{const endpointRuleSetHttpAuthSchemeProvider=a=>{const A=t(a);const c=A.properties?.authSchemes;if(!c){return n(a)}const l=[];for(const t of c){const{name:n,properties:A={},...d}=t;const h=n.toLowerCase();if(n!==h){console.warn(`HttpAuthScheme has been normalized with lowercasing: '${n}' to '${h}'`)}let f;if(h==="sigv4a"){f="aws.auth#sigv4a";const t=c.find(t=>{const n=t.name.toLowerCase();return n!=="sigv4a"&&n.startsWith("sigv4")});if(pe.sigv4aDependency()==="none"&&t){continue}}else if(h.startsWith("sigv4")){f="aws.auth#sigv4"}else{throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${h}'`)}const g=i[f];if(!g){throw new Error(`Could not find HttpAuthOption create function for '${f}'`)}const p=g(a);p.schemeId=f;p.signingProperties={...p.signingProperties||{},...d,...A};l.push(p)}return l};return endpointRuleSetHttpAuthSchemeProvider};const _defaultSTSHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"AssumeRoleWithWebIdentity":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t));n.push(createAwsAuthSigv4aHttpAuthOption(t))}}return n};const ze=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultSTSHttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption,"smithy.api#noAuth":createSmithyApiNoAuthHttpAuthOption});const resolveHttpAuthSchemeConfig=t=>{const n=le(t);const i=ue(n);return Object.assign(i,{authSchemePreference:b(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,useGlobalEndpoint:t.useGlobalEndpoint??false,defaultSigningName:"sts"});const Ke={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ze="3.997.36";var Xe={version:Ze};class STSServiceException extends v{constructor(t){super(t);Object.setPrototypeOf(this,STSServiceException.prototype)}}class ExpiredTokenException extends STSServiceException{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends STSServiceException{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}const et="Arn";const tt="AccessKeyId";const rt="AssumeRole";const nt="AssumedRoleId";const st="AssumeRoleRequest";const ot="AssumeRoleResponse";const it="AssumedRoleUser";const at="AssumeRoleWithWebIdentity";const At="AssumeRoleWithWebIdentityRequest";const ct="AssumeRoleWithWebIdentityResponse";const lt="Audience";const ut="Credentials";const dt="ContextAssertion";const ht="DurationSeconds";const ft="Expiration";const gt="ExternalId";const pt="ExpiredTokenException";const mt="IDPCommunicationErrorException";const Et="IDPRejectedClaimException";const Ct="InvalidIdentityTokenException";const It="Key";const yt="MalformedPolicyDocumentException";const Bt="Policy";const Qt="PolicyArns";const wt="ProviderArn";const St="ProvidedContexts";const bt="ProvidedContextsListType";const Rt="ProvidedContext";const vt="PolicyDescriptorType";const kt="ProviderId";const Dt="PackedPolicySize";const Tt="PackedPolicyTooLargeException";const Nt="Provider";const Mt="RoleArn";const Ft="RegionDisabledException";const xt="RoleSessionName";const Ut="SecretAccessKey";const Pt="SubjectFromWebIdentityToken";const Lt="SourceIdentity";const _t="SerialNumber";const Ot="SessionToken";const Ht="Tags";const $t="TokenCode";const Gt="TransitiveTagKeys";const Vt="Tag";const Yt="Value";const Jt="WebIdentityToken";const Wt="arn";const qt="accessKeySecretType";const jt="awsQueryError";const zt="client";const Kt="clientTokenType";const Zt="error";const Xt="httpError";const er="message";const tr="policyDescriptorListType";const rr="smithy.ts.sdk.synthetic.com.amazonaws.sts";const nr="tagListType";const sr="com.amazonaws.sts";const ir=Ae.for(rr);var ar=[-3,rr,"STSServiceException",0,[],[]];ir.registerError(ar,STSServiceException);const Ar=Ae.for(sr);var cr=[-3,sr,pt,{[jt]:[`ExpiredTokenException`,400],[Zt]:zt,[Xt]:400},[er],[0]];Ar.registerError(cr,ExpiredTokenException);var lr=[-3,sr,mt,{[jt]:[`IDPCommunicationError`,400],[Zt]:zt,[Xt]:400},[er],[0]];Ar.registerError(lr,IDPCommunicationErrorException);var ur=[-3,sr,Et,{[jt]:[`IDPRejectedClaim`,403],[Zt]:zt,[Xt]:403},[er],[0]];Ar.registerError(ur,IDPRejectedClaimException);var dr=[-3,sr,Ct,{[jt]:[`InvalidIdentityToken`,400],[Zt]:zt,[Xt]:400},[er],[0]];Ar.registerError(dr,InvalidIdentityTokenException);var hr=[-3,sr,yt,{[jt]:[`MalformedPolicyDocument`,400],[Zt]:zt,[Xt]:400},[er],[0]];Ar.registerError(hr,MalformedPolicyDocumentException);var fr=[-3,sr,Tt,{[jt]:[`PackedPolicyTooLarge`,400],[Zt]:zt,[Xt]:400},[er],[0]];Ar.registerError(fr,PackedPolicyTooLargeException);var gr=[-3,sr,Ft,{[jt]:[`RegionDisabledException`,403],[Zt]:zt,[Xt]:403},[er],[0]];Ar.registerError(gr,RegionDisabledException);const pr=[ir,Ar];var mr=[0,sr,qt,8,0];var Er=[0,sr,Kt,8,0];var Cr=[3,sr,it,0,[nt,et],[0,0],2];var Ir=[3,sr,st,0,[Mt,xt,Qt,Bt,ht,Ht,Gt,gt,_t,$t,Lt,St],[0,0,()=>vr,0,1,()=>Dr,64|0,0,0,0,0,()=>kr],2];var yr=[3,sr,ot,0,[ut,it,Dt,Lt],[[()=>wr,0],()=>Cr,1,0]];var Br=[3,sr,At,0,[Mt,xt,Jt,kt,Qt,Bt,ht],[0,0,[()=>Er,0],0,()=>vr,0,1],3];var Qr=[3,sr,ct,0,[ut,Pt,it,Dt,Nt,lt,Lt],[[()=>wr,0],0,()=>Cr,1,0,0,0]];var wr=[3,sr,ut,0,[tt,Ut,Ot,ft],[0,[()=>mr,0],0,4],4];var Sr=[3,sr,vt,0,[Wt],[0]];var br=[3,sr,Rt,0,[wt,dt],[0,0]];var Rr=[3,sr,Vt,0,[It,Yt],[0,0],2];var vr=[1,sr,tr,0,()=>Sr];var kr=[1,sr,bt,0,()=>br];var Dr=[1,sr,nr,0,()=>Rr];var Tr=[9,sr,rt,0,()=>Ir,()=>yr];var Nr=[9,sr,at,0,()=>Br,()=>Qr];const getRuntimeConfig$1=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Ie,base64Encoder:t?.base64Encoder??Ce,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??ze,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new de},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new he},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new B}],logger:t?.logger??new k,protocol:t?.protocol??we,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:pr,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Se,signerConstructor:t?.signerConstructor??pe,urlParser:t?.urlParser??X,utf8Decoder:t?.utf8Decoder??Ee,utf8Encoder:t?.utf8Encoder??me});const getRuntimeConfig=t=>{D(process.version);const n=L(t);const defaultConfigProvider=()=>n().then(T);const i=getRuntimeConfig$1(t);A(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??O(ge,a),bodyLengthChecker:t?.bodyLengthChecker??ye,defaultUserAgentProvider:t?.defaultUserAgentProvider??c({serviceId:i.serviceId,clientVersion:Xe.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n=>n.getIdentityProvider("aws.auth#sigv4")||(async n=>await t.credentialDefaultProvider(n?.__config||{})()),signer:new de},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new he},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new B}],maxAttempts:t?.maxAttempts??O(oe,t),region:t?.region??O(G,{...V,...a}),requestHandler:Qe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??O({...se,default:async()=>(await defaultConfigProvider()).retryMode||ne},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??O(fe,a),streamCollector:t?.streamCollector??Be,useDualstackEndpoint:t?.useDualstackEndpoint??O($,a),useFipsEndpoint:t?.useFipsEndpoint??O(H,a),userAgentAppId:t?.userAgentAppId??O(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),N(t),ee(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),M(i),te(i),resolveHttpAuthRuntimeConfig(i))};class STSClient extends F{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const A=ie(a);const c=Y(A);const l=g(c);const d=K(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ce(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(ae(this.config));this.middlewareStack.use(re(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(Q(this.config,{httpAuthSchemeParametersProvider:je,identityProviderConfigProvider:async t=>new w({"aws.auth#sigv4":t.credentials,"aws.auth#sigv4a":t.credentials})}));this.middlewareStack.use(S(this.config))}destroy(){super.destroy()}}const Mr=x(Ke,"AWSSecurityTokenServiceV20110615","STSClient",Z);const Fr={};const _mw0=(t,n,i,a)=>[];class AssumeRoleCommand extends(Mr(Fr,_mw0,"AssumeRole",Tr)){}class AssumeRoleWithWebIdentityCommand extends(Mr(Fr,_mw0,"AssumeRoleWithWebIdentity",Nr)){}const xr={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand};class STS extends STSClient{}U(xr,STS);const getAccountIdFromAssumedRoleUser=t=>{if(typeof t?.Arn==="string"){const n=t.Arn.split(":");if(n.length>4&&n[4]!==""){return n[4]}}return undefined};const resolveRegion=async(t,n,i,a={})=>{const A=typeof t==="function"?await t():t;const c=typeof n==="function"?await n():n;let l="";const d=A??c??(l=await y(a)());i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${A} (credential provider clientConfig)`,`${c} (contextual client)`,`${l} (STS default: AWS_REGION, profile region, or us-east-1)`);return d};const getDefaultRoleAssumer$1=(t,n)=>{let i;let a;return async(A,c)=>{a=A;if(!i){const{logger:A=t?.parentClientConfig?.logger,profile:c=t?.parentClientConfig?.profile,region:l,requestHandler:d=t?.parentClientConfig?.requestHandler,credentialProviderLogger:h,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t;const g=await resolveRegion(l,t?.parentClientConfig?.region,h,{logger:A,profile:c});const p=!isH2(d);i=new n({...t,userAgentAppId:f,profile:c,credentialDefaultProvider:()=>async()=>a,region:g,requestHandler:p?d:undefined,logger:A})}const{Credentials:l,AssumedRoleUser:d}=await i.send(new AssumeRoleCommand(c));if(!l||!l.AccessKeyId||!l.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${c.RoleArn}`)}const h=getAccountIdFromAssumedRoleUser(d);const f={accessKeyId:l.AccessKeyId,secretAccessKey:l.SecretAccessKey,sessionToken:l.SessionToken,expiration:l.Expiration,...l.CredentialScope&&{credentialScope:l.CredentialScope},...h&&{accountId:h}};I(f,"CREDENTIALS_STS_ASSUME_ROLE","i");return f}};const getDefaultRoleAssumerWithWebIdentity$1=(t,n)=>{let i;return async a=>{if(!i){const{logger:a=t?.parentClientConfig?.logger,profile:A=t?.parentClientConfig?.profile,region:c,requestHandler:l=t?.parentClientConfig?.requestHandler,credentialProviderLogger:d,userAgentAppId:h=t?.parentClientConfig?.userAgentAppId}=t;const f=await resolveRegion(c,t?.parentClientConfig?.region,d,{logger:a,profile:A});const g=!isH2(l);i=new n({...t,userAgentAppId:h,profile:A,region:f,requestHandler:g?l:undefined,logger:a})}const{Credentials:A,AssumedRoleUser:c}=await i.send(new AssumeRoleWithWebIdentityCommand(a));if(!A||!A.AccessKeyId||!A.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${a.RoleArn}`)}const l=getAccountIdFromAssumedRoleUser(c);const d={accessKeyId:A.AccessKeyId,secretAccessKey:A.SecretAccessKey,sessionToken:A.SessionToken,expiration:A.Expiration,...A.CredentialScope&&{credentialScope:A.CredentialScope},...l&&{accountId:l}};if(l){I(d,"RESOLVED_ACCOUNT_ID","T")}I(d,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return d}};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(t,n)=>{if(!n)return t;else return class CustomizableSTSClient extends t{constructor(t){super(t);for(const t of n){this.middlewareStack.use(t)}}}};const getDefaultRoleAssumer=(t={},n)=>getDefaultRoleAssumer$1(t,getCustomizableStsClientCtor(STSClient,n));const getDefaultRoleAssumerWithWebIdentity=(t={},n)=>getDefaultRoleAssumerWithWebIdentity$1(t,getCustomizableStsClientCtor(STSClient,n));const decorateDefaultCredentialProvider=t=>n=>t({roleAssumer:getDefaultRoleAssumer(n),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(n),...n});n.AssumeRole$=Tr;n.AssumeRoleCommand=AssumeRoleCommand;n.AssumeRoleRequest$=Ir;n.AssumeRoleResponse$=yr;n.AssumeRoleWithWebIdentity$=Nr;n.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand;n.AssumeRoleWithWebIdentityRequest$=Br;n.AssumeRoleWithWebIdentityResponse$=Qr;n.AssumedRoleUser$=Cr;n.Credentials$=wr;n.ExpiredTokenException=ExpiredTokenException;n.ExpiredTokenException$=cr;n.IDPCommunicationErrorException=IDPCommunicationErrorException;n.IDPCommunicationErrorException$=lr;n.IDPRejectedClaimException=IDPRejectedClaimException;n.IDPRejectedClaimException$=ur;n.InvalidIdentityTokenException=InvalidIdentityTokenException;n.InvalidIdentityTokenException$=dr;n.MalformedPolicyDocumentException=MalformedPolicyDocumentException;n.MalformedPolicyDocumentException$=hr;n.PackedPolicyTooLargeException=PackedPolicyTooLargeException;n.PackedPolicyTooLargeException$=fr;n.PolicyDescriptorType$=Sr;n.ProvidedContext$=br;n.RegionDisabledException=RegionDisabledException;n.RegionDisabledException$=gr;n.STS=STS;n.STSClient=STSClient;n.STSServiceException=STSServiceException;n.STSServiceException$=ar;n.Tag$=Rr;n.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider;n.errorTypeRegistries=pr;n.getDefaultRoleAssumer=getDefaultRoleAssumer;n.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity},5785:(t,n,i)=>{const{SignatureV4:a,signatureV4aContainer:A}=i(5118);const c={CrtSignerV4:null};const l="X-Amz-S3session-Token";const d=l.toLowerCase();class SignatureV4SignWithCredentials extends a{async signWithCredentials(t,n,i){const a=getCredentialsWithoutSessionToken(n);t.headers[d]=n.sessionToken;const A=this;setSingleOverride(A,a);return A.signRequest(t,i??{})}async presignWithCredentials(t,n,i){const a=getCredentialsWithoutSessionToken(n);delete t.headers[d];t.headers[l]=n.sessionToken;t.query=t.query??{};t.query[l]=n.sessionToken;const A=this;setSingleOverride(A,a);return this.presign(t,i)}}function getCredentialsWithoutSessionToken(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function setSingleOverride(t,n){const i=t.credentialProvider;t.credentialProvider=()=>{t.credentialProvider=i;return Promise.resolve(n)}}class SignatureV4MultiRegion{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof c.CrtSignerV4==="function"){return"crt"}else if(typeof A.SignatureV4a==="function"){return"js"}return"none"}constructor(t){this.sigv4Signer=new SignatureV4SignWithCredentials(t);this.signerOptions=t}async sign(t,n={}){if(n.signingRegion==="*"){return this.getSigv4aSigner().sign(t,n)}return this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,i={}){if(i.signingRegion==="*"){const a=this.getSigv4aSigner();const A=c.CrtSignerV4;if(A&&a instanceof A){return a.signWithCredentials(t,n,i)}else{throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. `+`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. `+`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] `+`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. `+`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}}return this.sigv4Signer.signWithCredentials(t,n,i)}async presign(t,n={}){if(n.signingRegion==="*"){const i=this.getSigv4aSigner();const a=c.CrtSignerV4;if(a&&i instanceof a){return i.presign(t,n)}else{throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. `+`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. `+`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] `+`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. `+`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}}return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,i={}){if(i.signingRegion==="*"){throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].")}return this.sigv4Signer.presignWithCredentials(t,n,i)}getSigv4aSigner(){if(!this.sigv4aSigner){const t=c.CrtSignerV4;const n=A.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!t&&!n){throw new Error("Neither CRT nor JS SigV4a implementation is available. "+"Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. "+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}if(t&&typeof t==="function"){this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1})}else if(n&&typeof n==="function"){this.sigv4aSigner=new n({...this.signerOptions})}else{throw new Error("Available SigV4a implementation is not a valid constructor. "+"Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a."+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}}else{if(!n||typeof n!=="function"){throw new Error("JS SigV4a implementation is not available or not a valid constructor. "+"Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. "+"You must also register the package by calling [require('@aws-sdk/signature-v4a');] "+"or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. "+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a")}this.sigv4aSigner=new n({...this.signerOptions})}}return this.sigv4aSigner}}n.SignatureV4MultiRegion=SignatureV4MultiRegion;n.SignatureV4SignWithCredentials=SignatureV4SignWithCredentials;n.signatureV4CrtContainer=c},5433:(t,n,i)=>{const{setTokenFeature:a}=i(5152);const{getBearerTokenEnvKey:A}=i(7523);const{TokenProviderError:c,getSSOTokenFilepath:l,parseKnownFiles:d,getProfileName:h,loadSsoSessionData:f,getSSOTokenFromFile:g,memoize:p,chain:m}=i(7291);const{promises:E}=i(3024);const fromEnvSigningName=({logger:t,signingName:n}={})=>async()=>{t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");if(!n){throw new c("Please pass 'signingName' to compute environment variable key",{logger:t})}const i=A(n);if(!(i in process.env)){throw new c(`Token not present in '${i}' environment variable`,{logger:t})}const l={token:process.env[i]};a(l,"BEARER_SERVICE_ENV_VARS","3");return l};const C=5*60*1e3;const I=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`;const getSsoOidcClient=async(t,n={},a)=>{const{SSOOIDCClient:A}=i(9443);const coalesce=t=>n.clientConfig?.[t]??n.parentClientConfig?.[t]??a?.[t];const c=new A(Object.assign({},n.clientConfig??{},{region:t??n.clientConfig?.region,logger:coalesce("logger"),userAgentAppId:coalesce("userAgentAppId")}));return c};const getNewSsoOidcToken=async(t,n,a={},A)=>{const{CreateTokenCommand:c}=i(9443);const l=await getSsoOidcClient(n,a,A);return l.send(new c({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))};const validateTokenExpiry=t=>{if(t.expiration&&t.expiration.getTime(){if(typeof n==="undefined"){throw new c(`Value not present for '${t}' in SSO Token${i?". Cannot refresh":""}. ${I}`,false)}};const{writeFile:y}=E;const writeSSOTokenToFile=(t,n)=>{const i=l(t);const a=JSON.stringify(n,null,2);return y(i,a)};const B=new Date(0);const fromSso=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");const i=await d(t);const a=h({profile:t.profile??n?.profile});const A=i[a];if(!A){throw new c(`Profile '${a}' could not be found in shared credentials file.`,false)}else if(!A["sso_session"]){throw new c(`Profile '${a}' is missing required property 'sso_session'.`)}const l=A["sso_session"];const p=await f(t);const m=p[l];if(!m){throw new c(`Sso session '${l}' could not be found in shared credentials file.`,false)}for(const t of["sso_start_url","sso_region"]){if(!m[t]){throw new c(`Sso session '${l}' is missing required property '${t}'.`,false)}}m["sso_start_url"];const E=m["sso_region"];let y;try{y=await g(l)}catch(t){throw new c(`The SSO session token associated with profile=${a} was not found or is invalid. ${I}`,false)}validateTokenKey("accessToken",y.accessToken);validateTokenKey("expiresAt",y.expiresAt);const{accessToken:Q,expiresAt:w}=y;const S={token:Q,expiration:new Date(w)};if(S.expiration.getTime()-Date.now()>C){return S}if(Date.now()-B.getTime()<30*1e3){validateTokenExpiry(S);return S}validateTokenKey("clientId",y.clientId,true);validateTokenKey("clientSecret",y.clientSecret,true);validateTokenKey("refreshToken",y.refreshToken,true);try{B.setTime(Date.now());const i=await getNewSsoOidcToken(y,E,t,n);validateTokenKey("accessToken",i.accessToken);validateTokenKey("expiresIn",i.expiresIn);const a=new Date(Date.now()+i.expiresIn*1e3);try{await writeSSOTokenToFile(l,{...y,accessToken:i.accessToken,expiresAt:a.toISOString(),refreshToken:i.refreshToken})}catch(t){}return{token:i.accessToken,expiration:a}}catch(t){validateTokenExpiry(S);return S}};const fromStatic=({token:t,logger:n})=>async()=>{n?.debug("@aws-sdk/token-providers - fromStatic");if(!t||!t.token){throw new c(`Please pass a valid token to fromStatic`,false)}return t};const nodeProvider=(t={})=>p(m(fromSso(t),async()=>{throw new c("Could not load token from any providers",false)}),t=>t.expiration!==undefined&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==undefined);n.fromEnvSigningName=fromEnvSigningName;n.fromSso=fromSso;n.fromStatic=fromStatic;n.nodeProvider=nodeProvider},4274:(t,n)=>{const i=/[&<>"]/g;const a={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(t){return t.replace(i,t=>a[t])}const A=/[&"'<>\r\n\u0085\u2028]/g;const c={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","…":"…","\u2028":"
"};function escapeElement(t){return t.replace(A,t=>c[t])}class XmlText{value;constructor(t){this.value=t}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(t,n,i){const a=new XmlNode(t);if(n!==undefined){a.addChildNode(new XmlText(n))}if(i!==undefined){a.withName(i)}return a}constructor(t,n=[]){this.name=t;this.children=n}withName(t){this.name=t;return this}addAttribute(t,n){this.attributes[t]=n;return this}addChildNode(t){this.children.push(t);return this}removeAttribute(t){delete this.attributes[t];return this}n(t){this.name=t;return this}c(t){this.children.push(t);return this}a(t,n){if(n!=null){this.attributes[t]=n}return this}cc(t,n,i=n){if(t[n]!=null){const a=XmlNode.of(n,t[n]).withName(i);this.c(a)}}l(t,n,i,a){if(t[n]!=null){const t=a();t.map(t=>{t.withName(i);this.c(t)})}}lc(t,n,i,a){if(t[n]!=null){const t=a();const n=new XmlNode(i);t.map(t=>{n.c(t)});this.c(n)}}toString(){const t=Boolean(this.children.length);let n=`<${this.name}`;const i=this.attributes;for(const t of Object.keys(i)){const a=i[t];if(a!=null){n+=` ${t}="${escapeAttribute(""+a)}"`}}return n+=!t?"/>":`>${this.children.map(t=>t.toString()).join("")}`}}function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}function parseXML(t){const n=new AwsXmlParser(t);return n.parse()}class AwsXmlParser{x;i=0;z;constructor(t){this.x=t;this.x=t.replace(/\r\n?/g,"\n");this.z=this.x.length}parse(){const t=this;const{z:n}=t;while(t.i=n){break}if(t.isNext("");t.trim()}else if(t.isNext("\x3c!--")){t.readTo("--\x3e");t.trim()}else if(t.isNext("/".includes(t.x[t.i])){n+=t.x[t.i++]}let i=false;const a={};while(t.i/".includes(t.x[t.i])){break}let n="";while(t.i/?".includes(t.x[t.i])){n+=t.x[t.i++]}t.trim();if(t.x[t.i]!=="="){break}++t.i;t.trim();if(n==="__proto__"){writeKey(a)}a[n]=t.readAttrValue();i=true}if(t.i>=t.z){throw new Error("@aws-sdk XML parse error: unexpected end of input.")}if(t.x[t.i]==="/"){++t.i;if(t.i>=t.z||t.x[t.i]!==">"){throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.")}++t.i;return{tag:n,value:i?a:""}}if(t.x[t.i]!==">"){throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.")}++t.i;const A=[];const c=[];let l=false;while(t.i"))}else if(t.isNext("")}else{l=true;c.push(t.parseTag())}}else{let n="";while(t.i.`)}t.i+=2;const d=t.readTo(">").trim();if(d!==n){throw new Error(`@aws-sdk XML parse error: mismatched tags <${n}> and .`)}if(!i&&A.length===0&&!l){return{tag:n,value:""}}if(!i&&!l){const t=A.length===1?A[0]:A.join("");if(t.trim()===""&&t.includes("\n")){return{tag:n,value:""}}return{tag:n,value:t}}const h={};for(const t of A){if(t.trim()===""&&t.includes("\n")){continue}h["#text"]="#text"in h?h["#text"]+t:t}for(const t of c){if(t.tag==="__proto__"){writeKey(h)}if(t.tag in h){if(Array.isArray(h[t.tag])){h[t.tag].push(t.value)}else{h[t.tag]=[h[t.tag],t.value]}}else{h[t.tag]=t.value}}for(const[t,n]of Object.entries(a)){if(t==="__proto__"){writeKey(h)}h[t]=n}return{tag:n,value:h}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){const t=this;t.i+=9;let n=0;while(t.i"&&n===0){++t.i;return}++t.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(t){return t.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(t,n,i,a)=>{if(n){return String.fromCharCode(parseInt(n,16))}if(i){return String.fromCharCode(parseInt(i,10))}return AwsXmlParser.ENTITIES[a]??""})}}n.XmlNode=XmlNode;n.XmlText=XmlText;n.parseXML=parseXML},9320:(t,n,i)=>{const a={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")};const A=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!A){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=a;isProtectedKey(t){return Object.values(a).includes(t)}getRequestId(){return this.get(a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(a.X_RAY_TRACE_ID)}getTenantId(){return this.get(a.TENANT_ID)}getTraceparent(){return this.get(a.TRACEPARENT)}getTracestate(){return this.get(a.TRACESTATE)}getBaggage(){return this.get(a.BAGGAGE)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(t){return this.currentContext?.[t]}set(t,n){if(this.isProtectedKey(t)){throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`)}this.currentContext=this.currentContext||{};this.currentContext[t]=n}run(t,n){this.currentContext=t;return n()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const t=new InvokeStoreMulti;const n=await Promise.resolve().then(i.t.bind(i,6698,23));t.als=new n.AsyncLocalStorage;return t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(t){return this.als.getStore()?.[t]}set(t,n){if(this.isProtectedKey(t)){throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`)}const i=this.als.getStore();if(!i){throw new Error("No context available")}i[t]=n}run(t,n){return this.als.run(t,n)}}n.InvokeStore=void 0;(function(t){let n=null;async function getInstanceAsync(t){if(!n){n=(async()=>{const n=t===true||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const i=n?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!A&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!A&&globalThis.awslambda){globalThis.awslambda.InvokeStore=i;return i}else{return i}})()}return n}t.getInstanceAsync=getInstanceAsync;t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{n=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(n.InvokeStore||(n.InvokeStore={}));n.InvokeStoreBase=InvokeStoreBase},402:(t,n,i)=>{const{getSmithyContext:a}=i(4534);n.getSmithyContext=a;const{HttpRequest:A}=i(3422);const{requestBuilder:c}=i(3422);n.requestBuilder=c;const{HttpApiKeyAuthLocation:l}=i(690);const resolveAuthOptions=(t,n)=>{if(!n||n.length===0){return t}const i=[];for(const a of n){for(const n of t){const t=n.schemeId.split("#")[1];if(t===a){i.push(n)}}}for(const n of t){if(!i.find(({schemeId:t})=>t===n.schemeId)){i.push(n)}}return i};function convertHttpAuthSchemesToMap(t){const n=new Map;for(const i of t){n.set(i.schemeId,i)}return n}const httpAuthSchemeMiddleware=(t,n)=>(i,A)=>async c=>{const l=t.httpAuthSchemeProvider(await n.httpAuthSchemeParametersProvider(t,A,c.input));const d=t.authSchemePreference?await t.authSchemePreference():[];const h=resolveAuthOptions(l,d);const f=convertHttpAuthSchemesToMap(t.httpAuthSchemes);const g=a(A);const p=[];for(const i of h){const a=f.get(i.schemeId);if(!a){p.push(`HttpAuthScheme \`${i.schemeId}\` was not enabled for this service.`);continue}const c=a.identityProvider(await n.identityProviderConfigProvider(t));if(!c){p.push(`HttpAuthScheme \`${i.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:l={},signingProperties:d={}}=i.propertiesExtractor?.(t,A)||{};i.identityProperties=Object.assign(i.identityProperties||{},l);i.signingProperties=Object.assign(i.signingProperties||{},d);g.selectedHttpAuthScheme={httpAuthOption:i,identity:await c(i.identityProperties),signer:a.signer};break}if(!g.selectedHttpAuthScheme){throw new Error(p.join("\n"))}return i(c)};const d={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i})=>({applyToStack:a=>{a.addRelativeTo(httpAuthSchemeMiddleware(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i}),d)}});const h={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i})=>({applyToStack:a=>{a.addRelativeTo(httpAuthSchemeMiddleware(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i}),h)}});const defaultErrorHandler=t=>t=>{throw t};const defaultSuccessHandler=(t,n)=>{};const httpSigningMiddleware=t=>(t,n)=>async i=>{if(!A.isInstance(i.request)){return t(i)}const c=a(n);const l=c.selectedHttpAuthScheme;if(!l){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:d={}},identity:h,signer:f}=l;const g=await t({...i,request:await f.sign(i.request,h,d)}).catch((f.errorHandler||defaultErrorHandler)(d));(f.successHandler||defaultSuccessHandler)(g.response,d);return g};const f={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=t=>({applyToStack:t=>{t.addRelativeTo(httpSigningMiddleware(),f)}});const normalizeProvider=t=>{if(typeof t==="function")return t;const n=Promise.resolve(t);return()=>n};const makePagedClientRequest=async(t,n,i,a=t=>t,...A)=>{let c=new t(i);c=a(c)??c;return await n.send(c,...A)};function createPaginator(t,n,i,a,A){return async function*paginateOperation(c,l,...d){const h=l;let f=c.startingToken??h[i];let g=true;let p;while(g){h[i]=f;if(A){h[A]=h[A]??c.pageSize}if(c.client instanceof t){p=await makePagedClientRequest(n,c.client,l,c.withCommand,...d)}else{throw new Error(`Invalid client, expected instance of ${t.name}`)}yield p;const m=f;f=get(p,a);g=!!(f&&(!c.stopOnSameToken||f!==m))}return undefined}}const get=(t,n)=>{let i=t;const a=n.split(".");for(const t of a){if(!i||typeof i!=="object"){return undefined}i=i[t]}return i};function setFeature(t,n,i){if(!t.__smithy_context){t.__smithy_context={features:{}}}else if(!t.__smithy_context.features){t.__smithy_context.features={}}t.__smithy_context.features[n]=i}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(t){for(const n in t){const i=t[n];if(i!==undefined){this.authSchemes.set(n,i)}}}getIdentityProvider(t){return this.authSchemes.get(t)}}class HttpApiKeyAuthSigner{async sign(t,n,i){if(!i){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!i.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!i.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!n.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const a=A.clone(t);if(i.in===l.QUERY){a.query[i.name]=n.apiKey}else if(i.in===l.HEADER){a.headers[i.name]=i.scheme?`${i.scheme} ${n.apiKey}`:n.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+i.in+"`")}return a}}class HttpBearerAuthSigner{async sign(t,n,i){const a=A.clone(t);if(!n.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}a.headers["Authorization"]=`Bearer ${n.token}`;return a}}class NoAuthSigner{async sign(t,n,i){return t}}const createIsIdentityExpiredFunction=t=>function isIdentityExpired(n){return doesIdentityRequireRefresh(n)&&n.expiration.getTime()-Date.now()t.expiration!==undefined;const memoizeIdentityProvider=(t,n,i)=>{if(t===undefined){return undefined}const a=typeof t!=="function"?async()=>Promise.resolve(t):t;let A;let c;let l;let d=false;const coalesceProvider=async t=>{if(!c){c=a(t)}try{A=await c;l=true;d=false}finally{c=undefined}return A};if(n===undefined){return async t=>{if(!l||t?.forceRefresh){A=await coalesceProvider(t)}return A}}return async t=>{if(!l||t?.forceRefresh){A=await coalesceProvider(t)}if(d){return A}if(!i(A)){d=true;return A}if(n(A)){await coalesceProvider(t);return A}return A}};n.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;n.EXPIRATION_MS=g;n.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;n.HttpBearerAuthSigner=HttpBearerAuthSigner;n.NoAuthSigner=NoAuthSigner;n.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;n.createPaginator=createPaginator;n.doesIdentityRequireRefresh=doesIdentityRequireRefresh;n.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;n.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;n.getHttpSigningPlugin=getHttpSigningPlugin;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=d;n.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;n.httpAuthSchemeMiddlewareOptions=h;n.httpSigningMiddleware=httpSigningMiddleware;n.httpSigningMiddlewareOptions=f;n.isIdentityExpired=p;n.memoizeIdentityProvider=memoizeIdentityProvider;n.normalizeProvider=normalizeProvider;n.setFeature=setFeature},4645:(t,n,i)=>{const{nv:a,NumericValue:A,calculateBodyLength:c,generateIdempotencyToken:l,fromBase64:d,_parseEpochTimestamp:h}=i(2430);const{HttpRequest:f,collectBody:g,SerdeContext:p,RpcProtocol:m}=i(3422);const{NormalizedSchema:E,deref:C,TypeRegistry:I}=i(6890);const{getSmithyContext:y}=i(4534);const B=0;const Q=1;const w=2;const S=3;const b=4;const R=5;const v=6;const k=7;const D=20;const T=21;const N=22;const M=23;const F=24;const x=25;const U=26;const P=27;const L=31;function alloc(t){return typeof Buffer!=="undefined"?Buffer.alloc(t):new Uint8Array(t)}const O=Symbol("@smithy/core/cbor::tagSymbol");function tag(t){t[O]=true;return t}const H=typeof Buffer!=="undefined";const $=new TextDecoder;let G=alloc(0);let V=false;let Y=new DataView(G.buffer,G.byteOffset,G.byteLength);let J=0;function setPayload(t){G=t;V=H&&G instanceof Buffer;Y=new DataView(G.buffer,G.byteOffset,G.byteLength)}function decode(t,n){if(t>=n){throw new Error("unexpected end of (decode) payload.")}const i=(G[t]&224)>>5;const a=G[t]&31;if(a===L&&2<=i&&i<=5){return decodeIndefinite(t,n)}switch(i){case B:case Q:case v:{let A;let c;if(a<24){A=a;c=1}else{switch(a){case F:if(n-t<2){overflow(1)}A=G[t+1];c=2;break;case x:if(n-t<3){overflow(2)}A=Y.getUint16(t+1);c=3;break;case U:if(n-t<5){overflow(4)}A=Y.getUint32(t+1);c=5;break;case P:if(n-t<9){overflow(8)}{const n=Y.getUint32(t+1);if(n<2097152){A=n*4294967296+Y.getUint32(t+5)}else{A=Y.getBigUint64(t+1)}}c=9;break;default:unexpectedMinor(a)}}if(i===B){J=c;return castBigInt(A)}else if(i===Q){let t;if(typeof A==="bigint"){t=BigInt(-1)-A}else{t=-1-A}J=c;return castBigInt(t)}else{return decodeTagValue(t,n,a,A,c)}}case S:return decodeUtf8String(t,n);case R:return decodeMap(t,n);case b:return decodeList(t,n);case w:return decodeUnstructuredByteString(t,n);default:return decodeSpecial(t,n)}}function decodeIndefinite(t,n){const i=(G[t]&224)>>5;const a=G[t]&31;if(a===L){switch(i){case S:return decodeUtf8StringIndefinite(t,n);case R:return decodeMapIndefinite(t,n);case b:return decodeListIndefinite(t,n);case w:return decodeUnstructuredByteStringIndefinite(t,n)}}}function bytesToFloat16(t,n){const i=t>>7;const a=(t&124)>>2;const A=(t&3)<<8|n;const c=i===0?1:-1;if(a===0){if(A===0){return 0}return c*(Math.pow(2,1-15)*(A/1024))}else if(a===31){if(A===0){return c*Infinity}return NaN}return c*(Math.pow(2,a-15)*(1+A/1024))}function decodeMap(t,n){const i=decodeCount(t,n);if(i<25){return decodeMapSmall(t,n,i)}return decodeMapLarge(t,n,i)}function decodeMapLarge(t,n,i){const a=J;t+=a;const A=t;const c=Object.create(null);for(let a=0;a>5;if(a===S){c[i]=decodeUtf8String(t,n)}else{c[i]=decode(t,n)}t+=J}J=a+(t-A);Object.setPrototypeOf(c,Object.prototype);return c}function decodeMapSmall(t,n,i){const a=J;t+=a;const A=t;const c={};for(let a=0;a>>0&2047;const A=W[a];if(A!==undefined){if(A.length===n){let i=true;for(let a=0;a>5;const c=G[t]&31;if(A!==S){unexpectedMajorInIndefiniteString(A)}if(c===L){throw new Error("nested indefinite string.")}const l=decodeUnstructuredByteString(t,n);const d=J;t+=d;for(let t=0;t>5;const c=G[t]&31;if(A!==w){unexpectedMajorInIndefiniteString(A)}if(c===L){throw new Error("nested indefinite string.")}const l=decodeUnstructuredByteString(t,n);const d=J;t+=d;for(let t=0;t23){encodeHeader(S,Buffer.byteLength(t));ne+=te.write(t,ne)}else{encodeStringCached(t)}}else{const i=n*3;ensureSpace(i+9);const a=ne;const A=(new TextEncoder).encodeInto(t,te.subarray(ne+9));const c=A.written;let l;if(c<24){l=1}else if(c<256){l=2}else if(c<65536){l=3}else if(c<4294967296){l=5}else{l=9}if(l<9){te.copyWithin(a+l,a+9,a+9+c)}ne=a;encodeInteger(S,c);ne+=c}continue}if(te.byteLength-ne<9){ensureSpace(64)}if(typeof t==="number"){if(Number.isInteger(t)){const n=t>=0;const i=n?B:Q;const a=n?t:-t-1;if(a<24){te[ne++]=i<<5|a}else if(a<256){te[ne++]=i<<5|24;te[ne++]=a}else if(a<65536){te[ne++]=i<<5|x;te[ne++]=a>>8;te[ne++]=a&255}else if(a<4294967296){te[ne++]=i<<5|U;re.setUint32(ne,a);ne+=4}else{te[ne++]=i<<5|P;const t=a/4294967296|0;const n=a-t*4294967296|0;re.setUint32(ne,t);re.setUint32(ne+4,n);ne+=8}continue}te[ne++]=k<<5|P;re.setFloat64(ne,t);ne+=8;continue}else if(typeof t==="bigint"){const n=t>=0;const i=n?B:Q;const a=n?t:-t-BigInt(1);if(a=0){i[i.byteLength-c]=Number(A&BigInt(255));A>>=BigInt(8)}ensureSpace(i.byteLength*2+16);te[ne++]=n?194:195;encodeHeader(w,i.byteLength);te.set(i,ne);ne+=i.byteLength}continue}else if(t===null){te[ne++]=k<<5|N;continue}else if(typeof t==="boolean"){te[ne++]=k<<5|(t?T:D);continue}else if(typeof t==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(t)){encodeInteger(b,t.length);ensureSpace(t.length*9+64);for(let i=t.length-1;i>=0;--i){n.push(t[i])}continue}else if(typeof t.byteLength==="number"){ensureSpace(t.length*2+9);encodeInteger(w,t.length);te.set(t,ne);ne+=t.byteLength;continue}else if(typeof t==="object"){if(t instanceof A){const i=t.string.indexOf(".");const a=i===-1?0:i-t.string.length+1;const A=BigInt(t.string.replace(".",""));te[ne++]=196;encodeInteger(b,2);n.push(A);n.push(a);continue}if(t[O]){if("tag"in t&&"value"in t){n.push(t.value);encodeHeader(v,t.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(t))}}const i=Object.keys(t);const a=i.length;encodeInteger(R,a);for(let A=a-1;A>=0;--A){n.push(t[i[A]]);n.push(i[A])}continue}throw new Error(`data type ${t?.constructor?.name??typeof t} not compatible for encoding.`)}}function advanceEncodingEpoch(){Z=Z+1&65535;X=false}function toUint8Array(){const t=alloc(ne);t.set(te.subarray(0,ne),0);ne=0;return t}function resize(t){const n=te;te=alloc(t);if(n){if(n.copy){n.copy(te,0,0,n.byteLength)}else{te.set(n,0)}}re=new DataView(te.buffer,te.byteOffset,te.byteLength)}function encodeStringCached(t){const n=K.get(t);if(n!==undefined){te.set(n.bytes,ne);ne+=n.bytes.length;n.epoch=Z;return}const i=ne;const a=Buffer.byteLength(t);encodeInteger(S,a);ne+=te.write(t,ne);const A=Uint8Array.prototype.slice.call(te,i,ne);if(K.size>=2048){if(X){return}let t=0;for(const[n,i]of K){if(t>=1024){break}if(i.epoch!==Z){K.delete(n);t++}}if(t===0){X=true;return}}if(K.size<2048){K.set(t,{epoch:Z,bytes:A})}}function ensureSpace(t){const n=te.byteLength-ne;if(n>8;te[ne++]=n&255}else if(n<4294967296){te[ne++]=t<<5|U;re.setUint32(ne,n);ne+=4}else{te[ne++]=t<<5|P;const i=n/4294967296|0;const a=n-i*4294967296|0;re.setUint32(ne,i);re.setUint32(ne+4,a);ne+=8}}const se={deserialize(t){advanceDecodingEpoch();setPayload(t);return decode(0,t.length)},serialize(t){advanceEncodingEpoch();try{encode(t);return toUint8Array()}catch(t){toUint8Array();throw t}},resizeEncodingBuffer(t){resize(t)}};const parseCborBody=(t,n)=>g(t,n).then(async t=>{if(t.length){try{return se.deserialize(t)}catch(i){Object.defineProperty(i,"$responseBodyText",{value:n.utf8Encoder(t)});throw i}}return{}});const dateToTag=t=>tag({tag:1,value:t.getTime()/1e3});const parseCborErrorBody=async(t,n)=>{const i=await parseCborBody(t,n);i.message=i.message??i.Message;return i};const loadSmithyRpcV2CborErrorCode=(t,n)=>{const sanitizeErrorCode=t=>{let n=t;if(typeof n==="number"){n=n.toString()}if(n.indexOf(",")>=0){n=n.split(",")[0]}if(n.indexOf(":")>=0){n=n.split(":")[0]}if(n.indexOf("#")>=0){n=n.split("#")[1]}return n};if(n["__type"]!==undefined){return sanitizeErrorCode(n["__type"])}let i;for(const t in n){if(t.toLowerCase()==="code"){i=t;break}}if(i&&n[i]!==undefined){return sanitizeErrorCode(n[i])}};const checkCborResponse=t=>{if(String(t.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+t.statusCode)}};const buildHttpRpcRequest=async(t,n,i,a,A)=>{const l=await t.endpoint();const{hostname:d,protocol:h="https",port:g,path:p}=l;const m={protocol:h,hostname:d,port:g,method:"POST",path:p.endsWith("/")?p.slice(0,-1)+i:p+i,headers:{...n}};if(a!==undefined){m.hostname=a}if(l.headers){for(const t in l.headers){m.headers[t]=l.headers[t]}}if(A!==undefined){m.body=A;try{m.headers["content-length"]=String(c(A))}catch(t){}}return new f(m)};class CborShapeSerializer extends p{value;write(t,n){this.value=this.serialize(t,n)}serialize(t,n){const i=E.of(t);if(n==null){if(i.isIdempotencyToken()){return l()}return n}if(i.isBlobSchema()){if(typeof n==="string"){return(this.serdeContext?.base64Decoder??d)(n)}return n}if(i.isTimestampSchema()){if(typeof n==="number"||typeof n==="bigint"){return dateToTag(new Date(Number(n)/1e3|0))}return dateToTag(n)}if(typeof n==="function"||typeof n==="object"){const t=n;if(i.isListSchema()&&Array.isArray(t)){const n=!!i.getMergedTraits().sparse;const a=[];let A=0;for(const c of t){const t=this.serialize(i.getValueSchema(),c);if(t!=null||n){a[A++]=t}}return a}if(t instanceof Date){return dateToTag(t)}const a={};if(i.isMapSchema()){const n=!!i.getMergedTraits().sparse;for(const A in t){const c=this.serialize(i.getValueSchema(),t[A]);if(c!=null||n){a[A]=c}}}else if(i.isStructSchema()){for(const[n,A]of i.structIterator()){const i=this.serialize(A,t[n]);if(i!=null){a[n]=i}}const n=i.isUnionSchema();if(n&&Array.isArray(t.$unknown)){const[n,i]=t.$unknown;a[n]=i}else if(typeof t.__type==="string"){for(const n in t){if(!(n in a)){a[n]=this.serialize(15,t[n])}}}}else if(i.isDocumentSchema()){for(const n in t){a[n]=this.serialize(i.getValueSchema(),t[n])}}else if(i.isBigDecimalSchema()){return t}return a}return n}flush(){const t=se.serialize(this.value);this.value=undefined;return t}}class CborShapeDeserializer extends p{read(t,n){const i=se.deserialize(n);return this.readValue(t,i)}readValue(t,n){const i=E.of(t);if(i.isTimestampSchema()){if(typeof n==="number"){return h(n)}if(typeof n==="object"){if(n.tag===1&&"value"in n){return h(n.value)}}}if(i.isBlobSchema()){if(typeof n==="string"){return(this.serdeContext?.base64Decoder??d)(n)}return n}if(typeof n==="undefined"||typeof n==="boolean"||typeof n==="number"||typeof n==="string"||typeof n==="bigint"||typeof n==="symbol"){return n}else if(typeof n==="object"){if(n===null){return null}if("byteLength"in n){return n}if(n instanceof Date){return n}if(i.isDocumentSchema()){return n}if(i.isListSchema()){const t=[];const a=i.getValueSchema();for(const i of n){const n=this.readValue(a,i);t.push(n)}return t}const t={};if(i.isMapSchema()){const a=i.getValueSchema();for(const i in n){const A=this.readValue(a,n[i]);t[i]=A}}else if(i.isStructSchema()){const a=i.isUnionSchema();let A;if(a){A=new Set;for(const t in n){if(t!=="__type"){A.add(t)}}}for(const[c,l]of i.structIterator()){if(a){A.delete(c)}if(n[c]!=null){t[c]=this.readValue(l,n[c])}}if(a&&A?.size===1){let i=true;for(const n in t){i=false;break}if(i){const i=A.values().next().value;t.$unknown=[i,n[i]]}}else if(typeof n.__type==="string"){for(const i in n){if(!(i in t)){t[i]=n[i]}}}}else if(n instanceof A){return n}return t}else{return n}}}class CborCodec extends p{createSerializer(){const t=new CborShapeSerializer;t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new CborShapeDeserializer;t.setSerdeContext(this.serdeContext);return t}}class SmithyRpcV2CborProtocol extends m{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:t,errorTypeRegistries:n}){super({defaultNamespace:t,errorTypeRegistries:n})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);Object.assign(a.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(C(t.input)==="unit"){delete a.body;delete a.headers["content-type"]}else{if(!a.body){this.serializer.write(15,{});a.body=this.serializer.flush()}try{a.headers["content-length"]=String(a.body.byteLength)}catch(t){}}const{service:A,operation:c}=y(i);const l=`/service/${A}/operation/${c}`;if(a.path.endsWith("/")){a.path+=l.slice(1)}else{a.path+=l}return a}async deserializeResponse(t,n,i){return super.deserializeResponse(t,n,i)}async handleError(t,n,i,a,A){const c=loadSmithyRpcV2CborErrorCode(i,a)??"Unknown";const l={$metadata:A,$fault:i.statusCode<=500?"client":"server"};let d=this.options.defaultNamespace;if(c.includes("#")){[d]=c.split("#")}const h=this.compositeErrorRegistry;const f=I.for(d);h.copyFrom(f);let g;try{g=h.getSchema(c)}catch(t){if(a.Message){a.message=a.Message}const n=I.for("smithy.ts.sdk.synthetic."+d);h.copyFrom(n);const i=h.getBaseException();if(i){const t=h.getErrorCtor(i);throw Object.assign(new t({name:c}),l,a)}throw Object.assign(new Error(c),l,a)}const p=E.of(g);const m=h.getErrorCtor(g);const C=a.message??a.Message??"Unknown";const y=new m({});const B={};for(const[t,n]of p.structIterator()){B[t]=this.deserializer.readValue(n,a[t])}throw Object.assign(y,l,{$fault:p.getMergedTraits().error,message:C},B)}getDefaultContentType(){return"application/cbor"}}n.CborCodec=CborCodec;n.CborShapeDeserializer=CborShapeDeserializer;n.CborShapeSerializer=CborShapeSerializer;n.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;n.buildHttpRpcRequest=buildHttpRpcRequest;n.cbor=se;n.checkCborResponse=checkCborResponse;n.dateToTag=dateToTag;n.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;n.parseCborBody=parseCborBody;n.parseCborErrorBody=parseCborErrorBody;n.tag=tag;n.tagSymbol=O},9542:(t,n,i)=>{const{createReadStream:a}=i(3024);const{Writable:A}=i(7075);const{toUint8Array:c,concatBytes:l}=i(2430);const{createHash:d,createHmac:h}=i(7598);const f=i(8522);async function blobReader(t,n,i=1024*1024){const a=t.size;let A=0;while(A{i.update(t)});return i.digest()};class HashCalculator extends A{hash;constructor(t,n){super(n);this.hash=t}_write(t,n,i){try{this.hash.update(c(t))}catch(t){return i(t)}i()}}const fileStreamHasher=(t,n)=>new Promise((i,A)=>{if(!isReadStream(n)){A(new Error("Unable to calculate hash for non-file streams."));return}const c=a(n.path,{start:n.start,end:n.end});const l=new t;const d=new HashCalculator(l);c.pipe(d);c.on("error",t=>{d.end();A(t)});d.on("error",A);d.on("finish",function(){l.digest().then(i).catch(A)})});const isReadStream=t=>typeof t.path==="string";const readableStreamHasher=(t,n)=>{if(n.readableFlowing!==null){throw new Error("Unable to calculate hash for flowing readable stream")}const i=new t;const a=new HashCalculator(i);n.pipe(a);return new Promise((t,A)=>{n.on("error",t=>{a.end();A(t)});a.on("error",A);a.on("finish",()=>{i.digest().then(t).catch(A)})})};class Md5Js{digestLength=16;state=Uint32Array.from(p);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(t){const n=c(t);let i=0;let a=n.byteLength;this.bytesHashed+=a;while(a>0){this.writeBuffer.setUint8(this.bufferLength++,n[i++]);--a;if(this.bufferLength===64){compress(this.state,this.writeBuffer);this.bufferLength=0}}}async digest(){const t=Uint32Array.from(this.state);const n=new DataView(this.writeBuffer.buffer.slice(0));let i=this.bufferLength;const a=this.bytesHashed*8;n.setUint8(i++,128);if(this.bufferLength%64>=56){for(let t=i;t<64;++t){n.setUint8(t,0)}compress(t,n);i=0}for(let t=i;t<56;++t){n.setUint8(t,0)}n.setUint32(56,a>>>0,true);n.setUint32(60,Math.floor(a/2**32),true);compress(t,n);const A=new Uint8Array(16);const c=new DataView(A.buffer);for(let n=0;n<4;++n){c.setUint32(n*4,t[n],true)}return A}reset(){this.state.set(p);this.writeBuffer=new DataView(new ArrayBuffer(64));this.bufferLength=0;this.bytesHashed=0}}const p=[1732584193,4023233417,2562383102,271733878];const m=4294967295;const E=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21);const C=Array.from({length:64},(t,n)=>Math.abs(Math.sin(n+1))*2**32>>>0);function compress(t,n){let i=t[0],a=t[1],A=t[2],c=t[3];for(let t=0;t<64;++t){let l,d;if(t<16){l=a&A|~a&c;d=t}else if(t<32){l=c&a|A&~c;d=(5*t+1)%16}else if(t<48){l=a^A^c;d=(3*t+5)%16}else{l=A^(a|~c);d=7*t%16}const h=n.getUint32(d*4,true);const f=c;c=A;A=a;const g=E[(t>>4)*4+(t&3)];const p=(i+l&m)+(h+C[t]&m)&m;a=a+((p<>>32-g)>>>0)&m;i=f}t[0]=t[0]+i&m;t[1]=t[1]+a&m;t[2]=t[2]+A&m;t[3]=t[3]+c&m}const I=(()=>{try{d("md5");return true}catch{return false}})();const y=I?buildNativeClass$2():Md5Js;function buildNativeClass$2(){return class Md5Node{digestLength=16;hash=d("md5");update(t){this.hash.update(c(t))}async digest(){const t=this.hash.copy().digest();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=d("md5")}}}const B=new Uint32Array(256);for(let t=0;t<256;++t){let n=t;for(let t=0;t<8;++t){n=n&1?3988292384^n>>>1:n>>>1}B[t]=n>>>0}const Q=4294967295;class Crc32Js{digestLength=4;checksum=Q;update(t){for(let n=0;n>>8^B[(this.checksum^t[n])&255]}}digestSync(){return(this.checksum^Q)>>>0}async digest(){const t=this.digestSync();const n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t,false);return n}reset(){this.checksum=Q}}const w=typeof f.crc32==="function"?f.crc32:undefined;const S=w?buildNativeClass$1(w):Crc32Js;function buildNativeClass$1(t){return class Crc32Node{digestLength=4;value=0;update(n){this.value=t(n,this.value)}digestSync(){return this.value>>>0}async digest(){const t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,this.digestSync(),false);return t}reset(){this.value=0}}}const b=64;const R=32;const v=2**53-1;class Sha256Js{digestLength=R;state=Int32Array.from(k);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=false;inner;outer;constructor(t){if(t){const n=Sha256Js.normalizeKey(t);this.inner=new Sha256Js;this.outer=new Sha256Js;const{inner:i,outer:a}=this;const A=new Uint8Array(b*2);for(let t=0;tv){throw new Error("Cannot hash more than 2^53 - 1 bits")}while(a>0){this.buffer[this.bufferLength++]=n[i++];a--;if(this.bufferLength===b){this.hashBuffer();this.bufferLength=0}}}async digest(){const{inner:t,outer:n}=this;if(t&&n){if(this.finished){throw new Error("Attempted to digest an already finished HMAC.")}this.finished=true;const i=t.digestSync();n.update(i);return n.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(k);this.buffer=new Uint8Array(64);this.bufferLength=0;this.bytesHashed=0}digestSync(){const t=this.state.slice();const n=this.buffer.slice();let i=this.bufferLength;const a=this.bytesHashed*8;const A=new DataView(n.buffer,n.byteOffset,n.byteLength);A.setUint8(i++,128);if((i-1)%b>=b-8){for(let t=i;t>>24&255;c[n*4+1]=t[n]>>>16&255;c[n*4+2]=t[n]>>>8&255;c[n*4+3]=t[n]>>>0&255}return c}static normalizeKey(t){const n=c(t);if(n.byteLength>b){const t=new Sha256Js;t.update(n);const i=t.digestSync();const a=new Uint8Array(b);a.set(i);return a}if(n.byteLength>>17|n<<15)^(n>>>19|n<<13)^n>>>10;n=i[t-15];const A=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3;i[t]=(a+i[t-7]|0)+(A+i[t-16]|0)}const p=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(g+(D[t]+i[t]|0)|0)|0;const m=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&A^a&c^A&c)|0;g=f;f=h;h=d;d=l+p|0;l=c;c=A;A=a;a=p+m|0}t[0]+=a;t[1]+=A;t[2]+=c;t[3]+=l;t[4]+=d;t[5]+=h;t[6]+=f;t[7]+=g}}const k=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);const D=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);const T=(()=>{try{d("sha256");return true}catch{return false}})();const N=T?buildNativeClass():Sha256Js;function buildNativeClass(){return class Sha256Node{digestLength=32;secret;hash;isHmac;finished=false;constructor(t){this.secret=t;this.isHmac=!!t;this.hash=this.createHash()}update(t){if(this.finished){throw new Error("Attempted to update an already finished hash.")}this.hash.update(t)}async digest(){let t;if(this.isHmac){this.finished=true;t=this.hash.digest()}else{t=this.hash.copy().digest()}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=this.createHash();this.finished=false}createHash(){return this.secret?h("sha256",toBuffer(this.secret)):d("sha256")}}}function toBuffer(t){if(typeof t==="string"){return t}if(ArrayBuffer.isView(t)){return Buffer.from(t.buffer,t.byteOffset,t.byteLength)}return Buffer.from(t)}const{digest:M,sign:F,importKey:x}=globalThis?.crypto?.subtle??{};const U=typeof M==="function"&&typeof F==="function"&&typeof x==="function"?globalThis.crypto.subtle:undefined;const P=8*1024*1024;class Sha256WebCrypto{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=false;constructor(t){if(t){this.secret=c(t)}}update(t){if(this.finished){throw new Error("Attempted to update an already finished HMAC.")}if(this.fallback){this.fallback.update(t);return}this.pending.push(t.slice());this.pendingBytes+=t.byteLength;if(this.pendingBytes>=P){this.switchToFallback()}}async digest(){if(this.fallback){return this.fallback.digest()}if(this.secret&&this.finished){throw new Error("Attempted to digest an already finished HMAC.")}const t=l(this.pending);if(U){if(this.secret){this.finished=true;const n=await U.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},false,["sign"]);const i=await U.sign("HMAC",n,t);return new Uint8Array(i)}const n=await U.digest("SHA-256",t);return new Uint8Array(n)}const n=new Sha256Js(this.secret);n.update(t);return n.digest()}reset(){this.pending=[];this.pendingBytes=0;this.fallback=undefined;this.finished=false}switchToFallback(){const t=new Sha256Js(this.secret);for(const n of this.pending){t.update(n)}this.fallback=t;this.pending=[];this.pendingBytes=0}}n.Crc32=S;n.Crc32Js=Crc32Js;n.Crc32Node=S;n.Md5=y;n.Md5Js=Md5Js;n.Md5Node=y;n.Sha256=N;n.Sha256Js=Sha256Js;n.Sha256Node=N;n.Sha256WebCrypto=Sha256WebCrypto;n.blobHasher=g;n.blobReader=blobReader;n.fileStreamHasher=fileStreamHasher;n.readableStreamHasher=readableStreamHasher},2658:(t,n,i)=>{const{getSmithyContext:a,normalizeProvider:A}=i(4534);n.getSmithyContext=a;n.normalizeProvider=A;const{SMITHY_CONTEXT_KEY:c,AlgorithmId:l}=i(690);n.AlgorithmId=l;const{NormalizedSchema:d}=i(6890);const getAllAliases=(t,n)=>{const i=[];if(t){i.push(t)}if(n){for(const t of n){i.push(t)}}return i};const getMiddlewareNameWithAliases=(t,n)=>`${t||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`;const constructStack=()=>{let t=[];let n=[];let i=false;const a=new Set;const sort=t=>t.sort((t,n)=>h[n.step]-h[t.step]||f[n.priority||"normal"]-f[t.priority||"normal"]);const removeByName=i=>{let A=false;const filterCb=t=>{const n=getAllAliases(t.name,t.aliases);if(n.includes(i)){A=true;for(const t of n){a.delete(t)}return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return A};const removeByReference=i=>{let A=false;const filterCb=t=>{if(t.middleware===i){A=true;for(const n of getAllAliases(t.name,t.aliases)){a.delete(n)}return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return A};const cloneTo=i=>{t.forEach(t=>{i.add(t.middleware,{...t})});n.forEach(t=>{i.addRelativeTo(t.middleware,{...t})});i.identifyOnResolve?.(A.identifyOnResolve());return i};const expandRelativeMiddlewareList=t=>{const n=[];t.before.forEach(t=>{if(t.before.length===0&&t.after.length===0){n.push(t)}else{n.push(...expandRelativeMiddlewareList(t))}});n.push(t);t.after.reverse().forEach(t=>{if(t.before.length===0&&t.after.length===0){n.push(t)}else{n.push(...expandRelativeMiddlewareList(t))}});return n};const getMiddlewareList=(i=false)=>{const a=[];const A=[];const c={};t.forEach(t=>{const n={...t,before:[],after:[]};for(const t of getAllAliases(n.name,n.aliases)){c[t]=n}a.push(n)});n.forEach(t=>{const n={...t,before:[],after:[]};for(const t of getAllAliases(n.name,n.aliases)){c[t]=n}A.push(n)});A.forEach(t=>{if(t.toMiddleware){const n=c[t.toMiddleware];if(n===undefined){if(i){return}throw new Error(`${t.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(t.name,t.aliases)} `+`middleware ${t.relation} ${t.toMiddleware}`)}if(t.relation==="after"){n.after.push(t)}if(t.relation==="before"){n.before.push(t)}}});const l=sort(a).map(expandRelativeMiddlewareList).reduce((t,n)=>{t.push(...n);return t},[]);return l};const A={add:(n,i={})=>{const{name:A,override:c,aliases:l}=i;const d={step:"initialize",priority:"normal",middleware:n,...i};const h=getAllAliases(A,l);if(h.length>0){if(h.some(t=>a.has(t))){if(!c)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(A,l)}'`);for(const n of h){const i=t.findIndex(t=>t.name===n||t.aliases?.some(t=>t===n));if(i===-1){continue}const a=t[i];if(a.step!==d.step||d.priority!==a.priority){throw new Error(`"${getMiddlewareNameWithAliases(a.name,a.aliases)}" middleware with `+`${a.priority} priority in ${a.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(A,l)}" middleware with `+`${d.priority} priority in ${d.step} step.`)}t.splice(i,1)}}for(const t of h){a.add(t)}}t.push(d)},addRelativeTo:(t,i)=>{const{name:A,override:c,aliases:l}=i;const d={middleware:t,...i};const h=getAllAliases(A,l);if(h.length>0){if(h.some(t=>a.has(t))){if(!c)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(A,l)}'`);for(const t of h){const i=n.findIndex(n=>n.name===t||n.aliases?.some(n=>n===t));if(i===-1){continue}const a=n[i];if(a.toMiddleware!==d.toMiddleware||a.relation!==d.relation){throw new Error(`"${getMiddlewareNameWithAliases(a.name,a.aliases)}" middleware `+`${a.relation} "${a.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(A,l)}" middleware ${d.relation} `+`"${d.toMiddleware}" middleware.`)}n.splice(i,1)}}for(const t of h){a.add(t)}}n.push(d)},clone:()=>cloneTo(constructStack()),use:t=>{t.applyToStack(A)},remove:t=>{if(typeof t==="string")return removeByName(t);else return removeByReference(t)},removeByTag:i=>{let A=false;const filterCb=t=>{const{tags:n,name:c,aliases:l}=t;if(n&&n.includes(i)){const t=getAllAliases(c,l);for(const n of t){a.delete(n)}A=true;return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return A},concat:t=>{const n=cloneTo(constructStack());n.use(t);n.identifyOnResolve(i||n.identifyOnResolve()||(t.identifyOnResolve?.()??false));return n},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map(t=>{const n=t.step??t.relation+" "+t.toMiddleware;return getMiddlewareNameWithAliases(t.name,t.aliases)+" - "+n}),identifyOnResolve(t){if(typeof t==="boolean")i=t;return i},resolve:(t,n)=>{for(const i of getMiddlewareList().map(t=>t.middleware).reverse()){t=i(t,n)}if(i){console.log(A.identify())}return t}};return A};const h={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const f={high:3,normal:2,low:1};const invalidFunction=t=>()=>{throw new Error(t)};const invalidProvider=t=>()=>Promise.reject(t);const getCircularReplacer=()=>{const t=new WeakSet;return(n,i)=>{if(typeof i==="object"&&i!==null){if(t.has(i)){return"[Circular]"}t.add(i)}return i}};const sleep=t=>new Promise(n=>setTimeout(n,t*1e3));const g={minDelay:2,maxDelay:120};var p;(function(t){t["ABORTED"]="ABORTED";t["FAILURE"]="FAILURE";t["SUCCESS"]="SUCCESS";t["RETRY"]="RETRY";t["TIMEOUT"]="TIMEOUT"})(p||(p={}));const checkExceptions=t=>{if(t.state===p.ABORTED){const n=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},getCircularReplacer())}`);n.name="AbortError";throw n}else if(t.state===p.TIMEOUT){const n=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},getCircularReplacer())}`);n.name="TimeoutError";throw n}else if(t.state!==p.SUCCESS){throw new Error(`${JSON.stringify(t,getCircularReplacer())}`)}return t};const runPolling=async({minDelay:t,maxDelay:n,maxWaitTime:i,abortController:a,client:A,abortSignal:c},l,d)=>{const h={};const[f,g]=[t*1e3,n*1e3];let m=0;const E=Date.now()+i*1e3;const C=Date.now()+6e4;let I=false;while(true){if(m>0){const t=exponentialBackoffWithJitter(f,g,m,E);if(a?.signal?.aborted||c?.aborted){const t="AbortController signal aborted.";h[t]|=0;h[t]+=1;return{state:p.ABORTED,observedResponses:h}}if(Date.now()+t>E){return{state:p.TIMEOUT,observedResponses:h}}await sleep(t/1e3)}const{state:t,reason:n}=await d(A,l);if(n){const t=createMessageFromResponse(n);h[t]|=0;h[t]+=1}if(t!==p.RETRY){return{state:t,reason:n,final:n,observedResponses:h}}m+=1;if(!I&&Date.now()>=C){checkWarn403(h,A);I=true}}};const checkWarn403=(t={},n)=>{const i=Object.keys(t);let a=0;for(const n of i){const i=t[n]|0;if(n.startsWith("403:")){a+=i}}const A=n?.config?.logger;const c=typeof A?.warn==="function"&&!A.constructor?.name?.includes?.("NoOpLogger")?A:console;if(a>=3||i[i.length-1]?.startsWith("403:")){c.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`)}};const createMessageFromResponse=t=>{const n=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;if(t?.$responseBodyText){return`${n?n+": ":""}Deserialization error for body: ${t.$responseBodyText}`}if(n){if(t?.$response||t?.message){return`${n??"Unknown"}: ${t?.message}`}return`${n}: OK`}return String(t?.message??JSON.stringify(t,getCircularReplacer())??"Unknown")};const exponentialBackoffWithJitter=(t,n,i,a)=>{const A=Math.log(n/t)/Math.log(2)+1;if(i>A){return n}const c=t*2**(i-1);const l=Math.min(c,n);const d=randomInRange(t,l);if(Date.now()+d>a){const t=a-Date.now();return Math.max(0,t-500)}return d};const randomInRange=(t,n)=>t+Math.random()*(n-t);const validateWaiterOptions=t=>{if(t.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(t.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(t.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(t.maxWaitTime<=t.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}else if(t.maxDelay{let n;const i=new Promise(i=>{n=()=>i({state:p.ABORTED});if(typeof t.addEventListener==="function"){t.addEventListener("abort",n)}else{t.onabort=n}});return{clearListener(){if(typeof t.removeEventListener==="function"){t.removeEventListener("abort",n)}},aborted:i}};const createWaiter=async(t,n,i)=>{const a={...g,...t};validateWaiterOptions(a);const A=[runPolling(a,n,i)];const c=[];if(t.abortSignal){const{aborted:n,clearListener:i}=abortTimeout(t.abortSignal);c.push(i);A.push(n)}if(t.abortController?.signal){const{aborted:n,clearListener:i}=abortTimeout(t.abortController.signal);c.push(i);A.push(n)}return Promise.race(A).then(t=>{for(const t of c){t()}return t})};class Client{config;middlewareStack=constructStack();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:i}=t;if(i){if(typeof n==="function"){t.protocol=new n(i)}}}send(t,n,i){const a=typeof n!=="function"?n:undefined;const A=typeof n==="function"?n:i;const c=a===undefined&&this.config.cacheMiddleware===true;let l;if(c){if(!this.handlers){this.handlers=new WeakMap}const n=this.handlers;if(n.has(t.constructor)){l=n.get(t.constructor)}else{l=t.resolveMiddleware(this.middlewareStack,this.config,a);n.set(t.constructor,l)}}else{delete this.handlers;l=t.resolveMiddleware(this.middlewareStack,this.config,a)}if(A){l(t).then(t=>A(null,t.output),t=>A(t)).catch(()=>{})}else{return l(t).then(t=>t.output)}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const m="***SensitiveInformation***";function schemaLogFilter(t,n){if(n==null){return n}const i=d.of(t);if(i.getMergedTraits().sensitive){return m}if(i.isListSchema()){const t=!!i.getValueSchema().getMergedTraits().sensitive;if(t){return m}}else if(i.isMapSchema()){const t=!!i.getKeySchema().getMergedTraits().sensitive||!!i.getValueSchema().getMergedTraits().sensitive;if(t){return m}}else if(i.isStructSchema()&&typeof n==="object"){const t=n;const a={};for(const[n,A]of i.structIterator()){if(t[n]!=null){a[n]=schemaLogFilter(A,t[n])}}return a}return n}class Command{middlewareStack=constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(t,n,i,{middlewareFn:a,clientName:A,commandName:l,inputFilterSensitiveLog:d,outputFilterSensitiveLog:h,smithyContext:f,additionalContext:g,CommandCtor:p}){for(const A of a.bind(this)(p,t,n,i)){this.middlewareStack.use(A)}const m=t.concat(this.middlewareStack);const{logger:E}=n;const C={logger:E,clientName:A,commandName:l,inputFilterSensitiveLog:d,outputFilterSensitiveLog:h,[c]:{commandInstance:this,...f},...g};const{requestHandler:I}=n;let y=i??{};if(f.eventStream){y={isEventStream:true,...y}}return m.resolve(t=>I.handle(t.request,y),C)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){this._ep=t;return this}m(t){this._middlewareFn=t;return this}s(t,n,i={}){this._smithyContext={service:t,operation:n,...i};return this}c(t={}){this._additionalContext=t;return this}n(t,n){this._clientName=t;this._commandName=n;return this}f(t=t=>t,n=t=>t){this._inputFilterSensitiveLog=t;this._outputFilterSensitiveLog=n;return this}ser(t){this._serializer=t;return this}de(t){this._deserializer=t;return this}sc(t){this._operationSchema=t;this._smithyContext.operationSchema=t;return this}build(){const t=this;let n;return n=class extends Command{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[n]){super();this.input=n??{};t._init(this);this.schema=t._operationSchema}resolveMiddleware(i,a,A){const c=t._operationSchema;const l=c?.[4]??c?.input;const d=c?.[5]??c?.output;return this.resolveMiddlewareWithContext(i,a,A,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(c?schemaLogFilter.bind(null,l):t=>t),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(c?schemaLogFilter.bind(null,d):t=>t),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}const E="***SensitiveInformation***";const createAggregatedClient=(t,n,i)=>{for(const[i,a]of Object.entries(t)){const methodImpl=async function(t,n,i){const A=new a(t);if(typeof n==="function"){this.send(A,n)}else if(typeof i==="function"){if(typeof n!=="object")throw new Error(`Expected http options but got ${typeof n}`);this.send(A,n||{},i)}else{return this.send(A,n)}};const t=(i[0].toLowerCase()+i.slice(1)).replace(/Command$/,"");n.prototype[t]=methodImpl}const{paginators:a={},waiters:A={}}=i??{};for(const[t,i]of Object.entries(a)){if(n.prototype[t]===void 0){n.prototype[t]=function(t={},n,...a){return i({...n,client:this},t,...a)}}}for(const[t,i]of Object.entries(A)){if(n.prototype[t]===void 0){n.prototype[t]=async function(t={},n,...a){let A=n;if(typeof n==="number"){A={maxWaitTime:n}}return i({...A,client:this},t,...a)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=t.name;this.$fault=t.$fault;this.$metadata=t.$metadata}static isInstance(t){if(!t)return false;const n=t;return ServiceException.prototype.isPrototypeOf(n)||Boolean(n.$fault)&&Boolean(n.$metadata)&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return false;const n=t;if(this===ServiceException){return ServiceException.isInstance(t)}if(ServiceException.isInstance(t)){if(n.name&&this.name){return this.prototype.isPrototypeOf(t)||n.name===this.name}return this.prototype.isPrototypeOf(t)}return false}}const decorateServiceException=(t,n={})=>{Object.entries(n).filter(([,t])=>t!==undefined).forEach(([n,i])=>{if(t[n]==undefined||t[n]===""){t[n]=i}});const i=t.message||t.Message||"UnknownError";t.message=i;delete t.Message;return t};const throwDefaultError=({output:t,parsedBody:n,exceptionCtor:i,errorCode:a})=>{const A=deserializeMetadata(t);const c=A.httpStatusCode?A.httpStatusCode+"":undefined;const l=new i({name:n?.code||n?.Code||a||c||"UnknownError",$fault:"client",$metadata:A});throw decorateServiceException(l,n)};const withBaseException=t=>({output:n,parsedBody:i,errorCode:a})=>{throwDefaultError({output:n,parsedBody:i,exceptionCtor:t,errorCode:a})};const deserializeMetadata=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let C=false;const emitWarningIfUnsupportedVersion=t=>{if(t&&!C&&parseInt(t.substring(1,t.indexOf(".")))<16){C=true}};const I=Object.values(l);const getChecksumConfiguration=t=>{const n=[];for(const i in l){const a=l[i];if(t[a]===undefined){continue}n.push({algorithmId:()=>a,checksumConstructor:()=>t[a]})}for(const[i,a]of Object.entries(t.checksumAlgorithms??{})){n.push({algorithmId:()=>i,checksumConstructor:()=>a})}return{addChecksumAlgorithm(i){t.checksumAlgorithms=t.checksumAlgorithms??{};const a=i.algorithmId();const A=i.checksumConstructor();if(I.includes(a)){t.checksumAlgorithms[a.toUpperCase()]=A}else{t.checksumAlgorithms[a]=A}n.push(i)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=t=>{const n={};t.checksumAlgorithms().forEach(t=>{const i=t.algorithmId();if(I.includes(i)){n[i]=t.checksumConstructor()}});return n};const getRetryConfiguration=t=>({setRetryStrategy(n){t.retryStrategy=n},retryStrategy(){return t.retryStrategy}});const resolveRetryRuntimeConfig=t=>{const n={};n.retryStrategy=t.retryStrategy();return n};const getDefaultExtensionConfiguration=t=>Object.assign(getChecksumConfiguration(t),getRetryConfiguration(t));const y=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=t=>Object.assign(resolveChecksumRuntimeConfig(t),resolveRetryRuntimeConfig(t));const getArrayIfSingleItem=t=>Array.isArray(t)?t:[t];const getValueFromTextNode=t=>{const n="#text";for(const i in t){if(Object.prototype.hasOwnProperty.call(t,i)&&t[i][n]!==undefined){t[i]=t[i][n]}else if(typeof t[i]==="object"&&t[i]!==null){t[i]=getValueFromTextNode(t[i])}}return t};const isSerializableHeaderValue=t=>t!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(t,n,i){let a;let A;let c;if(typeof n==="undefined"&&typeof i==="undefined"){a={};c=t}else{a=t;if(typeof n==="function"){A=n;c=i;return mapWithFilter(a,A,c)}else{c=n}}for(const t of Object.keys(c)){if(!Array.isArray(c[t])){a[t]=c[t];continue}applyInstruction(a,null,c,t)}return a}const convertMap=t=>{const n={};for(const[i,a]of Object.entries(t||{})){n[i]=[,a]}return n};const take=(t,n)=>{const i={};for(const a in n){applyInstruction(i,t,n,a)}return i};const mapWithFilter=(t,n,i)=>map(t,Object.entries(i).reduce((t,[i,a])=>{if(Array.isArray(a)){t[i]=a}else{if(typeof a==="function"){t[i]=[n,a()]}else{t[i]=[n,a]}}return t},{}));const applyInstruction=(t,n,i,a)=>{if(n!==null){let A=i[a];if(typeof A==="function"){A=[,A]}const[c=nonNullish,l=pass,d=a]=A;if(typeof c==="function"&&c(n[d])||typeof c!=="function"&&!!c){t[a]=l(n[d])}return}let[A,c]=i[a];if(typeof c==="function"){let n;const i=A===undefined&&(n=c())!=null;const l=typeof A==="function"&&!!A(void 0)||typeof A!=="function"&&!!A;if(i){t[a]=n}else if(l){t[a]=c()}}else{const n=A===undefined&&c!=null;const i=typeof A==="function"&&!!A(c)||typeof A!=="function"&&!!A;if(n||i){t[a]=c}}};const nonNullish=t=>t!=null;const pass=t=>t;const serializeFloat=t=>{if(t!==t){return"NaN"}switch(t){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return t}};const serializeDateTime=t=>t.toISOString().replace(".000Z","Z");const _json=t=>{if(t==null){return{}}if(Array.isArray(t)){return t.filter(t=>t!=null).map(_json)}if(typeof t==="object"){const n={};for(const i of Object.keys(t)){if(t[i]==null){continue}n[i]=_json(t[i])}return n}return t};function makeBuilder(t,n,i,a){return function makeCommand(A,c,l,d,h={}){const f=Object.assign({},t,A);return Command.classBuilder().ep(f).m(function(t,n,i,A){const l=c.call(this,t,n,i,A);l.unshift(a(i,t.getEndpointParameterInstructions()));return l}).s(n,l,h).n(i,l.charAt(0).toUpperCase()+l.slice(1)+"Command").sc(d).build()}}n.Client=Client;n.Command=Command;n.NoOpLogger=NoOpLogger;n.SENSITIVE_STRING=E;n.ServiceException=ServiceException;n.WaiterState=p;n._json=_json;n.checkExceptions=checkExceptions;n.constructStack=constructStack;n.convertMap=convertMap;n.createAggregatedClient=createAggregatedClient;n.createWaiter=createWaiter;n.decorateServiceException=decorateServiceException;n.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;n.getArrayIfSingleItem=getArrayIfSingleItem;n.getChecksumConfiguration=getChecksumConfiguration;n.getDefaultClientConfiguration=y;n.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;n.getRetryConfiguration=getRetryConfiguration;n.getValueFromTextNode=getValueFromTextNode;n.invalidFunction=invalidFunction;n.invalidProvider=invalidProvider;n.isSerializableHeaderValue=isSerializableHeaderValue;n.loadConfigsForDefaultMode=loadConfigsForDefaultMode;n.makeBuilder=makeBuilder;n.map=map;n.resolveChecksumRuntimeConfig=resolveChecksumRuntimeConfig;n.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;n.resolveRetryRuntimeConfig=resolveRetryRuntimeConfig;n.schemaLogFilter=schemaLogFilter;n.serializeDateTime=serializeDateTime;n.serializeFloat=serializeFloat;n.take=take;n.throwDefaultError=throwDefaultError;n.waiterServiceDefaults=g;n.withBaseException=withBaseException},7291:(t,n,i)=>{const{homedir:a}=i(8161);const{sep:A,join:c}=i(6760);const{createHash:l}=i(7598);const{readFile:d}=i(1455);const{IniSectionType:h}=i(690);const{normalizeProvider:f}=i(2658);const{isValidHostLabel:g}=i(4534);class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(t,n=true){let i;let a=true;if(typeof n==="boolean"){i=undefined;a=n}else if(n!=null&&typeof n==="object"){i=n.logger;a=n.tryNextLink??true}super(t);this.tryNextLink=a;Object.setPrototypeOf(this,ProviderError.prototype);i?.debug?.(`@smithy/property-provider ${a?"->":"(!)"} ${t}`)}static from(t,n=true){return Object.assign(new this(t.message,n),t)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(t,n=true){super(t,n);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(t,n=true){super(t,n);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...t)=>async()=>{if(t.length===0){throw new ProviderError("No providers in chain")}let n;for(const i of t){try{const t=await i();return t}catch(t){n=t;if(t?.tryNextLink){continue}throw t}}throw n};const fromValue=t=>()=>Promise.resolve(t);const memoize=(t,n,i)=>{let a;let A;let c;let l=false;const coalesceProvider=async()=>{if(!A){A=t()}try{a=await A;c=true;l=false}finally{A=undefined}return a};if(n===undefined){return async t=>{if(!c||t?.forceRefresh){a=await coalesceProvider()}return a}}return async t=>{if(!c||t?.forceRefresh){a=await coalesceProvider()}if(l){return a}if(i&&!i(a)){l=true;return a}if(n(a)){await coalesceProvider();return a}return a}};const booleanSelector=(t,n,i)=>{if(!(n in t))return undefined;if(t[n]==="true")return true;if(t[n]==="false")return false;throw new Error(`Cannot load ${i} "${n}". Expected "true" or "false", got ${t[n]}.`)};const numberSelector=(t,n,i)=>{if(!(n in t))return undefined;const a=parseInt(t[n],10);if(Number.isNaN(a)){throw new TypeError(`Cannot load ${i} '${n}'. Expected number, got '${t[n]}'.`)}return a};var p;(function(t){t["ENV"]="env";t["CONFIG"]="shared config entry"})(p||(p={}));const m={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:t,USERPROFILE:n,HOMEPATH:i,HOMEDRIVE:c=`C:${A}`}=process.env;if(t)return t;if(n)return n;if(i)return`${c}${i}`;const l=getHomeDirCacheKey();if(!m[l])m[l]=a();return m[l]};const E="AWS_PROFILE";const C="default";const getProfileName=t=>t.profile||process.env[E]||C;const getSSOTokenFilepath=t=>{const n=l("sha1");const i=n.update(t).digest("hex");return c(getHomeDir(),".aws","sso","cache",`${i}.json`)};const I={};const getSSOTokenFromFile=async t=>{if(I[t]){return I[t]}const n=getSSOTokenFilepath(t);const i=await d(n,"utf8");return JSON.parse(i)};const y=".";const getConfigData=t=>Object.entries(t).filter(([t])=>{const n=t.indexOf(y);if(n===-1){return false}return Object.values(h).includes(t.substring(0,n))}).reduce((t,[n,i])=>{const a=n.indexOf(y);const A=n.substring(0,a)===h.PROFILE?n.substring(a+1):n;t[A]=i;return t},{...t.default&&{default:t.default}});const B="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[B]||c(getHomeDir(),".aws","config");const Q="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[Q]||c(getHomeDir(),".aws","credentials");const w=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;const S=["__proto__","profile __proto__"];const parseIni=t=>{const n={};let i;let a;for(const A of t.split(/\r?\n/)){const t=A.split(/(^|\s)[;#]/)[0].trim();const c=t[0]==="["&&t[t.length-1]==="]";if(c){i=undefined;a=undefined;const n=t.substring(1,t.length-1);const A=w.exec(n);if(A){const[,t,,n]=A;if(Object.values(h).includes(t)){i=[t,n].join(y)}}else{i=n}if(S.includes(n)){throw new Error(`Found invalid profile name "${n}"`)}}else if(i){const c=t.indexOf("=");if(![0,-1].includes(c)){const[l,d]=[t.substring(0,c).trim(),t.substring(c+1).trim()];if(d===""){a=l}else{if(a&&A.trimStart()===A){a=undefined}n[i]=n[i]||{};const t=a?[a,l].join(y):l;n[i][t]=d}}}}return n};const b={};const R={};const readFile=(t,n)=>{if(R[t]!==undefined){return R[t]}if(!b[t]||n?.ignoreCache){b[t]=d(t,"utf8")}return b[t]};const swallowError$1=()=>({});const loadSharedConfigFiles=async(t={})=>{const{filepath:n=getCredentialsFilepath(),configFilepath:i=getConfigFilepath()}=t;const a=getHomeDir();const A="~/";let l=n;if(n.startsWith(A)){l=c(a,n.slice(2))}let d=i;if(i.startsWith(A)){d=c(a,i.slice(2))}const h=await Promise.all([readFile(d,{ignoreCache:t.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),readFile(l,{ignoreCache:t.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:h[0],credentialsFile:h[1]}};const getSsoSessionData=t=>Object.entries(t).filter(([t])=>t.startsWith(h.SSO_SESSION+y)).reduce((t,[n,i])=>({...t,[n.substring(n.indexOf(y)+1)]:i}),{});const swallowError=()=>({});const loadSsoSessionData=async(t={})=>readFile(t.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...t)=>{const n={};for(const i of t){for(const[t,a]of Object.entries(i)){if(n[t]!==undefined){Object.assign(n[t],a)}else{n[t]=a}}}return n};const parseKnownFiles=async t=>{const n=await loadSharedConfigFiles(t);return mergeConfigFiles(n.configFile,n.credentialsFile)};const v={getFileRecord(){return R},interceptFile(t,n){R[t]=Promise.resolve(n)},getTokenRecord(){return I},interceptToken(t,n){I[t]=n}};function getSelectorName(t){try{const n=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));n.delete("CONFIG");n.delete("CONFIG_PREFIX_SEPARATOR");n.delete("ENV");return[...n].join(", ")}catch(n){return t}}const fromEnv=(t,n)=>async()=>{try{const i=t(process.env,n);if(i===undefined){throw new Error}return i}catch(i){throw new CredentialsProviderError(i.message||`Not found in ENV: ${getSelectorName(t.toString())}`,{logger:n?.logger})}};const fromSharedConfigFiles=(t,{preferredFile:n="config",...i}={})=>async()=>{const a=getProfileName(i);const{configFile:A,credentialsFile:c}=await loadSharedConfigFiles(i);const l=c[a]||{};const d=A[a]||{};const h=n==="config"?{...l,...d}:{...d,...l};try{const i=n==="config"?A:c;const a=t(h,i);if(a===undefined){throw new Error}return a}catch(n){throw new CredentialsProviderError(n.message||`Not found in config files w/ profile [${a}]: ${getSelectorName(t.toString())}`,{logger:i.logger})}};const isFunction=t=>typeof t==="function";const fromStatic=t=>isFunction(t)?async()=>await t():fromValue(t);const loadConfig=({environmentVariableSelector:t,configFileSelector:n,default:i},a={})=>{const{signingName:A,logger:c}=a;const l={signingName:A,logger:c};return memoize(chain(fromEnv(t,l),fromSharedConfigFiles(n,a),fromStatic(i)))};const k="AWS_USE_DUALSTACK_ENDPOINT";const D="use_dualstack_endpoint";const T=false;const N={environmentVariableSelector:t=>booleanSelector(t,k,p.ENV),configFileSelector:t=>booleanSelector(t,D,p.CONFIG),default:false};const M={environmentVariableSelector:t=>booleanSelector(t,k,p.ENV),configFileSelector:t=>booleanSelector(t,D,p.CONFIG),default:undefined};const F="AWS_USE_FIPS_ENDPOINT";const x="use_fips_endpoint";const U=false;const P={environmentVariableSelector:t=>booleanSelector(t,F,p.ENV),configFileSelector:t=>booleanSelector(t,x,p.CONFIG),default:false};const L={environmentVariableSelector:t=>booleanSelector(t,F,p.ENV),configFileSelector:t=>booleanSelector(t,x,p.CONFIG),default:undefined};const resolveCustomEndpointsConfig=t=>{const{tls:n,endpoint:i,urlParser:a,useDualstackEndpoint:A}=t;return Object.assign(t,{tls:n??true,endpoint:f(typeof i==="string"?a(i):i),isCustomEndpoint:true,useDualstackEndpoint:f(A??false)})};const getEndpointFromRegion=async t=>{const{tls:n=true}=t;const i=await t.region();const a=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!a.test(i)){throw new Error("Invalid region in client config")}const A=await t.useDualstackEndpoint();const c=await t.useFipsEndpoint();const{hostname:l}=await t.regionInfoProvider(i,{useDualstackEndpoint:A,useFipsEndpoint:c})??{};if(!l){throw new Error("Cannot resolve hostname from client config")}return t.urlParser(`${n?"https:":"http:"}//${l}`)};const resolveEndpointsConfig=t=>{const n=f(t.useDualstackEndpoint??false);const{endpoint:i,useFipsEndpoint:a,urlParser:A,tls:c}=t;return Object.assign(t,{tls:c??true,endpoint:i?f(typeof i==="string"?A(i):i):()=>getEndpointFromRegion({...t,useDualstackEndpoint:n,useFipsEndpoint:a}),isCustomEndpoint:!!i,useDualstackEndpoint:n})};const O="AWS_EXECUTION_ENV";const H="AWS_REGION";const $="AWS_DEFAULT_REGION";const G="AWS_EC2_METADATA_DISABLED";const V=["in-region","cross-region","mobile","standard","legacy"];const Y="/latest/meta-data/placement/region";const J="/latest/api/token";const W="x-aws-ec2-metadata-token";const q="x-aws-ec2-metadata-token-ttl-seconds";const j=1e3;const z=6e4;let K=0;const getInstanceMetadataRegion=async()=>{if(process.env[G]){return undefined}if(Date.now(){K=Date.now()+z;return undefined};const resolveImdsEndpoint=()=>{const t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){const n=new URL(t);return{hostname:n.hostname.replace(/^\[(.+)]$/,"$1"),port:n.port?Number(n.port):undefined}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"){return{hostname:"fd00:ec2::254"}}return{hostname:"169.254.169.254"}};const imdsRequest=async t=>{const{request:n}=i(7067);return new Promise((i,a)=>{const A=n({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:j,signal:AbortSignal.timeout(j)});A.on("error",t=>{a(t);A.destroy()});A.on("timeout",()=>{a(new Error("TimeoutError from instance metadata service"));A.destroy()});A.on("response",t=>{const{statusCode:n=400}=t;if(n<200||n>=300){a(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:n}));A.destroy();return}const c=[];t.on("data",t=>c.push(t));t.on("end",()=>{i(Buffer.concat(c));A.destroy()})});A.end()})};const Z="AWS_REGION";const X="region";const ee={environmentVariableSelector:t=>t[Z],configFileSelector:t=>t[X],default:async()=>{const t=await getInstanceMetadataRegion();if(t){return t}throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const re=new Set;const checkRegion=(t,n=g)=>{if(!re.has(t)&&!n(t)){if(t==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`)}}else{re.add(t)}};const isFipsRegion=t=>typeof t==="string"&&(t.startsWith("fips-")||t.endsWith("-fips"));const getRealRegion=t=>isFipsRegion(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t;const resolveRegionConfig=t=>{const{region:n,useFipsEndpoint:i}=t;if(!n){throw new Error("Region is missing")}return Object.assign(t,{region:async()=>{const t=typeof n==="function"?await n():n;const i=getRealRegion(t);checkRegion(i);return i},useFipsEndpoint:async()=>{const t=typeof n==="string"?n:await n();if(isFipsRegion(t)){return true}return typeof i!=="function"?Promise.resolve(!!i):i()}})};const getHostnameFromVariants=(t=[],{useFipsEndpoint:n,useDualstackEndpoint:i})=>t.find(({tags:t})=>n===t.includes("fips")&&i===t.includes("dualstack"))?.hostname;const getResolvedHostname=(t,{regionHostname:n,partitionHostname:i})=>n?n:i?i.replace("{region}",t):undefined;const getResolvedPartition=(t,{partitionHash:n})=>Object.keys(n||{}).find(i=>n[i].regions.includes(t))??"aws";const getResolvedSigningRegion=(t,{signingRegion:n,regionRegex:i,useFipsEndpoint:a})=>{if(n){return n}else if(a){const n=i.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const a=t.match(n);if(a){return a[0].slice(1,-1)}}};const getRegionInfo=(t,{useFipsEndpoint:n=false,useDualstackEndpoint:i=false,signingService:a,regionHash:A,partitionHash:c})=>{const l=getResolvedPartition(t,{partitionHash:c});const d=t in A?t:c[l]?.endpoint??t;const h={useFipsEndpoint:n,useDualstackEndpoint:i};const f=getHostnameFromVariants(A[d]?.variants,h);const g=getHostnameFromVariants(c[l]?.variants,h);const p=getResolvedHostname(d,{regionHostname:f,partitionHostname:g});if(p===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:d,useFipsEndpoint:n,useDualstackEndpoint:i}}`)}const m=getResolvedSigningRegion(p,{signingRegion:A[d]?.signingRegion,regionRegex:c[l].regionRegex,useFipsEndpoint:n});return{partition:l,signingService:a,hostname:p,...m&&{signingRegion:m},...A[d]?.signingService&&{signingService:A[d].signingService}}};const ne="AWS_DEFAULTS_MODE";const se="defaults_mode";const oe={environmentVariableSelector:t=>t[ne],configFileSelector:t=>t[se],default:"legacy"};const resolveDefaultsModeConfig=({region:t=loadConfig(ee),defaultsMode:n=loadConfig(oe)}={})=>memoize(async()=>{const i=typeof n==="function"?await n():n;switch(i?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(i?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${V.join(", ")}, got ${i}`)}});const resolveNodeDefaultsModeAuto=async t=>{if(t){const n=typeof t==="function"?await t():t;const i=await inferPhysicalRegion();if(!i){return"standard"}if(n===i){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[O]&&(process.env[H]||process.env[$])){return process.env[H]??process.env[$]}return getInstanceMetadataRegion()};n.CONFIG_PREFIX_SEPARATOR=y;n.CONFIG_USE_DUALSTACK_ENDPOINT=D;n.CONFIG_USE_FIPS_ENDPOINT=x;n.CredentialsProviderError=CredentialsProviderError;n.DEFAULT_PROFILE=C;n.DEFAULT_USE_DUALSTACK_ENDPOINT=T;n.DEFAULT_USE_FIPS_ENDPOINT=U;n.ENV_PROFILE=E;n.ENV_USE_DUALSTACK_ENDPOINT=k;n.ENV_USE_FIPS_ENDPOINT=F;n.NODE_REGION_CONFIG_FILE_OPTIONS=te;n.NODE_REGION_CONFIG_OPTIONS=ee;n.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=N;n.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=P;n.ProviderError=ProviderError;n.REGION_ENV_NAME=Z;n.REGION_INI_NAME=X;n.SelectorType=p;n.TokenProviderError=TokenProviderError;n.booleanSelector=booleanSelector;n.chain=chain;n.externalDataInterceptor=v;n.fromStatic=fromStatic;n.fromValue=fromValue;n.getHomeDir=getHomeDir;n.getProfileName=getProfileName;n.getRegionInfo=getRegionInfo;n.getSSOTokenFilepath=getSSOTokenFilepath;n.getSSOTokenFromFile=getSSOTokenFromFile;n.loadConfig=loadConfig;n.loadSharedConfigFiles=loadSharedConfigFiles;n.loadSsoSessionData=loadSsoSessionData;n.memoize=memoize;n.nodeDualstackConfigSelectors=M;n.nodeFipsConfigSelectors=L;n.numberSelector=numberSelector;n.parseKnownFiles=parseKnownFiles;n.readFile=readFile;n.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;n.resolveDefaultsModeConfig=resolveDefaultsModeConfig;n.resolveEndpointsConfig=resolveEndpointsConfig;n.resolveRegionConfig=resolveRegionConfig},2085:(t,n,i)=>{const{CONFIG_PREFIX_SEPARATOR:a,booleanSelector:A,SelectorType:c,loadConfig:l}=i(7291);const{toEndpointV1:d,getSmithyContext:h,normalizeProvider:f,isValidHostLabel:g}=i(4534);n.isValidHostLabel=g;n.middlewareEndpointToEndpointV1=d;n.toEndpointV1=d;const{EndpointURLScheme:p}=i(690);const m="AWS_ENDPOINT_URL";const E="endpoint_url";const getEndpointUrlConfig=t=>({environmentVariableSelector:n=>{const i=t.split(" ").map(t=>t.toUpperCase());const a=n[[m,...i].join("_")];if(a)return a;const A=n[m];if(A)return A;return undefined},configFileSelector:(n,i)=>{if(n.services){const A=["services",n.services].join(a);if(!i||!i[A]){throw new Error(`The services section "${n.services}" specified in the profile is not present in the shared configuration file.`)}const c=i[A];const l=t.split(" ").map(t=>t.toLowerCase());const d=c[[l.join("_"),E].join(a)];if(d)return d}const A=n[E];if(A)return A;return undefined},default:undefined});const C="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";const I="ignore_configured_endpoint_urls";const y={environmentVariableSelector:t=>A(t,C,c.ENV),configFileSelector:t=>A(t,I,c.CONFIG),default:false};const getEndpointFromConfig=async t=>{const n=await l(y)();if(n){return undefined}return l(getEndpointUrlConfig(t??""))()};const resolveParamsForS3=async t=>{const n=t?.Bucket||"";if(typeof t.Bucket==="string"){t.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(n)){if(t.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(n)||n.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3){t.ForcePathStyle=true}if(t.DisableMultiRegionAccessPoints){t.disableMultiRegionAccessPoints=true;t.DisableMRAP=true}return t};const B=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;const Q=/(\d+\.){3}\d+/;const w=/\.\./;const isDnsCompatibleBucketName=t=>B.test(t)&&!Q.test(t)&&!w.test(t);const isArnBucketName=t=>{const[n,i,a,,,A]=t.split(":");const c=n==="arn"&&t.split(":").length>=6;const l=Boolean(c&&i&&a&&A);if(c&&!l){throw new Error(`Invalid ARN: ${t} was an invalid ARN.`)}return l};const createConfigValueProvider=(t,n,i,a=false)=>{const configProvider=async()=>{let A;if(a){const a=i.clientContextParams;const c=a?.[t];A=c??i[t]??i[n]}else{A=i[t]??i[n]}if(typeof A==="function"){return A()}return A};if(t==="credentialScope"||n==="CredentialScope"){return async()=>{const t=typeof i.credentials==="function"?await i.credentials():i.credentials;const n=t?.credentialScope??t?.CredentialScope;return n}}if(t==="accountId"||n==="AccountId"){return async()=>{const t=typeof i.credentials==="function"?await i.credentials():i.credentials;const n=t?.accountId??t?.AccountId;return n}}if(t==="endpoint"||n==="endpoint"){return async()=>{if(i.isCustomEndpoint===false){return undefined}const t=await configProvider();if(t&&typeof t==="object"){if("url"in t){return t.url.href}if("hostname"in t){const{protocol:n,hostname:i,port:a,path:A}=t;return`${n}//${i}${a?":"+a:""}${A}`}}return t}}return configProvider};function bindGetEndpointFromInstructions(t){return async(n,i,a,A)=>{if(!a.isCustomEndpoint&&!a.ignoreConfiguredEndpointUrls){let n;if(a.serviceConfiguredEndpoint){n=await a.serviceConfiguredEndpoint()}else{n=await t(a.serviceId)}if(n){a.endpoint=()=>Promise.resolve(d(n));a.isCustomEndpoint=true;A?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${n}`)}}const c=await resolveParams(n,i,a);if(typeof a.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const l=a.endpointProvider(c,A);if(a.isCustomEndpoint&&a.endpoint){const t=await a.endpoint();if(t?.headers){l.headers??={};for(const[n,i]of Object.entries(t.headers)){l.headers[n]=Array.isArray(i)?i:[i]}}}return l}}const resolveParams=async(t,n,i)=>{const a={};const A=n?.getEndpointParameterInstructions?.()||{};for(const[n,c]of Object.entries(A)){switch(c.type){case"staticContextParams":a[n]=c.value;break;case"contextParams":a[n]=t[c.name];break;case"clientContextParams":case"builtInParams":a[n]=await createConfigValueProvider(c.name,n,i,c.type!=="builtInParams")();break;case"operationContextParams":a[n]=c.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(c))}}if(Object.keys(A).length===0){Object.assign(a,i)}if(String(i.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(a)}return a};function setFeature(t,n,i){if(!t.__smithy_context){t.__smithy_context={features:{}}}else if(!t.__smithy_context.features){t.__smithy_context.features={}}t.__smithy_context.features[n]=i}function bindEndpointMiddleware(t){const n=bindGetEndpointFromInstructions(t);return({config:t,instructions:i})=>(a,A)=>async c=>{if(t.isCustomEndpoint){setFeature(A,"ENDPOINT_OVERRIDE","N")}const l=await n(c.input,{getEndpointParameterInstructions(){return i}},{...t},A);A.endpointV2=l;A.authSchemes=l.properties?.authSchemes;const d=A.authSchemes?.[0];if(d){A["signing_region"]=d.signingRegion;A["signing_service"]=d.signingName;const t=h(A);const n=t?.selectedHttpAuthScheme?.httpAuthOption;if(n){n.signingProperties=Object.assign(n.signingProperties||{},{signing_region:d.signingRegion,signingRegion:d.signingRegion,signing_service:d.signingName,signingName:d.signingName,signingRegionSet:d.signingRegionSet},d.properties)}}return a({...c})}}const S={name:"serializerMiddleware"};const b={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:S.name};function bindGetEndpointPlugin(t){const n=bindEndpointMiddleware(t);return(t,i)=>({applyToStack:a=>{a.addRelativeTo(n({config:t,instructions:i}),b)}})}function bindResolveEndpointConfig(t){return n=>{const i=n.tls??true;const{endpoint:a,useDualstackEndpoint:A,useFipsEndpoint:c}=n;const l=a!=null?async()=>d(await f(a)()):undefined;const h=!!a;const g=Object.assign(n,{endpoint:l,tls:i,isCustomEndpoint:h,useDualstackEndpoint:f(A??false),useFipsEndpoint:f(c??false),ignoreConfiguredEndpointUrls:!!n.ignoreConfiguredEndpointUrls});let p=undefined;g.serviceConfiguredEndpoint=async()=>{if(n.serviceId&&!p){p=t(n.serviceId)}return p};return g}}class BinaryDecisionDiagram{nodes;root;conditions;results;constructor(t,n,i,a){this.nodes=t;this.root=n;this.conditions=i;this.results=a}static from(t,n,i,a){return new BinaryDecisionDiagram(t,n,i,a)}}class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50;if(n){this.parameters=n}}get(t,n){const i=this.hash(t);if(i===false){return n()}if(!this.data.has(i)){if(this.data.size>this.capacity+10){const t=this.data.keys();let n=0;while(true){const{value:i,done:a}=t.next();this.data.delete(i);if(a||++n>10){break}}}this.data.set(i,n())}return this.data.get(i)}size(){return this.data.size}hash(t){let n="";const{parameters:i}=this;if(i.length===0){return false}for(const a of i){const i=String(t[a]??"");if(i.includes("|;")){return false}n+=i+"|;"}return n}}class EndpointError extends Error{constructor(t){super(t);this.name="EndpointError"}}const R="endpoints";function toDebugString(t){if(typeof t!=="object"||t==null){return t}if("ref"in t){return`$${toDebugString(t.ref)}`}if("fn"in t){return`${t.fn}(${(t.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(t,null,2)}const v={};const booleanEquals=(t,n)=>t===n;function coalesce(...t){for(const n of t){if(n!=null){return n}}return undefined}const getAttrPathList=t=>{const n=t.split(".");const i=[];for(const a of n){const n=a.indexOf("[");if(n!==-1){if(a.indexOf("]")!==a.length-1){throw new EndpointError(`Path: '${t}' does not end with ']'`)}const A=a.slice(n+1,-1);if(Number.isNaN(parseInt(A))){throw new EndpointError(`Invalid array index: '${A}' in path: '${t}'`)}if(n!==0){i.push(a.slice(0,n))}i.push(A)}else{i.push(a)}}return i};const getAttr=(t,n)=>getAttrPathList(n).reduce((i,a)=>{if(typeof i!=="object"){throw new EndpointError(`Index '${a}' in '${n}' not found in '${JSON.stringify(t)}'`)}else if(Array.isArray(i)){const t=parseInt(a);return i[t<0?i.length+t:t]}return i[a]},t);const isSet=t=>t!=null;function ite(t,n,i){return t?n:i}const not=t=>!t;const k=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=t=>k.test(t)||t.startsWith("[")&&t.endsWith("]");const D={[p.HTTP]:80,[p.HTTPS]:443};const parseURL=t=>{const n=(()=>{try{if(t instanceof URL){return t}if(typeof t==="object"&&"hostname"in t){const{hostname:n,port:i,protocol:a="",path:A="",query:c={}}=t;const l=new URL(`${a}//${n}${i?`:${i}`:""}${A}`);l.search=Object.entries(c).map(([t,n])=>`${t}=${n}`).join("&");return l}return new URL(t)}catch(t){return null}})();if(!n){console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`);return null}const i=n.href;const{host:a,hostname:A,pathname:c,protocol:l,search:d}=n;if(d){return null}const h=l.slice(0,-1);if(!Object.values(p).includes(h)){return null}const f=isIpAddress(A);const g=i.includes(`${a}:${D[h]}`)||typeof t==="string"&&t.includes(`${a}:${D[h]}`);const m=`${a}${g?`:${D[h]}`:``}`;return{scheme:h,authority:m,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:f}};function split(t,n,i){if(i===1){return[t]}if(t===""){return[""]}const a=t.split(n);if(i===0){return a}return a.slice(0,i-1).concat(a.slice(1).join(n))}const stringEquals=(t,n)=>t===n;const substring=(t,n,i,a)=>{if(t==null||n>=i||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);const T={booleanEquals:booleanEquals,coalesce:coalesce,getAttr:getAttr,isSet:isSet,isValidHostLabel:g,ite:ite,not:not,parseURL:parseURL,split:split,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(t,n)=>{const i=[];const{referenceRecord:a,endpointParams:A}=n;let c=0;while(cn.referenceRecord[t]??n.endpointParams[t];const evaluateExpression=(t,n,i)=>{if(typeof t==="string"){return evaluateTemplate(t,i)}else if(t["fn"]){return N.callFunction(t,i)}else if(t["ref"]){return getReferenceValue(t,i)}throw new EndpointError(`'${n}': ${String(t)} is not a string, function or reference.`)};const callFunction=({fn:t,argv:n},i)=>{const a=Array(n.length);for(let t=0;t{const{assign:i}=t;if(i&&i in n.referenceRecord){throw new EndpointError(`'${i}' is already defined in Reference Record.`)}const a=callFunction(t,n);n.logger?.debug?.(`${R} evaluateCondition: ${toDebugString(t)} = ${toDebugString(a)}`);const A=a===""?true:!!a;if(i!=null){return{result:A,toAssign:{name:i,value:a}}}return{result:A}};const getEndpointHeaders=(t,n)=>Object.entries(t??{}).reduce((t,[i,a])=>{t[i]=a.map(t=>{const a=evaluateExpression(t,"Header value entry",n);if(typeof a!=="string"){throw new EndpointError(`Header '${i}' value '${a}' is not a string`)}return a});return t},{});const getEndpointProperties=(t,n)=>Object.entries(t).reduce((t,[i,a])=>{t[i]=M.getEndpointProperty(a,n);return t},{});const getEndpointProperty=(t,n)=>{if(Array.isArray(t)){return t.map(t=>getEndpointProperty(t,n))}switch(typeof t){case"string":return evaluateTemplate(t,n);case"object":if(t===null){throw new EndpointError(`Unexpected endpoint property: ${t}`)}return M.getEndpointProperties(t,n);case"boolean":return t;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof t}`)}};const M={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(t,n)=>{const i=evaluateExpression(t,"Endpoint URL",n);if(typeof i==="string"){try{return new URL(i)}catch(t){console.error(`Failed to construct URL with ${i}`,t);throw t}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof i}`)};const F=1e8;const decideEndpoint=(t,n)=>{const{nodes:i,root:a,results:A,conditions:c}=t;let l=a;const d={};const h={referenceRecord:d,endpointParams:n.endpointParams,logger:n.logger};while(l!==1&&l!==-1&&l=0===m.result?a:A}if(l>=F){const t=A[l-F];if(t[0]===-1){const[,n]=t;throw new EndpointError(evaluateExpression(n,"Error",h))}const[n,i,a]=t;return{url:getEndpointUrl(n,h),properties:getEndpointProperties(i,h),headers:getEndpointHeaders(a??{},h)}}throw new EndpointError(`No matching endpoint.`)};const evaluateConditions=(t=[],n)=>{const i={};const a={...n,referenceRecord:{...n.referenceRecord}};let A=false;for(const c of t){const{result:t,toAssign:l}=evaluateCondition(c,a);if(!t){return{result:t}}if(l){A=true;i[l.name]=l.value;a.referenceRecord[l.name]=l.value;n.logger?.debug?.(`${R} assign: ${l.name} := ${toDebugString(l.value)}`)}}if(A){return{result:true,referenceRecord:i}}return{result:true}};const evaluateEndpointRule=(t,n)=>{const{conditions:i,endpoint:a}=t;const{result:A,referenceRecord:c}=evaluateConditions(i,n);if(!A){return}const l=c?{...n,referenceRecord:{...n.referenceRecord,...c}}:n;const{url:d,properties:h,headers:f}=a;n.logger?.debug?.(`${R} Resolving endpoint from template: ${toDebugString(a)}`);const g={url:getEndpointUrl(d,l)};if(f!=null){g.headers=getEndpointHeaders(f,l)}if(h!=null){g.properties=getEndpointProperties(h,l)}return g};const evaluateErrorRule=(t,n)=>{const{conditions:i,error:a}=t;const{result:A,referenceRecord:c}=evaluateConditions(i,n);if(!A){return}const l=c?{...n,referenceRecord:{...n.referenceRecord,...c}}:n;throw new EndpointError(evaluateExpression(a,"Error",l))};const evaluateRules=(t,n)=>{for(const i of t){if(i.type==="endpoint"){const t=evaluateEndpointRule(i,n);if(t){return t}}else if(i.type==="error"){evaluateErrorRule(i,n)}else if(i.type==="tree"){const t=x.evaluateTreeRule(i,n);if(t){return t}}else{throw new EndpointError(`Unknown endpoint rule: ${i}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(t,n)=>{const{conditions:i,rules:a}=t;const{result:A,referenceRecord:c}=evaluateConditions(i,n);if(!A){return}const l=c?{...n,referenceRecord:{...n.referenceRecord,...c}}:n;return x.evaluateRules(a,l)};const x={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(t,n)=>{const{endpointParams:i,logger:a}=n;const{parameters:A,rules:c}=t;n.logger?.debug?.(`${R} Initial EndpointParams: ${toDebugString(i)}`);for(const t in A){const n=A[t];const a=i[t];if(a==null&&n.default!=null){i[t]=n.default;continue}if(n.required&&a==null){throw new EndpointError(`Missing required parameter: '${t}'`)}}const l=evaluateRules(c,{endpointParams:i,logger:a,referenceRecord:{}});n.logger?.debug?.(`${R} Resolved endpoint: ${toDebugString(l)}`);return l};const resolveEndpointRequiredConfig=t=>{const{endpoint:n}=t;if(n===undefined){t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return t};const U=bindGetEndpointFromInstructions(getEndpointFromConfig);const P=bindResolveEndpointConfig(getEndpointFromConfig);const L=bindEndpointMiddleware(getEndpointFromConfig);const O=bindGetEndpointPlugin(getEndpointFromConfig);n.BinaryDecisionDiagram=BinaryDecisionDiagram;n.EndpointCache=EndpointCache;n.EndpointError=EndpointError;n.customEndpointFunctions=v;n.decideEndpoint=decideEndpoint;n.endpointMiddleware=L;n.endpointMiddlewareOptions=b;n.getEndpointFromInstructions=U;n.getEndpointPlugin=O;n.isIpAddress=isIpAddress;n.resolveEndpoint=resolveEndpoint;n.resolveEndpointConfig=P;n.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;n.resolveParams=resolveParams},6579:(t,n,i)=>{const{Crc32:a}=i(9542);const{toHex:A,fromHex:c,toUtf8:l,fromUtf8:d}=i(2430);const{Readable:h}=i(7075);const{TypeRegistry:f}=i(6890);class Int64{bytes;constructor(t){this.bytes=t;if(t.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000){throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`)}const n=new Uint8Array(8);for(let i=7,a=Math.abs(Math.round(t));i>-1&&a>0;i--,a/=256){n[i]=a}if(t<0){negate(n)}return new Int64(n)}valueOf(){const t=this.bytes.slice(0);const n=t[0]&128;if(n){negate(t)}return parseInt(A(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function negate(t){for(let n=0;n<8;n++){t[n]^=255}for(let n=7;n>-1;n--){t[n]++;if(t[n]!==0)break}}class HeaderMarshaller{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t;this.fromUtf8=n}format(t){const n=[];for(const i of Object.keys(t)){const a=this.fromUtf8(i);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[i]))}const i=new Uint8Array(n.reduce((t,n)=>t+n.byteLength,0));let a=0;for(const t of n){i.set(t,a);a+=t.byteLength}return i}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?g.boolTrue:g.boolFalse]);case"byte":return Uint8Array.from([g.byte,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));n.setUint8(0,g.short);n.setInt16(1,t.value,false);return new Uint8Array(n.buffer);case"integer":const i=new DataView(new ArrayBuffer(5));i.setUint8(0,g.integer);i.setInt32(1,t.value,false);return new Uint8Array(i.buffer);case"long":const a=new Uint8Array(9);a[0]=g.long;a.set(t.value.bytes,1);return a;case"binary":const A=new DataView(new ArrayBuffer(3+t.value.byteLength));A.setUint8(0,g.byteArray);A.setUint16(1,t.value.byteLength,false);const l=new Uint8Array(A.buffer);l.set(t.value,3);return l;case"string":const d=this.fromUtf8(t.value);const h=new DataView(new ArrayBuffer(3+d.byteLength));h.setUint8(0,g.string);h.setUint16(1,d.byteLength,false);const f=new Uint8Array(h.buffer);f.set(d,3);return f;case"timestamp":const p=new Uint8Array(9);p[0]=g.timestamp;p.set(Int64.fromNumber(t.value.valueOf()).bytes,1);return p;case"uuid":if(!S.test(t.value)){throw new Error(`Invalid UUID received: ${t.value}`)}const m=new Uint8Array(17);m[0]=g.uuid;m.set(c(t.value.replace(/-/g,"")),1);return m}}parse(t){const n={};let i=0;while(i{if(typeof t!=="number"){throw new Error("Attempted to allocate an event message where size was not a number: "+t)}n=t;i=4;a=new Uint8Array(t);const A=new DataView(a.buffer);A.setUint32(0,t,false)};const iterator=async function*(){const c=t[Symbol.asyncIterator]();while(true){const{value:t,done:l}=await c.next();if(l){if(!n){return}else if(n===i){yield a}else{throw new Error("Truncated event message received.")}return}const d=t.length;let h=0;while(hnew D(t);class EventStreamMarshaller{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new D({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const i=typeof t[Symbol.asyncIterator]==="function"?t:readableToIterable(t);return this.universalMarshaller.deserialize(i,n)}serialize(t,n){return h.from(this.universalMarshaller.serialize(t,n))}}const eventStreamSerdeProvider=t=>new EventStreamMarshaller(t);async function*readableToIterable(t){let n=false;let i=false;const a=new Array;t.on("error",t=>{if(!n){n=true}if(t){throw t}});t.on("data",t=>{a.push(t)});t.on("end",()=>{n=true});while(!i){const t=await new Promise(t=>setTimeout(()=>t(a.shift()),0));if(t){yield t}i=n&&a.length===0}}const readableStreamToIterable=t=>({[Symbol.asyncIterator]:async function*(){const n=t.getReader();try{while(true){const{done:t,value:i}=await n.read();if(t)return;yield i}}finally{n.releaseLock()}}});const iterableToReadableStream=t=>{const n=t[Symbol.asyncIterator]();return new ReadableStream({async pull(t){const{done:i,value:a}=await n.next();if(i){return t.close()}t.enqueue(a)}})};const resolveEventStreamSerdeConfig=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)});class EventStreamSerde{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:t,serializer:n,deserializer:i,serdeContext:a,defaultContentType:A,compositeErrorRegistry:c}){this.marshaller=t;this.serializer=n;this.deserializer=i;this.serdeContext=a;this.defaultContentType=A;this.compositeErrorRegistry=c}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:i}){const a=this.marshaller;const A=n.getEventStreamMember();const c=n.getMemberSchema(A);const l=this.serializer;const d=this.defaultContentType;const h=Symbol("initialRequestMarker");const f={async*[Symbol.asyncIterator](){if(i){const t={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:d}};l.write(n,i);const a=l.flush();yield{[h]:true,headers:t,body:a}}for await(const n of t){yield n}}};return a.serialize(f,t=>{if(t[h]){return{headers:t.headers,body:t.body}}let n="";for(const i in t){if(i!=="__type"){n=i;break}}const{additionalHeaders:i,body:a,eventType:A,explicitPayloadContentType:l}=this.writeEventBody(n,c,t);const f={":event-type":{type:"string",value:A},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:l??d},...i};return{headers:f,body:a}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:i}){const a=this.marshaller;const A=n.getEventStreamMember();const c=n.getMemberSchema(A);const d=c.getMemberSchemas();const h=Symbol("initialResponseMarker");const f=a.deserialize(t.body,async t=>{let i="";for(const n in t){if(n!=="__type"){i=n;break}}const a=t[i].body;if(i==="initial-response"){const t=await this.deserializer.read(n,a);delete t[A];return{[h]:true,...t}}else if(i in d){const n=d[i];if(n.isStructSchema()){const A={};let c=false;for(const[d,h]of n.structIterator()){const{eventHeader:n,eventPayload:f}=h.getMergedTraits();c=c||Boolean(n||f);if(f){if(h.isBlobSchema()){A[d]=a}else if(h.isStringSchema()){A[d]=(this.serdeContext?.utf8Encoder??l)(a)}else if(h.isStructSchema()){A[d]=await this.deserializer.read(h,a)}}else if(n){const n=t[i].headers[d]?.value;if(n!=null){if(h.isNumericSchema()){if(n&&typeof n==="object"&&"bytes"in n){A[d]=BigInt(n.toString())}else{A[d]=Number(n)}}else{A[d]=n}}}}return{[i]:await this.readEventMember(n,a,c,A)}}return{[i]:await this.deserializer.read(n,a)}}else{return{$unknown:t}}});const g=f[Symbol.asyncIterator]();const p=await g.next();if(p.done){return f}if(p.value?.[h]){if(!n){throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.")}for(const t in p.value){i[t]=p.value[t]}}return{async*[Symbol.asyncIterator](){if(!p?.value?.[h]){yield p.value}while(true){const{done:t,value:n}=await g.next();if(t){break}yield n}}}}async readEventMember(t,n,i,a){let A;const c=t.getSchema();if(Array.isArray(c)&&c[0]===-3){const t=c[1];const n=f.for(t);this.compositeErrorRegistry?.copyFrom(n);A=(this.compositeErrorRegistry??n)?.getErrorCtor(c)}const l=i?a:n.byteLength===0?{}:await this.deserializer.read(t,n);if(A){const n=l.message??l.Message??"Unknown";const i={};const a=t.getMergedTraits().error;if(a){i.$fault=a}return Object.assign(new A({}),i,{message:n},l)}return l}writeEventBody(t,n,i){const a=this.serializer;let A=t;let c=null;let l;const h=(()=>{const i=n.getSchema();return i[4].includes(t)})();const f={};if(!h){const[n,c]=i[t];A=n;a.write(15,c)}else{const A=n.getMemberSchema(t);if(A.isStructSchema()){for(const[n,a]of A.structIterator()){const{eventHeader:A,eventPayload:l}=a.getMergedTraits();if(l){c=n}else if(A){const A=i[t][n];let c="binary";if(a.isNumericSchema()){if((-2)**31<=A&&A<=2**31-1){c="integer"}else{c="long"}}else if(a.isTimestampSchema()){c="timestamp"}else if(a.isStringSchema()){c="string"}else if(a.isBooleanSchema()){c="boolean"}if(A!=null){f[n]={type:c,value:A};delete i[t][n]}}}if(c!==null){const n=A.getMemberSchema(c);if(n.isBlobSchema()){l="application/octet-stream"}else if(n.isStringSchema()){l="text/plain"}a.write(n,i[t][c])}else{a.write(A,i[t])}}else if(A.isUnitSchema()){a.write(A,{})}else{throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}}const g=a.flush()??new Uint8Array;const p=typeof g==="string"?(this.serdeContext?.utf8Decoder??d)(g):g;return{body:p,eventType:A,explicitPayloadContentType:l,additionalHeaders:f}}}n.EventStreamCodec=EventStreamCodec;n.EventStreamMarshaller=EventStreamMarshaller;n.EventStreamSerde=EventStreamSerde;n.HeaderMarshaller=HeaderMarshaller;n.Int64=Int64;n.MessageDecoderStream=MessageDecoderStream;n.MessageEncoderStream=MessageEncoderStream;n.SmithyMessageDecoderStream=SmithyMessageDecoderStream;n.SmithyMessageEncoderStream=SmithyMessageEncoderStream;n.UniversalEventStreamMarshaller=D;n.eventStreamSerdeProvider=eventStreamSerdeProvider;n.getChunkedStream=getChunkedStream;n.getMessageUnmarshaller=getMessageUnmarshaller;n.getUnmarshalledStream=getUnmarshalledStream;n.iterableToReadableStream=iterableToReadableStream;n.readableStreamToIterable=readableStreamToIterable;n.resolveEventStreamSerdeConfig=resolveEventStreamSerdeConfig;n.universalEventStreamSerdeProvider=eventStreamSerdeProvider$1},3422:(t,n,i)=>{const{Uint8ArrayBlobAdapter:a,sdkStreamMixin:A,splitEvery:c,splitHeader:l,fromBase64:d,_parseEpochTimestamp:h,_parseRfc7231DateTime:f,_parseRfc3339DateTimeWithOffset:g,LazyJsonString:p,NumericValue:m,toUtf8:E,fromUtf8:C,generateIdempotencyToken:I,toBase64:y,dateToUtcString:B,quoteHeader:Q}=i(2430);const{TypeRegistry:w,NormalizedSchema:S,translateTraits:b}=i(6890);const{HttpRequest:R,HttpResponse:v,isValidHostname:k}=i(4534);const{parseQueryString:D,parseUrl:T}=i(4534);n.HttpRequest=R;n.HttpResponse=v;n.isValidHostname=k;n.parseQueryString=D;n.parseUrl=T;const{FieldPosition:N}=i(690);const collectBody=async(t=new Uint8Array,n)=>{if(t instanceof Uint8Array){return a.mutate(t)}if(!t){return a.mutate(new Uint8Array)}const i=n.streamCollector(t);return a.mutate(await i)};function extendedEncodeURIComponent(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}class SerdeContext{serdeContext;setSerdeContext(t){this.serdeContext=t}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(t){super();this.options=t;this.compositeErrorRegistry=w.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(n)}}getRequestType(){return R}getResponseType(){return v}setSerdeContext(t){this.serdeContext=t;this.serializer.setSerdeContext(t);this.deserializer.setSerdeContext(t);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(t)}}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol;t.hostname=n.url.hostname;t.port=n.url.port?Number(n.url.port):undefined;t.path=n.url.pathname;t.fragment=n.url.hash||void 0;t.username=n.url.username||void 0;t.password=n.url.password||void 0;if(!t.query){t.query={}}for(const[i,a]of n.url.searchParams.entries()){t.query[i]=a}if(n.headers){for(const i in n.headers){t.headers[i]=n.headers[i].join(", ")}}return t}else{t.protocol=n.protocol;t.hostname=n.hostname;t.port=n.port?Number(n.port):undefined;t.path=n.path;t.query={...n.query};if(n.headers){for(const i in n.headers){t.headers[i]=n.headers[i]}}return t}}setHostPrefix(t,n,i){if(this.serdeContext?.disableHostPrefix){return}const a=S.of(n.input);const A=b(n.traits??{});if(A.endpoint){let n=A.endpoint?.[0];if(typeof n==="string"){for(const[t,A]of a.structIterator()){if(!A.getMergedTraits().hostLabel){continue}const a=i[t];if(typeof a!=="string"){throw new Error(`@smithy/core/schema - ${t} in input must be a string as hostLabel.`)}n=n.replace(`{${t}}`,a)}t.hostname=n+t.hostname;if(!k(t.hostname)){throw new Error(`[${t.hostname}] is not a valid hostname.`)}}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:i}){const a=await this.loadEventStreamCapability();return a.serializeEventStream({eventStream:t,requestSchema:n,initialRequest:i})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:i}){const a=await this.loadEventStreamCapability();return a.deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:i})}async loadEventStreamCapability(){const{EventStreamSerde:t,eventStreamSerdeProvider:n}=i(6579);const a=this.resolveEventStreamMarshaller(n);return new t({marshaller:a,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}resolveEventStreamMarshaller(t){const n=this.serdeContext;if(n.eventStreamMarshaller){return n.eventStreamMarshaller}return t(this.serdeContext)}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,i,a,A){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return t.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(t,n,i){const a=n&&typeof n==="object"?n:{};const A=this.serializer;const c={};const l={};const d=await i.endpoint();const h=S.of(t?.input);const f=[];const g=[];let p=false;let m;const E=new R({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:c,headers:l,body:undefined});if(d){this.updateServiceEndpoint(E,d);this.setHostPrefix(E,t,a);const n=b(t.traits);if(n.http){E.method=n.http[0];const[t,i]=n.http[1].split("?");if(E.path=="/"){E.path=t}else{E.path+=t}const a=new URLSearchParams(i??"");for(const[t,n]of a){c[t]=n}}}for(const[t,n]of h.structIterator()){const i=n.getMergedTraits()??{};const d=a[t];if(d==null&&!n.isIdempotencyToken()){if(i.httpLabel){if(E.path.includes(`{${t}+}`)||E.path.includes(`{${t}}`)){throw new Error(`No value provided for input HTTP label: ${t}.`)}}continue}if(i.httpPayload){const i=n.isStreaming();if(i){const i=n.isStructSchema();if(i){if(a[t]){m=await this.serializeEventStream({eventStream:a[t],requestSchema:h})}}else{m=d}}else{A.write(n,d);m=A.flush()}}else if(i.httpLabel){A.write(n,d);const i=A.flush();if(E.path.includes(`{${t}+}`)){E.path=E.path.replace(`{${t}+}`,i.split("/").map(extendedEncodeURIComponent).join("/"))}else if(E.path.includes(`{${t}}`)){E.path=E.path.replace(`{${t}}`,extendedEncodeURIComponent(i))}}else if(i.httpHeader){A.write(n,d);l[i.httpHeader.toLowerCase()]=String(A.flush())}else if(typeof i.httpPrefixHeaders==="string"){for(const t in d){const a=d[t];const c=i.httpPrefixHeaders+t;A.write([n.getValueSchema(),{httpHeader:c}],a);l[c.toLowerCase()]=A.flush()}}else if(i.httpQuery||i.httpQueryParams){this.serializeQuery(n,d,c)}else{p=true;f.push(t);g.push(n)}}if(p&&a){const[t,n]=(h.getName(true)??"#Unknown").split("#");const i=h.getSchema()[6];const c=[3,t,n,h.getMergedTraits(),f,g,undefined];if(i){c[6]=i}else{c.pop()}A.write(c,a);m=A.flush()}E.headers=l;E.query=c;E.body=m;return E}serializeQuery(t,n,i){const a=this.serializer;const A=t.getMergedTraits();if(A.httpQueryParams){for(const a in n){if(!(a in i)){const c=n[a];const l=t.getValueSchema();Object.assign(l.getMergedTraits(),{...A,httpQuery:a,httpQueryParams:undefined});this.serializeQuery(l,c,i)}}return}if(t.isListSchema()){const c=!!t.getMergedTraits().sparse;const l=[];for(const i of n){a.write([t.getValueSchema(),A],i);const n=a.flush();if(c||n!==undefined){l.push(n)}}i[A.httpQuery]=l}else{a.write([t,A],n);i[A.httpQuery]=a.flush()}}async deserializeResponse(t,n,i){const a=this.deserializer;const A=S.of(t.output);const c={};if(i.statusCode>=300){const A=await collectBody(i.body,n);if(A.byteLength>0){Object.assign(c,await a.read(15,A))}await this.handleError(t,n,i,c,this.deserializeMetadata(i));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const t in i.headers){const n=i.headers[t];delete i.headers[t];i.headers[t.toLowerCase()]=n}const l=await this.deserializeHttpMessage(A,n,i,c);if(l.length){const t=await collectBody(i.body,n);if(t.byteLength>0){const n=await a.read(A,t);for(const t of l){if(n[t]!=null){c[t]=n[t]}}}}else if(l.discardResponseBody){await collectBody(i.body,n)}c.$metadata=this.deserializeMetadata(i);return c}async deserializeHttpMessage(t,n,i,a,d){let h;if(a instanceof Set){h=d}else{h=a}let f=true;const g=this.deserializer;const p=S.of(t);const m=[];for(const[t,a]of p.structIterator()){const d=a.getMemberTraits();if(d.httpPayload){f=false;const c=a.isStreaming();if(c){const n=a.isStructSchema();if(n){h[t]=await this.deserializeEventStream({response:i,responseSchema:p})}else{h[t]=A(i.body)}}else if(i.body){const A=await collectBody(i.body,n);if(A.byteLength>0){h[t]=await g.read(a,A)}}}else if(d.httpHeader){const n=String(d.httpHeader).toLowerCase();const A=i.headers[n];if(null!=A){if(a.isListSchema()){const i=a.getValueSchema();i.getMergedTraits().httpHeader=n;let d;if(i.isTimestampSchema()&&i.getSchema()===4){d=c(A,",",2)}else{d=l(A)}const f=[];for(const t of d){f.push(await g.read(i,t.trim()))}h[t]=f}else{h[t]=await g.read(a,A)}}}else if(d.httpPrefixHeaders!==undefined){h[t]={};for(const n in i.headers){if(n.startsWith(d.httpPrefixHeaders)){const A=i.headers[n];const c=a.getValueSchema();c.getMergedTraits().httpHeader=n;h[t][n.slice(d.httpPrefixHeaders.length)]=await g.read(c,A)}}}else if(d.httpResponseCode){h[t]=i.statusCode}else{m.push(t)}}m.discardResponseBody=f;return m}}class RpcProtocol extends HttpProtocol{async serializeRequest(t,n,i){const a=this.serializer;const A={};const c={};const l=await i.endpoint();const d=S.of(t?.input);const h=d.getSchema();let f;const g=n&&typeof n==="object"?n:{};const p=new R({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:A,headers:c,body:undefined});if(l){this.updateServiceEndpoint(p,l);this.setHostPrefix(p,t,g)}if(g){const t=d.getEventStreamMember();if(t){if(g[t]){const n={};for(const[i,A]of d.structIterator()){if(i!==t&&g[i]){a.write(A,g[i]);n[i]=a.flush()}}f=await this.serializeEventStream({eventStream:g[t],requestSchema:d,initialRequest:n})}}else{a.write(h,g);f=a.flush()}}p.headers=Object.assign(p.headers,c);p.query=A;p.body=f;p.method="POST";return p}async deserializeResponse(t,n,i){const a=this.deserializer;const A=S.of(t.output);const c={};if(i.statusCode>=300){const A=await collectBody(i.body,n);if(A.byteLength>0){Object.assign(c,await a.read(15,A))}await this.handleError(t,n,i,c,this.deserializeMetadata(i));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const t in i.headers){const n=i.headers[t];delete i.headers[t];i.headers[t.toLowerCase()]=n}const l=A.getEventStreamMember();if(l){c[l]=await this.deserializeEventStream({response:i,responseSchema:A,initialResponseContainer:c})}else{const t=await collectBody(i.body,n);if(t.byteLength>0){Object.assign(c,await a.read(A,t))}}c.$metadata=this.deserializeMetadata(i);return c}}const resolvedPath=(t,n,i,a,A,c)=>{if(n!=null&&n[i]!==undefined){const n=a();if(n==null||n.length<=0){throw new Error("Empty value provided for input HTTP label: "+i+".")}t=t.replace(A,c?n.split("/").map(t=>extendedEncodeURIComponent(t)).join("/"):extendedEncodeURIComponent(n))}else{throw new Error("No value provided for input HTTP label: "+i+".")}return t};function requestBuilder(t,n){return new RequestBuilder(t,n)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,n){this.input=t;this.context=n}async build(){const{hostname:t,protocol:n="https",port:i,path:a}=await this.context.endpoint();this.path=a;for(const t of this.resolvePathStack){t(this.path)}return new R({protocol:n,hostname:this.hostname||t,port:i,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){this.hostname=t;return this}bp(t){this.resolvePathStack.push(n=>{this.path=`${n?.endsWith("/")?n.slice(0,-1):n||""}`+t});return this}p(t,n,i,a){this.resolvePathStack.push(A=>{this.path=resolvedPath(A,this.input,t,n,i,a)});return this}h(t){this.headers=t;return this}q(t){this.query=t;return this}b(t){this.body=t;return this}m(t){this.method=t;return this}}function determineTimestampFormat(t,n){if(n.timestampFormat.useTrait){if(t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7)){return t.getSchema()}}const{httpLabel:i,httpPrefixHeaders:a,httpHeader:A,httpQuery:c}=t.getMergedTraits();const l=n.httpBindings?typeof a==="string"||Boolean(A)?6:Boolean(c)||Boolean(i)?5:undefined:undefined;return l??n.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(t){super();this.settings=t}read(t,n){const i=S.of(t);if(i.isListSchema()){return l(n).map(t=>this.read(i.getValueSchema(),t))}if(i.isBlobSchema()){return(this.serdeContext?.base64Decoder??d)(n)}if(i.isTimestampSchema()){const t=determineTimestampFormat(i,this.settings);switch(t){case 5:return g(n);case 6:return f(n);case 7:return h(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(i.isStringSchema()){const t=i.getMergedTraits().mediaType;let a=n;if(t){if(i.getMergedTraits().httpHeader){a=this.base64ToUtf8(a)}const n=t==="application/json"||t.endsWith("+json");if(n){a=p.from(a)}return a}}if(i.isNumericSchema()){return Number(n)}if(i.isBigIntegerSchema()){return BigInt(n)}if(i.isBigDecimalSchema()){return new m(n,"bigDecimal")}if(i.isBooleanSchema()){return String(n).toLowerCase()==="true"}return n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??E)((this.serdeContext?.base64Decoder??d)(t))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(t,n){super();this.codecDeserializer=t;this.stringDeserializer=new FromStringShapeDeserializer(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t);this.codecDeserializer.setSerdeContext(t);this.serdeContext=t}read(t,n){const i=S.of(t);const a=i.getMergedTraits();const A=this.serdeContext?.utf8Encoder??E;if(a.httpHeader||a.httpResponseCode){return this.stringDeserializer.read(i,A(n))}if(a.httpPayload){if(i.isBlobSchema()){const t=this.serdeContext?.utf8Decoder??C;if(typeof n==="string"){return t(n)}return n}else if(i.isStringSchema()){if("byteLength"in n){return A(n)}return n}}return this.codecDeserializer.read(i,n)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(t){super();this.settings=t}write(t,n){const i=S.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(i.isTimestampSchema()){if(!(n instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${i.getName(true)}`)}const t=determineTimestampFormat(i,this.settings);switch(t){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=B(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n);this.stringBuffer=String(n.getTime()/1e3)}return}if(i.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??y)(n);return}if(i.isListSchema()&&Array.isArray(n)){let t="";for(const a of n){this.write([i.getValueSchema(),i.getMergedTraits()],a);const n=this.flush();const A=i.getValueSchema().isTimestampSchema()?n:Q(n);if(t!==""){t+=", "}t+=A}this.stringBuffer=t;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const t=i.getMergedTraits().mediaType;let a=n;if(t){const n=t==="application/json"||t.endsWith("+json");if(n){a=p.from(a)}if(i.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??y)(a.toString());return}}this.stringBuffer=n;break;default:if(i.isIdempotencyToken()){this.stringBuffer=I()}else{this.stringBuffer=String(n)}}}flush(){const t=this.stringBuffer;this.stringBuffer="";return t}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(t,n,i=new ToStringShapeSerializer(n)){this.codecSerializer=t;this.stringSerializer=i}setSerdeContext(t){this.codecSerializer.setSerdeContext(t);this.stringSerializer.setSerdeContext(t)}write(t,n){const i=S.of(t);const a=i.getMergedTraits();if(a.httpHeader||a.httpLabel||a.httpQuery){this.stringSerializer.write(i,n);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(i,n)}flush(){if(this.buffer!==undefined){const t=this.buffer;this.buffer=undefined;return t}return this.codecSerializer.flush()}}class Field{name;kind;values;constructor({name:t,kind:n=N.HEADER,values:i=[]}){this.name=t;this.kind=n;this.values=i}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(n=>n!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:t=[],encoding:n="utf-8"}){t.forEach(this.setField.bind(this));this.encoding=n}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter(n=>n.kind===t)}}const getHttpHandlerExtensionConfiguration=t=>({setHttpHandler(n){t.httpHandler=n},httpHandler(){return t.httpHandler},updateHttpClientConfig(n,i){t.httpHandler?.updateHttpClientConfig(n,i)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=t=>({httpHandler:t.httpHandler()});const M="content-length";function contentLengthMiddleware(t){return n=>async i=>{const a=i.request;if(R.isInstance(a)){const{body:n,headers:i}=a;if(n&&Object.keys(i).map(t=>t.toLowerCase()).indexOf(M)===-1){try{const i=t(n);a.headers={...a.headers,[M]:String(i)}}catch(t){}}}return n({...i,request:a})}}const F={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=t=>({applyToStack:n=>{n.add(contentLengthMiddleware(t.bodyLengthChecker),F)}});const escapeUri=t=>encodeURIComponent(t).replace(/[!'()*]/g,hexEncode);const hexEncode=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=t=>t.split("/").map(escapeUri).join("/");function buildQueryString(t){const n=[];for(let i of Object.keys(t).sort()){const a=t[i];i=escapeUri(i);if(Array.isArray(a)){for(let t=0,A=a.length;t{const{Readable:a}=i(7075);const{NoOpLogger:A,normalizeProvider:c}=i(2658);const{HttpResponse:l,HttpRequest:d}=i(3422);const{parseRfc7231DateTime:h,v4:f}=i(2430);const isStreamingPayload=t=>t?.body instanceof a||typeof ReadableStream!=="undefined"&&t?.body instanceof ReadableStream;const g=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const p=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const m=["TimeoutError","RequestTimeout","RequestTimeoutException"];const E=[500,502,503,504];const C=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const I=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"];const isRetryableByTrait=t=>t?.$retryable!==undefined;const isClockSkewError=t=>g.includes(t.name);const isClockSkewCorrectedError=t=>t.$metadata?.clockSkewCorrected;const isBrowserNetworkError=t=>{const n=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const i=t&&t instanceof TypeError;if(!i){return false}return n.has(t.message)};const isThrottlingError=t=>t.$metadata?.httpStatusCode===429||p.includes(t.name)||t.$retryable?.throttling==true;const isTransientError=(t,n=0)=>isRetryableByTrait(t)||isClockSkewCorrectedError(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||m.includes(t.name)||C.includes(t?.code||"")||I.includes(t?.code||"")||E.includes(t.$metadata?.httpStatusCode||0)||isBrowserNetworkError(t)||isNodeJsHttp2TransientError(t)||t.cause!==undefined&&n<=10&&isTransientError(t.cause,n+1);const isServerError=t=>{if(t.$metadata?.httpStatusCode!==undefined){const n=t.$metadata.httpStatusCode;if(500<=n&&n<=599&&!isTransientError(t)){return true}return false}return false};function isNodeJsHttp2TransientError(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}const y=100;const B=20*1e3;const Q=500;const w=500;const S=5;const b=10;const R=1;const v="amz-sdk-invocation-id";const k="amz-sdk-request";function parseRetryAfterHeader(t,n){if(!l.isInstance(t)){return}for(const i of Object.keys(t.headers)){const a=i.toLowerCase();if(a==="retry-after"){const a=t.headers[i];let A=NaN;if(a.endsWith("GMT")){try{const t=h(a);A=(t.getTime()-Date.now())/1e3}catch(t){n?.trace?.("Failed to parse retry-after header");n?.trace?.(t)}}else if(a.match(/ GMT, ((\d+)|(\d+\.\d+))$/)){A=Number(a.match(/ GMT, ([\d.]+)$/)?.[1])}else if(a.match(/^((\d+)|(\d+\.\d+))$/)){A=Number(a)}else if(Date.parse(a)>=Date.now()){A=(Date.parse(a)-Date.now())/1e3}if(isNaN(A)){return}return new Date(Date.now()+A*1e3)}else if(a==="x-amz-retry-after"){const a=t.headers[i];const A=Number(a);if(isNaN(A)){n?.trace?.(`Failed to parse x-amz-retry-after=${a}`);return}return new Date(Date.now()+A)}}}function getRetryAfterHint(t,n){return parseRetryAfterHeader(t,n)}const asSdkError=t=>{if(t instanceof Error)return t;if(t instanceof Object)return Object.assign(new Error,t);if(typeof t==="string")return new Error(t);return new Error(`AWS SDK error wrapper for ${t}`)};function bindRetryMiddleware(t){return n=>(i,a)=>async c=>{let l=await n.retryStrategy();const h=await n.maxAttempts();if(isRetryStrategyV2(l)){l=l;let g=await l.acquireInitialRetryToken((a["partition_id"]??"")+(a.__retryLongPoll?":longpoll":""));let p=new Error;let m=0;let E=0;const{request:C}=c;const I=d.isInstance(C);if(I){C.headers[v]=f()}while(true){try{if(I){C.headers[k]=`attempt=${m+1}; max=${h}`}const{response:t,output:n}=await i(c);l.recordSuccess(g);n.$metadata.attempts=m+1;n.$metadata.totalRetryDelay=E;return{response:t,output:n}}catch(i){const c=getRetryErrorInfo(i,n.logger);p=asSdkError(i);if(I&&t(C)){(a.logger instanceof A?console:a.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw p}try{g=await l.refreshRetryTokenForRetry(g,c)}catch(t){if(!p.$metadata){p.$metadata={}}p.$metadata.attempts=m+1;p.$metadata.totalRetryDelay=E;throw p}m=g.getRetryCount();const d=g.getRetryDelay();E+=(g?.$retryLog?.acquisitionDelay??0)+d;if(d>0){await cooldown(d)}}}}else{l=l;if(l?.mode){a.userAgent=[...a.userAgent||[],["cfg/retry-mode",l.mode]]}return l.retry(i,c)}}}const cooldown=t=>new Promise(n=>setTimeout(n,t));const isRetryStrategyV2=t=>typeof t.acquireInitialRetryToken!=="undefined"&&typeof t.refreshRetryTokenForRetry!=="undefined"&&typeof t.recordSuccess!=="undefined";const getRetryErrorInfo=(t,n)=>{const i={error:t,errorType:getRetryErrorType(t)};const a=parseRetryAfterHeader(t.$response,n);if(a){i.retryAfterHint=a}return i};const getRetryErrorType=t=>{if(isThrottlingError(t))return"THROTTLING";if(isTransientError(t))return"TRANSIENT";if(isServerError(t))return"SERVER_ERROR";return"CLIENT_ERROR"};const D={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};function bindGetRetryPlugin(t){const n=bindRetryMiddleware(t);return t=>({applyToStack:i=>{i.add(n(t),D)}})}class DefaultRateLimiter{static setTimeoutFn=(t,n)=>setTimeout(t,n);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=false;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7;this.minCapacity=t?.minCapacity??1;this.minFillRate=t?.minFillRate??.5;this.scaleConstant=t?.scaleConstant??.4;this.smooth=t?.smooth??.8;this.lastThrottleTime=this.getCurrentTimeInSeconds();this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){let n;this.updateMeasuredRate();const i=t;const a=i?.errorType==="THROTTLING"||isThrottlingError(i?.error??t);if(a){const t=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=t;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();n=this.cubicThrottle(t);this.enableTokenBucket()}else{this.calculateTimeWindow();n=this.cubicSuccess(this.getCurrentTimeInSeconds())}const A=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(A)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(!this.enabled){return}this.refillTokenBucket();while(t>this.availableTokens){const n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>DefaultRateLimiter.setTimeoutFn(t,n));this.refillTokenBucket()}this.availableTokens=this.availableTokens-t}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+n);this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(t){this.refillTokenBucket();this.fillRate=Math.max(t,this.minFillRate);this.maxCapacity=Math.max(t,this.minCapacity);this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds();const n=Math.floor(t*2)/2;this.requestCount++;if(n>this.lastTxRateBucket){const t=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}class Retry{static v2026=typeof process!=="undefined"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return Retry.v2026?50:100}static throttlingDelay(){return Retry.v2026?1e3:500}static cost(){return Retry.v2026?14:5}static throttlingCost(){return Retry.v2026?5:10}static modifiedCostType(){return Retry.v2026?"THROTTLING":"TRANSIENT"}}class DefaultRetryBackoffStrategy{x=Retry.delay();computeNextBackoffDelay(t){const n=Math.random();const i=2;const a=n*Math.min(this.x*i**t,B);return Math.floor(a)}setDelayBase(t){this.x=t}}class DefaultRetryToken{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(t,n,i,a){this.delay=t;this.count=n;this.cost=i;this.longPoll=a}getRetryCount(){return this.count}getRetryDelay(){return Math.min(B,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var T;(function(t){t["STANDARD"]="standard";t["ADAPTIVE"]="adaptive"})(T||(T={}));const N=3;const M=T.STANDARD;const F={incompatible:1,attempts:2,capacity:3};let x=class StandardRetryStrategy{mode=T.STANDARD;retryBackoffStrategy;capacity=w;maxAttemptsProvider;baseDelay;constructor(t){if(typeof t==="number"){this.maxAttemptsProvider=async()=>t}else if(typeof t==="function"){this.maxAttemptsProvider=t}else if(t&&typeof t==="object"){this.maxAttemptsProvider=async()=>t.maxAttempts;this.baseDelay=t.baseDelay;this.retryBackoffStrategy=t.backoff}this.maxAttemptsProvider??=async()=>N;this.baseDelay??=Retry.delay();this.retryBackoffStrategy??=new DefaultRetryBackoffStrategy}async acquireInitialRetryToken(t){return new DefaultRetryToken(Retry.delay(),0,undefined,Retry.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,n){const i=await this.getMaxAttempts();const a=this.retryCode(t,n,i);const A=a===0;const c=t.isLongPoll?.();if(A||c){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?Retry.throttlingDelay():this.baseDelay);const l=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount());let d=l;if(n.retryAfterHint instanceof Date){d=Math.max(l,Math.min(n.retryAfterHint.getTime()-Date.now(),l+5e3))}if(!A){const t=Retry.v2026&&a===F.capacity&&c?d:0;if(t>0){await new Promise(n=>setTimeout(n,t))}}else{const n=this.getCapacityCost(i);this.capacity-=n;const a=new DefaultRetryToken(0,t.getRetryCount()+1,n,t.isLongPoll?.()??false);await new Promise(t=>setTimeout(t,d));a.$retryLog.acquisitionDelay=d;return a}}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.min(w,this.capacity+(t.getRetryCost()??R))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(t){console.warn(`Max attempts provider could not resolve. Using default of ${N}`);return N}}retryCode(t,n,i){const a=t.getRetryCount()+1;const A=this.isRetryableError(n.errorType)?0:F.incompatible;const c=a=this.getCapacityCost(n.errorType)?0:F.capacity;return A||c||l}getCapacityCost(t){return t===Retry.modifiedCostType()?Retry.throttlingCost():Retry.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};let U=class AdaptiveRetryStrategy{mode=T.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(t,n){const{rateLimiter:i}=n??{};this.rateLimiter=i??new DefaultRateLimiter;this.standardRetryStrategy=n?new x({maxAttempts:typeof t==="number"?t:3,...n}):new x(t)}async acquireInitialRetryToken(t){const n=await this.standardRetryStrategy.acquireInitialRetryToken(t);await this.rateLimiter.getSendToken();return n}async refreshRetryTokenForRetry(t,n){this.rateLimiter.updateClientSendingRate(n);const i=await this.standardRetryStrategy.refreshRetryTokenForRetry(t,n);await this.rateLimiter.getSendToken();return i}recordSuccess(t){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class ConfiguredRetryStrategy extends x{computeNextBackoffDelay;constructor(t,n=Retry.delay()){super(typeof t==="function"?t:async()=>t);if(typeof n==="number"){this.computeNextBackoffDelay=()=>n}else{this.computeNextBackoffDelay=n}this.retryBackoffStrategy.computeNextBackoffDelay=t=>{const n=t+1;return this.computeNextBackoffDelay(n)}}}const getDefaultRetryQuota=(t,n)=>{const i=t;const a=R;const A=S;const c=b;let l=t;const getCapacityAmount=t=>t.name==="TimeoutError"?c:A;const hasRetryTokens=t=>getCapacityAmount(t)<=l;const retrieveRetryTokens=t=>{if(!hasRetryTokens(t)){throw new Error("No retry token available")}const n=getCapacityAmount(t);l-=n;return n};const releaseRetryTokens=t=>{l+=t??a;l=Math.min(l,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(t,n)=>Math.floor(Math.min(B,Math.random()*2**n*t));const defaultRetryDecider=t=>{if(!t){return false}return isRetryableByTrait(t)||isClockSkewError(t)||isThrottlingError(t)||isTransientError(t)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=T.STANDARD;constructor(t,n){this.maxAttemptsProvider=t;this.retryDecider=n?.retryDecider??defaultRetryDecider;this.delayDecider=n?.delayDecider??defaultDelayDecider;this.retryQuota=n?.retryQuota??getDefaultRetryQuota(w)}shouldRetry(t,n,i){return nsetTimeout(t,l));continue}if(!n.$metadata){n.$metadata={}}n.$metadata.attempts=A;n.$metadata.totalRetryDelay=c;throw n}}}}const getDelayFromRetryAfterHeader=t=>{if(!l.isInstance(t))return;const n=Object.keys(t.headers).find(t=>t.toLowerCase()==="retry-after");if(!n)return;const i=t.headers[n];const a=Number(i);if(!Number.isNaN(a))return Math.min(a*1e3,2e4);const A=new Date(i);return Math.min(A.getTime()-Date.now(),2e4)};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(t,n){const{rateLimiter:i,...a}=n??{};super(t,a);this.rateLimiter=i??new DefaultRateLimiter;this.mode=T.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:t=>{this.rateLimiter.updateClientSendingRate(t)}})}}const P="AWS_MAX_ATTEMPTS";const L="max_attempts";const O={environmentVariableSelector:t=>{const n=t[P];if(!n)return undefined;const i=parseInt(n);if(Number.isNaN(i)){throw new Error(`Environment variable ${P} mast be a number, got "${n}"`)}return i},configFileSelector:t=>{const n=t[L];if(!n)return undefined;const i=parseInt(n);if(Number.isNaN(i)){throw new Error(`Shared config file entry ${L} mast be a number, got "${n}"`)}return i},default:N};const resolveRetryConfig=(t,n)=>{const{retryStrategy:i,retryMode:a}=t;const{defaultMaxAttempts:A=N,defaultBaseDelay:l=Retry.delay()}=n??{};const d=c(t.maxAttempts??A);let h=i?Promise.resolve(i):undefined;const getDefault=async()=>{const t=await d();const n=await c(a)()===T.ADAPTIVE;if(n){return new U(d,{maxAttempts:t,baseDelay:l})}return new x({maxAttempts:t,baseDelay:l})};return Object.assign(t,{maxAttempts:d,retryStrategy:()=>h??=getDefault()})};const H="AWS_RETRY_MODE";const $="retry_mode";const G={environmentVariableSelector:t=>t[H],configFileSelector:t=>t[$],default:M};const omitRetryHeadersMiddleware=()=>t=>async n=>{const{request:i}=n;if(d.isInstance(i)){delete i.headers[v];delete i.headers[k]}return t(n)};const V={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=t=>({applyToStack:t=>{t.addRelativeTo(omitRetryHeadersMiddleware(),V)}});const Y=bindRetryMiddleware(isStreamingPayload);const J=bindGetRetryPlugin(isStreamingPayload);n.AdaptiveRetryStrategy=U;n.CONFIG_MAX_ATTEMPTS=L;n.CONFIG_RETRY_MODE=$;n.ConfiguredRetryStrategy=ConfiguredRetryStrategy;n.DEFAULT_MAX_ATTEMPTS=N;n.DEFAULT_RETRY_DELAY_BASE=y;n.DEFAULT_RETRY_MODE=M;n.DefaultRateLimiter=DefaultRateLimiter;n.DeprecatedAdaptiveRetryStrategy=AdaptiveRetryStrategy;n.DeprecatedStandardRetryStrategy=StandardRetryStrategy;n.ENV_MAX_ATTEMPTS=P;n.ENV_RETRY_MODE=H;n.INITIAL_RETRY_TOKENS=w;n.INVOCATION_ID_HEADER=v;n.MAXIMUM_RETRY_DELAY=B;n.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=O;n.NODE_RETRY_MODE_CONFIG_OPTIONS=G;n.NO_RETRY_INCREMENT=R;n.REQUEST_HEADER=k;n.RETRY_COST=S;n.RETRY_MODES=T;n.Retry=Retry;n.StandardRetryStrategy=x;n.THROTTLING_RETRY_DELAY_BASE=Q;n.TIMEOUT_RETRY_COST=b;n.defaultDelayDecider=defaultDelayDecider;n.defaultRetryDecider=defaultRetryDecider;n.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;n.getRetryAfterHint=getRetryAfterHint;n.getRetryPlugin=J;n.isBrowserNetworkError=isBrowserNetworkError;n.isClockSkewCorrectedError=isClockSkewCorrectedError;n.isClockSkewError=isClockSkewError;n.isNodeJsHttp2TransientError=isNodeJsHttp2TransientError;n.isRetryableByTrait=isRetryableByTrait;n.isServerError=isServerError;n.isThrottlingError=isThrottlingError;n.isTransientError=isTransientError;n.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;n.omitRetryHeadersMiddlewareOptions=V;n.resolveRetryConfig=resolveRetryConfig;n.retryMiddleware=Y;n.retryMiddlewareOptions=D},6890:(t,n,i)=>{const{getSmithyContext:a,HttpResponse:A,toEndpointV1:c}=i(4534);const deref=t=>{if(typeof t==="function"){return t()}return t};const operation=(t,n,i,a,A)=>({name:n,namespace:t,traits:i,input:a,output:A});const schemaDeserializationMiddleware=t=>(n,i)=>async c=>{const{response:l}=await n(c);const{operationSchema:d}=a(i);const[,h,f,g,p,m]=d??[];try{const n=await t.protocol.deserializeResponse(operation(h,f,g,p,m),{...t,...i},l);return{response:l,output:n}}catch(t){Object.defineProperty(t,"$response",{value:l,enumerable:false,writable:false,configurable:false});if(!("$metadata"in t)){const n=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{t.message+="\n "+n}catch(t){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(n)}else{i.logger?.warn?.(n)}}if(typeof t.$responseBodyText!=="undefined"){if(t.$response){t.$response.body=t.$responseBodyText}}try{if(A.isInstance(l)){const{headers:n={},statusCode:i}=l;const a=Object.entries(n);t.$metadata={httpStatusCode:i,requestId:findHeader(/^x-[\w-]+-request-?id$/,a),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,a),cfId:findHeader(/^x-[\w-]+-cf-id$/,a)}}}catch(t){}}throw t}};const findHeader=(t,n)=>(n.find(([n])=>n.match(t))||[void 0,void 0])[1];const schemaSerializationMiddleware=t=>(n,i)=>async A=>{const{operationSchema:l}=a(i);const[,d,h,f,g,p]=l??[];const m=i.endpointV2?async()=>c(i.endpointV2):t.endpoint;const E=await t.protocol.serializeRequest(operation(d,h,f,g,p),A.input,{...t,...i,endpoint:m});return n({...A,request:E})};const l={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(t){return{applyToStack:n=>{n.add(schemaSerializationMiddleware(t),d);n.add(schemaDeserializationMiddleware(t),l);t.protocol.setSerdeContext(t)}}}class Schema{name;namespace;traits;static assign(t,n){const i=Object.assign(t,n);return i}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);if(!n&&typeof t==="object"&&t!==null){const n=t;return n.symbol===this.symbol}return n}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(t,n,i,a)=>Schema.assign(new ListSchema,{name:n,namespace:t,traits:i,valueSchema:a});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(t,n,i,a,A)=>Schema.assign(new MapSchema,{name:n,namespace:t,traits:i,keySchema:a,valueSchema:A});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(t,n,i,a,A)=>Schema.assign(new OperationSchema,{name:n,namespace:t,traits:i,input:a,output:A});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(t,n,i,a,A)=>Schema.assign(new StructureSchema,{name:n,namespace:t,traits:i,memberNames:a,memberList:A});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(t,n,i,a,A,c)=>Schema.assign(new ErrorSchema,{name:n,namespace:t,traits:i,memberNames:a,memberList:A,ctor:null});const h=[];function translateTraits(t){if(typeof t==="object"){return t}t=t|0;if(h[t]){return h[t]}const n={};let i=0;for(const a of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((t>>i++&1)===1){n[a]=1}}return h[t]=n}const f={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const g=[];const p={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t;this.memberName=n;const i=[];let a=t;let A=t;this._isMemberSchema=false;while(isMemberSchema(a)){i.push(a[1]);a=a[0];A=deref(a);this._isMemberSchema=true}if(i.length>0){this.memberTraits={};for(let t=i.length-1;t>=0;--t){const n=i[t];Object.assign(this.memberTraits,translateTraits(n))}}else{this.memberTraits=0}if(A instanceof NormalizedSchema){const t=this.memberTraits;Object.assign(this,A);this.memberTraits=Object.assign({},t,A.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=n??A.memberName;return}this.schema=deref(A);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(A);this.traits=0}if(this._isMemberSchema&&!n){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);if(!n&&typeof t==="object"&&t!==null){const n=t;return n.symbol===this.symbol}return n}static of(t){const n=typeof t==="function"||typeof t==="object"&&t!==null;if(typeof t==="number"){if(g[t]){return g[t]}}else if(typeof t==="string"){if(p[t]){return p[t]}}else if(n){if(t[f.ns]){return t[f.ns]}}const i=deref(t);if(i instanceof NormalizedSchema){return i}if(isMemberSchema(i)){const[n,a]=i;if(n instanceof NormalizedSchema){Object.assign(n.getMergedTraits(),translateTraits(a));return n}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}const a=new NormalizedSchema(i);if(n){return t[f.ns]=a}if(typeof i==="string"){return p[i]=a}if(typeof i==="number"){return g[i]=a}return a}getSchema(){const t=this.schema;if(Array.isArray(t)&&t[0]===0){return t[4]}return t}getName(t=false){const{name:n}=this;const i=!t&&n&&n.includes("#");return i?n.split("#")[1]:n||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t==="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t==="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!=="object"){return false}const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();if(typeof t!=="object"){return false}return t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t==="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const i=this.getSchema();const a=t?15:i[4]??0;return member([a,0],"key")}getValueSchema(){const t=this.getSchema();const[n,i,a]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const A=typeof t==="number"?63&t:t&&typeof t==="object"&&(i||a)?t[3+t[0]]:n?15:void 0;if(A!=null){return member([A,0],i?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const i=n[4].indexOf(t);const a=n[5][i];return member(isMemberSchema(a)?a:[a,0],t)}if(this.isDocumentSchema()){return member([15,0],t)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,i]of this.structIterator()){t[n]=i}}catch(t){}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator()){if(n.isStreaming()&&n.isStructSchema()){return t}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const t=this.getSchema();const n=t[4].length;let i=t[f.it];if(i&&n===i.length){yield*i;return}i=Array(n);for(let a=0;aArray.isArray(t)&&t.length===2;const isStaticSchema=t=>Array.isArray(t)&&t.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(t,n,i,a)=>Schema.assign(new SimpleSchema,{name:n,namespace:t,traits:a,schemaRef:i});const simAdapter=(t,n,i,a)=>Schema.assign(new SimpleSchema,{name:n,namespace:t,traits:i,schemaRef:a});const m={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,i=new Map){this.namespace=t;this.schemas=n;this.exceptions=i}static for(t){if(!TypeRegistry.registries.has(t)){TypeRegistry.registries.set(t,new TypeRegistry(t))}return TypeRegistry.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:i}=this;for(const[i,a]of t.schemas){if(!n.has(i)){n.set(i,a)}}for(const[n,a]of t.exceptions){if(!i.has(n)){i.set(n,a)}}}register(t,n){const i=this.normalizeShapeId(t);for(const t of[this,TypeRegistry.for(i.split("#")[0])]){t.schemas.set(i,n)}}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n)){if(!t.includes("#")){const n="#"+t;const i=[];for(const[t,a]of this.schemas.entries()){if(t.endsWith(n)){i.push(a)}}if(i.length===1){return i[0]}}throw new Error(`@smithy/core/schema - schema not found for ${n}`)}return this.schemas.get(n)}registerError(t,n){const i=t;const a=i[1];for(const t of[this,TypeRegistry.for(a)]){t.schemas.set(a+"#"+i[2],i);t.exceptions.set(i,n)}}getErrorCtor(t){const n=t;if(this.exceptions.has(n)){return this.exceptions.get(n)}const i=TypeRegistry.for(n[1]);return i.exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys()){if(Array.isArray(t)){const[,n,i]=t;const a=n+"#"+i;if(a.startsWith("smithy.ts.sdk.synthetic.")&&a.endsWith("ServiceException")){return t}}}return undefined}find(t){for(const n of this.schemas.values()){if(t(n)){return n}}return undefined}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(t){if(t.includes("#")){return t}return this.namespace+"#"+t}}n.ErrorSchema=ErrorSchema;n.ListSchema=ListSchema;n.MapSchema=MapSchema;n.NormalizedSchema=NormalizedSchema;n.OperationSchema=OperationSchema;n.SCHEMA=m;n.Schema=Schema;n.SimpleSchema=SimpleSchema;n.StructureSchema=StructureSchema;n.TypeRegistry=TypeRegistry;n.deref=deref;n.deserializerMiddlewareOption=l;n.error=error;n.getSchemaSerdePlugin=getSchemaSerdePlugin;n.isStaticSchema=isStaticSchema;n.list=list;n.map=map;n.op=op;n.operation=operation;n.serializerMiddlewareOption=d;n.sim=sim;n.simAdapter=simAdapter;n.simpleSchemaCacheN=g;n.simpleSchemaCacheS=p;n.struct=struct;n.traitsCache=h;n.translateTraits=translateTraits},2430:(t,n,i)=>{const{createHmac:a,createHash:A,getRandomValues:c}=i(7598);const{ReadStream:l,lstatSync:d,fstatSync:h}=i(3024);const{HttpResponse:f}=i(4534);const{toEndpointV1:g}=i(2085);const{Readable:p,Writable:m,PassThrough:E}=i(7075);const isArrayBuffer=t=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";const fromArrayBuffer=(t,n=0,i=t.byteLength-n)=>{if(!isArrayBuffer(t)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`)}return Buffer.from(t,n,i)};const fromString=(t,n)=>{if(typeof t!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`)}return n?Buffer.from(t,n):Buffer.from(t)};const C=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=t=>{if(t.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!C.exec(t)){throw new TypeError(`Invalid base64 string.`)}const n=fromString(t,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};const fromUtf8$1=t=>{const n=fromString(t,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toBase64$1=t=>{let n;if(typeof t==="string"){n=fromUtf8$1(t)}else{n=t}if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString("base64")};function bindUint8ArrayBlobAdapter(t,n,i,a){return class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(t,i="utf-8"){if(typeof t==="string"){if(i==="base64"){return Uint8ArrayBlobAdapter.mutate(a(t))}return Uint8ArrayBlobAdapter.mutate(n(t))}throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){Object.setPrototypeOf(t,Uint8ArrayBlobAdapter.prototype);return t}transformToString(n="utf-8"){if(n==="base64"){return i(this)}return t(this)}}}const toUtf8$1=t=>{if(typeof t==="string"){return t}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};const I=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function bindV4(t){if(typeof crypto!=="undefined"&&typeof crypto.randomUUID==="function"){return()=>crypto.randomUUID()}return()=>{const n=new Uint8Array(16);t(n);n[6]=n[6]&15|64;n[8]=n[8]&63|128;return I[n[0]]+I[n[1]]+I[n[2]]+I[n[3]]+"-"+I[n[4]]+I[n[5]]+"-"+I[n[6]]+I[n[7]]+"-"+I[n[8]]+I[n[9]]+"-"+I[n[10]]+I[n[11]]+I[n[12]]+I[n[13]]+I[n[14]]+I[n[15]]}}const copyDocumentWithTransform=(t,n,i=t=>t)=>t;const parseBoolean=t=>{switch(t){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${t}"`)}};const expectBoolean=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="number"){if(t===0||t===1){v.warn(stackTraceWarning(`Expected boolean, got ${typeof t}: ${t}`))}if(t===0){return false}if(t===1){return true}}if(typeof t==="string"){const n=t.toLowerCase();if(n==="false"||n==="true"){v.warn(stackTraceWarning(`Expected boolean, got ${typeof t}: ${t}`))}if(n==="false"){return false}if(n==="true"){return true}}if(typeof t==="boolean"){return t}throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)};const expectNumber=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="string"){const n=parseFloat(t);if(!Number.isNaN(n)){if(String(n)!==String(t)){v.warn(stackTraceWarning(`Expected number but observed string: ${t}`))}return n}}if(typeof t==="number"){return t}throw new TypeError(`Expected number, got ${typeof t}: ${t}`)};const y=Math.ceil(2**127*(2-2**-23));const expectFloat32=t=>{const n=expectNumber(t);if(n!==undefined&&!Number.isNaN(n)&&n!==Infinity&&n!==-Infinity){if(Math.abs(n)>y){throw new TypeError(`Expected 32-bit float, got ${t}`)}}return n};const expectLong=t=>{if(t===null||t===undefined){return undefined}if(Number.isInteger(t)&&!Number.isNaN(t)){return t}throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};const B=expectLong;const expectInt32=t=>expectSizedInt(t,32);const expectShort=t=>expectSizedInt(t,16);const expectByte=t=>expectSizedInt(t,8);const expectSizedInt=(t,n)=>{const i=expectLong(t);if(i!==undefined&&castInt(i,n)!==i){throw new TypeError(`Expected ${n}-bit integer, got ${t}`)}return i};const castInt=(t,n)=>{switch(n){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}};const expectNonNull=(t,n)=>{if(t===null||t===undefined){if(n){throw new TypeError(`Expected a non-null value for ${n}`)}throw new TypeError("Expected a non-null value")}return t};const expectObject=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="object"&&!Array.isArray(t)){return t}const n=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${n}: ${t}`)};const expectString=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="string"){return t}if(["boolean","number","bigint"].includes(typeof t)){v.warn(stackTraceWarning(`Expected string, got ${typeof t}: ${t}`));return String(t)}throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};const expectUnion=t=>{if(t===null||t===undefined){return undefined}const n=expectObject(t);const i=[];for(const t in n){if(n[t]!=null){i.push(t)}}if(i.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(i.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${i} were not null.`)}return n};const strictParseDouble=t=>{if(typeof t=="string"){return expectNumber(parseNumber(t))}return expectNumber(t)};const Q=strictParseDouble;const strictParseFloat32=t=>{if(typeof t=="string"){return expectFloat32(parseNumber(t))}return expectFloat32(t)};const w=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=t=>{const n=t.match(w);if(n===null||n[0].length!==t.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(t)};const limitedParseDouble=t=>{if(typeof t=="string"){return parseFloatString(t)}return expectNumber(t)};const S=limitedParseDouble;const b=limitedParseDouble;const limitedParseFloat32=t=>{if(typeof t=="string"){return parseFloatString(t)}return expectFloat32(t)};const parseFloatString=t=>{switch(t){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${t}`)}};const strictParseLong=t=>{if(typeof t==="string"){return expectLong(parseNumber(t))}return expectLong(t)};const R=strictParseLong;const strictParseInt32=t=>{if(typeof t==="string"){return expectInt32(parseNumber(t))}return expectInt32(t)};const strictParseShort=t=>{if(typeof t==="string"){return expectShort(parseNumber(t))}return expectShort(t)};const strictParseByte=t=>{if(typeof t==="string"){return expectByte(parseNumber(t))}return expectByte(t)};const stackTraceWarning=t=>String(new TypeError(t).stack||t).split("\n").slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join("\n");const v={warn:console.warn};const k=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(t){const n=t.getUTCFullYear();const i=t.getUTCMonth();const a=t.getUTCDay();const A=t.getUTCDate();const c=t.getUTCHours();const l=t.getUTCMinutes();const d=t.getUTCSeconds();const h=A<10?`0${A}`:`${A}`;const f=c<10?`0${c}`:`${c}`;const g=l<10?`0${l}`:`${l}`;const p=d<10?`0${d}`:`${d}`;return`${k[a]}, ${h} ${D[i]} ${n} ${f}:${g}:${p} GMT`}const T=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const n=T.exec(t);if(!n){throw new TypeError("Invalid RFC-3339 date-time value")}const[i,a,A,c,l,d,h,f]=n;const g=strictParseShort(stripLeadingZeroes(a));const p=parseDateValue(A,"month",1,12);const m=parseDateValue(c,"day",1,31);return buildDate(g,p,m,{hours:l,minutes:d,seconds:h,fractionalMilliseconds:f})};const N=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const n=N.exec(t);if(!n){throw new TypeError("Invalid RFC-3339 date-time value")}const[i,a,A,c,l,d,h,f,g]=n;const p=strictParseShort(stripLeadingZeroes(a));const m=parseDateValue(A,"month",1,12);const E=parseDateValue(c,"day",1,31);const C=buildDate(p,m,E,{hours:l,minutes:d,seconds:h,fractionalMilliseconds:f});if(g.toUpperCase()!="Z"){C.setTime(C.getTime()-parseOffsetToMilliseconds(g))}return C};const M=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const F=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const x=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let n=M.exec(t);if(n){const[t,i,a,A,c,l,d,h]=n;return buildDate(strictParseShort(stripLeadingZeroes(A)),parseMonthByShortName(a),parseDateValue(i,"day",1,31),{hours:c,minutes:l,seconds:d,fractionalMilliseconds:h})}n=F.exec(t);if(n){const[t,i,a,A,c,l,d,h]=n;return adjustRfc850Year(buildDate(parseTwoDigitYear(A),parseMonthByShortName(a),parseDateValue(i,"day",1,31),{hours:c,minutes:l,seconds:d,fractionalMilliseconds:h}))}n=x.exec(t);if(n){const[t,i,a,A,c,l,d,h]=n;return buildDate(strictParseShort(stripLeadingZeroes(h)),parseMonthByShortName(i),parseDateValue(a.trimLeft(),"day",1,31),{hours:A,minutes:c,seconds:l,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=t=>{if(t===null||t===undefined){return undefined}let n;if(typeof t==="number"){n=t}else if(typeof t==="string"){n=strictParseDouble(t)}else if(typeof t==="object"&&t.tag===1){n=t.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(n)||n===Infinity||n===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(n*1e3))};const buildDate=(t,n,i,a)=>{const A=n-1;validateDayOfMonth(t,A,i);return new Date(Date.UTC(t,A,i,parseDateValue(a.hours,"hour",0,23),parseDateValue(a.minutes,"minute",0,59),parseDateValue(a.seconds,"seconds",0,60),parseMilliseconds(a.fractionalMilliseconds)))};const parseTwoDigitYear=t=>{const n=(new Date).getUTCFullYear();const i=Math.floor(n/100)*100+strictParseShort(stripLeadingZeroes(t));if(i{if(t.getTime()-(new Date).getTime()>U){return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()))}return t};const parseMonthByShortName=t=>{const n=D.indexOf(t);if(n<0){throw new TypeError(`Invalid month: ${t}`)}return n+1};const P=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(t,n,i)=>{let a=P[n];if(n===1&&isLeapYear(t)){a=29}if(i>a){throw new TypeError(`Invalid day for ${D[n]} in ${t}: ${i}`)}};const isLeapYear=t=>t%4===0&&(t%100!==0||t%400===0);const parseDateValue=(t,n,i,a)=>{const A=strictParseByte(stripLeadingZeroes(t));if(Aa){throw new TypeError(`${n} must be between ${i} and ${a}, inclusive`)}return A};const parseMilliseconds=t=>{if(t===null||t===undefined){return 0}return strictParseFloat32("0."+t)*1e3};const parseOffsetToMilliseconds=t=>{const n=t[0];let i=1;if(n=="+"){i=1}else if(n=="-"){i=-1}else{throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`)}const a=Number(t.substring(1,3));const A=Number(t.substring(4,6));return i*(a*60+A)*60*1e3};const stripLeadingZeroes=t=>{let n=0;while(n{if(t&&typeof t==="object"&&(t instanceof L||"deserializeJSON"in t)){return t}else if(typeof t==="string"||Object.getPrototypeOf(t)===String.prototype){return L(String(t))}return L(JSON.stringify(t))};L.fromObject=L.from;function quoteHeader(t){if(t.includes(",")||t.includes('"')){t=`"${t.replace(/"/g,'\\"')}"`}return t}const O=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const H=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const $=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const G=`(\\d?\\d)`;const V=`(\\d{4})`;const Y=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const J=new RegExp(`^${O}, ${G} ${H} ${V} ${$} GMT$`);const W=new RegExp(`^${O}, ${G}-${H}-(\\d\\d) ${$} GMT$`);const q=new RegExp(`^${O} ${H} ( [1-9]|\\d\\d) ${$} ${V}$`);const j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=t=>{if(t==null){return void 0}let n=NaN;if(typeof t==="number"){n=t}else if(typeof t==="string"){if(!/^-?\d*\.?\d+$/.test(t)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}n=Number.parseFloat(t)}else if(typeof t==="object"&&t.tag===1){n=t.value}if(isNaN(n)||Math.abs(n)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(n*1e3))};const _parseRfc3339DateTimeWithOffset=t=>{if(t==null){return void 0}if(typeof t!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const n=Y.exec(t);if(!n){throw new TypeError(`Invalid RFC3339 timestamp format ${t}`)}const[,i,a,A,c,l,d,,h,f]=n;range(a,1,12);range(A,1,31);range(c,0,23);range(l,0,59);range(d,0,60);const g=new Date(Date.UTC(Number(i),Number(a)-1,Number(A),Number(c),Number(l),Number(d),Number(h)?Math.round(parseFloat(`0.${h}`)*1e3):0));g.setUTCFullYear(Number(i));if(f.toUpperCase()!="Z"){const[,t,n,i]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0];const a=t==="-"?1:-1;g.setTime(g.getTime()+a*(Number(n)*60*60*1e3+Number(i)*60*1e3))}return g};const _parseRfc7231DateTime=t=>{if(t==null){return void 0}if(typeof t!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let n;let i;let a;let A;let c;let l;let d;let h;if(h=J.exec(t)){[,n,i,a,A,c,l,d]=h}else if(h=W.exec(t)){[,n,i,a,A,c,l,d]=h;a=(Number(a)+1900).toString()}else if(h=q.exec(t)){[,i,n,A,c,l,d,a]=h}if(a&&l){const t=Date.UTC(Number(a),j.indexOf(i),Number(n),Number(A),Number(c),Number(l),d?Math.round(parseFloat(`0.${d}`)*1e3):0);range(n,1,31);range(A,0,23);range(c,0,59);range(l,0,60);const h=new Date(t);h.setUTCFullYear(Number(a));return h}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)};function range(t,n,i){const a=Number(t);if(ai){throw new Error(`Value ${a} out of range [${n}, ${i}]`)}}function splitEvery(t,n,i){if(i<=0||!Number.isInteger(i)){throw new Error("Invalid number of delimiters ("+i+") for splitEvery.")}const a=t.split(n);if(i===1){return a}const A=[];let c="";for(let t=0;t{const n=t.length;const i=[];let a=false;let A=undefined;let c=0;for(let l=0;l{t=t.trim();const n=t.length;if(n<2){return t}if(t[0]===`"`&&t[n-1]===`"`){t=t.slice(1,n-1)}return t.replace(/\\"/g,'"')})};const z=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;class NumericValue{string;type;constructor(t,n){this.string=t;this.type=n;if(!z.test(t)){throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${t}"`)}}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=="object"){return false}const n=t;return NumericValue.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&z.test(n.string)}}function nv(t){return new NumericValue(String(t),"bigDecimal")}const K={};const Z={};for(let t=0;t<256;t++){let n=t.toString(16).toLowerCase();if(n.length===1){n=`0${n}`}K[t]=n;Z[n]=t}function fromHex(t){if(t.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const n=new Uint8Array(t.length/2);for(let i=0;i{if(!t){return 0}if(typeof t==="string"){return Buffer.byteLength(t)}else if(typeof t.byteLength==="number"){return t.byteLength}else if(typeof t.size==="number"){return t.size}else if(typeof t.start==="number"&&typeof t.end==="number"){return t.end+1-t.start}else if(t instanceof l){if(t.path!=null){return d(t.path).size}else if(typeof t.fd==="number"){return h(t.fd).size}}throw new Error(`Body Length computation failed for ${t}`)};const toUint8Array=t=>{if(t instanceof Uint8Array){return t}if(typeof t==="string"){return fromUtf8$1(t)}if(ArrayBuffer.isView(t)){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(t)};function concatBytes(t,n){if(n===undefined){n=0;for(const i of t){n+=i.byteLength}}const i=new Uint8Array(n);let a=0;for(const n of t){i.set(n,a);a+=n.byteLength}return i}const deserializerMiddleware=(t,n)=>(i,a)=>async A=>{const{response:c}=await i(A);try{const i=await n(c,t);return{response:c,output:i}}catch(t){Object.defineProperty(t,"$response",{value:c,enumerable:false,writable:false,configurable:false});if(!("$metadata"in t)){const n=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{t.message+="\n "+n}catch(t){if(!a.logger||a.logger?.constructor?.name==="NoOpLogger"){console.warn(n)}else{a.logger?.warn?.(n)}}if(typeof t.$responseBodyText!=="undefined"){if(t.$response){t.$response.body=t.$responseBodyText}}try{if(f.isInstance(c)){const{headers:n={}}=c;const i=Object.entries(n);t.$metadata={httpStatusCode:c.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,i),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,i),cfId:findHeader(/^x-[\w-]+-cf-id$/,i)}}}catch(t){}}throw t}};const findHeader=(t,n)=>(n.find(([n])=>n.match(t))||[void 0,void 0])[1];const serializerMiddleware=(t,n)=>(i,a)=>async A=>{const c=t;const l=a.endpointV2?async()=>g(a.endpointV2):c.endpoint;if(!l){throw new Error("No valid endpoint provider available.")}const d=await n(A.input,{...t,endpoint:l});return i({...A,request:d})};const X={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const ee={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(t,n,i){return{applyToStack:a=>{a.add(deserializerMiddleware(t,i),X);a.add(serializerMiddleware(t,n),ee)}}}class Hash{algorithmIdentifier;secret;hash;constructor(t,n){this.algorithmIdentifier=t;this.secret=n;this.reset()}update(t,n){this.hash.update(toUint8Array(castSourceData(t,n)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?a(this.algorithmIdentifier,castSourceData(this.secret)):A(this.algorithmIdentifier)}}function castSourceData(t,n){if(Buffer.isBuffer(t)){return t}if(typeof t==="string"){return fromString(t,n)}if(ArrayBuffer.isView(t)){return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayBuffer(t)}let te=class ChecksumStream extends p{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:t,checksum:n,source:i,checksumSourceLocation:a,base64Encoder:A}){super();if(typeof i.pipe!=="function"){throw new Error(`@smithy/util-stream: unsupported source type ${i?.constructor?.name??i} in ChecksumStream.`)}this.source=i;this.base64Encoder=A??toBase64$1;this.expectedChecksum=t;this.checksum=n;this.checksumSourceLocation=a;this.source.on("data",this.onSourceData);this.source.on("end",this.onSourceEnd);this.source.on("error",this.onSourceError);this.source.on("close",this.onSourceClose);this.source.pause()}onSourceData=t=>{if(this.destroyed){return}try{this.checksum.update(t)}catch(t){this.destroy(t);return}if(!this.push(t)){this.source.pause()}};onSourceEnd=async()=>{if(this.destroyed){return}try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`));return}}catch(t){this.destroy(t);return}this.push(null)};onSourceError=t=>{this.destroy(t)};onSourceClose=()=>{if(!this.destroyed&&!this.source.readableEnded){this.destroy(new Error("Connection lost or stream closed before all data was received."))}};_read(t){this.source.resume()}_destroy(t,n){this.source?.removeListener("data",this.onSourceData);this.source?.removeListener("end",this.onSourceEnd);this.source?.removeListener("error",this.onSourceError);this.source?.removeListener("close",this.onSourceClose);this.source?.destroy();n(t)}};const isReadableStream=t=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);const isBlob=t=>typeof Blob==="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob);const fromUtf8=t=>(new TextEncoder).encode(t);const re=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;Object.entries(re).reduce((t,[n,i])=>{t[i]=Number(n);return t},{});const ne=re.split("");const se=6;const oe=8;const ie=63;function toBase64(t){let n;if(typeof t==="string"){n=fromUtf8(t)}else{n=t}const i=typeof n==="object"&&typeof n.length==="number";const a=typeof n==="object"&&typeof n.byteOffset==="number"&&typeof n.byteLength==="number";if(!i&&!a){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}let A="";for(let t=0;t>n]}A+="==".slice(0,4-c)}return A}const ae=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends ae{}const createChecksumStream$1=({expectedChecksum:t,checksum:n,source:i,checksumSourceLocation:a,base64Encoder:A})=>{if(!isReadableStream(i)){throw new Error(`@smithy/util-stream: unsupported source type ${i?.constructor?.name??i} in ChecksumStream.`)}const c=A??toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const l=new TransformStream({start(){},async transform(t,i){n.update(t);i.enqueue(t)},async flush(i){const A=await n.digest();const l=c(A);if(t!==l){const n=new Error(`Checksum mismatch: expected "${t}" but received "${l}"`+` in response header "${a}".`);i.error(n)}else{i.terminate()}}});i.pipeThrough(l);const d=l.readable;Object.setPrototypeOf(d,ChecksumStream.prototype);return d};function createChecksumStream(t){if(typeof ReadableStream==="function"&&isReadableStream(t.source)){return createChecksumStream$1(t)}return new te(t)}class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t);this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){const t=this.byteArrays[0];this.reset();return t}const t=this.allocByteArray(this.byteLength);let n=0;for(let i=0;inew Uint8Array(t))];let d=-1;const pull=async t=>{const{value:h,done:f}=await a.read();const g=h;if(f){if(d!==-1){const n=flush(l,d);if(sizeOf(n)>0){t.enqueue(n)}}t.close()}else{const a=modeOf(g,false);if(d!==a){if(d>=0){t.enqueue(flush(l,d))}d=a}if(d===-1){t.enqueue(g);return}const h=sizeOf(g);c+=h;const f=sizeOf(l[d]);if(h>=n&&f===0){t.enqueue(g)}else{const a=merge(l,d,g);if(!A&&c>n*2){A=true;i?.warn(`@smithy/util-stream - stream chunk size ${h} is below threshold of ${n}, automatically buffering.`)}if(a>=n){t.enqueue(flush(l,d))}else{await pull(t)}}}};return new ReadableStream({pull:pull})}function merge(t,n,i){switch(n){case 0:t[0]+=i;return sizeOf(t[0]);case 1:case 2:t[n].push(i);return sizeOf(t[n])}}function flush(t,n){switch(n){case 0:const i=t[0];t[0]="";return i;case 1:case 2:return t[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function sizeOf(t){return t?.byteLength??t?.length??0}function modeOf(t,n=true){if(n&&typeof Buffer!=="undefined"&&t instanceof Buffer){return 2}if(t instanceof Uint8Array){return 1}if(typeof t==="string"){return 0}return-1}function createBufferedReadable(t,n,i){if(isReadableStream(t)){return createBufferedReadableStream(t,n,i)}const a=new p({read(){}});let A=false;let c=0;const l=["",new ByteArrayCollector(t=>new Uint8Array(t)),new ByteArrayCollector(t=>Buffer.from(new Uint8Array(t)))];let d=-1;t.on("data",t=>{const h=modeOf(t,true);if(d!==h){if(d>=0){a.push(flush(l,d))}d=h}if(d===-1){a.push(t);return}const f=sizeOf(t);c+=f;const g=sizeOf(l[d]);if(f>=n&&g===0){a.push(t)}else{const h=merge(l,d,t);if(!A&&c>n*2){A=true;i?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${n}, automatically buffering.`)}if(h>=n){a.push(flush(l,d))}}});t.on("end",()=>{if(d!==-1){const t=flush(l,d);if(sizeOf(t)>0){a.push(t)}}a.push(null)});return a}const getAwsChunkedEncodingStream$1=(t,n)=>{const{base64Encoder:i,bodyLengthChecker:a,checksumAlgorithmFn:A,checksumLocationName:c,streamHasher:l}=n;const d=i!==undefined&&a!==undefined&&A!==undefined&&c!==undefined&&l!==undefined;const h=d?l(A,t):undefined;const f=t.getReader();return new ReadableStream({async pull(t){const{value:n,done:A}=await f.read();if(A){t.enqueue(`0\r\n`);if(d){const n=i(await h);t.enqueue(`${c}:${n}\r\n`);t.enqueue(`\r\n`)}t.close()}else{t.enqueue(`${(a(n)||0).toString(16)}\r\n${n}\r\n`)}}})};function getAwsChunkedEncodingStream(t,n){const i=t;const a=t;if(isReadableStream(a)){return getAwsChunkedEncodingStream$1(a,n)}const{base64Encoder:A,bodyLengthChecker:c,checksumAlgorithmFn:l,checksumLocationName:d,streamHasher:h}=n;const f=A!==undefined&&l!==undefined&&d!==undefined&&h!==undefined;const g=f?h(l,i):undefined;const m=new p({read:()=>{}});i.on("data",t=>{const n=c(t)||0;if(n===0){return}m.push(`${n.toString(16)}\r\n`);m.push(t);m.push("\r\n")});i.on("end",async()=>{m.push(`0\r\n`);if(f){const t=A(await g);m.push(`${d}:${t}\r\n`);m.push(`\r\n`)}m.push(null)});return m}async function headStream$1(t,n){let i=0;const a=[];const A=t.getReader();let c=false;while(!c){const{done:t,value:l}=await A.read();if(l){a.push(l);i+=l?.byteLength??0}if(i>=n){break}c=t}A.releaseLock();const l=new Uint8Array(Math.min(n,i));let d=0;for(const t of a){if(t.byteLength>l.byteLength-d){l.set(t.subarray(0,l.byteLength-d),d);break}else{l.set(t,d)}d+=t.length}return l}const headStream=(t,n)=>{if(isReadableStream(t)){return headStream$1(t,n)}return new Promise((i,a)=>{const A=new Ae;A.limit=n;t.pipe(A);t.on("error",t=>{A.end();a(t)});A.on("error",a);A.on("finish",function(){const t=concatBytes(this.buffers);i(t)})})};let Ae=class Collector extends m{buffers=[];limit=Infinity;bytesBuffered=0;_write(t,n,i){this.buffers.push(t);this.bytesBuffered+=t.byteLength??0;if(this.bytesBuffered>=this.limit){const t=this.bytesBuffered-this.limit;const n=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=n.subarray(0,n.byteLength-t);this.emit("finish")}i()}};const toUtf8=t=>{if(typeof t==="string"){return t}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return new TextDecoder("utf-8").decode(t)};const streamCollector$1=async t=>{if(isBlob(t)){return collectBlob(t)}return collectReadableStream(t)};async function collectBlob(t){return t.arrayBuffer().then(t=>new Uint8Array(t))}async function collectReadableStream(t){const n=[];const i=t.getReader();let a=0;while(true){const{done:t,value:A}=await i.read();if(A){n.push(A);a+=A.length}if(t){break}}return concatBytes(n,a)}const ce="The stream has already been transformed.";const sdkStreamMixin$1=t=>{if(!isBlobInstance(t)&&!isReadableStream(t)){const n=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let n=false;const transformToByteArray=async()=>{if(n){throw new Error(ce)}n=true;return await streamCollector$1(t)};const blobToWebStream=t=>{if(typeof t.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return t.stream()};return Object.assign(t,{transformToByteArray:transformToByteArray,transformToString:async t=>{const n=await transformToByteArray();if(t==="base64"){return toBase64(n)}else if(t==="hex"){return toHex(n)}else if(t===undefined||t==="utf8"||t==="utf-8"){return toUtf8(n)}else if(typeof TextDecoder==="function"){return new TextDecoder(t).decode(n)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(n){throw new Error(ce)}n=true;if(isBlobInstance(t)){return blobToWebStream(t)}else if(isReadableStream(t)){return t}else{throw new Error(`Cannot transform payload to web stream, got ${t}`)}}})};const isBlobInstance=t=>typeof Blob==="function"&&t instanceof Blob;const streamCollector=t=>{if(isBlob(t)){return collectBlob(t)}if(isReadableStream(t)){return collectReadableStream(t)}return new Promise((n,i)=>{const a=new Collector;const A=t;A.pipe(a);A.on("error",t=>{a.end();i(t)});a.on("error",i);a.on("finish",function(){const t=concatBytes(this.bufferedBytes);n(t)})})};class Collector extends m{bufferedBytes=[];_write(t,n,i){this.bufferedBytes.push(t);i()}}const le="The stream has already been transformed.";const sdkStreamMixin=t=>{if(!(t instanceof p)){try{return sdkStreamMixin$1(t)}catch(n){const i=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${i}`)}}let n=false;const transformToByteArray=async()=>{if(n){throw new Error(le)}n=true;return await streamCollector(t)};return Object.assign(t,{transformToByteArray:transformToByteArray,transformToString:async t=>{const n=await transformToByteArray();if(t===undefined||Buffer.isEncoding(t)){return fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString(t)}else{const i=new TextDecoder(t);return i.decode(n)}},transformToWebStream:()=>{if(n){throw new Error(le)}if(t.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof p.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}n=true;return p.toWeb(t)}})};async function splitStream$1(t){if(typeof t.stream==="function"){t=t.stream()}const n=t;return n.tee()}async function splitStream(t){if(isReadableStream(t)||isBlob(t)){return splitStream$1(t)}const n=new E;const i=new E;t.pipe(n);t.pipe(i);return[n,i]}class Uint8ArrayBlobAdapter extends(bindUint8ArrayBlobAdapter(toUtf8$1,fromUtf8$1,toBase64$1,fromBase64)){}const ue=c;const de=bindV4(ue);const he=de;n.ChecksumStream=te;n.Hash=Hash;n.LazyJsonString=L;n.NumericValue=NumericValue;n.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;n._parseEpochTimestamp=_parseEpochTimestamp;n._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;n._parseRfc7231DateTime=_parseRfc7231DateTime;n.calculateBodyLength=calculateBodyLength;n.concatBytes=concatBytes;n.copyDocumentWithTransform=copyDocumentWithTransform;n.createBufferedReadable=createBufferedReadable;n.createChecksumStream=createChecksumStream;n.dateToUtcString=dateToUtcString;n.deserializerMiddleware=deserializerMiddleware;n.deserializerMiddlewareOption=X;n.expectBoolean=expectBoolean;n.expectByte=expectByte;n.expectFloat32=expectFloat32;n.expectInt=B;n.expectInt32=expectInt32;n.expectLong=expectLong;n.expectNonNull=expectNonNull;n.expectNumber=expectNumber;n.expectObject=expectObject;n.expectShort=expectShort;n.expectString=expectString;n.expectUnion=expectUnion;n.fromArrayBuffer=fromArrayBuffer;n.fromBase64=fromBase64;n.fromHex=fromHex;n.fromString=fromString;n.fromUtf8=fromUtf8$1;n.generateIdempotencyToken=he;n.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;n.getSerdePlugin=getSerdePlugin;n.handleFloat=S;n.headStream=headStream;n.isArrayBuffer=isArrayBuffer;n.isBlob=isBlob;n.isReadableStream=isReadableStream;n.limitedParseDouble=limitedParseDouble;n.limitedParseFloat=b;n.limitedParseFloat32=limitedParseFloat32;n.logger=v;n.nv=nv;n.parseBoolean=parseBoolean;n.parseEpochTimestamp=parseEpochTimestamp;n.parseRfc3339DateTime=parseRfc3339DateTime;n.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;n.parseRfc7231DateTime=parseRfc7231DateTime;n.quoteHeader=quoteHeader;n.sdkStreamMixin=sdkStreamMixin;n.serializerMiddleware=serializerMiddleware;n.serializerMiddlewareOption=ee;n.splitEvery=splitEvery;n.splitHeader=splitHeader;n.splitStream=splitStream;n.streamCollector=streamCollector;n.strictParseByte=strictParseByte;n.strictParseDouble=strictParseDouble;n.strictParseFloat=Q;n.strictParseFloat32=strictParseFloat32;n.strictParseInt=R;n.strictParseInt32=strictParseInt32;n.strictParseLong=strictParseLong;n.strictParseShort=strictParseShort;n.toBase64=toBase64$1;n.toHex=toHex;n.toUint8Array=toUint8Array;n.toUtf8=toUtf8$1;n.v4=de},4534:(t,n,i)=>{const{SMITHY_CONTEXT_KEY:a}=i(690);const getSmithyContext=t=>t[a]||(t[a]={});class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET";this.hostname=t.hostname||"localhost";this.port=t.port;this.query=t.query||{};this.headers=t.headers||{};this.body=t.body;this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:";this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/";this.username=t.username;this.password=t.password;this.fragment=t.fragment}static clone(t){const n=new HttpRequest({...t,headers:{...t.headers}});if(n.query){n.query=cloneQuery(n.query)}return n}static isInstance(t){if(!t){return false}const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n["query"]==="object"&&typeof n["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(t){return Object.keys(t).reduce((n,i)=>{const a=t[i];return{...n,[i]:Array.isArray(a)?[...a]:a}},{})}class HttpResponse{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode;this.reason=t.reason;this.headers=t.headers||{};this.body=t.body}static isInstance(t){if(!t)return false;const n=t;return typeof n.statusCode==="number"&&typeof n.headers==="object"}}const A=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(t,n=false)=>{if(!n){return A.test(t)}const i=t.split(".");for(const t of i){if(!isValidHostLabel(t)){return false}}return true};function isValidHostname(t){const n=/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/;return n.test(t)}const normalizeProvider=t=>{if(typeof t==="function")return t;const n=Promise.resolve(t);return()=>n};function parseQueryString(t){const n={};t=t.replace(/^\?/,"");if(t){for(const i of t.split("&")){let[t,a=null]=i.split("=");t=decodeURIComponent(t);if(a){a=decodeURIComponent(a)}if(!(t in n)){n[t]=a}else if(Array.isArray(n[t])){n[t].push(a)}else{n[t]=[n[t],a]}}}return n}const parseUrl=t=>{if(typeof t==="string"){return parseUrl(new URL(t))}const{hostname:n,pathname:i,port:a,protocol:A,search:c}=t;let l;if(c){l=parseQueryString(c)}return{hostname:n,port:a?parseInt(a):undefined,protocol:A,path:i,query:l}};const toEndpointV1=t=>{if(typeof t==="object"){if("url"in t){const n=parseUrl(t.url);if(t.headers){n.headers={};for(const i in t.headers){n.headers[i.toLowerCase()]=t.headers[i].join(", ")}}return n}return t}return parseUrl(t)};n.HttpRequest=HttpRequest;n.HttpResponse=HttpResponse;n.getSmithyContext=getSmithyContext;n.isValidHostLabel=isValidHostLabel;n.isValidHostname=isValidHostname;n.normalizeProvider=normalizeProvider;n.parseQueryString=parseQueryString;n.parseUrl=parseUrl;n.toEndpointV1=toEndpointV1},566:(t,n,i)=>{const{ProviderError:a,CredentialsProviderError:A,loadConfig:c}=i(7291);const l=i(7067);const{parseUrl:d}=i(3422);const isImdsCredentials=t=>Boolean(t)&&typeof t==="object"&&typeof t.AccessKeyId==="string"&&typeof t.SecretAccessKey==="string"&&typeof t.Token==="string"&&typeof t.Expiration==="string";const fromImdsCredentials=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}});const h=1e3;const f=0;const providerConfigFromInit=({maxRetries:t=f,timeout:n=h})=>({maxRetries:t,timeout:n});function httpRequest(t){return new Promise((n,i)=>{const A=l.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});A.on("error",t=>{i(Object.assign(new a("Unable to connect to instance metadata service"),t));A.destroy()});A.on("timeout",()=>{i(new a("TimeoutError from instance metadata service"));A.destroy()});A.on("response",t=>{const{statusCode:c=400}=t;if(c<200||300<=c){i(Object.assign(new a("Error response received from instance metadata service"),{statusCode:c}));A.destroy()}const l=[];t.on("data",t=>{l.push(t)});t.on("end",()=>{n(Buffer.concat(l));A.destroy()})});A.end()})}const retry=(t,n)=>{let i=t();for(let a=0;a{const{timeout:n,maxRetries:i}=providerConfigFromInit(t);return()=>retry(async()=>{const i=await getCmdsUri({logger:t.logger});const a=JSON.parse(await requestFromEcsImds(n,i));if(!isImdsCredentials(a)){throw new A("Invalid response received from instance metadata service.",{logger:t.logger})}return fromImdsCredentials(a)},i)};const requestFromEcsImds=async(t,n)=>{if(process.env[m]){n.headers={...n.headers,Authorization:process.env[m]}}const i=await httpRequest({...n,timeout:t});return i.toString()};const E="169.254.170.2";const C=new Set(["localhost","127.0.0.1"]);const I=new Set(["http:","https:"]);const getCmdsUri=async({logger:t})=>{if(process.env[p]){return{hostname:E,path:process.env[p]}}if(process.env[g]){let n;try{n=new URL(process.env[g])}catch{throw new A(`${process.env[g]} is not a valid container metadata service URL`,{tryNextLink:false,logger:t})}if(!n.hostname||!C.has(n.hostname)){throw new A(`${n.hostname} is not a valid container metadata service hostname`,{tryNextLink:false,logger:t})}if(!n.protocol||!I.has(n.protocol)){throw new A(`${n.protocol} is not a valid container metadata service protocol`,{tryNextLink:false,logger:t})}return{protocol:n.protocol,hostname:n.hostname,path:n.pathname+n.search,port:n.port?parseInt(n.port,10):undefined}}throw new A("The container metadata credential provider cannot be used unless"+` the ${p} or ${g} environment`+" variable is set",{tryNextLink:false,logger:t})};class InstanceMetadataV1FallbackError extends A{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(t,n=true){super(t,n);this.tryNextLink=n;Object.setPrototypeOf(this,InstanceMetadataV1FallbackError.prototype)}}var y;(function(t){t["IPv4"]="http://169.254.169.254";t["IPv6"]="http://[fd00:ec2::254]"})(y||(y={}));const B="AWS_EC2_METADATA_SERVICE_ENDPOINT";const Q="ec2_metadata_service_endpoint";const w={environmentVariableSelector:t=>t[B],configFileSelector:t=>t[Q],default:undefined};var S;(function(t){t["IPv4"]="IPv4";t["IPv6"]="IPv6"})(S||(S={}));const b="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";const R="ec2_metadata_service_endpoint_mode";const v={environmentVariableSelector:t=>t[b],configFileSelector:t=>t[R],default:S.IPv4};const getInstanceMetadataEndpoint=async()=>d(await getFromEndpointConfig()||await getFromEndpointModeConfig());const getFromEndpointConfig=async()=>c(w)();const getFromEndpointModeConfig=async()=>{const t=await c(v)();switch(t){case S.IPv4:return y.IPv4;case S.IPv6:return y.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}.`+` Select from ${Object.values(S)}`)}};const k=5*60;const D=5*60;const T="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(t,n)=>{const i=k+Math.floor(Math.random()*D);const a=new Date(Date.now()+i*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(a)}.\nFor more information, please visit: `+T);const A=t.originalExpiration??t.expiration;return{...t,...A?{originalExpiration:A}:{},expiration:a}};const staticStabilityProvider=(t,n={})=>{const i=n?.logger||console;let a;return async()=>{let n;try{n=await t();if(n.expiration&&n.expiration.getTime()staticStabilityProvider(getInstanceMetadataProvider(t),{logger:t.logger});const getInstanceMetadataProvider=(t={})=>{let n=false;const{logger:i,profile:a}=t;const{timeout:l,maxRetries:d}=providerConfigFromInit(t);const getCredentials=async(i,l)=>{const d=n||l.headers?.[U]==null;if(d){let n=false;let i=false;const l=await c({environmentVariableSelector:n=>{const a=n[F];i=!!a&&a!=="false";if(a===undefined){throw new A(`${F} not set in env, checking config file next.`,{logger:t.logger})}return i},configFileSelector:t=>{const i=t[x];n=!!i&&i!=="false";return n},default:false},{profile:a})();if(t.ec2MetadataV1Disabled||l){const a=[];if(t.ec2MetadataV1Disabled)a.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(n)a.push(`config file profile (${x})`);if(i)a.push(`process environment variable (${F})`);throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${a.join(", ")}].`)}}const h=(await retry(async()=>{let t;try{t=await getProfile(l)}catch(t){if(t.statusCode===401){n=false}throw t}return t},i)).trim();return retry(async()=>{let i;try{i=await getCredentialsFromProfile(h,l,t)}catch(t){if(t.statusCode===401){n=false}throw t}return i},i)};return async()=>{const t=await getInstanceMetadataEndpoint();if(n){i?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)");return getCredentials(d,{...t,timeout:l})}else{let a;try{a=(await getMetadataToken({...t,timeout:l})).toString()}catch(a){if(a?.statusCode===400){throw Object.assign(a,{message:"EC2 Metadata token request returned error"})}else if(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode)){n=true}i?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)");return getCredentials(d,{...t,timeout:l})}return getCredentials(d,{...t,headers:{[U]:a},timeout:l})}}};const getMetadataToken=async t=>httpRequest({...t,path:M,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async t=>(await httpRequest({...t,path:N})).toString();const getCredentialsFromProfile=async(t,n,i)=>{const a=JSON.parse((await httpRequest({...n,path:N+t})).toString());if(!isImdsCredentials(a)){throw new A("Invalid response received from instance metadata service.",{logger:i.logger})}return fromImdsCredentials(a)};n.DEFAULT_MAX_RETRIES=f;n.DEFAULT_TIMEOUT=h;n.ENV_CMDS_AUTH_TOKEN=m;n.ENV_CMDS_FULL_URI=g;n.ENV_CMDS_RELATIVE_URI=p;n.Endpoint=y;n.fromContainerMetadata=fromContainerMetadata;n.fromInstanceMetadata=fromInstanceMetadata;n.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;n.httpRequest=httpRequest;n.providerConfigFromInit=providerConfigFromInit},1279:(t,n,i)=>{const{buildQueryString:a,HttpResponse:A}=i(3422);const c=i(4708);const{Readable:l}=i(7075);const d=i(2467);const{streamCollector:h}=i(2430);n.streamCollector=h;function buildAbortError(t){const n=t&&typeof t==="object"&&"reason"in t?t.reason:undefined;if(n){if(n instanceof Error){const t=new Error("Request aborted");t.name="AbortError";t.cause=n;return t}const t=new Error(String(n));t.name="AbortError";return t}const i=new Error("Request aborted");i.name="AbortError";return i}const f=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=t=>{const n={};for(const i in t){const a=t[i];n[i]=Array.isArray(a)?a.join(","):a}return n};const g={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t)};const p=1e3;const setConnectionTimeout=(t,n,i=0)=>{if(!i){return-1}const registerTimeout=a=>{const A=g.setTimeout(()=>{t.destroy();n(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${i} ms.`),{name:"TimeoutError"}))},i-a);const doWithSocket=t=>{if(t?.connecting){t.on("connect",()=>{g.clearTimeout(A)})}else{g.clearTimeout(A)}};if(t.socket){doWithSocket(t.socket)}else{t.on("socket",doWithSocket)}};if(i<2e3){registerTimeout(0);return 0}return g.setTimeout(registerTimeout.bind(null,p),p)};const setRequestTimeout=(t,n,i=0,a,A)=>{if(i){return g.setTimeout(()=>{let c=`@smithy/node-http-handler - [${a?"ERROR":"WARN"}] a request has exceeded the configured ${i} ms requestTimeout.`;if(a){const i=Object.assign(new Error(c),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(i);n(i)}else{c+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;A?.warn?.(c)}},i)}return-1};const m=3e3;const setSocketKeepAlive=(t,{keepAlive:n,keepAliveMsecs:i},a=m)=>{if(n!==true){return-1}const registerListener=()=>{if(t.socket){t.socket.setKeepAlive(n,i||0)}else{t.on("socket",t=>{t.setKeepAlive(n,i||0)})}};if(a===0){registerListener();return 0}return g.setTimeout(registerListener,a)};const E=3e3;const setSocketTimeout=(t,n,i=0)=>{const registerTimeout=a=>{const A=i-a;const onTimeout=()=>{t.destroy();n(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${i} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(t.socket){t.socket.setTimeout(A,onTimeout);t.on("close",()=>t.socket?.removeListener("timeout",onTimeout))}else{t.setTimeout(A,onTimeout)}};if(0{l=Number(g.setTimeout(()=>t(true),Math.max(C,i)))}),new Promise(n=>{t.on("continue",()=>{g.clearTimeout(l);n(true)});t.on("response",()=>{g.clearTimeout(l);n(false)});t.on("error",()=>{g.clearTimeout(l);n(false)})})])}if(d){writeBody(t,n.body)}}function writeBody(t,n){if(n instanceof l){n.pipe(t);return}if(n){const i=Buffer.isBuffer(n);const a=typeof n==="string";if(i||a){if(i&&n.byteLength===0){t.end()}else{t.end(n)}return}const A=n;if(typeof A==="object"&&A.buffer&&typeof A.byteOffset==="number"&&typeof A.byteLength==="number"){t.end(Buffer.from(A.buffer,A.byteOffset,A.byteLength));return}t.end(Buffer.from(n));return}t.end()}const I=0;let y=undefined;let B=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(t){if(typeof t?.handle==="function"){return t}return new NodeHttpHandler(t)}static checkSocketUsage(t,n,i=console){const{sockets:a,requests:A,maxSockets:c}=t;if(typeof c!=="number"||c===Infinity){return n}const l=15e3;if(Date.now()-l=c&&l>=2*c){i?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${n} and ${l} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return n}constructor(t){this.configProvider=new Promise((n,i)=>{if(typeof t==="function"){t().then(t=>{n(this.resolveDefaultConfig(t))}).catch(i)}else{n(this.resolveDefaultConfig(t))}})}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:n,requestTimeout:i}={}){if(!this.config){this.config=await this.configProvider}const l=this.config;const d=t.protocol==="https:";if(!d&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise((h,p)=>{let m=undefined;let E=-1;let C=-1;let I=-1;let Q=-1;let w=-1;const clearTimeouts=()=>{g.clearTimeout(E);g.clearTimeout(C);g.clearTimeout(I);g.clearTimeout(Q);g.clearTimeout(w)};const resolve=async t=>{await m;clearTimeouts();h(t)};const reject=async t=>{await m;clearTimeouts();p(t)};if(n?.aborted){const t=buildAbortError(n);reject(t);return}const S=t.headers;const b=S?(S.Expect??S.expect)==="100-continue":false;let R=d?l.httpsAgent:l.httpAgent;if(b&&!this.externalAgent){R=new(d?c.Agent:y)({keepAlive:false,maxSockets:Infinity})}E=g.setTimeout(()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(R,this.socketWarningTimestamp,l.logger)},l.socketAcquisitionWarningTimeout??(l.requestTimeout??2e3)+(l.connectionTimeout??1e3));const v=t.query?a(t.query):"";let k=undefined;if(t.username!=null||t.password!=null){const n=t.username??"";const i=t.password??"";k=`${n}:${i}`}let D=t.path;if(v){D+=`?${v}`}if(t.fragment){D+=`#${t.fragment}`}let T=t.hostname??"";if(T[0]==="["&&T.endsWith("]")){T=t.hostname.slice(1,-1)}else{T=t.hostname}const N={headers:t.headers,host:T,method:t.method,path:D,port:t.port,agent:R,auth:k};const M=d?c.request:B;const F=M(N,t=>{const n=new A({statusCode:t.statusCode||-1,reason:t.statusMessage,headers:getTransformedHeaders(t.headers),body:t});resolve({response:n})});F.on("error",t=>{if(f.includes(t.code)){reject(Object.assign(t,{name:"TimeoutError"}))}else{reject(t)}});if(n){const onAbort=()=>{F.destroy();const t=buildAbortError(n);reject(t)};if(typeof n.addEventListener==="function"){const t=n;t.addEventListener("abort",onAbort,{once:true});F.once("close",()=>t.removeEventListener("abort",onAbort))}else{n.onabort=onAbort}}const x=i??l.requestTimeout;C=setConnectionTimeout(F,reject,l.connectionTimeout);I=setRequestTimeout(F,reject,x,l.throwOnRequestTimeout,l.logger??console);Q=setSocketTimeout(F,reject,l.socketTimeout);const U=N.agent;if(typeof U==="object"&&"keepAlive"in U){w=setSocketKeepAlive(F,{keepAlive:U.keepAlive,keepAliveMsecs:U.keepAliveMsecs})}m=writeRequestBody(F,t,x,this.externalAgent).catch(t=>{clearTimeouts();return p(t)})})}updateHttpClientConfig(t,n){this.config=undefined;this.configProvider=this.configProvider.then(i=>({...i,[t]:n}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(t){const{requestTimeout:n,connectionTimeout:a,socketTimeout:A,socketAcquisitionWarningTimeout:l,httpAgent:d,httpsAgent:h,throwOnRequestTimeout:f,logger:g}=t||{};const p=true;const m=50;return{connectionTimeout:a,requestTimeout:n,socketTimeout:A,socketAcquisitionWarningTimeout:l,throwOnRequestTimeout:f,httpAgentProvider:async()=>{const t=i(7067);const{Agent:n,request:a}=t.default??t;B=a;y=n;if(d instanceof y||typeof d?.destroy==="function"){this.externalAgent=true;return d}return new y({keepAlive:p,maxSockets:m,...d})},httpsAgent:(()=>{if(h instanceof c.Agent||typeof h?.destroy==="function"){this.externalAgent=true;return h}return new c.Agent({keepAlive:p,maxSockets:m,...h})})(),logger:g}}}const Q=new Uint16Array(1);class ClientHttp2SessionRef{id=Q[0]++;total=0;max=0;session;refs=0;constructor(t){t.unref();this.session=t}retain(){if(this.session.destroyed){throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.")}this.refs+=1;this.total+=1;this.max=Math.max(this.refs,this.max);this.session.ref()}free(){if(this.session.destroyed){return}this.refs-=1;if(this.refs===0){this.session.unref()}if(this.refs<0){throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}}deref(){return this.session}close(){if(!this.session.closed){this.session.close()}}destroy(){this.refs=0;if(!this.session.destroyed){this.session.destroy()}}useCount(){return this.refs}}class NodeHttp2ConnectionPool{sessions=[];maxConcurrency=0;constructor(t){this.sessions=(t??[]).map(t=>new ClientHttp2SessionRef(t))}poll(){let t=false;for(const n of this.sessions){if(n.deref().destroyed){t=true;continue}if(!this.maxConcurrency||n.useCount()-1){this.sessions.splice(n,1)}}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(t){this.maxConcurrency=t}destroy(t){this.remove(t);t.destroy()}}class NodeHttp2ConnectionManager{config;connectOptions;connectionPools=new Map;constructor(t){this.config=t;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}lease(t,n){const i=this.getUrlString(t);const a=this.getPool(i);if(!this.config.disableConcurrency&&!n.isEventStream){const t=a.poll();if(t){t.retain();return t}}const A=new ClientHttp2SessionRef(this.connect(i));const c=A.deref();if(this.config.maxConcurrency){c.settings({maxConcurrentStreams:this.config.maxConcurrency},n=>{if(n){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())}})}const graceful=()=>{this.removeFromPoolAndClose(i,A)};const ensureDestroyed=()=>{this.removeFromPoolAndCheckedDestroy(i,A)};c.on("goaway",graceful);c.on("error",ensureDestroyed);c.on("frameError",ensureDestroyed);c.on("close",ensureDestroyed);if(n.requestTimeout){c.setTimeout(n.requestTimeout,ensureDestroyed)}a.offerLast(A);A.retain();return A}release(t,n){n.free()}createIsolatedSession(t,n){const i=this.getUrlString(t);const a=new ClientHttp2SessionRef(this.connect(i));const A=a.deref();A.settings({maxConcurrentStreams:1});const ensureDestroyed=()=>{a.destroy()};A.on("error",ensureDestroyed);A.on("frameError",ensureDestroyed);A.on("close",ensureDestroyed);if(n.requestTimeout){A.setTimeout(n.requestTimeout,ensureDestroyed)}a.retain();return a}destroy(){for(const[t,n]of this.connectionPools){for(const t of[...n]){t.destroy()}this.connectionPools.delete(t)}}setMaxConcurrentStreams(t){if(t&&t<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=t;for(const n of this.connectionPools.values()){n.setMaxConcurrency(t)}}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}setNodeHttp2ConnectOptions(t){this.connectOptions=t}debug(){const t={};for(const[n,i]of this.connectionPools){const a=[];for(const t of i){a.push({id:t.id,active:t.useCount(),maxConcurrent:t.max,totalRequests:t.total})}t[n]={sessions:a}}return t}removeFromPoolAndClose(t,n){this.connectionPools.get(t)?.remove(n);n.close()}removeFromPoolAndCheckedDestroy(t,n){this.connectionPools.get(t)?.remove(n);n.destroy()}getPool(t){if(!this.connectionPools.has(t)){const n=new NodeHttp2ConnectionPool;if(this.config.maxConcurrency){n.setMaxConcurrency(this.config.maxConcurrency)}this.connectionPools.set(t,n)}return this.connectionPools.get(t)}getUrlString(t){return t.destination.toString()}connect(t){return this.connectOptions===undefined?d.connect(t):d.connect(t,this.connectOptions)}}const{constants:w}=d;class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(t){if(typeof t?.handle==="function"){return t}return new NodeHttp2Handler(t)}constructor(t){this.configProvider=new Promise((n,i)=>{if(typeof t==="function"){t().then(t=>{n(t||{})}).catch(i)}else{n(t||{})}})}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:n,requestTimeout:i,isEventStream:c}={}){if(!this.config){this.config=await this.configProvider;const{disableConcurrentStreams:t,maxConcurrentStreams:n,nodeHttp2ConnectOptions:i}=this.config;this.connectionManager.setDisableConcurrentStreams(t??false);if(n){this.connectionManager.setMaxConcurrentStreams(n)}if(i){this.connectionManager.setNodeHttp2ConnectOptions(i)}}const{requestTimeout:l,disableConcurrentStreams:d}=this.config;const h=d||c;const f=i??l;return new Promise((i,l)=>{let d=false;let g=undefined;const resolve=async t=>{await g;i(t)};const reject=async t=>{await g;l(t)};if(n?.aborted){d=true;const t=buildAbortError(n);reject(t);return}const{hostname:p,method:m,port:E,protocol:C,query:I}=t;let y="";if(t.username!=null||t.password!=null){const n=t.username??"";const i=t.password??"";y=`${n}:${i}@`}const B=`${C}//${y}${p}${E?`:${E}`:""}`;const Q={destination:new URL(B)};const S={requestTimeout:this.config?.sessionTimeout,isEventStream:c};const b=h?this.connectionManager.createIsolatedSession(Q,S):this.connectionManager.lease(Q,S);const R=b.deref();const rejectWithDestroy=t=>{if(h){b.destroy()}d=true;reject(t)};const v=I?a(I):"";let k=t.path;if(v){k+=`?${v}`}if(t.fragment){k+=`#${t.fragment}`}const D=R.request({...t.headers,[w.HTTP2_HEADER_PATH]:k,[w.HTTP2_HEADER_METHOD]:m});if(f){D.setTimeout(f,()=>{D.close();const t=new Error(`Stream timed out because of no activity for ${f} ms`);t.name="TimeoutError";rejectWithDestroy(t)})}if(n){const onAbort=()=>{D.close();const t=buildAbortError(n);rejectWithDestroy(t)};if(typeof n.addEventListener==="function"){const t=n;t.addEventListener("abort",onAbort,{once:true});D.once("close",()=>t.removeEventListener("abort",onAbort))}else{n.onabort=onAbort}}D.on("frameError",(t,n,i)=>{rejectWithDestroy(new Error(`Frame type id ${t} in stream id ${i} has failed with code ${n}.`))});D.on("error",rejectWithDestroy);D.on("aborted",()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${D.rstCode}.`))});D.on("response",t=>{const n=new A({statusCode:t[":status"]??-1,headers:getTransformedHeaders(t),body:D});d=true;resolve({response:n});if(h){R.close()}});D.on("close",()=>{if(h){b.destroy()}else{this.connectionManager.release(Q,b)}if(!d){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}});g=writeRequestBody(D,t,f)})}updateHttpClientConfig(t,n){this.config=undefined;this.configProvider=this.configProvider.then(i=>({...i,[t]:n}))}httpHandlerConfigs(){return this.config??{}}}n.DEFAULT_REQUEST_TIMEOUT=I;n.NodeHttp2Handler=NodeHttp2Handler;n.NodeHttpHandler=NodeHttpHandler},5118:(t,n,i)=>{const{fromUtf8:a,fromHex:A,toHex:c,toUint8Array:l,isArrayBuffer:d}=i(2430);const{normalizeProvider:h}=i(2658);const{escapeUri:f,HttpRequest:g}=i(3422);class HeaderFormatter{format(t){const n=[];for(const i of Object.keys(t)){const A=a(i);n.push(Uint8Array.from([A.byteLength]),A,this.formatHeaderValue(t[i]))}const i=new Uint8Array(n.reduce((t,n)=>t+n.byteLength,0));let A=0;for(const t of n){i.set(t,A);A+=t.byteLength}return i}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?p.boolTrue:p.boolFalse]);case"byte":return Uint8Array.from([p.byte,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));n.setUint8(0,p.short);n.setInt16(1,t.value,false);return new Uint8Array(n.buffer);case"integer":const i=new DataView(new ArrayBuffer(5));i.setUint8(0,p.integer);i.setInt32(1,t.value,false);return new Uint8Array(i.buffer);case"long":const c=new Uint8Array(9);c[0]=p.long;c.set(t.value.bytes,1);return c;case"binary":const l=new DataView(new ArrayBuffer(3+t.value.byteLength));l.setUint8(0,p.byteArray);l.setUint16(1,t.value.byteLength,false);const d=new Uint8Array(l.buffer);d.set(t.value,3);return d;case"string":const h=a(t.value);const f=new DataView(new ArrayBuffer(3+h.byteLength));f.setUint8(0,p.string);f.setUint16(1,h.byteLength,false);const g=new Uint8Array(f.buffer);g.set(h,3);return g;case"timestamp":const E=new Uint8Array(9);E[0]=p.timestamp;E.set(Int64.fromNumber(t.value.valueOf()).bytes,1);return E;case"uuid":if(!m.test(t.value)){throw new Error(`Invalid UUID received: ${t.value}`)}const C=new Uint8Array(17);C[0]=p.uuid;C.set(A(t.value.replace(/-/g,"")),1);return C}}}var p;(function(t){t[t["boolTrue"]=0]="boolTrue";t[t["boolFalse"]=1]="boolFalse";t[t["byte"]=2]="byte";t[t["short"]=3]="short";t[t["integer"]=4]="integer";t[t["long"]=5]="long";t[t["byteArray"]=6]="byteArray";t[t["string"]=7]="string";t[t["timestamp"]=8]="timestamp";t[t["uuid"]=9]="uuid"})(p||(p={}));const m=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(t){this.bytes=t;if(t.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000){throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`)}const n=new Uint8Array(8);for(let i=7,a=Math.abs(Math.round(t));i>-1&&a>0;i--,a/=256){n[i]=a}if(t<0){negate(n)}return new Int64(n)}valueOf(){const t=this.bytes.slice(0);const n=t[0]&128;if(n){negate(t)}return parseInt(c(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function negate(t){for(let n=0;n<8;n++){t[n]^=255}for(let n=7;n>-1;n--){t[n]++;if(t[n]!==0)break}}const E="X-Amz-Algorithm";const C="X-Amz-Credential";const I="X-Amz-Date";const y="X-Amz-SignedHeaders";const B="X-Amz-Expires";const Q="X-Amz-Signature";const w="X-Amz-Security-Token";const S="X-Amz-Region-Set";const b="authorization";const R=I.toLowerCase();const v="date";const k=[b,R,v];const D=Q.toLowerCase();const T="x-amz-content-sha256";const N=w.toLowerCase();const M="host";const F={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const x=/^proxy-/;const U=/^sec-/;const P=[/^proxy-/i,/^sec-/i];const L="AWS4-HMAC-SHA256";const O="AWS4-ECDSA-P256-SHA256";const H="AWS4-HMAC-SHA256-PAYLOAD";const $="UNSIGNED-PAYLOAD";const G=50;const V="aws4_request";const Y=60*60*24*7;const getCanonicalQuery=({query:t={}})=>{const n=[];const i={};for(const a of Object.keys(t)){if(a.toLowerCase()===D){continue}const A=f(a);n.push(A);const c=t[a];if(typeof c==="string"){i[A]=`${A}=${f(c)}`}else if(Array.isArray(c)){i[A]=c.slice(0).reduce((t,n)=>t.concat([`${A}=${f(n)}`]),[]).sort().join("&")}}return n.sort().map(t=>i[t]).filter(t=>t).join("&")};const iso8601=t=>toDate(t).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=t=>{if(typeof t==="number"){return new Date(t*1e3)}if(typeof t==="string"){if(Number(t)){return new Date(Number(t)*1e3)}return new Date(t)}return t};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:i,service:a,sha256:A,uriEscapePath:c=true}){this.service=a;this.sha256=A;this.uriEscapePath=c;this.applyChecksum=typeof t==="boolean"?t:true;this.regionProvider=h(i);this.credentialProvider=h(n)}createCanonicalRequest(t,n,i){const a=Object.keys(n).sort();return`${t.method}\n${this.getCanonicalPath(t)}\n${getCanonicalQuery(t)}\n${a.map(t=>`${t}:${n[t]}`).join("\n")}\n\n${a.join(";")}\n${i}`}async createStringToSign(t,n,i,a){const A=new this.sha256;A.update(l(i));const d=await A.digest();return`${a}\n${t}\n${n}\n${c(d)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const i of t.split("/")){if(i?.length===0)continue;if(i===".")continue;if(i===".."){n.pop()}else{n.push(i)}}const i=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;const a=f(i);return a.replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!=="object"||typeof t.accessKeyId!=="string"||typeof t.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(t){const n=iso8601(t).replace(/[-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}const J={};const W=[];const createScope=(t,n,i)=>`${t}/${n}/${i}/${V}`;const getSigningKey=async(t,n,i,a,A)=>{const l=await hmac(t,n.secretAccessKey,n.accessKeyId);const d=`${i}:${a}:${A}:${c(l)}:${n.sessionToken}`;if(d in J){return J[d]}W.push(d);while(W.length>G){delete J[W.shift()]}let h=`AWS4${n.secretAccessKey}`;for(const n of[i,a,A,V]){h=await hmac(t,h,n)}return J[d]=h};const clearCredentialCache=()=>{W.length=0;Object.keys(J).forEach(t=>{delete J[t]})};const hmac=(t,n,i)=>{const a=new t(n);a.update(l(i));return a.digest()};const getCanonicalHeaders=({headers:t},n,i)=>{const a={};for(const A of Object.keys(t).sort()){if(t[A]==undefined){continue}const c=A.toLowerCase();if(c in F||n?.has(c)||x.test(c)||U.test(c)){if(!i||i&&!i.has(c)){continue}}a[c]=t[A].trim().replace(/\s+/g," ")}return a};const getPayloadHash=async({headers:t,body:n},i)=>{for(const n of Object.keys(t)){if(n.toLowerCase()===T){return t[n]}}if(n==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof n==="string"||ArrayBuffer.isView(n)||d(n)){const t=new i;t.update(l(n));return c(await t.digest())}return $};const hasHeader=(t,n)=>{t=t.toLowerCase();for(const i of Object.keys(n)){if(t===i.toLowerCase()){return true}}return false};const moveHeadersToQuery=(t,n={})=>{const{headers:i,query:a={}}=g.clone(t);for(const t of Object.keys(i)){const A=t.toLowerCase();if(A.slice(0,6)==="x-amz-"&&!n.unhoistableHeaders?.has(A)||n.hoistableHeaders?.has(A)){a[t]=i[t];delete i[t]}}return{...t,headers:i,query:a}};const prepareRequest=t=>{t=g.clone(t);for(const n of Object.keys(t.headers)){if(k.indexOf(n.toLowerCase())>-1){delete t.headers[n]}}return t};class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:t,credentials:n,region:i,service:a,sha256:A,uriEscapePath:c=true}){super({applyChecksum:t,credentials:n,region:i,service:a,sha256:A,uriEscapePath:c})}async presign(t,n={}){const{signingDate:i=new Date,expiresIn:a=3600,unsignableHeaders:A,unhoistableHeaders:c,signableHeaders:l,hoistableHeaders:d,signingRegion:h,signingService:f}=n;const g=await this.credentialProvider();this.validateResolvedCredentials(g);const p=h??await this.regionProvider();const{longDate:m,shortDate:S}=this.formatDate(i);if(a>Y){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const b=createScope(S,p,f??this.service);const R=moveHeadersToQuery(prepareRequest(t),{unhoistableHeaders:c,hoistableHeaders:d});if(g.sessionToken){R.query[w]=g.sessionToken}R.query[E]=L;R.query[C]=`${g.accessKeyId}/${b}`;R.query[I]=m;R.query[B]=a.toString(10);const v=getCanonicalHeaders(R,A,l);R.query[y]=this.getCanonicalHeaderList(v);R.query[Q]=await this.getSignature(m,b,this.getSigningKey(g,p,S,f),this.createCanonicalRequest(R,v,await getPayloadHash(t,this.sha256)));return R}async sign(t,n){if(typeof t==="string"){return this.signString(t,n)}else if(t.headers&&t.payload){return this.signEvent(t,n)}else if(t.message){return this.signMessage(t,n)}else{return this.signRequest(t,n)}}async signEvent({headers:t,payload:n},{signingDate:i=new Date,priorSignature:a,signingRegion:A,signingService:l,eventStreamCredentials:d}){const h=A??await this.regionProvider();const{shortDate:f,longDate:g}=this.formatDate(i);const p=createScope(f,h,l??this.service);const m=await getPayloadHash({headers:{},body:n},this.sha256);const E=new this.sha256;E.update(t);const C=c(await E.digest());const I=[H,g,p,a,C,m].join("\n");return this.signString(I,{signingDate:i,signingRegion:h,signingService:l,eventStreamCredentials:d})}async signMessage(t,{signingDate:n=new Date,signingRegion:i,signingService:a,eventStreamCredentials:A}){const c=this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:i,signingService:a,priorSignature:t.priorSignature,eventStreamCredentials:A});return c.then(n=>({message:t.message,signature:n}))}async signString(t,{signingDate:n=new Date,signingRegion:i,signingService:a,eventStreamCredentials:A}={}){const d=A??await this.credentialProvider();this.validateResolvedCredentials(d);const h=i??await this.regionProvider();const{shortDate:f}=this.formatDate(n);const g=new this.sha256(await this.getSigningKey(d,h,f,a));g.update(l(t));return c(await g.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:i,unsignableHeaders:a,signingRegion:A,signingService:c}={}){const l=await this.credentialProvider();this.validateResolvedCredentials(l);const d=A??await this.regionProvider();const h=prepareRequest(t);const{longDate:f,shortDate:g}=this.formatDate(n);const p=createScope(g,d,c??this.service);h.headers[R]=f;if(l.sessionToken){h.headers[N]=l.sessionToken}const m=await getPayloadHash(h,this.sha256);if(!hasHeader(T,h.headers)&&this.applyChecksum){h.headers[T]=m}const E=getCanonicalHeaders(h,a,i);const C=await this.getSignature(f,p,this.getSigningKey(l,d,g,c),this.createCanonicalRequest(h,E,m));h.headers[b]=`${L} `+`Credential=${l.accessKeyId}/${p}, `+`SignedHeaders=${this.getCanonicalHeaderList(E)}, `+`Signature=${C}`;return h}async getSignature(t,n,i,a){const A=await this.createStringToSign(t,n,a,L);const d=new this.sha256(await i);d.update(l(A));return c(await d.digest())}getSigningKey(t,n,i,a){return getSigningKey(this.sha256,t,i,n,a||this.service)}}const q={SignatureV4a:null};n.ALGORITHM_IDENTIFIER=L;n.ALGORITHM_IDENTIFIER_V4A=O;n.ALGORITHM_QUERY_PARAM=E;n.ALWAYS_UNSIGNABLE_HEADERS=F;n.AMZ_DATE_HEADER=R;n.AMZ_DATE_QUERY_PARAM=I;n.AUTH_HEADER=b;n.CREDENTIAL_QUERY_PARAM=C;n.DATE_HEADER=v;n.EVENT_ALGORITHM_IDENTIFIER=H;n.EXPIRES_QUERY_PARAM=B;n.GENERATED_HEADERS=k;n.HOST_HEADER=M;n.KEY_TYPE_IDENTIFIER=V;n.MAX_CACHE_SIZE=G;n.MAX_PRESIGNED_TTL=Y;n.PROXY_HEADER_PATTERN=x;n.REGION_SET_PARAM=S;n.SEC_HEADER_PATTERN=U;n.SHA256_HEADER=T;n.SIGNATURE_HEADER=D;n.SIGNATURE_QUERY_PARAM=Q;n.SIGNED_HEADERS_QUERY_PARAM=y;n.SignatureV4=SignatureV4;n.SignatureV4Base=SignatureV4Base;n.TOKEN_HEADER=N;n.TOKEN_QUERY_PARAM=w;n.UNSIGNABLE_PATTERNS=P;n.UNSIGNED_PAYLOAD=$;n.clearCredentialCache=clearCredentialCache;n.createScope=createScope;n.getCanonicalHeaders=getCanonicalHeaders;n.getCanonicalQuery=getCanonicalQuery;n.getPayloadHash=getPayloadHash;n.getSigningKey=getSigningKey;n.hasHeader=hasHeader;n.moveHeadersToQuery=moveHeadersToQuery;n.prepareRequest=prepareRequest;n.signatureV4aContainer=q},690:(t,n)=>{var i;(function(t){t["HEADER"]="header";t["QUERY"]="query"})(i||(i={}));var a;(function(t){t["HEADER"]="header";t["QUERY"]="query"})(a||(a={}));var A;(function(t){t["HTTP"]="http";t["HTTPS"]="https"})(A||(A={}));var c;(function(t){t["MD5"]="md5";t["CRC32"]="crc32";t["CRC32C"]="crc32c";t["SHA1"]="sha1";t["SHA256"]="sha256"})(c||(c={}));const getChecksumConfiguration=t=>{const n=[];if(t.sha256!==undefined){n.push({algorithmId:()=>c.SHA256,checksumConstructor:()=>t.sha256})}if(t.md5!=undefined){n.push({algorithmId:()=>c.MD5,checksumConstructor:()=>t.md5})}return{addChecksumAlgorithm(t){n.push(t)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=t=>{const n={};t.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()});return n};const getDefaultClientConfiguration=t=>getChecksumConfiguration(t);const resolveDefaultRuntimeConfig=t=>resolveChecksumRuntimeConfig(t);var l;(function(t){t[t["HEADER"]=0]="HEADER";t[t["TRAILER"]=1]="TRAILER"})(l||(l={}));const d="__smithy_context";var h;(function(t){t["PROFILE"]="profile";t["SSO_SESSION"]="sso-session";t["SERVICES"]="services"})(h||(h={}));var f;(function(t){t["HTTP_0_9"]="http/0.9";t["HTTP_1_0"]="http/1.0";t["TDS_8_0"]="tds/8.0"})(f||(f={}));n.AlgorithmId=c;n.EndpointURLScheme=A;n.FieldPosition=l;n.HttpApiKeyAuthLocation=a;n.HttpAuthLocation=i;n.IniSectionType=h;n.RequestHandlerProtocol=f;n.SMITHY_CONTEXT_KEY=d;n.getDefaultClientConfiguration=getDefaultClientConfiguration;n.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},3966:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(2463);const A=i(1436);const c=i(567);const l=i(7881);const d=i(1283);const h=i(630);const f="errorMessage";const g=new a.Name("emUsed");const p={required:"missingProperty",dependencies:"property",dependentRequired:"property"};const m=/\$\{[^}]+\}/;const E=/\$\{([^}]+)\}/g;const C=/^""\s*\+\s*|\s*\+\s*""$/g;function errorMessage(t){return{keyword:f,schemaType:["string","object"],post:true,code(n){const{gen:i,data:I,schema:y,schemaValue:B,it:Q}=n;if(Q.createErrors===false)return;const w=y;const S=A.strConcat(h.default.instancePath,Q.errorPath);i.if(a._`${h.default.errors} > 0`,()=>{if(typeof w=="object"){const[t,n]=keywordErrorsConfig(w);if(n)processKeywordErrors(n);if(t)processKeywordPropErrors(t);processChildErrors(childErrorsConfig(w))}const n=typeof w=="string"?w:w._;if(n)processAllErrors(n);if(!t.keepErrors)removeUsedErrors()});function childErrorsConfig({properties:t,items:n}){const i={};if(t){i.props={};for(const n in t)i.props[n]=[]}if(n){i.items={};for(let t=0;ti.if(matchKeywordError(t,c),()=>i.code(a._`${c}[${t}.keyword].push(${t})`).assign(a._`${t}.${g}`,true)));const{singleError:f}=t;if(f){const t=i.let("message",a._`""`);const A=i.let("paramsErrors",a._`[]`);loopErrors(n=>{i.if(t,()=>i.code(a._`${t} += ${typeof f=="string"?f:";"}`));i.code(a._`${t} += ${errMessage(n)}`);i.assign(A,a._`${A}.concat(${c}[${n}])`)});d.reportError(n,{message:t,params:a._`{errors: ${A}}`})}else{loopErrors(t=>d.reportError(n,{message:errMessage(t),params:a._`{errors: ${c}[${t}]}`}))}function loopErrors(t){i.forIn("key",c,n=>i.if(a._`${c}[${n}].length`,()=>t(n)))}function errMessage(t){return a._`${t} in ${l} ? ${l}[${t}]() : ${B}[${t}]`}}function processKeywordPropErrors(t){const A=i.const("emErrors",a.stringify(t));const c=[];for(const n in t){c.push([n,getTemplatesCode(t[n],y[n])])}const l=i.const("templates",i.object(...c));const f=i.scopeValue("obj",{ref:p,code:a.stringify(p)});const m=i.let("emPropParams");const E=i.let("emParamsErrors");i.forOf("err",h.default.vErrors,t=>i.if(matchKeywordError(t,A),()=>{i.assign(m,a._`${f}[${t}.keyword]`);i.assign(E,a._`${A}[${t}.keyword][${t}.params[${m}]]`);i.if(E,()=>i.code(a._`${E}.push(${t})`).assign(a._`${t}.${g}`,true))}));i.forIn("key",A,t=>i.forIn("keyProp",a._`${A}[${t}]`,c=>{i.assign(E,a._`${A}[${t}][${c}]`);i.if(a._`${E}.length`,()=>{const A=i.const("tmpl",a._`${l}[${t}] && ${l}[${t}][${c}]`);d.reportError(n,{message:a._`${A} ? ${A}() : ${B}[${t}][${c}]`,params:a._`{errors: ${E}}`})})}))}function processChildErrors(t){const{props:c,items:l}=t;if(!c&&!l)return;const f=a._`typeof ${I} == "object"`;const p=a._`Array.isArray(${I})`;const m=i.let("emErrors");let E;let C;const Q=i.let("templates");if(c&&l){E=i.let("emChildKwd");i.if(f);i.if(p,()=>{init(l,y.items);i.assign(E,a.str`items`)},()=>{init(c,y.properties);i.assign(E,a.str`properties`)});C=a._`[${E}]`}else if(l){i.if(p);init(l,y.items);C=a._`.items`}else if(c){i.if(A.and(f,A.not(p)));init(c,y.properties);C=a._`.properties`}i.forOf("err",h.default.vErrors,t=>ifMatchesChildError(t,m,n=>i.code(a._`${m}[${n}].push(${t})`).assign(a._`${t}.${g}`,true)));i.forIn("key",m,t=>i.if(a._`${m}[${t}].length`,()=>{d.reportError(n,{message:a._`${t} in ${Q} ? ${Q}[${t}]() : ${B}${C}[${t}]`,params:a._`{errors: ${m}[${t}]}`});i.assign(a._`${h.default.vErrors}[${h.default.errors}-1].instancePath`,a._`${S} + "/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`)}));i.endIf();function init(t,n){i.assign(m,a.stringify(t));i.assign(Q,getTemplatesCode(t,n))}}function processAllErrors(t){const A=i.const("emErrs",a._`[]`);i.forOf("err",h.default.vErrors,t=>i.if(matchAnyError(t),()=>i.code(a._`${A}.push(${t})`).assign(a._`${t}.${g}`,true)));i.if(a._`${A}.length`,()=>d.reportError(n,{message:templateExpr(t),params:a._`{errors: ${A}}`}))}function removeUsedErrors(){const t=i.const("emErrs",a._`[]`);i.forOf("err",h.default.vErrors,n=>i.if(a._`!${n}.${g}`,()=>i.code(a._`${t}.push(${n})`)));i.assign(h.default.vErrors,t).assign(h.default.errors,a._`${t}.length`)}function matchKeywordError(t,n){return A.and(a._`${t}.keyword !== ${f}`,a._`!${t}.${g}`,a._`${t}.instancePath === ${S}`,a._`${t}.keyword in ${n}`,a._`${t}.schemaPath.indexOf(${Q.errSchemaPath}) === 0`,a._`/^\\/[^\\/]*$/.test(${t}.schemaPath.slice(${Q.errSchemaPath.length}))`)}function ifMatchesChildError(t,n,c){i.if(A.and(a._`${t}.keyword !== ${f}`,a._`!${t}.${g}`,a._`${t}.instancePath.indexOf(${S}) === 0`),()=>{const A=i.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:a._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`});const l=i.const("emMatches",a._`${A}.exec(${t}.instancePath.slice(${S}.length))`);const d=i.const("emChild",a._`${l} && ${l}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);i.if(a._`${d} !== undefined && ${d} in ${n}`,()=>c(d))})}function matchAnyError(t){return A.and(a._`${t}.keyword !== ${f}`,a._`!${t}.${g}`,A.or(a._`${t}.instancePath === ${S}`,A.and(a._`${t}.instancePath.indexOf(${S}) === 0`,a._`${t}.instancePath[${S}.length] === "/"`)),a._`${t}.schemaPath.indexOf(${Q.errSchemaPath}) === 0`,a._`${t}.schemaPath[${Q.errSchemaPath}.length] === "/"`)}function getTemplatesCode(t,n){const a=[];for(const i in t){const t=n[i];if(m.test(t))a.push([i,templateFunc(t)])}return i.object(...a)}function templateExpr(t){if(!m.test(t))return a.stringify(t);return new c._Code(c.safeStringify(t).replace(E,(t,n)=>`" + JSON.stringify(${l.getData(n,Q)}) + "`).replace(C,""))}function templateFunc(t){return a._`function(){return ${templateExpr(t)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const ajvErrors=(t,n={})=>{if(!t.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(t.opts.jsPropertySyntax){throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported")}return t.addKeyword(errorMessage(n))};n["default"]=ajvErrors;t.exports=ajvErrors;t.exports["default"]=ajvErrors},779:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.formatNames=n.fastFormats=n.fullFormats=void 0;function fmtDef(t,n){return{validate:t,compare:n}}n.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2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]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};n.fastFormats={...n.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};n.formatNames=Object.keys(n.fullFormats);function isLeapYear(t){return t%4===0&&(t%100!==0||t%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(t){const n=i.exec(t);if(!n)return false;const A=+n[1];const c=+n[2];const l=+n[3];return c>=1&&c<=12&&l>=1&&l<=(c===2&&isLeapYear(A)?29:a[c])}function compareDate(t,n){if(!(t&&n))return undefined;if(t>n)return 1;if(t23||g>59||t&&!d)return false;if(a<=23&&c<=59&&l<60)return true;const p=c-g*h;const m=a-f*h-(p<0?1:0);return(m===23||m===-1)&&(p===59||p===-1)&&l<61}}function compareTime(t,n){if(!(t&&n))return undefined;const i=new Date("2020-01-01T"+t).valueOf();const a=new Date("2020-01-01T"+n).valueOf();if(!(i&&a))return undefined;return i-a}function compareIsoTime(t,n){if(!(t&&n))return undefined;const i=A.exec(t);const a=A.exec(n);if(!(i&&a))return undefined;t=i[1]+i[2]+i[3];n=a[1]+a[2]+a[3];if(t>n)return 1;if(t=f}function validateInt64(t){return Number.isInteger(t)}function validateNumber(){return true}const p=/[^\\]\\Z/;function regex(t){if(p.test(t))return false;try{new RegExp(t);return true}catch(t){return false}}},2815:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(779);const A=i(1284);const c=i(1436);const l=new c.Name("fullFormats");const d=new c.Name("fastFormats");const formatsPlugin=(t,n={keywords:true})=>{if(Array.isArray(n)){addFormats(t,n,a.fullFormats,l);return t}const[i,c]=n.mode==="fast"?[a.fastFormats,d]:[a.fullFormats,l];const h=n.formats||a.formatNames;addFormats(t,h,i,c);if(n.keywords)(0,A.default)(t);return t};formatsPlugin.get=(t,n="full")=>{const i=n==="fast"?a.fastFormats:a.fullFormats;const A=i[t];if(!A)throw new Error(`Unknown format "${t}"`);return A};function addFormats(t,n,i,a){var A;var l;(A=(l=t.opts.code).formats)!==null&&A!==void 0?A:l.formats=(0,c._)`require("ajv-formats/dist/formats").${a}`;for(const a of n)t.addFormat(a,i[a])}t.exports=n=formatsPlugin;Object.defineProperty(n,"__esModule",{value:true});n["default"]=formatsPlugin},1284:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.formatLimitDefinition=void 0;const a=i(2463);const A=i(1436);const c=A.operators;const l={formatMaximum:{okStr:"<=",ok:c.LTE,fail:c.GT},formatMinimum:{okStr:">=",ok:c.GTE,fail:c.LT},formatExclusiveMaximum:{okStr:"<",ok:c.LT,fail:c.GTE},formatExclusiveMinimum:{okStr:">",ok:c.GT,fail:c.LTE}};const d={message:({keyword:t,schemaCode:n})=>(0,A.str)`should be ${l[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>(0,A._)`{comparison: ${l[t].okStr}, limit: ${n}}`};n.formatLimitDefinition={keyword:Object.keys(l),type:"string",schemaType:"string",$data:true,error:d,code(t){const{gen:n,data:i,schemaCode:c,keyword:d,it:h}=t;const{opts:f,self:g}=h;if(!f.validateFormats)return;const p=new a.KeywordCxt(h,g.RULES.all.format.definition,"format");if(p.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const i=n.scopeValue("formats",{ref:g.formats,code:f.code.formats});const a=n.const("fmt",(0,A._)`${i}[${p.schemaCode}]`);t.fail$data((0,A.or)((0,A._)`typeof ${a} != "object"`,(0,A._)`${a} instanceof RegExp`,(0,A._)`typeof ${a}.compare != "function"`,compareCode(a)))}function validateFormat(){const i=p.schema;const a=g.formats[i];if(!a||a===true)return;if(typeof a!="object"||a instanceof RegExp||typeof a.compare!="function"){throw new Error(`"${d}": format "${i}" does not define "compare" function`)}const c=n.scopeValue("formats",{key:i,ref:a,code:f.code.formats?(0,A._)`${f.code.formats}${(0,A.getProperty)(i)}`:undefined});t.fail$data(compareCode(c))}function compareCode(t){return(0,A._)`${t}.compare(${i}, ${c}) ${l[d].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=t=>{t.addKeyword(n.formatLimitDefinition);return t};n["default"]=formatLimitPlugin},878:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.MissingRefError=n.ValidationError=n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=n.Ajv2019=void 0;const a=i(3893);const A=i(9941);const c=i(9923);const l=i(7844);const d=i(2010);const h=i(8886);const f=i(5375);const g="https://json-schema.org/draft/2019-09/schema";class Ajv2019 extends a.default{constructor(t={}){super({...t,dynamicRef:true,next:true,unevaluated:true})}_addVocabularies(){super._addVocabularies();this.addVocabulary(c.default);A.default.forEach(t=>this.addVocabulary(t));this.addVocabulary(l.default);this.addVocabulary(d.default);if(this.opts.discriminator)this.addKeyword(h.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:t,meta:n}=this.opts;if(!n)return;f.default.call(this,t);this.refs["http://json-schema.org/schema"]=g}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(g)?g:undefined)}}n.Ajv2019=Ajv2019;t.exports=n=Ajv2019;t.exports.Ajv2019=Ajv2019;Object.defineProperty(n,"__esModule",{value:true});n["default"]=Ajv2019;var p=i(7881);Object.defineProperty(n,"KeywordCxt",{enumerable:true,get:function(){return p.KeywordCxt}});var m=i(1436);Object.defineProperty(n,"_",{enumerable:true,get:function(){return m._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return m.str}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return m.stringify}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return m.nil}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return m.Name}});Object.defineProperty(n,"CodeGen",{enumerable:true,get:function(){return m.CodeGen}});var E=i(3021);Object.defineProperty(n,"ValidationError",{enumerable:true,get:function(){return E.default}});var C=i(3162);Object.defineProperty(n,"MissingRefError",{enumerable:true,get:function(){return C.default}})},2463:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.MissingRefError=n.ValidationError=n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=n.Ajv=void 0;const a=i(3893);const A=i(9941);const c=i(8886);const l=i(2079);const d=["/properties"];const h="http://json-schema.org/draft-07/schema";class Ajv extends a.default{_addVocabularies(){super._addVocabularies();A.default.forEach(t=>this.addVocabulary(t));if(this.opts.discriminator)this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const t=this.opts.$data?this.$dataMetaSchema(l,d):l;this.addMetaSchema(t,h,false);this.refs["http://json-schema.org/schema"]=h}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(h)?h:undefined)}}n.Ajv=Ajv;t.exports=n=Ajv;t.exports.Ajv=Ajv;Object.defineProperty(n,"__esModule",{value:true});n["default"]=Ajv;var f=i(7881);Object.defineProperty(n,"KeywordCxt",{enumerable:true,get:function(){return f.KeywordCxt}});var g=i(1436);Object.defineProperty(n,"_",{enumerable:true,get:function(){return g._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return g.str}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return g.stringify}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return g.nil}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return g.Name}});Object.defineProperty(n,"CodeGen",{enumerable:true,get:function(){return g.CodeGen}});var p=i(3021);Object.defineProperty(n,"ValidationError",{enumerable:true,get:function(){return p.default}});var m=i(3162);Object.defineProperty(n,"MissingRefError",{enumerable:true,get:function(){return m.default}})},567:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.regexpCode=n.getEsmExportName=n.getProperty=n.safeStringify=n.stringify=n.strConcat=n.addCodeArg=n.str=n._=n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0;class _CodeOrName{}n._CodeOrName=_CodeOrName;n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(t){super();if(!n.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}n.Name=Name;class _Code extends _CodeOrName{constructor(t){super();this._items=typeof t==="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((t,n)=>`${t}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((t,n)=>{if(n instanceof Name)t[n.str]=(t[n.str]||0)+1;return t},{})}}n._Code=_Code;n.nil=new _Code("");function _(t,...n){const i=[t[0]];let a=0;while(a{Object.defineProperty(n,"__esModule",{value:true});n.or=n.and=n.not=n.CodeGen=n.operators=n.varKinds=n.ValueScopeName=n.ValueScope=n.Scope=n.Name=n.regexpCode=n.stringify=n.getProperty=n.nil=n.strConcat=n.str=n._=void 0;const a=i(567);const A=i(7788);var c=i(567);Object.defineProperty(n,"_",{enumerable:true,get:function(){return c._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return c.str}});Object.defineProperty(n,"strConcat",{enumerable:true,get:function(){return c.strConcat}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return c.nil}});Object.defineProperty(n,"getProperty",{enumerable:true,get:function(){return c.getProperty}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return c.stringify}});Object.defineProperty(n,"regexpCode",{enumerable:true,get:function(){return c.regexpCode}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return c.Name}});var l=i(7788);Object.defineProperty(n,"Scope",{enumerable:true,get:function(){return l.Scope}});Object.defineProperty(n,"ValueScope",{enumerable:true,get:function(){return l.ValueScope}});Object.defineProperty(n,"ValueScopeName",{enumerable:true,get:function(){return l.ValueScopeName}});Object.defineProperty(n,"varKinds",{enumerable:true,get:function(){return l.varKinds}});n.operators={GT:new a._Code(">"),GTE:new a._Code(">="),LT:new a._Code("<"),LTE:new a._Code("<="),EQ:new a._Code("==="),NEQ:new a._Code("!=="),NOT:new a._Code("!"),OR:new a._Code("||"),AND:new a._Code("&&"),ADD:new a._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(t,n){return this}}class Def extends Node{constructor(t,n,i){super();this.varKind=t;this.name=n;this.rhs=i}render({es5:t,_n:n}){const i=t?A.varKinds.var:this.varKind;const a=this.rhs===undefined?"":` = ${this.rhs}`;return`${i} ${this.name}${a};`+n}optimizeNames(t,n){if(!t[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,t,n);return this}get names(){return this.rhs instanceof a._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(t,n,i){super();this.lhs=t;this.rhs=n;this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,n){if(this.lhs instanceof a.Name&&!t[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,t,n);return this}get names(){const t=this.lhs instanceof a.Name?{}:{...this.lhs.names};return addExprNames(t,this.rhs)}}class AssignOp extends Assign{constructor(t,n,i,a){super(t,i,a);this.op=n}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class Label extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){return`${this.label}:`+t}}class Break extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){const n=this.label?` ${this.label}`:"";return`break${n};`+t}}class Throw extends Node{constructor(t){super();this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class AnyCode extends Node{constructor(t){super();this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(t,n){this.code=optimizeExpr(this.code,t,n);return this}get names(){return this.code instanceof a._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(t=[]){super();this.nodes=t}render(t){return this.nodes.reduce((n,i)=>n+i.render(t),"")}optimizeNodes(){const{nodes:t}=this;let n=t.length;while(n--){const i=t[n].optimizeNodes();if(Array.isArray(i))t.splice(n,1,...i);else if(i)t[n]=i;else t.splice(n,1)}return t.length>0?this:undefined}optimizeNames(t,n){const{nodes:i}=this;let a=i.length;while(a--){const A=i[a];if(A.optimizeNames(t,n))continue;subtractNames(t,A.names);i.splice(a,1)}return i.length>0?this:undefined}get names(){return this.nodes.reduce((t,n)=>addNames(t,n.names),{})}}class BlockNode extends ParentNode{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(t,n){super(n);this.condition=t}render(t){let n=`if(${this.condition})`+super.render(t);if(this.else)n+="else "+this.else.render(t);return n}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(t===true)return this.nodes;let n=this.else;if(n){const t=n.optimizeNodes();n=this.else=Array.isArray(t)?new Else(t):t}if(n){if(t===false)return n instanceof If?n:n.nodes;if(this.nodes.length)return this;return new If(not(t),n instanceof If?[n]:n.nodes)}if(t===false||!this.nodes.length)return undefined;return this}optimizeNames(t,n){var i;this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,n);if(!(super.optimizeNames(t,n)||this.else))return;this.condition=optimizeExpr(this.condition,t,n);return this}get names(){const t=super.names;addExprNames(t,this.condition);if(this.else)addNames(t,this.else.names);return t}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(t){super();this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,n){if(!super.optimizeNames(t,n))return;this.iteration=optimizeExpr(this.iteration,t,n);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(t,n,i,a){super();this.varKind=t;this.name=n;this.from=i;this.to=a}render(t){const n=t.es5?A.varKinds.var:this.varKind;const{name:i,from:a,to:c}=this;return`for(${n} ${i}=${a}; ${i}<${c}; ${i}++)`+super.render(t)}get names(){const t=addExprNames(super.names,this.from);return addExprNames(t,this.to)}}class ForIter extends For{constructor(t,n,i,a){super();this.loop=t;this.varKind=n;this.name=i;this.iterable=a}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,n){if(!super.optimizeNames(t,n))return;this.iterable=optimizeExpr(this.iterable,t,n);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(t,n,i){super();this.name=t;this.args=n;this.async=i}render(t){const n=this.async?"async ":"";return`${n}function ${this.name}(${this.args})`+super.render(t)}}Func.kind="func";class Return extends ParentNode{render(t){return"return "+super.render(t)}}Return.kind="return";class Try extends BlockNode{render(t){let n="try"+super.render(t);if(this.catch)n+=this.catch.render(t);if(this.finally)n+=this.finally.render(t);return n}optimizeNodes(){var t,n;super.optimizeNodes();(t=this.catch)===null||t===void 0?void 0:t.optimizeNodes();(n=this.finally)===null||n===void 0?void 0:n.optimizeNodes();return this}optimizeNames(t,n){var i,a;super.optimizeNames(t,n);(i=this.catch)===null||i===void 0?void 0:i.optimizeNames(t,n);(a=this.finally)===null||a===void 0?void 0:a.optimizeNames(t,n);return this}get names(){const t=super.names;if(this.catch)addNames(t,this.catch.names);if(this.finally)addNames(t,this.finally.names);return t}}class Catch extends BlockNode{constructor(t){super();this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}Catch.kind="catch";class Finally extends BlockNode{render(t){return"finally"+super.render(t)}}Finally.kind="finally";class CodeGen{constructor(t,n={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...n,_n:n.lines?"\n":""};this._extScope=t;this._scope=new A.Scope({parent:t});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,n){const i=this._extScope.value(t,n);const a=this._values[i.prefix]||(this._values[i.prefix]=new Set);a.add(i);return i}getScopeValue(t,n){return this._extScope.getValue(t,n)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,n,i,a){const A=this._scope.toName(n);if(i!==undefined&&a)this._constants[A.str]=i;this._leafNode(new Def(t,A,i));return A}const(t,n,i){return this._def(A.varKinds.const,t,n,i)}let(t,n,i){return this._def(A.varKinds.let,t,n,i)}var(t,n,i){return this._def(A.varKinds.var,t,n,i)}assign(t,n,i){return this._leafNode(new Assign(t,n,i))}add(t,i){return this._leafNode(new AssignOp(t,n.operators.ADD,i))}code(t){if(typeof t=="function")t();else if(t!==a.nil)this._leafNode(new AnyCode(t));return this}object(...t){const n=["{"];for(const[i,A]of t){if(n.length>1)n.push(",");n.push(i);if(i!==A||this.opts.es5){n.push(":");(0,a.addCodeArg)(n,A)}}n.push("}");return new a._Code(n)}if(t,n,i){this._blockNode(new If(t));if(n&&i){this.code(n).else().code(i).endIf()}else if(n){this.code(n).endIf()}else if(i){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(t){return this._elseNode(new If(t))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(t,n){this._blockNode(t);if(n)this.code(n).endFor();return this}for(t,n){return this._for(new ForLoop(t),n)}forRange(t,n,i,a,c=(this.opts.es5?A.varKinds.var:A.varKinds.let)){const l=this._scope.toName(t);return this._for(new ForRange(c,l,n,i),()=>a(l))}forOf(t,n,i,c=A.varKinds.const){const l=this._scope.toName(t);if(this.opts.es5){const t=n instanceof a.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,a._)`${t}.length`,n=>{this.var(l,(0,a._)`${t}[${n}]`);i(l)})}return this._for(new ForIter("of",c,l,n),()=>i(l))}forIn(t,n,i,c=(this.opts.es5?A.varKinds.var:A.varKinds.const)){if(this.opts.ownProperties){return this.forOf(t,(0,a._)`Object.keys(${n})`,i)}const l=this._scope.toName(t);return this._for(new ForIter("in",c,l,n),()=>i(l))}endFor(){return this._endBlockNode(For)}label(t){return this._leafNode(new Label(t))}break(t){return this._leafNode(new Break(t))}return(t){const n=new Return;this._blockNode(n);this.code(t);if(n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(t,n,i){if(!n&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');const a=new Try;this._blockNode(a);this.code(t);if(n){const t=this.name("e");this._currNode=a.catch=new Catch(t);n(t)}if(i){this._currNode=a.finally=new Finally;this.code(i)}return this._endBlockNode(Catch,Finally)}throw(t){return this._leafNode(new Throw(t))}block(t,n){this._blockStarts.push(this._nodes.length);if(t)this.code(t).endBlock(n);return this}endBlock(t){const n=this._blockStarts.pop();if(n===undefined)throw new Error("CodeGen: not in self-balancing block");const i=this._nodes.length-n;if(i<0||t!==undefined&&i!==t){throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`)}this._nodes.length=n;return this}func(t,n=a.nil,i,A){this._blockNode(new Func(t,n,i));if(A)this.code(A).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(t=1){while(t-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(t){this._currNode.nodes.push(t);return this}_blockNode(t){this._currNode.nodes.push(t);this._nodes.push(t)}_endBlockNode(t,n){const i=this._currNode;if(i instanceof t||n&&i instanceof n){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${n?`${t.kind}/${n.kind}`:t.kind}"`)}_elseNode(t){const n=this._currNode;if(!(n instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=n.else=t;return this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const n=this._nodes;n[n.length-1]=t}}n.CodeGen=CodeGen;function addNames(t,n){for(const i in n)t[i]=(t[i]||0)+(n[i]||0);return t}function addExprNames(t,n){return n instanceof a._CodeOrName?addNames(t,n.names):t}function optimizeExpr(t,n,i){if(t instanceof a.Name)return replaceName(t);if(!canOptimize(t))return t;return new a._Code(t._items.reduce((t,n)=>{if(n instanceof a.Name)n=replaceName(n);if(n instanceof a._Code)t.push(...n._items);else t.push(n);return t},[]));function replaceName(t){const a=i[t.str];if(a===undefined||n[t.str]!==1)return t;delete n[t.str];return a}function canOptimize(t){return t instanceof a._Code&&t._items.some(t=>t instanceof a.Name&&n[t.str]===1&&i[t.str]!==undefined)}}function subtractNames(t,n){for(const i in n)t[i]=(t[i]||0)-(n[i]||0)}function not(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,a._)`!${par(t)}`}n.not=not;const d=mappend(n.operators.AND);function and(...t){return t.reduce(d)}n.and=and;const h=mappend(n.operators.OR);function or(...t){return t.reduce(h)}n.or=or;function mappend(t){return(n,i)=>n===a.nil?i:i===a.nil?n:(0,a._)`${par(n)} ${t} ${par(i)}`}function par(t){return t instanceof a.Name?t:(0,a._)`(${t})`}},7788:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const a=i(567);class ValueError extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`);this.value=t.value}}var A;(function(t){t[t["Started"]=0]="Started";t[t["Completed"]=1]="Completed"})(A||(n.UsedValueState=A={}));n.varKinds={const:new a.Name("const"),let:new a.Name("let"),var:new a.Name("var")};class Scope{constructor({prefixes:t,parent:n}={}){this._names={};this._prefixes=t;this._parent=n}toName(t){return t instanceof a.Name?t:this.name(t)}name(t){return new a.Name(this._newName(t))}_newName(t){const n=this._names[t]||this._nameGroup(t);return`${t}${n.index++}`}_nameGroup(t){var n,i;if(((i=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||i===void 0?void 0:i.has(t))||this._prefixes&&!this._prefixes.has(t)){throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`)}return this._names[t]={prefix:t,index:0}}}n.Scope=Scope;class ValueScopeName extends a.Name{constructor(t,n){super(n);this.prefix=t}setValue(t,{property:n,itemIndex:i}){this.value=t;this.scopePath=(0,a._)`.${new a.Name(n)}[${i}]`}}n.ValueScopeName=ValueScopeName;const c=(0,a._)`\n`;class ValueScope extends Scope{constructor(t){super(t);this._values={};this._scope=t.scope;this.opts={...t,_n:t.lines?c:a.nil}}get(){return this._scope}name(t){return new ValueScopeName(t,this._newName(t))}value(t,n){var i;if(n.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const a=this.toName(t);const{prefix:A}=a;const c=(i=n.key)!==null&&i!==void 0?i:n.ref;let l=this._values[A];if(l){const t=l.get(c);if(t)return t}else{l=this._values[A]=new Map}l.set(c,a);const d=this._scope[A]||(this._scope[A]=[]);const h=d.length;d[h]=n.ref;a.setValue(n,{property:A,itemIndex:h});return a}getValue(t,n){const i=this._values[t];if(!i)return;return i.get(n)}scopeRefs(t,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===undefined)throw new Error(`CodeGen: name "${n}" has no value`);return(0,a._)`${t}${n.scopePath}`})}scopeCode(t=this._values,n,i){return this._reduceValues(t,t=>{if(t.value===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code},n,i)}_reduceValues(t,i,c={},l){let d=a.nil;for(const h in t){const f=t[h];if(!f)continue;const g=c[h]=c[h]||new Map;f.forEach(t=>{if(g.has(t))return;g.set(t,A.Started);let c=i(t);if(c){const i=this.opts.es5?n.varKinds.var:n.varKinds.const;d=(0,a._)`${d}${i} ${t} = ${c};${this.opts._n}`}else if(c=l===null||l===void 0?void 0:l(t)){d=(0,a._)`${d}${c}${this.opts._n}`}else{throw new ValueError(t)}g.set(t,A.Completed)})}return d}}n.ValueScope=ValueScope},1283:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.extendErrors=n.resetErrorsCount=n.reportExtraError=n.reportError=n.keyword$DataError=n.keywordError=void 0;const a=i(1436);const A=i(4464);const c=i(630);n.keywordError={message:({keyword:t})=>(0,a.str)`must pass "${t}" keyword validation`};n.keyword$DataError={message:({keyword:t,schemaType:n})=>n?(0,a.str)`"${t}" keyword must be ${n} ($data)`:(0,a.str)`"${t}" keyword is invalid ($data)`};function reportError(t,i=n.keywordError,A,c){const{it:l}=t;const{gen:d,compositeRule:h,allErrors:f}=l;const g=errorObjectCode(t,i,A);if(c!==null&&c!==void 0?c:h||f){addError(d,g)}else{returnErrors(l,(0,a._)`[${g}]`)}}n.reportError=reportError;function reportExtraError(t,i=n.keywordError,a){const{it:A}=t;const{gen:l,compositeRule:d,allErrors:h}=A;const f=errorObjectCode(t,i,a);addError(l,f);if(!(d||h)){returnErrors(A,c.default.vErrors)}}n.reportExtraError=reportExtraError;function resetErrorsCount(t,n){t.assign(c.default.errors,n);t.if((0,a._)`${c.default.vErrors} !== null`,()=>t.if(n,()=>t.assign((0,a._)`${c.default.vErrors}.length`,n),()=>t.assign(c.default.vErrors,null)))}n.resetErrorsCount=resetErrorsCount;function extendErrors({gen:t,keyword:n,schemaValue:i,data:A,errsCount:l,it:d}){if(l===undefined)throw new Error("ajv implementation error");const h=t.name("err");t.forRange("i",l,c.default.errors,l=>{t.const(h,(0,a._)`${c.default.vErrors}[${l}]`);t.if((0,a._)`${h}.instancePath === undefined`,()=>t.assign((0,a._)`${h}.instancePath`,(0,a.strConcat)(c.default.instancePath,d.errorPath)));t.assign((0,a._)`${h}.schemaPath`,(0,a.str)`${d.errSchemaPath}/${n}`);if(d.opts.verbose){t.assign((0,a._)`${h}.schema`,i);t.assign((0,a._)`${h}.data`,A)}})}n.extendErrors=extendErrors;function addError(t,n){const i=t.const("err",n);t.if((0,a._)`${c.default.vErrors} === null`,()=>t.assign(c.default.vErrors,(0,a._)`[${i}]`),(0,a._)`${c.default.vErrors}.push(${i})`);t.code((0,a._)`${c.default.errors}++`)}function returnErrors(t,n){const{gen:i,validateName:A,schemaEnv:c}=t;if(c.$async){i.throw((0,a._)`new ${t.ValidationError}(${n})`)}else{i.assign((0,a._)`${A}.errors`,n);i.return(false)}}const l={keyword:new a.Name("keyword"),schemaPath:new a.Name("schemaPath"),params:new a.Name("params"),propertyName:new a.Name("propertyName"),message:new a.Name("message"),schema:new a.Name("schema"),parentSchema:new a.Name("parentSchema")};function errorObjectCode(t,n,i){const{createErrors:A}=t.it;if(A===false)return(0,a._)`{}`;return errorObject(t,n,i)}function errorObject(t,n,i={}){const{gen:a,it:A}=t;const c=[errorInstancePath(A,i),errorSchemaPath(t,i)];extraErrorProps(t,n,c);return a.object(...c)}function errorInstancePath({errorPath:t},{instancePath:n}){const i=n?(0,a.str)`${t}${(0,A.getErrorPath)(n,A.Type.Str)}`:t;return[c.default.instancePath,(0,a.strConcat)(c.default.instancePath,i)]}function errorSchemaPath({keyword:t,it:{errSchemaPath:n}},{schemaPath:i,parentSchema:c}){let d=c?n:(0,a.str)`${n}/${t}`;if(i){d=(0,a.str)`${d}${(0,A.getErrorPath)(i,A.Type.Str)}`}return[l.schemaPath,d]}function extraErrorProps(t,{params:n,message:i},A){const{keyword:d,data:h,schemaValue:f,it:g}=t;const{opts:p,propertyName:m,topSchemaRef:E,schemaPath:C}=g;A.push([l.keyword,d],[l.params,typeof n=="function"?n(t):n||(0,a._)`{}`]);if(p.messages){A.push([l.message,typeof i=="function"?i(t):i])}if(p.verbose){A.push([l.schema,f],[l.parentSchema,(0,a._)`${E}${C}`],[c.default.data,h])}if(m)A.push([l.propertyName,m])}},2718:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.resolveSchema=n.getCompilingSchema=n.resolveRef=n.compileSchema=n.SchemaEnv=void 0;const a=i(1436);const A=i(3021);const c=i(630);const l=i(4090);const d=i(4464);const h=i(7881);class SchemaEnv{constructor(t){var n;this.refs={};this.dynamicAnchors={};let i;if(typeof t.schema=="object")i=t.schema;this.schema=t.schema;this.schemaId=t.schemaId;this.root=t.root||this;this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,l.normalizeId)(i===null||i===void 0?void 0:i[t.schemaId||"$id"]);this.schemaPath=t.schemaPath;this.localRefs=t.localRefs;this.meta=t.meta;this.$async=i===null||i===void 0?void 0:i.$async;this.refs={}}}n.SchemaEnv=SchemaEnv;function compileSchema(t){const n=getCompilingSchema.call(this,t);if(n)return n;const i=(0,l.getFullPath)(this.opts.uriResolver,t.root.baseId);const{es5:d,lines:f}=this.opts.code;const{ownProperties:g}=this.opts;const p=new a.CodeGen(this.scope,{es5:d,lines:f,ownProperties:g});let m;if(t.$async){m=p.scopeValue("Error",{ref:A.default,code:(0,a._)`require("ajv/dist/runtime/validation_error").default`})}const E=p.scopeName("validate");t.validateName=E;const C={gen:p,allErrors:this.opts.allErrors,data:c.default.data,parentData:c.default.parentData,parentDataProperty:c.default.parentDataProperty,dataNames:[c.default.data],dataPathArr:[a.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",this.opts.code.source===true?{ref:t.schema,code:(0,a.stringify)(t.schema)}:{ref:t.schema}),validateName:E,ValidationError:m,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:a.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,a._)`""`,opts:this.opts,self:this};let I;try{this._compilations.add(t);(0,h.validateFunctionCode)(C);p.optimize(this.opts.code.optimize);const n=p.toString();I=`${p.scopeRefs(c.default.scope)}return ${n}`;if(this.opts.code.process)I=this.opts.code.process(I,t);const i=new Function(`${c.default.self}`,`${c.default.scope}`,I);const A=i(this,this.scope.get());this.scope.value(E,{ref:A});A.errors=null;A.schema=t.schema;A.schemaEnv=t;if(t.$async)A.$async=true;if(this.opts.code.source===true){A.source={validateName:E,validateCode:n,scopeValues:p._values}}if(this.opts.unevaluated){const{props:t,items:n}=C;A.evaluated={props:t instanceof a.Name?undefined:t,items:n instanceof a.Name?undefined:n,dynamicProps:t instanceof a.Name,dynamicItems:n instanceof a.Name};if(A.source)A.source.evaluated=(0,a.stringify)(A.evaluated)}t.validate=A;return t}catch(n){delete t.validate;delete t.validateName;if(I)this.logger.error("Error compiling schema, function code:",I);throw n}finally{this._compilations.delete(t)}}n.compileSchema=compileSchema;function resolveRef(t,n,i){var a;i=(0,l.resolveUrl)(this.opts.uriResolver,n,i);const A=t.refs[i];if(A)return A;let c=resolve.call(this,t,i);if(c===undefined){const A=(a=t.localRefs)===null||a===void 0?void 0:a[i];const{schemaId:l}=this.opts;if(A)c=new SchemaEnv({schema:A,schemaId:l,root:t,baseId:n})}if(c===undefined)return;return t.refs[i]=inlineOrCompile.call(this,c)}n.resolveRef=resolveRef;function inlineOrCompile(t){if((0,l.inlineRef)(t.schema,this.opts.inlineRefs))return t.schema;return t.validate?t:compileSchema.call(this,t)}function getCompilingSchema(t){for(const n of this._compilations){if(sameSchemaEnv(n,t))return n}}n.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(t,n){return t.schema===n.schema&&t.root===n.root&&t.baseId===n.baseId}function resolve(t,n){let i;while(typeof(i=this.refs[n])=="string")n=i;return i||this.schemas[n]||resolveSchema.call(this,t,n)}function resolveSchema(t,n){const i=this.opts.uriResolver.parse(n);const a=(0,l._getFullPath)(this.opts.uriResolver,i);let A=(0,l.getFullPath)(this.opts.uriResolver,t.baseId,undefined);if(Object.keys(t.schema).length>0&&a===A){return getJsonPointer.call(this,i,t)}const c=(0,l.normalizeId)(a);const d=this.refs[c]||this.schemas[c];if(typeof d=="string"){const n=resolveSchema.call(this,t,d);if(typeof(n===null||n===void 0?void 0:n.schema)!=="object")return;return getJsonPointer.call(this,i,n)}if(typeof(d===null||d===void 0?void 0:d.schema)!=="object")return;if(!d.validate)compileSchema.call(this,d);if(c===(0,l.normalizeId)(n)){const{schema:n}=d;const{schemaId:i}=this.opts;const a=n[i];if(a)A=(0,l.resolveUrl)(this.opts.uriResolver,A,a);return new SchemaEnv({schema:n,schemaId:i,root:t,baseId:A})}return getJsonPointer.call(this,i,d)}n.resolveSchema=resolveSchema;const f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(t,{baseId:n,schema:i,root:a}){var A;if(((A=t.fragment)===null||A===void 0?void 0:A[0])!=="/")return;for(const a of t.fragment.slice(1).split("/")){if(typeof i==="boolean")return;const t=i[(0,d.unescapeFragment)(a)];if(t===undefined)return;i=t;const A=typeof i==="object"&&i[this.opts.schemaId];if(!f.has(a)&&A){n=(0,l.resolveUrl)(this.opts.uriResolver,n,A)}}let c;if(typeof i!="boolean"&&i.$ref&&!(0,d.schemaHasRulesButRef)(i,this.RULES)){const t=(0,l.resolveUrl)(this.opts.uriResolver,n,i.$ref);c=resolveSchema.call(this,a,t)}const{schemaId:h}=this.opts;c=c||new SchemaEnv({schema:i,schemaId:h,root:a,baseId:n});if(c.schema!==c.root.schema)return c;return undefined}},630:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A={data:new a.Name("data"),valCxt:new a.Name("valCxt"),instancePath:new a.Name("instancePath"),parentData:new a.Name("parentData"),parentDataProperty:new a.Name("parentDataProperty"),rootData:new a.Name("rootData"),dynamicAnchors:new a.Name("dynamicAnchors"),vErrors:new a.Name("vErrors"),errors:new a.Name("errors"),this:new a.Name("this"),self:new a.Name("self"),scope:new a.Name("scope"),json:new a.Name("json"),jsonPos:new a.Name("jsonPos"),jsonLen:new a.Name("jsonLen"),jsonPart:new a.Name("jsonPart")};n["default"]=A},3162:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4090);class MissingRefError extends Error{constructor(t,n,i,A){super(A||`can't resolve reference ${i} from id ${n}`);this.missingRef=(0,a.resolveUrl)(t,n,i);this.missingSchema=(0,a.normalizeId)((0,a.getFullPath)(t,this.missingRef))}}n["default"]=MissingRefError},4090:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.getSchemaRefs=n.resolveUrl=n.normalizeId=n._getFullPath=n.getFullPath=n.inlineRef=void 0;const a=i(4464);const A=i(3430);const c=i(1167);const l=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(t,n=true){if(typeof t=="boolean")return true;if(n===true)return!hasRef(t);if(!n)return false;return countKeys(t)<=n}n.inlineRef=inlineRef;const d=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(t){for(const n in t){if(d.has(n))return true;const i=t[n];if(Array.isArray(i)&&i.some(hasRef))return true;if(typeof i=="object"&&hasRef(i))return true}return false}function countKeys(t){let n=0;for(const i in t){if(i==="$ref")return Infinity;n++;if(l.has(i))continue;if(typeof t[i]=="object"){(0,a.eachItem)(t[i],t=>n+=countKeys(t))}if(n===Infinity)return Infinity}return n}function getFullPath(t,n="",i){if(i!==false)n=normalizeId(n);const a=t.parse(n);return _getFullPath(t,a)}n.getFullPath=getFullPath;function _getFullPath(t,n){const i=t.serialize(n);return i.split("#")[0]+"#"}n._getFullPath=_getFullPath;const h=/#\/?$/;function normalizeId(t){return t?t.replace(h,""):""}n.normalizeId=normalizeId;function resolveUrl(t,n,i){i=normalizeId(i);return t.resolve(n,i)}n.resolveUrl=resolveUrl;const f=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(t,n){if(typeof t=="boolean")return{};const{schemaId:i,uriResolver:a}=this.opts;const l=normalizeId(t[i]||n);const d={"":l};const h=getFullPath(a,l,false);const g={};const p=new Set;c(t,{allKeys:true},(t,n,a,A)=>{if(A===undefined)return;const c=h+n;let l=d[A];if(typeof t[i]=="string")l=addRef.call(this,t[i]);addAnchor.call(this,t.$anchor);addAnchor.call(this,t.$dynamicAnchor);d[n]=l;function addRef(n){const i=this.opts.uriResolver.resolve;n=normalizeId(l?i(l,n):n);if(p.has(n))throw ambiguos(n);p.add(n);let a=this.refs[n];if(typeof a=="string")a=this.refs[a];if(typeof a=="object"){checkAmbiguosRef(t,a.schema,n)}else if(n!==normalizeId(c)){if(n[0]==="#"){checkAmbiguosRef(t,g[n],n);g[n]=t}else{this.refs[n]=c}}return n}function addAnchor(t){if(typeof t=="string"){if(!f.test(t))throw new Error(`invalid anchor "${t}"`);addRef.call(this,`#${t}`)}}});return g;function checkAmbiguosRef(t,n,i){if(n!==undefined&&!A(t,n))throw ambiguos(i)}function ambiguos(t){return new Error(`reference "${t}" resolves to more than one schema`)}}n.getSchemaRefs=getSchemaRefs},7353:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.getRules=n.isJSONType=void 0;const i=["string","number","integer","boolean","null","object","array"];const a=new Set(i);function isJSONType(t){return typeof t=="string"&&a.has(t)}n.isJSONType=isJSONType;function getRules(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:true,boolean:true,null:true},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}n.getRules=getRules},4464:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.checkStrictMode=n.getErrorPath=n.Type=n.useFunc=n.setEvaluated=n.evaluatedPropsToName=n.mergeEvaluated=n.eachItem=n.unescapeJsonPointer=n.escapeJsonPointer=n.escapeFragment=n.unescapeFragment=n.schemaRefOrVal=n.schemaHasRulesButRef=n.schemaHasRules=n.checkUnknownRules=n.alwaysValidSchema=n.toHash=void 0;const a=i(1436);const A=i(567);function toHash(t){const n={};for(const i of t)n[i]=true;return n}n.toHash=toHash;function alwaysValidSchema(t,n){if(typeof n=="boolean")return n;if(Object.keys(n).length===0)return true;checkUnknownRules(t,n);return!schemaHasRules(n,t.self.RULES.all)}n.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(t,n=t.schema){const{opts:i,self:a}=t;if(!i.strictSchema)return;if(typeof n==="boolean")return;const A=a.RULES.keywords;for(const i in n){if(!A[i])checkStrictMode(t,`unknown keyword: "${i}"`)}}n.checkUnknownRules=checkUnknownRules;function schemaHasRules(t,n){if(typeof t=="boolean")return!t;for(const i in t)if(n[i])return true;return false}n.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(t,n){if(typeof t=="boolean")return!t;for(const i in t)if(i!=="$ref"&&n.all[i])return true;return false}n.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:t,schemaPath:n},i,A,c){if(!c){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,a._)`${i}`}return(0,a._)`${t}${n}${(0,a.getProperty)(A)}`}n.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(t){return unescapeJsonPointer(decodeURIComponent(t))}n.unescapeFragment=unescapeFragment;function escapeFragment(t){return encodeURIComponent(escapeJsonPointer(t))}n.escapeFragment=escapeFragment;function escapeJsonPointer(t){if(typeof t=="number")return`${t}`;return t.replace(/~/g,"~0").replace(/\//g,"~1")}n.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}n.unescapeJsonPointer=unescapeJsonPointer;function eachItem(t,n){if(Array.isArray(t)){for(const i of t)n(i)}else{n(t)}}n.eachItem=eachItem;function makeMergeEvaluated({mergeNames:t,mergeToName:n,mergeValues:i,resultToName:A}){return(c,l,d,h)=>{const f=d===undefined?l:d instanceof a.Name?(l instanceof a.Name?t(c,l,d):n(c,l,d),d):l instanceof a.Name?(n(c,d,l),l):i(l,d);return h===a.Name&&!(f instanceof a.Name)?A(c,f):f}}n.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(t,n,i)=>t.if((0,a._)`${i} !== true && ${n} !== undefined`,()=>{t.if((0,a._)`${n} === true`,()=>t.assign(i,true),()=>t.assign(i,(0,a._)`${i} || {}`).code((0,a._)`Object.assign(${i}, ${n})`))}),mergeToName:(t,n,i)=>t.if((0,a._)`${i} !== true`,()=>{if(n===true){t.assign(i,true)}else{t.assign(i,(0,a._)`${i} || {}`);setEvaluated(t,i,n)}}),mergeValues:(t,n)=>t===true?true:{...t,...n},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(t,n,i)=>t.if((0,a._)`${i} !== true && ${n} !== undefined`,()=>t.assign(i,(0,a._)`${n} === true ? true : ${i} > ${n} ? ${i} : ${n}`)),mergeToName:(t,n,i)=>t.if((0,a._)`${i} !== true`,()=>t.assign(i,n===true?true:(0,a._)`${i} > ${n} ? ${i} : ${n}`)),mergeValues:(t,n)=>t===true?true:Math.max(t,n),resultToName:(t,n)=>t.var("items",n)})};function evaluatedPropsToName(t,n){if(n===true)return t.var("props",true);const i=t.var("props",(0,a._)`{}`);if(n!==undefined)setEvaluated(t,i,n);return i}n.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(t,n,i){Object.keys(i).forEach(i=>t.assign((0,a._)`${n}${(0,a.getProperty)(i)}`,true))}n.setEvaluated=setEvaluated;const c={};function useFunc(t,n){return t.scopeValue("func",{ref:n,code:c[n.code]||(c[n.code]=new A._Code(n.code))})}n.useFunc=useFunc;var l;(function(t){t[t["Num"]=0]="Num";t[t["Str"]=1]="Str"})(l||(n.Type=l={}));function getErrorPath(t,n,i){if(t instanceof a.Name){const A=n===l.Num;return i?A?(0,a._)`"[" + ${t} + "]"`:(0,a._)`"['" + ${t} + "']"`:A?(0,a._)`"/" + ${t}`:(0,a._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,a.getProperty)(t).toString():"/"+escapeJsonPointer(t)}n.getErrorPath=getErrorPath;function checkStrictMode(t,n,i=t.opts.strictSchema){if(!i)return;n=`strict mode: ${n}`;if(i===true)throw new Error(n);t.self.logger.warn(n)}n.checkStrictMode=checkStrictMode},7692:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.shouldUseRule=n.shouldUseGroup=n.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:t,self:n},i){const a=n.RULES.types[i];return a&&a!==true&&shouldUseGroup(t,a)}n.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(t,n){return n.rules.some(n=>shouldUseRule(t,n))}n.shouldUseGroup=shouldUseGroup;function shouldUseRule(t,n){var i;return t[n.keyword]!==undefined||((i=n.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==undefined))}n.shouldUseRule=shouldUseRule},5346:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.boolOrEmptySchema=n.topBoolOrEmptySchema=void 0;const a=i(1283);const A=i(1436);const c=i(630);const l={message:"boolean schema is false"};function topBoolOrEmptySchema(t){const{gen:n,schema:i,validateName:a}=t;if(i===false){falseSchemaError(t,false)}else if(typeof i=="object"&&i.$async===true){n.return(c.default.data)}else{n.assign((0,A._)`${a}.errors`,null);n.return(true)}}n.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(t,n){const{gen:i,schema:a}=t;if(a===false){i.var(n,false);falseSchemaError(t)}else{i.var(n,true)}}n.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(t,n){const{gen:i,data:A}=t;const c={gen:i,keyword:"false schema",data:A,schema:false,schemaCode:false,schemaValue:false,params:{},it:t};(0,a.reportError)(c,l,undefined,n)}},6685:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.reportTypeError=n.checkDataTypes=n.checkDataType=n.coerceAndCheckDataType=n.getJSONTypes=n.getSchemaTypes=n.DataType=void 0;const a=i(7353);const A=i(7692);const c=i(1283);const l=i(1436);const d=i(4464);var h;(function(t){t[t["Correct"]=0]="Correct";t[t["Wrong"]=1]="Wrong"})(h||(n.DataType=h={}));function getSchemaTypes(t){const n=getJSONTypes(t.type);const i=n.includes("null");if(i){if(t.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&t.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(t.nullable===true)n.push("null")}return n}n.getSchemaTypes=getSchemaTypes;function getJSONTypes(t){const n=Array.isArray(t)?t:t?[t]:[];if(n.every(a.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}n.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(t,n){const{gen:i,data:a,opts:c}=t;const l=coerceToTypes(n,c.coerceTypes);const d=n.length>0&&!(l.length===0&&n.length===1&&(0,A.schemaHasRulesForType)(t,n[0]));if(d){const A=checkDataTypes(n,a,c.strictNumbers,h.Wrong);i.if(A,()=>{if(l.length)coerceData(t,n,l);else reportTypeError(t)})}return d}n.coerceAndCheckDataType=coerceAndCheckDataType;const f=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(t,n){return n?t.filter(t=>f.has(t)||n==="array"&&t==="array"):[]}function coerceData(t,n,i){const{gen:a,data:A,opts:c}=t;const d=a.let("dataType",(0,l._)`typeof ${A}`);const h=a.let("coerced",(0,l._)`undefined`);if(c.coerceTypes==="array"){a.if((0,l._)`${d} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>a.assign(A,(0,l._)`${A}[0]`).assign(d,(0,l._)`typeof ${A}`).if(checkDataTypes(n,A,c.strictNumbers),()=>a.assign(h,A)))}a.if((0,l._)`${h} !== undefined`);for(const t of i){if(f.has(t)||t==="array"&&c.coerceTypes==="array"){coerceSpecificType(t)}}a.else();reportTypeError(t);a.endIf();a.if((0,l._)`${h} !== undefined`,()=>{a.assign(A,h);assignParentData(t,h)});function coerceSpecificType(t){switch(t){case"string":a.elseIf((0,l._)`${d} == "number" || ${d} == "boolean"`).assign(h,(0,l._)`"" + ${A}`).elseIf((0,l._)`${A} === null`).assign(h,(0,l._)`""`);return;case"number":a.elseIf((0,l._)`${d} == "boolean" || ${A} === null - || (${d} == "string" && ${A} && ${A} == +${A})`).assign(h,(0,l._)`+${A}`);return;case"integer":a.elseIf((0,l._)`${d} === "boolean" || ${A} === null - || (${d} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(h,(0,l._)`+${A}`);return;case"boolean":a.elseIf((0,l._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(h,false).elseIf((0,l._)`${A} === "true" || ${A} === 1`).assign(h,true);return;case"null":a.elseIf((0,l._)`${A} === "" || ${A} === 0 || ${A} === false`);a.assign(h,null);return;case"array":a.elseIf((0,l._)`${d} === "string" || ${d} === "number" - || ${d} === "boolean" || ${A} === null`).assign(h,(0,l._)`[${A}]`)}}}function assignParentData({gen:t,parentData:n,parentDataProperty:i},a){t.if((0,l._)`${n} !== undefined`,()=>t.assign((0,l._)`${n}[${i}]`,a))}function checkDataType(t,n,i,a=h.Correct){const A=a===h.Correct?l.operators.EQ:l.operators.NEQ;let c;switch(t){case"null":return(0,l._)`${n} ${A} null`;case"array":c=(0,l._)`Array.isArray(${n})`;break;case"object":c=(0,l._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":c=numCond((0,l._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":c=numCond();break;default:return(0,l._)`typeof ${n} ${A} ${t}`}return a===h.Correct?c:(0,l.not)(c);function numCond(t=l.nil){return(0,l.and)((0,l._)`typeof ${n} == "number"`,t,i?(0,l._)`isFinite(${n})`:l.nil)}}n.checkDataType=checkDataType;function checkDataTypes(t,n,i,a){if(t.length===1){return checkDataType(t[0],n,i,a)}let A;const c=(0,d.toHash)(t);if(c.array&&c.object){const t=(0,l._)`typeof ${n} != "object"`;A=c.null?t:(0,l._)`!${n} || ${t}`;delete c.null;delete c.array;delete c.object}else{A=l.nil}if(c.number)delete c.integer;for(const t in c)A=(0,l.and)(A,checkDataType(t,n,i,a));return A}n.checkDataTypes=checkDataTypes;const g={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:n})=>typeof t=="string"?(0,l._)`{type: ${t}}`:(0,l._)`{type: ${n}}`};function reportTypeError(t){const n=getTypeErrorContext(t);(0,c.reportError)(n,g)}n.reportTypeError=reportTypeError;function getTypeErrorContext(t){const{gen:n,data:i,schema:a}=t;const A=(0,d.schemaRefOrVal)(t,a,"type");return{gen:n,keyword:"type",data:i,schema:a.type,schemaCode:A,schemaValue:A,parentSchema:a,params:{},it:t}}},1699:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.assignDefaults=void 0;const a=i(1436);const A=i(4464);function assignDefaults(t,n){const{properties:i,items:a}=t.schema;if(n==="object"&&i){for(const n in i){assignDefault(t,n,i[n].default)}}else if(n==="array"&&Array.isArray(a)){a.forEach((n,i)=>assignDefault(t,i,n.default))}}n.assignDefaults=assignDefaults;function assignDefault(t,n,i){const{gen:c,compositeRule:l,data:d,opts:h}=t;if(i===undefined)return;const f=(0,a._)`${d}${(0,a.getProperty)(n)}`;if(l){(0,A.checkStrictMode)(t,`default is ignored for: ${f}`);return}let g=(0,a._)`${f} === undefined`;if(h.useDefaults==="empty"){g=(0,a._)`${g} || ${f} === null || ${f} === ""`}c.if(g,(0,a._)`${f} = ${(0,a.stringify)(i)}`)}},7881:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.getData=n.KeywordCxt=n.validateFunctionCode=void 0;const a=i(5346);const A=i(6685);const c=i(7692);const l=i(6685);const d=i(1699);const h=i(5202);const f=i(6200);const g=i(1436);const p=i(630);const m=i(4090);const E=i(4464);const C=i(1283);function validateFunctionCode(t){if(isSchemaObj(t)){checkKeywords(t);if(schemaCxtHasRules(t)){topSchemaObjCode(t);return}}validateFunction(t,()=>(0,a.topBoolOrEmptySchema)(t))}n.validateFunctionCode=validateFunctionCode;function validateFunction({gen:t,validateName:n,schema:i,schemaEnv:a,opts:A},c){if(A.code.es5){t.func(n,(0,g._)`${p.default.data}, ${p.default.valCxt}`,a.$async,()=>{t.code((0,g._)`"use strict"; ${funcSourceUrl(i,A)}`);destructureValCxtES5(t,A);t.code(c)})}else{t.func(n,(0,g._)`${p.default.data}, ${destructureValCxt(A)}`,a.$async,()=>t.code(funcSourceUrl(i,A)).code(c))}}function destructureValCxt(t){return(0,g._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${t.dynamicRef?(0,g._)`, ${p.default.dynamicAnchors}={}`:g.nil}}={}`}function destructureValCxtES5(t,n){t.if(p.default.valCxt,()=>{t.var(p.default.instancePath,(0,g._)`${p.default.valCxt}.${p.default.instancePath}`);t.var(p.default.parentData,(0,g._)`${p.default.valCxt}.${p.default.parentData}`);t.var(p.default.parentDataProperty,(0,g._)`${p.default.valCxt}.${p.default.parentDataProperty}`);t.var(p.default.rootData,(0,g._)`${p.default.valCxt}.${p.default.rootData}`);if(n.dynamicRef)t.var(p.default.dynamicAnchors,(0,g._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{t.var(p.default.instancePath,(0,g._)`""`);t.var(p.default.parentData,(0,g._)`undefined`);t.var(p.default.parentDataProperty,(0,g._)`undefined`);t.var(p.default.rootData,p.default.data);if(n.dynamicRef)t.var(p.default.dynamicAnchors,(0,g._)`{}`)})}function topSchemaObjCode(t){const{schema:n,opts:i,gen:a}=t;validateFunction(t,()=>{if(i.$comment&&n.$comment)commentKeyword(t);checkNoDefault(t);a.let(p.default.vErrors,null);a.let(p.default.errors,0);if(i.unevaluated)resetEvaluated(t);typeAndKeywords(t);returnResults(t)});return}function resetEvaluated(t){const{gen:n,validateName:i}=t;t.evaluated=n.const("evaluated",(0,g._)`${i}.evaluated`);n.if((0,g._)`${t.evaluated}.dynamicProps`,()=>n.assign((0,g._)`${t.evaluated}.props`,(0,g._)`undefined`));n.if((0,g._)`${t.evaluated}.dynamicItems`,()=>n.assign((0,g._)`${t.evaluated}.items`,(0,g._)`undefined`))}function funcSourceUrl(t,n){const i=typeof t=="object"&&t[n.schemaId];return i&&(n.code.source||n.code.process)?(0,g._)`/*# sourceURL=${i} */`:g.nil}function subschemaCode(t,n){if(isSchemaObj(t)){checkKeywords(t);if(schemaCxtHasRules(t)){subSchemaObjCode(t,n);return}}(0,a.boolOrEmptySchema)(t,n)}function schemaCxtHasRules({schema:t,self:n}){if(typeof t=="boolean")return!t;for(const i in t)if(n.RULES.all[i])return true;return false}function isSchemaObj(t){return typeof t.schema!="boolean"}function subSchemaObjCode(t,n){const{schema:i,gen:a,opts:A}=t;if(A.$comment&&i.$comment)commentKeyword(t);updateContext(t);checkAsyncSchema(t);const c=a.const("_errs",p.default.errors);typeAndKeywords(t,c);a.var(n,(0,g._)`${c} === ${p.default.errors}`)}function checkKeywords(t){(0,E.checkUnknownRules)(t);checkRefsAndKeywords(t)}function typeAndKeywords(t,n){if(t.opts.jtd)return schemaKeywords(t,[],false,n);const i=(0,A.getSchemaTypes)(t.schema);const a=(0,A.coerceAndCheckDataType)(t,i);schemaKeywords(t,i,!a,n)}function checkRefsAndKeywords(t){const{schema:n,errSchemaPath:i,opts:a,self:A}=t;if(n.$ref&&a.ignoreKeywordsWithRef&&(0,E.schemaHasRulesButRef)(n,A.RULES)){A.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}}function checkNoDefault(t){const{schema:n,opts:i}=t;if(n.default!==undefined&&i.useDefaults&&i.strictSchema){(0,E.checkStrictMode)(t,"default is ignored in the schema root")}}function updateContext(t){const n=t.schema[t.opts.schemaId];if(n)t.baseId=(0,m.resolveUrl)(t.opts.uriResolver,t.baseId,n)}function checkAsyncSchema(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:t,schemaEnv:n,schema:i,errSchemaPath:a,opts:A}){const c=i.$comment;if(A.$comment===true){t.code((0,g._)`${p.default.self}.logger.log(${c})`)}else if(typeof A.$comment=="function"){const i=(0,g.str)`${a}/$comment`;const A=t.scopeValue("root",{ref:n.root});t.code((0,g._)`${p.default.self}.opts.$comment(${c}, ${i}, ${A}.schema)`)}}function returnResults(t){const{gen:n,schemaEnv:i,validateName:a,ValidationError:A,opts:c}=t;if(i.$async){n.if((0,g._)`${p.default.errors} === 0`,()=>n.return(p.default.data),()=>n.throw((0,g._)`new ${A}(${p.default.vErrors})`))}else{n.assign((0,g._)`${a}.errors`,p.default.vErrors);if(c.unevaluated)assignEvaluated(t);n.return((0,g._)`${p.default.errors} === 0`)}}function assignEvaluated({gen:t,evaluated:n,props:i,items:a}){if(i instanceof g.Name)t.assign((0,g._)`${n}.props`,i);if(a instanceof g.Name)t.assign((0,g._)`${n}.items`,a)}function schemaKeywords(t,n,i,a){const{gen:A,schema:d,data:h,allErrors:f,opts:m,self:C}=t;const{RULES:I}=C;if(d.$ref&&(m.ignoreKeywordsWithRef||!(0,E.schemaHasRulesButRef)(d,I))){A.block(()=>keywordCode(t,"$ref",I.all.$ref.definition));return}if(!m.jtd)checkStrictTypes(t,n);A.block(()=>{for(const t of I.rules)groupKeywords(t);groupKeywords(I.post)});function groupKeywords(E){if(!(0,c.shouldUseGroup)(d,E))return;if(E.type){A.if((0,l.checkDataType)(E.type,h,m.strictNumbers));iterateKeywords(t,E);if(n.length===1&&n[0]===E.type&&i){A.else();(0,l.reportTypeError)(t)}A.endIf()}else{iterateKeywords(t,E)}if(!f)A.if((0,g._)`${p.default.errors} === ${a||0}`)}}function iterateKeywords(t,n){const{gen:i,schema:a,opts:{useDefaults:A}}=t;if(A)(0,d.assignDefaults)(t,n.type);i.block(()=>{for(const i of n.rules){if((0,c.shouldUseRule)(a,i)){keywordCode(t,i.keyword,i.definition,n.type)}}})}function checkStrictTypes(t,n){if(t.schemaEnv.meta||!t.opts.strictTypes)return;checkContextTypes(t,n);if(!t.opts.allowUnionTypes)checkMultipleTypes(t,n);checkKeywordTypes(t,t.dataTypes)}function checkContextTypes(t,n){if(!n.length)return;if(!t.dataTypes.length){t.dataTypes=n;return}n.forEach(n=>{if(!includesType(t.dataTypes,n)){strictTypesError(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}});narrowSchemaTypes(t,n)}function checkMultipleTypes(t,n){if(n.length>1&&!(n.length===2&&n.includes("null"))){strictTypesError(t,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(t,n){const i=t.self.RULES.all;for(const a in i){const A=i[a];if(typeof A=="object"&&(0,c.shouldUseRule)(t.schema,A)){const{type:i}=A.definition;if(i.length&&!i.some(t=>hasApplicableType(n,t))){strictTypesError(t,`missing type "${i.join(",")}" for keyword "${a}"`)}}}}function hasApplicableType(t,n){return t.includes(n)||n==="number"&&t.includes("integer")}function includesType(t,n){return t.includes(n)||n==="integer"&&t.includes("number")}function narrowSchemaTypes(t,n){const i=[];for(const a of t.dataTypes){if(includesType(n,a))i.push(a);else if(n.includes("integer")&&a==="number")i.push("integer")}t.dataTypes=i}function strictTypesError(t,n){const i=t.schemaEnv.baseId+t.errSchemaPath;n+=` at "${i}" (strictTypes)`;(0,E.checkStrictMode)(t,n,t.opts.strictTypes)}class KeywordCxt{constructor(t,n,i){(0,h.validateKeywordUsage)(t,n,i);this.gen=t.gen;this.allErrors=t.allErrors;this.keyword=i;this.data=t.data;this.schema=t.schema[i];this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,E.schemaRefOrVal)(t,this.schema,i,this.$data);this.schemaType=n.schemaType;this.parentSchema=t.schema;this.params={};this.it=t;this.def=n;if(this.$data){this.schemaCode=t.gen.const("vSchema",getData(this.$data,t))}else{this.schemaCode=this.schemaValue;if(!(0,h.validSchemaType)(this.schema,n.schemaType,n.allowUndefined)){throw new Error(`${i} value must be ${JSON.stringify(n.schemaType)}`)}}if("code"in n?n.trackErrors:n.errors!==false){this.errsCount=t.gen.const("_errs",p.default.errors)}}result(t,n,i){this.failResult((0,g.not)(t),n,i)}failResult(t,n,i){this.gen.if(t);if(i)i();else this.error();if(n){this.gen.else();n();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(t,n){this.failResult((0,g.not)(t),undefined,n)}fail(t){if(t===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(t);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,g._)`${n} !== undefined && (${(0,g.or)(this.invalid$data(),t)})`)}error(t,n,i){if(n){this.setParams(n);this._error(t,i);this.setParams({});return}this._error(t,i)}_error(t,n){(t?C.reportExtraError:C.reportError)(this,this.def.error,n)}$dataError(){(0,C.reportError)(this,this.def.$dataError||C.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,C.resetErrorsCount)(this.gen,this.errsCount)}ok(t){if(!this.allErrors)this.gen.if(t)}setParams(t,n){if(n)Object.assign(this.params,t);else this.params=t}block$data(t,n,i=g.nil){this.gen.block(()=>{this.check$data(t,i);n()})}check$data(t=g.nil,n=g.nil){if(!this.$data)return;const{gen:i,schemaCode:a,schemaType:A,def:c}=this;i.if((0,g.or)((0,g._)`${a} === undefined`,n));if(t!==g.nil)i.assign(t,true);if(A.length||c.validateSchema){i.elseIf(this.invalid$data());this.$dataError();if(t!==g.nil)i.assign(t,false)}i.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:i,def:a,it:A}=this;return(0,g.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(i.length){if(!(n instanceof g.Name))throw new Error("ajv implementation error");const t=Array.isArray(i)?i:[i];return(0,g._)`${(0,l.checkDataTypes)(t,n,A.opts.strictNumbers,l.DataType.Wrong)}`}return g.nil}function invalid$DataSchema(){if(a.validateSchema){const i=t.scopeValue("validate$data",{ref:a.validateSchema});return(0,g._)`!${i}(${n})`}return g.nil}}subschema(t,n){const i=(0,f.getSubschema)(this.it,t);(0,f.extendSubschemaData)(i,this.it,t);(0,f.extendSubschemaMode)(i,t);const a={...this.it,...i,items:undefined,props:undefined};subschemaCode(a,n);return a}mergeEvaluated(t,n){const{it:i,gen:a}=this;if(!i.opts.unevaluated)return;if(i.props!==true&&t.props!==undefined){i.props=E.mergeEvaluated.props(a,t.props,i.props,n)}if(i.items!==true&&t.items!==undefined){i.items=E.mergeEvaluated.items(a,t.items,i.items,n)}}mergeValidEvaluated(t,n){const{it:i,gen:a}=this;if(i.opts.unevaluated&&(i.props!==true||i.items!==true)){a.if(n,()=>this.mergeEvaluated(t,g.Name));return true}}}n.KeywordCxt=KeywordCxt;function keywordCode(t,n,i,a){const A=new KeywordCxt(t,i,n);if("code"in i){i.code(A,a)}else if(A.$data&&i.validate){(0,h.funcKeywordCode)(A,i)}else if("macro"in i){(0,h.macroKeywordCode)(A,i)}else if(i.compile||i.validate){(0,h.funcKeywordCode)(A,i)}}const I=/^\/(?:[^~]|~0|~1)*$/;const y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(t,{dataLevel:n,dataNames:i,dataPathArr:a}){let A;let c;if(t==="")return p.default.rootData;if(t[0]==="/"){if(!I.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);A=t;c=p.default.rootData}else{const l=y.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);const d=+l[1];A=l[2];if(A==="#"){if(d>=n)throw new Error(errorMsg("property/index",d));return a[n-d]}if(d>n)throw new Error(errorMsg("data",d));c=i[n-d];if(!A)return c}let l=c;const d=A.split("/");for(const t of d){if(t){c=(0,g._)`${c}${(0,g.getProperty)((0,E.unescapeJsonPointer)(t))}`;l=(0,g._)`${l} && ${c}`}}return l;function errorMsg(t,i){return`Cannot access ${t} ${i} levels up, current level is ${n}`}}n.getData=getData},5202:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateKeywordUsage=n.validSchemaType=n.funcKeywordCode=n.macroKeywordCode=void 0;const a=i(1436);const A=i(630);const c=i(8484);const l=i(1283);function macroKeywordCode(t,n){const{gen:i,keyword:A,schema:c,parentSchema:l,it:d}=t;const h=n.macro.call(d.self,c,l,d);const f=useKeyword(i,A,h);if(d.opts.validateSchema!==false)d.self.validateSchema(h,true);const g=i.name("valid");t.subschema({schema:h,schemaPath:a.nil,errSchemaPath:`${d.errSchemaPath}/${A}`,topSchemaRef:f,compositeRule:true},g);t.pass(g,()=>t.error(true))}n.macroKeywordCode=macroKeywordCode;function funcKeywordCode(t,n){var i;const{gen:l,keyword:d,schema:h,parentSchema:f,$data:g,it:p}=t;checkAsyncKeyword(p,n);const m=!g&&n.compile?n.compile.call(p.self,h,f,p):n.validate;const E=useKeyword(l,d,m);const C=l.let("valid");t.block$data(C,validateKeyword);t.ok((i=n.valid)!==null&&i!==void 0?i:C);function validateKeyword(){if(n.errors===false){assignValid();if(n.modifying)modifyData(t);reportErrs(()=>t.error())}else{const i=n.async?validateAsync():validateSync();if(n.modifying)modifyData(t);reportErrs(()=>addErrs(t,i))}}function validateAsync(){const t=l.let("ruleErrs",null);l.try(()=>assignValid((0,a._)`await `),n=>l.assign(C,false).if((0,a._)`${n} instanceof ${p.ValidationError}`,()=>l.assign(t,(0,a._)`${n}.errors`),()=>l.throw(n)));return t}function validateSync(){const t=(0,a._)`${E}.errors`;l.assign(t,null);assignValid(a.nil);return t}function assignValid(i=(n.async?(0,a._)`await `:a.nil)){const d=p.opts.passContext?A.default.this:A.default.self;const h=!("compile"in n&&!g||n.schema===false);l.assign(C,(0,a._)`${i}${(0,c.callValidateCode)(t,E,d,h)}`,n.modifying)}function reportErrs(t){var i;l.if((0,a.not)((i=n.valid)!==null&&i!==void 0?i:C),t)}}n.funcKeywordCode=funcKeywordCode;function modifyData(t){const{gen:n,data:i,it:A}=t;n.if(A.parentData,()=>n.assign(i,(0,a._)`${A.parentData}[${A.parentDataProperty}]`))}function addErrs(t,n){const{gen:i}=t;i.if((0,a._)`Array.isArray(${n})`,()=>{i.assign(A.default.vErrors,(0,a._)`${A.default.vErrors} === null ? ${n} : ${A.default.vErrors}.concat(${n})`).assign(A.default.errors,(0,a._)`${A.default.vErrors}.length`);(0,l.extendErrors)(t)},()=>t.error())}function checkAsyncKeyword({schemaEnv:t},n){if(n.async&&!t.$async)throw new Error("async keyword in sync schema")}function useKeyword(t,n,i){if(i===undefined)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,a.stringify)(i)})}function validSchemaType(t,n,i=false){return!n.length||n.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t=="undefined")}n.validSchemaType=validSchemaType;function validateKeywordUsage({schema:t,opts:n,self:i,errSchemaPath:a},A,c){if(Array.isArray(A.keyword)?!A.keyword.includes(c):A.keyword!==c){throw new Error("ajv implementation error")}const l=A.dependencies;if(l===null||l===void 0?void 0:l.some(n=>!Object.prototype.hasOwnProperty.call(t,n))){throw new Error(`parent schema must have dependencies of ${c}: ${l.join(",")}`)}if(A.validateSchema){const l=A.validateSchema(t[c]);if(!l){const t=`keyword "${c}" value is invalid at path "${a}": `+i.errorsText(A.validateSchema.errors);if(n.validateSchema==="log")i.logger.error(t);else throw new Error(t)}}}n.validateKeywordUsage=validateKeywordUsage},6200:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.extendSubschemaMode=n.extendSubschemaData=n.getSubschema=void 0;const a=i(1436);const A=i(4464);function getSubschema(t,{keyword:n,schemaProp:i,schema:c,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(n!==undefined&&c!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(n!==undefined){const c=t.schema[n];return i===undefined?{schema:c,schemaPath:(0,a._)`${t.schemaPath}${(0,a.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${n}`}:{schema:c[i],schemaPath:(0,a._)`${t.schemaPath}${(0,a.getProperty)(n)}${(0,a.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${n}/${(0,A.escapeFragment)(i)}`}}if(c!==undefined){if(l===undefined||d===undefined||h===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:c,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}n.getSubschema=getSubschema;function extendSubschemaData(t,n,{dataProp:i,dataPropType:c,data:l,dataTypes:d,propertyName:h}){if(l!==undefined&&i!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:f}=n;if(i!==undefined){const{errorPath:l,dataPathArr:d,opts:h}=n;const g=f.let("data",(0,a._)`${n.data}${(0,a.getProperty)(i)}`,true);dataContextProps(g);t.errorPath=(0,a.str)`${l}${(0,A.getErrorPath)(i,c,h.jsPropertySyntax)}`;t.parentDataProperty=(0,a._)`${i}`;t.dataPathArr=[...d,t.parentDataProperty]}if(l!==undefined){const n=l instanceof a.Name?l:f.let("data",l,true);dataContextProps(n);if(h!==undefined)t.propertyName=h}if(d)t.dataTypes=d;function dataContextProps(i){t.data=i;t.dataLevel=n.dataLevel+1;t.dataTypes=[];n.definedProperties=new Set;t.parentData=n.data;t.dataNames=[...n.dataNames,i]}}n.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(t,{jtdDiscriminator:n,jtdMetadata:i,compositeRule:a,createErrors:A,allErrors:c}){if(a!==undefined)t.compositeRule=a;if(A!==undefined)t.createErrors=A;if(c!==undefined)t.allErrors=c;t.jtdDiscriminator=n;t.jtdMetadata=i}n.extendSubschemaMode=extendSubschemaMode},3893:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=void 0;var a=i(7881);Object.defineProperty(n,"KeywordCxt",{enumerable:true,get:function(){return a.KeywordCxt}});var A=i(1436);Object.defineProperty(n,"_",{enumerable:true,get:function(){return A._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return A.str}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return A.stringify}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return A.nil}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return A.Name}});Object.defineProperty(n,"CodeGen",{enumerable:true,get:function(){return A.CodeGen}});const c=i(3021);const l=i(3162);const d=i(7353);const h=i(2718);const f=i(1436);const g=i(4090);const p=i(6685);const m=i(4464);const E=i(3837);const C=i(6285);const defaultRegExp=(t,n)=>new RegExp(t,n);defaultRegExp.code="new RegExp";const I=["removeAdditional","useDefaults","coerceTypes"];const y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const B={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const Q={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const w=200;function requiredOptions(t){var n,i,a,A,c,l,d,h,f,g,p,m,E,I,y,B,Q,S,b,R,v,k,D,T,N;const M=t.strict;const F=(n=t.code)===null||n===void 0?void 0:n.optimize;const x=F===true||F===undefined?1:F||0;const U=(a=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&a!==void 0?a:defaultRegExp;const P=(A=t.uriResolver)!==null&&A!==void 0?A:C.default;return{strictSchema:(l=(c=t.strictSchema)!==null&&c!==void 0?c:M)!==null&&l!==void 0?l:true,strictNumbers:(h=(d=t.strictNumbers)!==null&&d!==void 0?d:M)!==null&&h!==void 0?h:true,strictTypes:(g=(f=t.strictTypes)!==null&&f!==void 0?f:M)!==null&&g!==void 0?g:"log",strictTuples:(m=(p=t.strictTuples)!==null&&p!==void 0?p:M)!==null&&m!==void 0?m:"log",strictRequired:(I=(E=t.strictRequired)!==null&&E!==void 0?E:M)!==null&&I!==void 0?I:false,code:t.code?{...t.code,optimize:x,regExp:U}:{optimize:x,regExp:U},loopRequired:(y=t.loopRequired)!==null&&y!==void 0?y:w,loopEnum:(B=t.loopEnum)!==null&&B!==void 0?B:w,meta:(Q=t.meta)!==null&&Q!==void 0?Q:true,messages:(S=t.messages)!==null&&S!==void 0?S:true,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:true,schemaId:(R=t.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(v=t.addUsedSchema)!==null&&v!==void 0?v:true,validateSchema:(k=t.validateSchema)!==null&&k!==void 0?k:true,validateFormats:(D=t.validateFormats)!==null&&D!==void 0?D:true,unicodeRegExp:(T=t.unicodeRegExp)!==null&&T!==void 0?T:true,int32range:(N=t.int32range)!==null&&N!==void 0?N:true,uriResolver:P}}class Ajv{constructor(t={}){this.schemas={};this.refs={};this.formats=Object.create(null);this._compilations=new Set;this._loading={};this._cache=new Map;t=this.opts={...t,...requiredOptions(t)};const{es5:n,lines:i}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:y,es5:n,lines:i});this.logger=getLogger(t.logger);const a=t.validateFormats;t.validateFormats=false;this.RULES=(0,d.getRules)();checkOptions.call(this,B,t,"NOT SUPPORTED");checkOptions.call(this,Q,t,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(t.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(t.keywords)addInitialKeywords.call(this,t.keywords);if(typeof t.meta=="object")this.addMetaSchema(t.meta);addInitialSchemas.call(this);t.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:t,meta:n,schemaId:i}=this.opts;let a=E;if(i==="id"){a={...E};a.id=a.$id;delete a.$id}if(n&&t)this.addMetaSchema(a,a[i],false)}defaultMeta(){const{meta:t,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[n]||t:undefined}validate(t,n){let i;if(typeof t=="string"){i=this.getSchema(t);if(!i)throw new Error(`no schema with key or ref "${t}"`)}else{i=this.compile(t)}const a=i(n);if(!("$async"in i))this.errors=i.errors;return a}compile(t,n){const i=this._addSchema(t,n);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,n){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:i}=this.opts;return runCompileAsync.call(this,t,n);async function runCompileAsync(t,n){await loadMetaSchema.call(this,t.$schema);const i=this._addSchema(t,n);return i.validate||_compileAsync.call(this,i)}async function loadMetaSchema(t){if(t&&!this.getSchema(t)){await runCompileAsync.call(this,{$ref:t},true)}}async function _compileAsync(t){try{return this._compileSchemaEnv(t)}catch(n){if(!(n instanceof l.default))throw n;checkLoaded.call(this,n);await loadMissingSchema.call(this,n.missingSchema);return _compileAsync.call(this,t)}}function checkLoaded({missingSchema:t,missingRef:n}){if(this.refs[t]){throw new Error(`AnySchema ${t} is loaded but ${n} cannot be resolved`)}}async function loadMissingSchema(t){const i=await _loadSchema.call(this,t);if(!this.refs[t])await loadMetaSchema.call(this,i.$schema);if(!this.refs[t])this.addSchema(i,t,n)}async function _loadSchema(t){const n=this._loading[t];if(n)return n;try{return await(this._loading[t]=i(t))}finally{delete this._loading[t]}}}addSchema(t,n,i,a=this.opts.validateSchema){if(Array.isArray(t)){for(const n of t)this.addSchema(n,undefined,i,a);return this}let A;if(typeof t==="object"){const{schemaId:n}=this.opts;A=t[n];if(A!==undefined&&typeof A!="string"){throw new Error(`schema ${n} must be string`)}}n=(0,g.normalizeId)(n||A);this._checkUnique(n);this.schemas[n]=this._addSchema(t,i,n,a,true);return this}addMetaSchema(t,n,i=this.opts.validateSchema){this.addSchema(t,n,true,i);return this}validateSchema(t,n){if(typeof t=="boolean")return true;let i;i=t.$schema;if(i!==undefined&&typeof i!="string"){throw new Error("$schema must be a string")}i=i||this.opts.defaultMeta||this.defaultMeta();if(!i){this.logger.warn("meta-schema not available");this.errors=null;return true}const a=this.validate(i,t);if(!a&&n){const t="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(t);else throw new Error(t)}return a}getSchema(t){let n;while(typeof(n=getSchEnv.call(this,t))=="string")t=n;if(n===undefined){const{schemaId:i}=this.opts;const a=new h.SchemaEnv({schema:{},schemaId:i});n=h.resolveSchema.call(this,a,t);if(!n)return;this.refs[t]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(t){if(t instanceof RegExp){this._removeAllSchemas(this.schemas,t);this._removeAllSchemas(this.refs,t);return this}switch(typeof t){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const n=getSchEnv.call(this,t);if(typeof n=="object")this._cache.delete(n.schema);delete this.schemas[t];delete this.refs[t];return this}case"object":{const n=t;this._cache.delete(n);let i=t[this.opts.schemaId];if(i){i=(0,g.normalizeId)(i);delete this.schemas[i];delete this.refs[i]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(const n of t)this.addKeyword(n);return this}addKeyword(t,n){let i;if(typeof t=="string"){i=t;if(typeof n=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");n.keyword=i}}else if(typeof t=="object"&&n===undefined){n=t;i=n.keyword;if(Array.isArray(i)&&!i.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,i,n);if(!n){(0,m.eachItem)(i,t=>addRule.call(this,t));return this}keywordMetaschema.call(this,n);const a={...n,type:(0,p.getJSONTypes)(n.type),schemaType:(0,p.getJSONTypes)(n.schemaType)};(0,m.eachItem)(i,a.type.length===0?t=>addRule.call(this,t,a):t=>a.type.forEach(n=>addRule.call(this,t,a,n)));return this}getKeyword(t){const n=this.RULES.all[t];return typeof n=="object"?n.definition:!!n}removeKeyword(t){const{RULES:n}=this;delete n.keywords[t];delete n.all[t];for(const i of n.rules){const n=i.rules.findIndex(n=>n.keyword===t);if(n>=0)i.rules.splice(n,1)}return this}addFormat(t,n){if(typeof n=="string")n=new RegExp(n);this.formats[t]=n;return this}errorsText(t=this.errors,{separator:n=", ",dataVar:i="data"}={}){if(!t||t.length===0)return"No errors";return t.map(t=>`${i}${t.instancePath} ${t.message}`).reduce((t,i)=>t+n+i)}$dataMetaSchema(t,n){const i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(const a of n){const n=a.split("/").slice(1);let A=t;for(const t of n)A=A[t];for(const t in i){const n=i[t];if(typeof n!="object")continue;const{$data:a}=n.definition;const c=A[t];if(a&&c)A[t]=schemaOrData(c)}}return t}_removeAllSchemas(t,n){for(const i in t){const a=t[i];if(!n||n.test(i)){if(typeof a=="string"){delete t[i]}else if(a&&!a.meta){this._cache.delete(a.schema);delete t[i]}}}}_addSchema(t,n,i,a=this.opts.validateSchema,A=this.opts.addUsedSchema){let c;const{schemaId:l}=this.opts;if(typeof t=="object"){c=t[l]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let d=this._cache.get(t);if(d!==undefined)return d;i=(0,g.normalizeId)(c||i);const f=g.getSchemaRefs.call(this,t,i);d=new h.SchemaEnv({schema:t,schemaId:l,meta:n,baseId:i,localRefs:f});this._cache.set(d.schema,d);if(A&&!i.startsWith("#")){if(i)this._checkUnique(i);this.refs[i]=d}if(a)this.validateSchema(t,true);return d}_checkUnique(t){if(this.schemas[t]||this.refs[t]){throw new Error(`schema with key or id "${t}" already exists`)}}_compileSchemaEnv(t){if(t.meta)this._compileMetaSchema(t);else h.compileSchema.call(this,t);if(!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){const n=this.opts;this.opts=this._metaOpts;try{h.compileSchema.call(this,t)}finally{this.opts=n}}}Ajv.ValidationError=c.default;Ajv.MissingRefError=l.default;n["default"]=Ajv;function checkOptions(t,n,i,a="error"){for(const A in t){const c=A;if(c in n)this.logger[a](`${i}: option ${A}. ${t[c]}`)}}function getSchEnv(t){t=(0,g.normalizeId)(t);return this.schemas[t]||this.refs[t]}function addInitialSchemas(){const t=this.opts.schemas;if(!t)return;if(Array.isArray(t))this.addSchema(t);else for(const n in t)this.addSchema(t[n],n)}function addInitialFormats(){for(const t in this.opts.formats){const n=this.opts.formats[t];if(n)this.addFormat(t,n)}}function addInitialKeywords(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const n in t){const i=t[n];if(!i.keyword)i.keyword=n;this.addKeyword(i)}}function getMetaSchemaOptions(){const t={...this.opts};for(const n of I)delete t[n];return t}const S={log(){},warn(){},error(){}};function getLogger(t){if(t===false)return S;if(t===undefined)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}const b=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(t,n){const{RULES:i}=this;(0,m.eachItem)(t,t=>{if(i.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!b.test(t))throw new Error(`Keyword ${t} has invalid name`)});if(!n)return;if(n.$data&&!("code"in n||"validate"in n)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(t,n,i){var a;const A=n===null||n===void 0?void 0:n.post;if(i&&A)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:c}=this;let l=A?c.post:c.rules.find(({type:t})=>t===i);if(!l){l={type:i,rules:[]};c.rules.push(l)}c.keywords[t]=true;if(!n)return;const d={keyword:t,definition:{...n,type:(0,p.getJSONTypes)(n.type),schemaType:(0,p.getJSONTypes)(n.schemaType)}};if(n.before)addBeforeRule.call(this,l,d,n.before);else l.rules.push(d);c.all[t]=d;(a=n.implements)===null||a===void 0?void 0:a.forEach(t=>this.addKeyword(t))}function addBeforeRule(t,n,i){const a=t.rules.findIndex(t=>t.keyword===i);if(a>=0){t.rules.splice(a,0,n)}else{t.rules.push(n);this.logger.warn(`rule ${i} is not defined`)}}function keywordMetaschema(t){let{metaSchema:n}=t;if(n===undefined)return;if(t.$data&&this.opts.$data)n=schemaOrData(n);t.validateSchema=this.compile(n,true)}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(t){return{anyOf:[t,R]}}},5375:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8138);const A=i(4908);const c=i(958);const l=i(58);const d=i(6534);const h=i(711);const f=i(8030);const g=["/properties"];function addMetaSchema2019(t){[a,A,c,l,with$data(this,d),h,with$data(this,f)].forEach(t=>this.addMetaSchema(t,undefined,false));return this;function with$data(n,i){return t?n.$dataMetaSchema(i,g):i}}n["default"]=addMetaSchema2019},4951:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(3430);a.code='require("ajv/dist/runtime/equal").default';n["default"]=a},6214:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});function ucs2length(t){const n=t.length;let i=0;let a=0;let A;while(a=55296&&A<=56319&&a{Object.defineProperty(n,"__esModule",{value:true});const a=i(4352);a.code='require("ajv/dist/runtime/uri").default';n["default"]=a},3021:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});class ValidationError extends Error{constructor(t){super("validation failed");this.errors=t;this.ajv=this.validation=true}}n["default"]=ValidationError},3448:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateAdditionalItems=void 0;const a=i(1436);const A=i(4464);const c={message:({params:{len:t}})=>(0,a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,a._)`{limit: ${t}}`};const l={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:c,code(t){const{parentSchema:n,it:i}=t;const{items:a}=n;if(!Array.isArray(a)){(0,A.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(t,a)}};function validateAdditionalItems(t,n){const{gen:i,schema:c,data:l,keyword:d,it:h}=t;h.items=true;const f=i.const("len",(0,a._)`${l}.length`);if(c===false){t.setParams({len:n.length});t.pass((0,a._)`${f} <= ${n.length}`)}else if(typeof c=="object"&&!(0,A.alwaysValidSchema)(h,c)){const A=i.var("valid",(0,a._)`${f} <= ${n.length}`);i.if((0,a.not)(A),()=>validateItems(A));t.ok(A)}function validateItems(c){i.forRange("i",n.length,f,n=>{t.subschema({keyword:d,dataProp:n,dataPropType:A.Type.Num},c);if(!h.allErrors)i.if((0,a.not)(c),()=>i.break())})}}n.validateAdditionalItems=validateAdditionalItems;n["default"]=l},2431:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const A=i(1436);const c=i(630);const l=i(4464);const d={message:"must NOT have additional properties",params:({params:t})=>(0,A._)`{additionalProperty: ${t.additionalProperty}}`};const h={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:d,code(t){const{gen:n,schema:i,parentSchema:d,data:h,errsCount:f,it:g}=t;if(!f)throw new Error("ajv implementation error");const{allErrors:p,opts:m}=g;g.props=true;if(m.removeAdditional!=="all"&&(0,l.alwaysValidSchema)(g,i))return;const E=(0,a.allSchemaProperties)(d.properties);const C=(0,a.allSchemaProperties)(d.patternProperties);checkAdditionalProperties();t.ok((0,A._)`${f} === ${c.default.errors}`);function checkAdditionalProperties(){n.forIn("key",h,t=>{if(!E.length&&!C.length)additionalPropertyCode(t);else n.if(isAdditional(t),()=>additionalPropertyCode(t))})}function isAdditional(i){let c;if(E.length>8){const t=(0,l.schemaRefOrVal)(g,d.properties,"properties");c=(0,a.isOwnProperty)(n,t,i)}else if(E.length){c=(0,A.or)(...E.map(t=>(0,A._)`${i} === ${t}`))}else{c=A.nil}if(C.length){c=(0,A.or)(c,...C.map(n=>(0,A._)`${(0,a.usePattern)(t,n)}.test(${i})`))}return(0,A.not)(c)}function deleteAdditional(t){n.code((0,A._)`delete ${h}[${t}]`)}function additionalPropertyCode(a){if(m.removeAdditional==="all"||m.removeAdditional&&i===false){deleteAdditional(a);return}if(i===false){t.setParams({additionalProperty:a});t.error();if(!p)n.break();return}if(typeof i=="object"&&!(0,l.alwaysValidSchema)(g,i)){const i=n.name("valid");if(m.removeAdditional==="failing"){applyAdditionalSchema(a,i,false);n.if((0,A.not)(i),()=>{t.reset();deleteAdditional(a)})}else{applyAdditionalSchema(a,i);if(!p)n.if((0,A.not)(i),()=>n.break())}}}function applyAdditionalSchema(n,i,a){const A={keyword:"additionalProperties",dataProp:n,dataPropType:l.Type.Str};if(a===false){Object.assign(A,{compositeRule:true,createErrors:false,allErrors:false})}t.subschema(A,i)}}};n["default"]=h},9205:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const A={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:i,it:A}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const c=n.name("valid");i.forEach((n,i)=>{if((0,a.alwaysValidSchema)(A,n))return;const l=t.subschema({keyword:"allOf",schemaProp:i},c);t.ok(c);t.mergeEvaluated(l)})}};n["default"]=A},9380:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const A={keyword:"anyOf",schemaType:"array",trackErrors:true,code:a.validateUnion,error:{message:"must match a schema in anyOf"}};n["default"]=A},6182:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c={message:({params:{min:t,max:n}})=>n===undefined?(0,a.str)`must contain at least ${t} valid item(s)`:(0,a.str)`must contain at least ${t} and no more than ${n} valid item(s)`,params:({params:{min:t,max:n}})=>n===undefined?(0,a._)`{minContains: ${t}}`:(0,a._)`{minContains: ${t}, maxContains: ${n}}`};const l={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:c,code(t){const{gen:n,schema:i,parentSchema:c,data:l,it:d}=t;let h;let f;const{minContains:g,maxContains:p}=c;if(d.opts.next){h=g===undefined?1:g;f=p}else{h=1}const m=n.const("len",(0,a._)`${l}.length`);t.setParams({min:h,max:f});if(f===undefined&&h===0){(0,A.checkStrictMode)(d,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(f!==undefined&&h>f){(0,A.checkStrictMode)(d,`"minContains" > "maxContains" is always invalid`);t.fail();return}if((0,A.alwaysValidSchema)(d,i)){let n=(0,a._)`${m} >= ${h}`;if(f!==undefined)n=(0,a._)`${n} && ${m} <= ${f}`;t.pass(n);return}d.items=true;const E=n.name("valid");if(f===undefined&&h===1){validateItems(E,()=>n.if(E,()=>n.break()))}else if(h===0){n.let(E,true);if(f!==undefined)n.if((0,a._)`${l}.length > 0`,validateItemsWithCount)}else{n.let(E,false);validateItemsWithCount()}t.result(E,()=>t.reset());function validateItemsWithCount(){const t=n.name("_valid");const i=n.let("count",0);validateItems(t,()=>n.if(t,()=>checkLimits(i)))}function validateItems(i,a){n.forRange("i",0,m,n=>{t.subschema({keyword:"contains",dataProp:n,dataPropType:A.Type.Num,compositeRule:true},i);a()})}function checkLimits(t){n.code((0,a._)`${t}++`);if(f===undefined){n.if((0,a._)`${t} >= ${h}`,()=>n.assign(E,true).break())}else{n.if((0,a._)`${t} > ${f}`,()=>n.assign(E,false).break());if(h===1)n.assign(E,true);else n.if((0,a._)`${t} >= ${h}`,()=>n.assign(E,true))}}}};n["default"]=l},5826:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateSchemaDeps=n.validatePropertyDeps=n.error=void 0;const a=i(1436);const A=i(4464);const c=i(8484);n.error={message:({params:{property:t,depsCount:n,deps:i}})=>{const A=n===1?"property":"properties";return(0,a.str)`must have ${A} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:n,deps:i,missingProperty:A}})=>(0,a._)`{property: ${t}, - missingProperty: ${A}, +import{createRequire as t}from"module";var n={1695:(t,n,i)=>{var a;const{awsEndpointFunctions:c,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:l,NODE_APP_ID_CONFIG_OPTIONS:d,getAwsRegionExtensionConfiguration:h,resolveAwsRegionExtensionConfiguration:f,resolveUserAgentConfig:g,resolveHostHeaderConfig:p,getUserAgentPlugin:m,getHostHeaderPlugin:E,getLoggerPlugin:C,getRecursionDetectionPlugin:I,setCredentialFeature:y,stsRegionDefaultResolver:B}=i(5152);const{NoAuthSigner:Q,getHttpAuthSchemeEndpointRuleSetPlugin:w,DefaultIdentityProviderConfig:S,getHttpSigningPlugin:b}=i(402);const{normalizeProvider:R,getSmithyContext:v,ServiceException:k,NoOpLogger:D,emitWarningIfUnsupportedVersion:T,loadConfigsForDefaultMode:N,getDefaultExtensionConfiguration:M,resolveDefaultRuntimeConfig:F,Client:x,makeBuilder:U,createAggregatedClient:P}=i(2658);const{Command:L}=i(2658);a=L;a=x;const{resolveDefaultsModeConfig:O,loadConfig:H,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:V,NODE_REGION_CONFIG_OPTIONS:G,NODE_REGION_CONFIG_FILE_OPTIONS:Y,resolveRegionConfig:J}=i(7291);const{BinaryDecisionDiagram:W,EndpointCache:q,decideEndpoint:j,customEndpointFunctions:z,resolveParams:K,resolveEndpointConfig:Z,getEndpointPlugin:X}=i(2085);const{parseUrl:ee,getHttpHandlerExtensionConfiguration:te,resolveHttpHandlerRuntimeConfig:re,getContentLengthPlugin:ne}=i(3422);const{DEFAULT_RETRY_MODE:se,NODE_RETRY_MODE_CONFIG_OPTIONS:oe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ie,resolveRetryConfig:ae,getRetryPlugin:ce}=i(3609);const{TypeRegistry:Ae,getSchemaSerdePlugin:le}=i(6890);const{resolveAwsSdkSigV4Config:ue,resolveAwsSdkSigV4AConfig:de,AwsSdkSigV4Signer:he,AwsSdkSigV4ASigner:fe,NODE_SIGV4A_CONFIG_OPTIONS:ge,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:pe}=i(7523);const{SignatureV4MultiRegion:me}=i(5785);const{defaultProvider:Ee}=i(5861);const{toUtf8:Ce,fromUtf8:Ie,toBase64:ye,fromBase64:Be,calculateBodyLength:Qe}=i(2430);const{streamCollector:we,NodeHttpHandler:Se}=i(1279);const{AwsQueryProtocol:be}=i(7288);const{Sha256:Re}=i(9542);const ve="ref";const ke=-1,De=true,Te="isSet",Ne="PartitionResult",Me="booleanEquals",Fe="stringEquals",xe="getAttr",Ue="us-east-1",Pe="sigv4",Le="sts",_e="https://sts.{Region}.{PartitionResult#dnsSuffix}",Oe={[ve]:"Endpoint"},He={[ve]:"Region"},$e={[ve]:Ne},Ve={},Ge=[He];const Ye={conditions:[[Te,[Oe]],[Te,Ge],["aws.partition",Ge,Ne],[Me,[{[ve]:"UseFIPS"},De]],[Me,[{[ve]:"UseDualStack"},De]],[Fe,[He,"aws-global"]],[Me,[{[ve]:"UseGlobalEndpoint"},De]],[Fe,[He,"eu-central-1"]],[Me,[{fn:xe,argv:[$e,"supportsDualStack"]},De]],[Me,[{fn:xe,argv:[$e,"supportsFIPS"]},De]],[Fe,[He,"ap-south-1"]],[Fe,[He,"eu-north-1"]],[Fe,[He,"eu-west-1"]],[Fe,[He,"eu-west-2"]],[Fe,[He,"eu-west-3"]],[Fe,[He,"sa-east-1"]],[Fe,[He,Ue]],[Fe,[He,"us-east-2"]],[Fe,[He,"us-west-2"]],[Fe,[He,"us-west-1"]],[Fe,[He,"ca-central-1"]],[Fe,[He,"ap-southeast-1"]],[Fe,[He,"ap-northeast-1"]],[Fe,[He,"ap-southeast-2"]],[Fe,[{fn:xe,argv:[$e,"name"]},"aws-us-gov"]]],results:[[ke],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:Le,signingRegion:Ue}]}],[_e,{authSchemes:[{name:Pe,signingName:Le,signingRegion:"{Region}"}]}],[ke,"Invalid Configuration: FIPS and custom endpoint are not supported"],[ke,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Oe,Ve],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ve],[ke,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Ve],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Ve],[ke,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Ve],[ke,"DualStack is enabled but this partition does not support DualStack"],[_e,Ve],[ke,"Invalid Configuration: Missing Region"]]};const Je=2;const We=1e8;const qe=new Int32Array([-1,1,-1,0,30,3,1,4,We+14,2,5,We+14,3,25,6,4,24,7,5,We+1,8,6,9,We+13,7,We+1,10,10,We+1,11,11,We+1,12,12,We+1,13,13,We+1,14,14,We+1,15,15,We+1,16,16,We+1,17,17,We+1,18,18,We+1,19,19,We+1,20,20,We+1,21,21,We+1,22,22,We+1,23,23,We+1,We+2,8,We+11,We+12,4,28,26,9,27,We+10,24,We+8,We+9,8,29,We+7,9,We+6,We+7,3,We+3,31,4,We+4,We+5]);const je=W.from(qe,Je,Ye.conditions,Ye.results);const ze=new q({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(t,n={})=>ze.get(t,()=>j(je,{endpointParams:t,logger:n.logger}));z.aws=c;const createEndpointRuleSetHttpAuthSchemeParametersProvider=t=>async(n,i,a)=>{if(!a){throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`")}const c=await t(n,i,a);const A=v(i)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!A){throw new Error(`getEndpointParameterInstructions() is not defined on '${i.commandName}'`)}const l=await K(a,{getEndpointParameterInstructions:A},n);return Object.assign(c,l)};const _defaultSTSHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:v(n).operation,region:await R(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const Ke=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createAwsAuthSigv4aHttpAuthOption(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const createEndpointRuleSetHttpAuthSchemeProvider=(t,n,i)=>{const endpointRuleSetHttpAuthSchemeProvider=a=>{const c=t(a);const A=c.properties?.authSchemes;if(!A){return n(a)}const l=[];for(const t of A){const{name:n,properties:c={},...d}=t;const h=n.toLowerCase();if(n!==h){console.warn(`HttpAuthScheme has been normalized with lowercasing: '${n}' to '${h}'`)}let f;if(h==="sigv4a"){f="aws.auth#sigv4a";const t=A.find(t=>{const n=t.name.toLowerCase();return n!=="sigv4a"&&n.startsWith("sigv4")});if(me.sigv4aDependency()==="none"&&t){continue}}else if(h.startsWith("sigv4")){f="aws.auth#sigv4"}else{throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${h}'`)}const g=i[f];if(!g){throw new Error(`Could not find HttpAuthOption create function for '${f}'`)}const p=g(a);p.schemeId=f;p.signingProperties={...p.signingProperties||{},...d,...c};l.push(p)}return l};return endpointRuleSetHttpAuthSchemeProvider};const _defaultSTSHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"AssumeRoleWithSAML":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}case"AssumeRoleWithWebIdentity":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t));n.push(createAwsAuthSigv4aHttpAuthOption(t))}}return n};const Ze=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultSTSHttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption,"smithy.api#noAuth":createSmithyApiNoAuthHttpAuthOption});const resolveHttpAuthSchemeConfig=t=>{const n=ue(t);const i=de(n);return Object.assign(i,{authSchemePreference:R(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,useGlobalEndpoint:t.useGlobalEndpoint??false,defaultSigningName:"sts"});const Xe={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var et="3.1097.0";var tt={version:et};class STSServiceException extends k{constructor(t){super(t);Object.setPrototypeOf(this,STSServiceException.prototype)}}class ExpiredTokenException extends STSServiceException{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends STSServiceException{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}class InvalidAuthorizationMessageException extends STSServiceException{name="InvalidAuthorizationMessageException";$fault="client";constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}class ExpiredTradeInTokenException extends STSServiceException{name="ExpiredTradeInTokenException";$fault="client";constructor(t){super({name:"ExpiredTradeInTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTradeInTokenException.prototype)}}class JWTPayloadSizeExceededException extends STSServiceException{name="JWTPayloadSizeExceededException";$fault="client";constructor(t){super({name:"JWTPayloadSizeExceededException",$fault:"client",...t});Object.setPrototypeOf(this,JWTPayloadSizeExceededException.prototype)}}class OutboundWebIdentityFederationDisabledException extends STSServiceException{name="OutboundWebIdentityFederationDisabledException";$fault="client";constructor(t){super({name:"OutboundWebIdentityFederationDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,OutboundWebIdentityFederationDisabledException.prototype)}}class SessionDurationEscalationException extends STSServiceException{name="SessionDurationEscalationException";$fault="client";constructor(t){super({name:"SessionDurationEscalationException",$fault:"client",...t});Object.setPrototypeOf(this,SessionDurationEscalationException.prototype)}}const rt="Arn";const nt="AccessKeyId";const st="AssumedPrincipal";const ot="AssumeRole";const it="AssumedRoleId";const at="AssumeRoleRequest";const ct="AssumeRoleResponse";const At="AssumeRootRequest";const lt="AssumeRootResponse";const ut="AssumedRoleUser";const dt="AssumeRoleWithSAML";const ht="AssumeRoleWithSAMLRequest";const ft="AssumeRoleWithSAMLResponse";const gt="AssumeRoleWithWebIdentity";const pt="AssumeRoleWithWebIdentityRequest";const mt="AssumeRoleWithWebIdentityResponse";const Et="AssumeRoot";const Ct="Account";const It="Audience";const yt="Credentials";const Bt="ContextAssertion";const Qt="DecodeAuthorizationMessage";const wt="DecodeAuthorizationMessageRequest";const St="DecodeAuthorizationMessageResponse";const bt="DecodedMessage";const Rt="DurationSeconds";const vt="Expiration";const kt="ExternalId";const Dt="EncodedMessage";const Tt="ExpiredTokenException";const Nt="ExpiredTradeInTokenException";const Mt="FederatedUser";const Ft="FederatedUserId";const xt="GetAccessKeyInfo";const Ut="GetAccessKeyInfoRequest";const Pt="GetAccessKeyInfoResponse";const Lt="GetCallerIdentity";const _t="GetCallerIdentityRequest";const Ot="GetCallerIdentityResponse";const Ht="GetDelegatedAccessToken";const $t="GetDelegatedAccessTokenRequest";const Vt="GetDelegatedAccessTokenResponse";const Gt="GetFederationToken";const Yt="GetFederationTokenRequest";const Jt="GetFederationTokenResponse";const Wt="GetSessionToken";const qt="GetSessionTokenRequest";const jt="GetSessionTokenResponse";const zt="GetWebIdentityToken";const Kt="GetWebIdentityTokenRequest";const Zt="GetWebIdentityTokenResponse";const Xt="Issuer";const er="InvalidAuthorizationMessageException";const tr="IDPCommunicationErrorException";const rr="IDPRejectedClaimException";const nr="InvalidIdentityTokenException";const sr="JWTPayloadSizeExceededException";const ir="Key";const ar="MalformedPolicyDocumentException";const cr="Name";const Ar="NameQualifier";const lr="OutboundWebIdentityFederationDisabledException";const ur="Policy";const dr="PolicyArns";const hr="PrincipalArn";const fr="ProviderArn";const gr="ProvidedContexts";const pr="ProvidedContextsListType";const mr="ProvidedContext";const Er="PolicyDescriptorType";const Cr="ProviderId";const Ir="PackedPolicySize";const yr="PackedPolicyTooLargeException";const Br="Provider";const Qr="RoleArn";const wr="RegionDisabledException";const Sr="RoleSessionName";const br="Subject";const Rr="SigningAlgorithm";const vr="SecretAccessKey";const kr="SAMLAssertion";const Dr="SAMLAssertionType";const Tr="SessionDurationEscalationException";const Nr="SubjectFromWebIdentityToken";const Mr="SourceIdentity";const Fr="SerialNumber";const xr="SubjectType";const Ur="SessionToken";const Pr="Tags";const Lr="TokenCode";const _r="TradeInToken";const Or="TargetPrincipal";const Hr="TaskPolicyArn";const $r="TransitiveTagKeys";const Vr="Tag";const Gr="UserId";const Yr="Value";const Jr="WebIdentityToken";const Wr="arn";const qr="accessKeySecretType";const jr="awsQueryError";const zr="client";const Kr="clientTokenType";const Zr="error";const Xr="httpError";const en="message";const tn="policyDescriptorListType";const rn="smithy.ts.sdk.synthetic.com.amazonaws.sts";const nn="tradeInTokenType";const sn="tagListType";const on="webIdentityTokenType";const an="com.amazonaws.sts";const cn=Ae.for(rn);var An=[-3,rn,"STSServiceException",0,[],[]];cn.registerError(An,STSServiceException);const ln=Ae.for(an);var un=[-3,an,Tt,{[jr]:[`ExpiredTokenException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(un,ExpiredTokenException);var dn=[-3,an,Nt,{[jr]:[`ExpiredTradeInTokenException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(dn,ExpiredTradeInTokenException);var hn=[-3,an,tr,{[jr]:[`IDPCommunicationError`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(hn,IDPCommunicationErrorException);var gn=[-3,an,rr,{[jr]:[`IDPRejectedClaim`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(gn,IDPRejectedClaimException);var pn=[-3,an,er,{[jr]:[`InvalidAuthorizationMessageException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(pn,InvalidAuthorizationMessageException);var mn=[-3,an,nr,{[jr]:[`InvalidIdentityToken`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(mn,InvalidIdentityTokenException);var En=[-3,an,sr,{[jr]:[`JWTPayloadSizeExceededException`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(En,JWTPayloadSizeExceededException);var Cn=[-3,an,ar,{[jr]:[`MalformedPolicyDocument`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(Cn,MalformedPolicyDocumentException);var In=[-3,an,lr,{[jr]:[`OutboundWebIdentityFederationDisabledException`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(In,OutboundWebIdentityFederationDisabledException);var yn=[-3,an,yr,{[jr]:[`PackedPolicyTooLarge`,400],[Zr]:zr,[Xr]:400},[en],[0]];ln.registerError(yn,PackedPolicyTooLargeException);var Bn=[-3,an,wr,{[jr]:[`RegionDisabledException`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(Bn,RegionDisabledException);var Qn=[-3,an,Tr,{[jr]:[`SessionDurationEscalationException`,403],[Zr]:zr,[Xr]:403},[en],[0]];ln.registerError(Qn,SessionDurationEscalationException);const wn=[cn,ln];var Sn=[0,an,qr,8,0];var bn=[0,an,Kr,8,0];var Rn=[0,an,Dr,8,0];var vn=[0,an,nn,8,0];var kn=[0,an,on,8,0];var Dn=[3,an,ut,0,[it,rt],[0,0],2];var Tn=[3,an,at,0,[Qr,Sr,dr,ur,Rt,Pr,$r,kt,Fr,Lr,Mr,gr],[0,0,()=>ss,0,1,()=>is,64|0,0,0,0,0,()=>os],2];var Nn=[3,an,ct,0,[yt,ut,Ir,Mr],[[()=>_n,0],()=>Dn,1,0]];var Mn=[3,an,ht,0,[Qr,hr,kr,dr,ur,Rt],[0,0,[()=>Rn,0],()=>ss,0,1],3];var Fn=[3,an,ft,0,[yt,ut,Ir,br,xr,Xt,It,Ar,Mr],[[()=>_n,0],()=>Dn,1,0,0,0,0,0,0]];var xn=[3,an,pt,0,[Qr,Sr,Jr,Cr,dr,ur,Rt],[0,0,[()=>bn,0],0,()=>ss,0,1],3];var Un=[3,an,mt,0,[yt,Nr,ut,Ir,Br,It,Mr],[[()=>_n,0],0,()=>Dn,1,0,0,0]];var Pn=[3,an,At,0,[Or,Hr,Rt],[0,()=>ts,1],2];var Ln=[3,an,lt,0,[yt,Mr],[[()=>_n,0],0]];var _n=[3,an,yt,0,[nt,vr,Ur,vt],[0,[()=>Sn,0],0,4],4];var On=[3,an,wt,0,[Dt],[0],1];var Hn=[3,an,St,0,[bt],[0]];var $n=[3,an,Mt,0,[Ft,rt],[0,0],2];var Vn=[3,an,Ut,0,[nt],[0],1];var Gn=[3,an,Pt,0,[Ct],[0]];var Yn=[3,an,_t,0,[],[]];var Jn=[3,an,Ot,0,[Gr,Ct,rt],[0,0,0]];var Wn=[3,an,$t,0,[_r],[[()=>vn,0]],1];var qn=[3,an,Vt,0,[yt,Ir,st],[[()=>_n,0],1,0]];var jn=[3,an,Yt,0,[cr,ur,dr,Rt,Pr],[0,0,()=>ss,1,()=>is],1];var zn=[3,an,Jt,0,[yt,Mt,Ir],[[()=>_n,0],()=>$n,1]];var Kn=[3,an,qt,0,[Rt,Fr,Lr],[1,0,0]];var Zn=[3,an,jt,0,[yt],[[()=>_n,0]]];var Xn=[3,an,Kt,0,[It,Rr,Rt,Pr],[64|0,0,1,()=>is],2];var es=[3,an,Zt,0,[Jr,vt],[[()=>kn,0],4]];var ts=[3,an,Er,0,[Wr],[0]];var rs=[3,an,mr,0,[fr,Bt],[0,0]];var ns=[3,an,Vr,0,[ir,Yr],[0,0],2];var ss=[1,an,tn,0,()=>ts];var os=[1,an,pr,0,()=>rs];var is=[1,an,sn,0,()=>ns];var as=[9,an,ot,0,()=>Tn,()=>Nn];var cs=[9,an,dt,0,()=>Mn,()=>Fn];var As=[9,an,gt,0,()=>xn,()=>Un];var ls=[9,an,Et,0,()=>Pn,()=>Ln];var us=[9,an,Qt,0,()=>On,()=>Hn];var ds=[9,an,xt,0,()=>Vn,()=>Gn];var hs=[9,an,Lt,0,()=>Yn,()=>Jn];var fs=[9,an,Ht,0,()=>Wn,()=>qn];var gs=[9,an,Gt,0,()=>jn,()=>zn];var ps=[9,an,Wt,0,()=>Kn,()=>Zn];var ms=[9,an,zt,0,()=>Xn,()=>es];const getRuntimeConfig$1=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Be,base64Encoder:t?.base64Encoder??ye,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Ze,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new he},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q}],logger:t?.logger??new D,protocol:t?.protocol??be,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:wn,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Re,signerConstructor:t?.signerConstructor??me,urlParser:t?.urlParser??ee,utf8Decoder:t?.utf8Decoder??Ie,utf8Encoder:t?.utf8Encoder??Ce});const getRuntimeConfig=t=>{T(process.version);const n=O(t);const defaultConfigProvider=()=>n().then(N);const i=getRuntimeConfig$1(t);A(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??H(pe,a),bodyLengthChecker:t?.bodyLengthChecker??Qe,credentialDefaultProvider:t?.credentialDefaultProvider??Ee,defaultUserAgentProvider:t?.defaultUserAgentProvider??l({serviceId:i.serviceId,clientVersion:tt.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4")||(async t=>await Ee(t?.__config||{})()),signer:new he},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q}],maxAttempts:t?.maxAttempts??H(ie,t),region:t?.region??H(G,{...Y,...a}),requestHandler:Se.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??H({...oe,default:async()=>(await defaultConfigProvider()).retryMode||se},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??H(ge,a),streamCollector:t?.streamCollector??we,useDualstackEndpoint:t?.useDualstackEndpoint??H(V,a),useFipsEndpoint:t?.useFipsEndpoint??H($,a),userAgentAppId:t?.userAgentAppId??H(d,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(h(t),M(t),te(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,f(i),F(i),re(i),resolveHttpAuthRuntimeConfig(i))};class STSClient extends x{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=g(i);const c=ae(a);const A=J(c);const l=p(A);const d=Z(l);const h=resolveHttpAuthSchemeConfig(d);const f=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=f;this.middlewareStack.use(le(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(ce(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(I(this.config));this.middlewareStack.use(w(this.config,{httpAuthSchemeParametersProvider:Ke,identityProviderConfigProvider:async t=>new S({"aws.auth#sigv4":t.credentials,"aws.auth#sigv4a":t.credentials})}));this.middlewareStack.use(b(this.config))}destroy(){super.destroy()}}const Es=U(Xe,"AWSSecurityTokenServiceV20110615","STSClient",X);const Cs={};const _mw0=(t,n,i,a)=>[];class AssumeRoleCommand extends(Es(Cs,_mw0,"AssumeRole",as)){}class AssumeRoleWithSAMLCommand extends(Es(Cs,_mw0,"AssumeRoleWithSAML",cs)){}class AssumeRoleWithWebIdentityCommand extends(Es(Cs,_mw0,"AssumeRoleWithWebIdentity",As)){}class AssumeRootCommand extends(Es(Cs,_mw0,"AssumeRoot",ls)){}class DecodeAuthorizationMessageCommand extends(Es(Cs,_mw0,"DecodeAuthorizationMessage",us)){}class GetAccessKeyInfoCommand extends(Es(Cs,_mw0,"GetAccessKeyInfo",ds)){}class GetCallerIdentityCommand extends(Es(Cs,_mw0,"GetCallerIdentity",hs)){}class GetDelegatedAccessTokenCommand extends(Es(Cs,_mw0,"GetDelegatedAccessToken",fs)){}class GetFederationTokenCommand extends(Es(Cs,_mw0,"GetFederationToken",gs)){}class GetSessionTokenCommand extends(Es(Cs,_mw0,"GetSessionToken",ps)){}class GetWebIdentityTokenCommand extends(Es(Cs,_mw0,"GetWebIdentityToken",ms)){}const Is={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithSAMLCommand:AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand,AssumeRootCommand:AssumeRootCommand,DecodeAuthorizationMessageCommand:DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:GetAccessKeyInfoCommand,GetCallerIdentityCommand:GetCallerIdentityCommand,GetDelegatedAccessTokenCommand:GetDelegatedAccessTokenCommand,GetFederationTokenCommand:GetFederationTokenCommand,GetSessionTokenCommand:GetSessionTokenCommand,GetWebIdentityTokenCommand:GetWebIdentityTokenCommand};class STS extends STSClient{}P(Is,STS);const getAccountIdFromAssumedRoleUser=t=>{if(typeof t?.Arn==="string"){const n=t.Arn.split(":");if(n.length>4&&n[4]!==""){return n[4]}}return undefined};const resolveRegion=async(t,n,i,a={})=>{const c=typeof t==="function"?await t():t;const A=typeof n==="function"?await n():n;let l="";const d=c??A??(l=await B(a)());i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${c} (credential provider clientConfig)`,`${A} (contextual client)`,`${l} (STS default: AWS_REGION, profile region, or us-east-1)`);return d};const getDefaultRoleAssumer$1=(t,n)=>{let i;let a;return async(c,A)=>{a=c;if(!i){const{logger:c=t?.parentClientConfig?.logger,profile:A=t?.parentClientConfig?.profile,region:l,requestHandler:d=t?.parentClientConfig?.requestHandler,credentialProviderLogger:h,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t;const g=await resolveRegion(l,t?.parentClientConfig?.region,h,{logger:c,profile:A});const p=!isH2(d);i=new n({...t,userAgentAppId:f,profile:A,credentialDefaultProvider:()=>async()=>a,region:g,requestHandler:p?d:undefined,logger:c})}const{Credentials:l,AssumedRoleUser:d}=await i.send(new AssumeRoleCommand(A));if(!l||!l.AccessKeyId||!l.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${A.RoleArn}`)}const h=getAccountIdFromAssumedRoleUser(d);const f={accessKeyId:l.AccessKeyId,secretAccessKey:l.SecretAccessKey,sessionToken:l.SessionToken,expiration:l.Expiration,...l.CredentialScope&&{credentialScope:l.CredentialScope},...h&&{accountId:h}};y(f,"CREDENTIALS_STS_ASSUME_ROLE","i");return f}};const getDefaultRoleAssumerWithWebIdentity$1=(t,n)=>{let i;return async a=>{if(!i){const{logger:a=t?.parentClientConfig?.logger,profile:c=t?.parentClientConfig?.profile,region:A,requestHandler:l=t?.parentClientConfig?.requestHandler,credentialProviderLogger:d,userAgentAppId:h=t?.parentClientConfig?.userAgentAppId}=t;const f=await resolveRegion(A,t?.parentClientConfig?.region,d,{logger:a,profile:c});const g=!isH2(l);i=new n({...t,userAgentAppId:h,profile:c,region:f,requestHandler:g?l:undefined,logger:a})}const{Credentials:c,AssumedRoleUser:A}=await i.send(new AssumeRoleWithWebIdentityCommand(a));if(!c||!c.AccessKeyId||!c.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${a.RoleArn}`)}const l=getAccountIdFromAssumedRoleUser(A);const d={accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration,...c.CredentialScope&&{credentialScope:c.CredentialScope},...l&&{accountId:l}};if(l){y(d,"RESOLVED_ACCOUNT_ID","T")}y(d,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return d}};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(t,n)=>{if(!n)return t;else return class CustomizableSTSClient extends t{constructor(t){super(t);for(const t of n){this.middlewareStack.use(t)}}}};const getDefaultRoleAssumer=(t={},n)=>getDefaultRoleAssumer$1(t,getCustomizableStsClientCtor(STSClient,n));const getDefaultRoleAssumerWithWebIdentity=(t={},n)=>getDefaultRoleAssumerWithWebIdentity$1(t,getCustomizableStsClientCtor(STSClient,n));const decorateDefaultCredentialProvider=t=>n=>t({roleAssumer:getDefaultRoleAssumer(n),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(n),...n});a=as;n.QL=AssumeRoleCommand;a=Tn;a=Nn;a=cs;a=AssumeRoleWithSAMLCommand;a=Mn;a=Fn;a=As;a=AssumeRoleWithWebIdentityCommand;a=xn;a=Un;a=ls;a=AssumeRootCommand;a=Pn;a=Ln;a=Dn;a=_n;a=us;a=DecodeAuthorizationMessageCommand;a=On;a=Hn;a=ExpiredTokenException;a=un;a=ExpiredTradeInTokenException;a=dn;a=$n;a=ds;a=GetAccessKeyInfoCommand;a=Vn;a=Gn;a=hs;a=GetCallerIdentityCommand;a=Yn;a=Jn;a=fs;a=GetDelegatedAccessTokenCommand;a=Wn;a=qn;a=gs;a=GetFederationTokenCommand;a=jn;a=zn;a=ps;a=GetSessionTokenCommand;a=Kn;a=Zn;a=ms;a=GetWebIdentityTokenCommand;a=Xn;a=es;a=IDPCommunicationErrorException;a=hn;a=IDPRejectedClaimException;a=gn;a=InvalidAuthorizationMessageException;a=pn;a=InvalidIdentityTokenException;a=mn;a=JWTPayloadSizeExceededException;a=En;a=MalformedPolicyDocumentException;a=Cn;a=OutboundWebIdentityFederationDisabledException;a=In;a=PackedPolicyTooLargeException;a=yn;a=ts;a=rs;a=RegionDisabledException;a=Bn;a=STS;n.iM=STSClient;a=STSServiceException;a=An;a=SessionDurationEscalationException;a=Qn;a=ns;a=decorateDefaultCredentialProvider;a=wn;a=getDefaultRoleAssumer;a=getDefaultRoleAssumerWithWebIdentity},4316:(t,n,i)=>{var a;const{awsEndpointFunctions:c,emitWarningIfUnsupportedVersion:A,createDefaultUserAgentProvider:l,NODE_APP_ID_CONFIG_OPTIONS:d,getAwsRegionExtensionConfiguration:h,resolveAwsRegionExtensionConfiguration:f,resolveUserAgentConfig:g,resolveHostHeaderConfig:p,getUserAgentPlugin:m,getHostHeaderPlugin:E,getLoggerPlugin:C,getRecursionDetectionPlugin:I}=i(5152);const{getEndpointDiscoveryPlugin:y,NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS:B,resolveEndpointDiscoveryConfig:Q}=i(3688);const{getHttpAuthSchemeEndpointRuleSetPlugin:w,DefaultIdentityProviderConfig:S,getHttpSigningPlugin:b,createPaginator:R}=i(402);const{normalizeProvider:v,getSmithyContext:k,makeBuilder:D,ServiceException:T,NoOpLogger:N,emitWarningIfUnsupportedVersion:M,loadConfigsForDefaultMode:F,getDefaultExtensionConfiguration:x,resolveDefaultRuntimeConfig:U,Client:P,createAggregatedClient:L}=i(2658);const{Command:O}=i(2658);a=O;a=P;const{resolveDefaultsModeConfig:H,loadConfig:$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:V,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:G,NODE_REGION_CONFIG_OPTIONS:Y,NODE_REGION_CONFIG_FILE_OPTIONS:J,resolveRegionConfig:W}=i(7291);const{getEndpointPlugin:q,BinaryDecisionDiagram:j,EndpointCache:z,decideEndpoint:K,customEndpointFunctions:Z,resolveEndpointConfig:X}=i(2085);const{parseUrl:ee,getHttpHandlerExtensionConfiguration:te,resolveHttpHandlerRuntimeConfig:re,getContentLengthPlugin:ne}=i(3422);const{DEFAULT_RETRY_MODE:se,NODE_RETRY_MODE_CONFIG_OPTIONS:oe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ie,resolveRetryConfig:ae,getRetryPlugin:ce}=i(3609);const{TypeRegistry:Ae,getSchemaSerdePlugin:le}=i(6890);const{resolveAwsSdkSigV4Config:ue,AwsSdkSigV4Signer:de,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:he}=i(7523);const{defaultProvider:fe}=i(5861);const{toUtf8:ge,fromUtf8:pe,toBase64:me,fromBase64:Ee,calculateBodyLength:Ce}=i(2430);const{streamCollector:Ie,NodeHttpHandler:ye}=i(1279);const{AwsJson1_0Protocol:Be}=i(7288);const{Sha256:Qe}=i(9542);const defaultTimestreamWriteHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:k(n).operation,region:await v(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"timestream",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const defaultTimestreamWriteHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ue(t);return Object.assign(n,{authSchemePreference:v(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"timestream"});const we={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const Se=D(we,"Timestream_20181101","TimestreamWriteClient",q);const be={};const _mw0=(t,n,i,a)=>[y(i,{clientStack:n,options:a,isDiscoveredEndpointRequired:true})];const _mw1=(t,n,i,a)=>[];class TimestreamWriteServiceException extends T{constructor(t){super(t);Object.setPrototypeOf(this,TimestreamWriteServiceException.prototype)}}class AccessDeniedException extends TimestreamWriteServiceException{name="AccessDeniedException";$fault="client";Message;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.Message=t.Message}}class ConflictException extends TimestreamWriteServiceException{name="ConflictException";$fault="client";Message;constructor(t){super({name:"ConflictException",$fault:"client",...t});Object.setPrototypeOf(this,ConflictException.prototype);this.Message=t.Message}}class InternalServerException extends TimestreamWriteServiceException{name="InternalServerException";$fault="server";Message;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.Message=t.Message}}class InvalidEndpointException extends TimestreamWriteServiceException{name="InvalidEndpointException";$fault="client";Message;constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidEndpointException.prototype);this.Message=t.Message}}class ResourceNotFoundException extends TimestreamWriteServiceException{name="ResourceNotFoundException";$fault="client";Message;constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ResourceNotFoundException.prototype);this.Message=t.Message}}class ServiceQuotaExceededException extends TimestreamWriteServiceException{name="ServiceQuotaExceededException";$fault="client";Message;constructor(t){super({name:"ServiceQuotaExceededException",$fault:"client",...t});Object.setPrototypeOf(this,ServiceQuotaExceededException.prototype);this.Message=t.Message}}class ThrottlingException extends TimestreamWriteServiceException{name="ThrottlingException";$fault="client";Message;constructor(t){super({name:"ThrottlingException",$fault:"client",...t});Object.setPrototypeOf(this,ThrottlingException.prototype);this.Message=t.Message}}class ValidationException extends TimestreamWriteServiceException{name="ValidationException";$fault="client";Message;constructor(t){super({name:"ValidationException",$fault:"client",...t});Object.setPrototypeOf(this,ValidationException.prototype);this.Message=t.Message}}class RejectedRecordsException extends TimestreamWriteServiceException{name="RejectedRecordsException";$fault="client";Message;RejectedRecords;constructor(t){super({name:"RejectedRecordsException",$fault:"client",...t});Object.setPrototypeOf(this,RejectedRecordsException.prototype);this.Message=t.Message;this.RejectedRecords=t.RejectedRecords}}const Re="Arn";const ve="AccessDeniedException";const ke="Address";const De="BatchLoadProgressReport";const Te="BatchLoadTask";const Ne="BatchLoadTaskDescription";const Me="BatchLoadTaskList";const Fe="BatchLoadTasks";const xe="BytesMetered";const Ue="BucketName";const Pe="CommonAttributes";const Le="CreateBatchLoadTask";const _e="CreateBatchLoadTaskRequest";const Oe="CreateBatchLoadTaskResponse";const He="CsvConfiguration";const $e="CreateDatabase";const Ve="CreateDatabaseRequest";const Ge="CreateDatabaseResponse";const Ye="ConflictException";const Je="CachePeriodInMinutes";const We="CompositePartitionKey";const qe="ClientRequestToken";const je="ColumnSeparator";const ze="CreationTime";const Ke="CreateTableRequest";const Ze="CreateTableResponse";const Xe="ClientToken";const et="CreateTable";const tt="Database";const rt="DescribeBatchLoadTask";const nt="DescribeBatchLoadTaskRequest";const st="DescribeBatchLoadTaskResponse";const ot="DestinationColumn";const it="DeleteDatabase";const at="DeleteDatabaseRequest";const ct="DescribeDatabaseRequest";const At="DescribeDatabaseResponse";const lt="DescribeDatabase";const ut="DescribeEndpoints";const dt="DescribeEndpointsRequest";const ht="DescribeEndpointsResponse";const ft="DataFormat";const gt="DatabaseList";const pt="DataModel";const mt="DataModelConfiguration";const Et="DataModelS3Configuration";const Ct="DimensionMappings";const It="DimensionMapping";const yt="DatabaseName";const Bt="DataSourceConfiguration";const Qt="DataSourceS3Configuration";const wt="DeleteTable";const St="DeleteTableRequest";const bt="DescribeTableRequest";const Rt="DescribeTableResponse";const vt="DescribeTable";const kt="DimensionValueType";const Dt="Databases";const Tt="Dimension";const Nt="Dimensions";const Mt="Endpoints";const Ft="EscapeChar";const xt="EnforcementInRecord";const Ut="ErrorMessage";const Pt="EnableMagneticStoreWrites";const Lt="EncryptionOption";const _t="ExistingVersion";const Ot="Endpoint";const Ht="FileFailures";const $t="InvalidEndpointException";const Vt="InternalServerException";const Gt="Key";const Yt="KmsKeyId";const Jt="ListBatchLoadTasks";const Wt="ListBatchLoadTasksRequest";const qt="ListBatchLoadTasksResponse";const jt="ListDatabases";const zt="ListDatabasesRequest";const Kt="ListDatabasesResponse";const Zt="ListTables";const Xt="ListTagsForResource";const er="ListTagsForResourceRequest";const tr="ListTagsForResourceResponse";const rr="ListTablesRequest";const nr="ListTablesResponse";const sr="LastUpdatedTime";const ir="Message";const ar="MultiMeasureAttributeMappings";const cr="MultiMeasureAttributeMappingList";const Ar="MultiMeasureAttributeMapping";const lr="MultiMeasureMappings";const ur="MixedMeasureMappingList";const dr="MixedMeasureMappings";const hr="MixedMeasureMapping";const fr="MeasureName";const gr="MeasureNameColumn";const pr="MaxResults";const mr="MemoryStore";const Er="MagneticStoreRejectedDataLocation";const Cr="MagneticStoreRetentionPeriodInDays";const Ir="MemoryStoreRetentionPeriodInHours";const yr="MagneticStoreWriteProperties";const Br="MagneticStore";const Qr="MeasureValue";const wr="MeasureValueType";const Sr="MeasureValues";const br="Name";const Rr="NextToken";const vr="NullValue";const kr="ObjectKey";const Dr="ObjectKeyPrefix";const Tr="ParseFailures";const Nr="PartitionKey";const Mr="PartitionKeyList";const Fr="ProgressReport";const xr="QuoteChar";const Ur="Record";const Pr="ResourceARN";const Lr="ResumeBatchLoadTask";const _r="ResumeBatchLoadTaskRequest";const Or="ResumeBatchLoadTaskResponse";const Hr="ReportConfiguration";const $r="RecordsIngested";const Vr="RecordIngestionFailures";const Gr="RecordIndex";const Yr="ResourceNotFoundException";const Jr="RecordsProcessed";const Wr="RetentionProperties";const qr="RejectedRecords";const jr="RejectedRecordsException";const zr="RejectedRecord";const Kr="ReportS3Configuration";const Zr="ResumableUntil";const Xr="RecordVersion";const en="Reason";const tn="Records";const rn="Schema";const nn="SourceColumn";const sn="S3Configuration";const on="ServiceQuotaExceededException";const an="Tags";const cn="TableCount";const An="TimeColumn";const ln="TargetDatabaseName";const un="ThrottlingException";const dn="TaskId";const hn="TagKeys";const gn="TableList";const pn="TagList";const mn="TargetMultiMeasureAttributeName";const En="TargetMultiMeasureName";const Cn="TargetMeasureName";const In="TableName";const yn="TagResource";const Bn="TagResourceRequest";const Qn="TagResourceResponse";const wn="TaskStatus";const Sn="TableStatus";const bn="TargetTableName";const Rn="TimeUnit";const vn="TrimWhiteSpace";const kn="Table";const Dn="Tables";const Tn="Tag";const Nn="Time";const Mn="Total";const Fn="Type";const xn="UpdateDatabase";const Un="UpdateDatabaseRequest";const Pn="UpdateDatabaseResponse";const Ln="UntagResource";const _n="UntagResourceRequest";const On="UntagResourceResponse";const Hn="UpdateTable";const $n="UpdateTableRequest";const Vn="UpdateTableResponse";const Gn="Value";const Yn="ValidationException";const Jn="Version";const Wn="WriteRecords";const qn="WriteRecordsRequest";const jn="WriteRecordsResponse";const zn="client";const Kn="error";const Zn="httpError";const Xn="smithy.ts.sdk.synthetic.com.amazonaws.timestreamwrite";const es="server";const ts="com.amazonaws.timestreamwrite";const rs=Ae.for(Xn);var ns=[-3,Xn,"TimestreamWriteServiceException",0,[],[]];rs.registerError(ns,TimestreamWriteServiceException);const ss=Ae.for(ts);var os=[-3,ts,ve,{[Kn]:zn,[Zn]:403},[ir],[0],1];ss.registerError(os,AccessDeniedException);var is=[-3,ts,Ye,{[Kn]:zn,[Zn]:409},[ir],[0],1];ss.registerError(is,ConflictException);var as=[-3,ts,Vt,{[Kn]:es,[Zn]:500},[ir],[0],1];ss.registerError(as,InternalServerException);var cs=[-3,ts,$t,{[Kn]:zn,[Zn]:421},[ir],[0]];ss.registerError(cs,InvalidEndpointException);var As=[-3,ts,jr,{[Kn]:zn,[Zn]:419},[ir,qr],[0,()=>Oo]];ss.registerError(As,RejectedRecordsException);var ls=[-3,ts,Yr,{[Kn]:zn,[Zn]:404},[ir],[0]];ss.registerError(ls,ResourceNotFoundException);var us=[-3,ts,on,{[Kn]:zn,[Zn]:402},[ir],[0]];ss.registerError(us,ServiceQuotaExceededException);var ds=[-3,ts,un,{[Kn]:zn,[Zn]:429},[ir],[0],1];ss.registerError(ds,ThrottlingException);var hs=[-3,ts,Yn,{[Kn]:zn,[Zn]:400},[ir],[0],1];ss.registerError(hs,ValidationException);const fs=[rs,ss];var gs=[0,ts,qe,8,0];var ps=[3,ts,De,0,[Jr,$r,Tr,Vr,Ht,xe],[1,1,1,1,1,1]];var ms=[3,ts,Te,0,[dn,wn,yt,In,ze,sr,Zr],[0,0,0,0,4,4,4]];var Es=[3,ts,Ne,0,[dn,Ut,Bt,Fr,Hr,mt,ln,bn,wn,Xr,ze,sr,Zr],[0,0,()=>Ds,()=>ps,()=>Ao,()=>vs,0,0,0,1,4,4,4]];var Cs=[3,ts,_e,0,[Bt,Hr,ln,bn,Xe,mt,Xr],[()=>Ds,()=>Ao,0,0,[()=>gs,4],()=>vs,1],4];var Is=[3,ts,Oe,0,[dn],[0],1];var ys=[3,ts,Ve,0,[yt,Yt,an],[0,0,()=>$o],1];var Bs=[3,ts,Ge,0,[tt],[()=>bs]];var Qs=[3,ts,Ke,0,[yt,In,Wr,an,yr,rn],[0,0,()=>fo,()=>$o,()=>eo,()=>po],2];var ws=[3,ts,Ze,0,[kn],[()=>mo]];var Ss=[3,ts,He,0,[je,Ft,xr,vr,vn],[0,0,0,0,2]];var bs=[3,ts,tt,0,[Re,yt,cn,Yt,ze,sr],[0,0,1,0,4,4]];var Rs=[3,ts,pt,0,[Ct,An,Rn,lr,dr,gr],[()=>No,0,0,()=>so,()=>Uo,0],1];var vs=[3,ts,mt,0,[pt,Et],[()=>Rs,()=>ks]];var ks=[3,ts,Et,0,[Ue,kr],[0,0]];var Ds=[3,ts,Bt,0,[Qt,ft,He],[()=>Ts,0,()=>Ss],2];var Ts=[3,ts,Qt,0,[Ue,Dr],[0,0],1];var Ns=[3,ts,at,0,[yt],[0],1];var Ms=[3,ts,St,0,[yt,In],[0,0],2];var Fs=[3,ts,nt,0,[dn],[0],1];var xs=[3,ts,st,0,[Ne],[()=>Es],1];var Us=[3,ts,ct,0,[yt],[0],1];var Ps=[3,ts,At,0,[tt],[()=>bs]];var Ls=[3,ts,dt,0,[],[]];var _s=[3,ts,ht,0,[Mt],[()=>Fo],1];var Os=[3,ts,bt,0,[yt,In],[0,0],2];var Hs=[3,ts,Rt,0,[kn],[()=>mo]];var $s=[3,ts,Tt,0,[br,Gn,kt],[0,0,0],2];var Vs=[3,ts,It,0,[nn,ot],[0,0]];var Gs=[3,ts,Ot,0,[ke,Je],[0,1],2];var Ys=[3,ts,Wt,0,[Rr,pr,wn],[0,1,0]];var Js=[3,ts,qt,0,[Rr,Fe],[0,()=>Do]];var Ws=[3,ts,zt,0,[Rr,pr],[0,1]];var qs=[3,ts,Kt,0,[Dt,Rr],[()=>To,0]];var js=[3,ts,rr,0,[yt,Rr,pr],[0,0,1]];var zs=[3,ts,nr,0,[Dn,Rr],[()=>Ho,0]];var Ks=[3,ts,er,0,[Pr],[0],1];var Zs=[3,ts,tr,0,[an],[()=>$o]];var Xs=[3,ts,Er,0,[sn],[()=>go]];var eo=[3,ts,yr,0,[Pt,Er],[2,()=>Xs],1];var to=[3,ts,Qr,0,[br,Gn,Fn],[0,0,0],3];var ro=[3,ts,hr,0,[wr,fr,nn,Cn,ar],[0,0,0,0,()=>Po],1];var no=[3,ts,Ar,0,[nn,mn,wr],[0,0,0],1];var so=[3,ts,lr,0,[ar,En],[()=>Po,0],1];var oo=[3,ts,Nr,0,[Fn,br,xt],[0,0,0],1];var io=[3,ts,Ur,0,[Nt,fr,Qr,wr,Nn,Rn,Jn,Sr],[()=>Mo,0,0,0,0,0,1,()=>xo]];var ao=[3,ts,$r,0,[Mn,mr,Br],[1,1,1]];var co=[3,ts,zr,0,[Gr,en,_t],[1,0,1]];var Ao=[3,ts,Hr,0,[Kr],[()=>lo]];var lo=[3,ts,Kr,0,[Ue,Dr,Lt,Yt],[0,0,0,0],1];var uo=[3,ts,_r,0,[dn],[0],1];var ho=[3,ts,Or,0,[],[]];var fo=[3,ts,Wr,0,[Ir,Cr],[1,1],2];var go=[3,ts,sn,0,[Ue,Dr,Lt,Yt],[0,0,0,0]];var po=[3,ts,rn,0,[We],[()=>Lo]];var mo=[3,ts,kn,0,[Re,In,yt,Sn,Wr,ze,sr,yr,rn],[0,0,0,0,()=>fo,4,4,()=>eo,()=>po]];var Eo=[3,ts,Tn,0,[Gt,Gn],[0,0],2];var Co=[3,ts,Bn,0,[Pr,an],[0,()=>$o],2];var Io=[3,ts,Qn,0,[],[]];var yo=[3,ts,_n,0,[Pr,hn],[0,64|0],2];var Bo=[3,ts,On,0,[],[]];var Qo=[3,ts,Un,0,[yt,Yt],[0,0],2];var wo=[3,ts,Pn,0,[tt],[()=>bs]];var So=[3,ts,$n,0,[yt,In,Wr,yr,rn],[0,0,()=>fo,()=>eo,()=>po],2];var bo=[3,ts,Vn,0,[kn],[()=>mo]];var Ro=[3,ts,qn,0,[yt,In,tn,Pe],[0,0,()=>_o,()=>io],3];var vo=[3,ts,jn,0,[$r],[()=>ao]];var ko="unit";var Do=[1,ts,Me,0,()=>ms];var To=[1,ts,gt,0,()=>bs];var No=[1,ts,Ct,0,()=>Vs];var Mo=[1,ts,Nt,0,()=>$s];var Fo=[1,ts,Mt,0,()=>Gs];var xo=[1,ts,Sr,0,()=>to];var Uo=[1,ts,ur,0,()=>ro];var Po=[1,ts,cr,0,()=>no];var Lo=[1,ts,Mr,0,()=>oo];var _o=[1,ts,tn,0,()=>io];var Oo=[1,ts,qr,0,()=>co];var Ho=[1,ts,gn,0,()=>mo];var $o=[1,ts,pn,0,()=>Eo];var Vo=[9,ts,Le,0,()=>Cs,()=>Is];var Go=[9,ts,$e,0,()=>ys,()=>Bs];var Yo=[9,ts,et,0,()=>Qs,()=>ws];var Jo=[9,ts,it,0,()=>Ns,()=>ko];var Wo=[9,ts,wt,0,()=>Ms,()=>ko];var qo=[9,ts,rt,0,()=>Fs,()=>xs];var jo=[9,ts,lt,0,()=>Us,()=>Ps];var zo=[9,ts,ut,0,()=>Ls,()=>_s];var Ko=[9,ts,vt,0,()=>Os,()=>Hs];var Zo=[9,ts,Jt,0,()=>Ys,()=>Js];var Xo=[9,ts,jt,0,()=>Ws,()=>qs];var ei=[9,ts,Zt,0,()=>js,()=>zs];var ti=[9,ts,Xt,0,()=>Ks,()=>Zs];var ri=[9,ts,Lr,0,()=>uo,()=>ho];var ni=[9,ts,yn,0,()=>Co,()=>Io];var si=[9,ts,Ln,0,()=>yo,()=>Bo];var oi=[9,ts,xn,0,()=>Qo,()=>wo];var ii=[9,ts,Hn,0,()=>So,()=>bo];var ai=[9,ts,Wn,0,()=>Ro,()=>vo];class DescribeEndpointsCommand extends(Se(be,_mw1,"DescribeEndpoints",zo)){}var ci="3.1097.0";var Ai={version:ci};const li="ref";const ui=-1,di=true,hi="isSet",fi="PartitionResult",gi="booleanEquals",pi="getAttr",mi="stringEquals",Ei={[li]:"Endpoint"},Ci={[li]:fi},Ii={fn:pi,argv:[Ci,"name"]},yi={},Bi=[{[li]:"Region"}];const Qi={conditions:[[hi,[Ei]],[hi,Bi],["aws.partition",Bi,fi],[gi,[{[li]:"UseFIPS"},di]],[gi,[{[li]:"UseDualStack"},di]],[gi,[{fn:pi,argv:[Ci,"supportsFIPS"]},di]],[gi,[{fn:pi,argv:[Ci,"supportsDualStack"]},di]],[mi,[Ii,"aws"]],[mi,[Ii,"aws-us-gov"]]],results:[[ui],[ui,"Invalid Configuration: FIPS and custom endpoint are not supported"],[ui,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ei,yi],["https://timestream-ingest-fips.{Region}.api.aws",yi],["https://timestream-ingest.{Region}.api.aws",yi],["https://ingest.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",yi],[ui,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://ingest.timestream.{Region}.amazonaws.com",yi],["https://ingest.timestream-fips.{Region}.{PartitionResult#dnsSuffix}",yi],[ui,"FIPS is enabled but this partition does not support FIPS"],["https://ingest.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}",yi],[ui,"DualStack is enabled but this partition does not support DualStack"],["https://ingest.timestream.{Region}.{PartitionResult#dnsSuffix}",yi],[ui,"Invalid Configuration: Missing Region"]]};const wi=2;const Si=1e8;const bi=new Int32Array([-1,1,-1,0,17,3,1,4,Si+14,2,5,Si+14,3,10,6,4,7,Si+13,6,8,Si+12,7,Si+5,9,8,Si+5,Si+11,4,13,11,5,12,Si+10,8,Si+8,Si+9,5,14,Si+7,6,15,Si+7,7,Si+4,16,8,Si+5,Si+6,3,Si+1,18,4,Si+2,Si+3]);const Ri=j.from(bi,wi,Qi.conditions,Qi.results);const vi=new z({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>vi.get(t,()=>K(Ri,{endpointParams:t,logger:n.logger}));Z.aws=c;const getRuntimeConfig$1=t=>({apiVersion:"2018-11-01",base64Decoder:t?.base64Decoder??Ee,base64Encoder:t?.base64Encoder??me,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultTimestreamWriteHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new de}],logger:t?.logger??new N,protocol:t?.protocol??Be,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.timestreamwrite",errorTypeRegistries:fs,version:"2018-11-01",serviceTarget:"Timestream_20181101"},serviceId:t?.serviceId??"Timestream Write",sha256:t?.sha256??Qe,urlParser:t?.urlParser??ee,utf8Decoder:t?.utf8Decoder??pe,utf8Encoder:t?.utf8Encoder??ge});const getRuntimeConfig=t=>{M(process.version);const n=H(t);const defaultConfigProvider=()=>n().then(F);const i=getRuntimeConfig$1(t);A(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??$(he,a),bodyLengthChecker:t?.bodyLengthChecker??Ce,credentialDefaultProvider:t?.credentialDefaultProvider??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??l({serviceId:i.serviceId,clientVersion:Ai.version}),endpointDiscoveryEnabledProvider:t?.endpointDiscoveryEnabledProvider??$(B,a),maxAttempts:t?.maxAttempts??$(ie,t),region:t?.region??$(Y,{...J,...a}),requestHandler:ye.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??$({...oe,default:async()=>(await defaultConfigProvider()).retryMode||se},t),streamCollector:t?.streamCollector??Ie,useDualstackEndpoint:t?.useDualstackEndpoint??$(G,a),useFipsEndpoint:t?.useFipsEndpoint??$(V,a),userAgentAppId:t?.userAgentAppId??$(d,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(h(t),x(t),te(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,f(i),U(i),re(i),resolveHttpAuthRuntimeConfig(i))};class TimestreamWriteClient extends P{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=g(i);const c=ae(a);const A=W(c);const l=p(A);const d=X(l);const h=resolveHttpAuthSchemeConfig(d);const f=Q(h,{endpointDiscoveryCommandCtor:DescribeEndpointsCommand});const y=resolveRuntimeExtensions(f,t?.extensions||[]);this.config=y;this.middlewareStack.use(le(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(ce(this.config));this.middlewareStack.use(ne(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(I(this.config));this.middlewareStack.use(w(this.config,{httpAuthSchemeParametersProvider:defaultTimestreamWriteHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new S({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(b(this.config))}destroy(){super.destroy()}}class CreateBatchLoadTaskCommand extends(Se(be,_mw0,"CreateBatchLoadTask",Vo)){}class CreateDatabaseCommand extends(Se(be,_mw0,"CreateDatabase",Go)){}class CreateTableCommand extends(Se(be,_mw0,"CreateTable",Yo)){}class DeleteDatabaseCommand extends(Se(be,_mw0,"DeleteDatabase",Jo)){}class DeleteTableCommand extends(Se(be,_mw0,"DeleteTable",Wo)){}class DescribeBatchLoadTaskCommand extends(Se(be,_mw0,"DescribeBatchLoadTask",qo)){}class DescribeDatabaseCommand extends(Se(be,_mw0,"DescribeDatabase",jo)){}class DescribeTableCommand extends(Se(be,_mw0,"DescribeTable",Ko)){}class ListBatchLoadTasksCommand extends(Se(be,_mw0,"ListBatchLoadTasks",Zo)){}class ListDatabasesCommand extends(Se(be,_mw0,"ListDatabases",Xo)){}class ListTablesCommand extends(Se(be,_mw0,"ListTables",ei)){}class ListTagsForResourceCommand extends(Se(be,_mw0,"ListTagsForResource",ti)){}class ResumeBatchLoadTaskCommand extends(Se(be,_mw0,"ResumeBatchLoadTask",ri)){}class TagResourceCommand extends(Se(be,_mw0,"TagResource",ni)){}class UntagResourceCommand extends(Se(be,_mw0,"UntagResource",si)){}class UpdateDatabaseCommand extends(Se(be,_mw0,"UpdateDatabase",oi)){}class UpdateTableCommand extends(Se(be,_mw0,"UpdateTable",ii)){}class WriteRecordsCommand extends(Se(be,_mw0,"WriteRecords",ai)){}const ki=R(TimestreamWriteClient,ListBatchLoadTasksCommand,"NextToken","NextToken","MaxResults");const Di=R(TimestreamWriteClient,ListDatabasesCommand,"NextToken","NextToken","MaxResults");const Ti=R(TimestreamWriteClient,ListTablesCommand,"NextToken","NextToken","MaxResults");const Ni={CreateBatchLoadTaskCommand:CreateBatchLoadTaskCommand,CreateDatabaseCommand:CreateDatabaseCommand,CreateTableCommand:CreateTableCommand,DeleteDatabaseCommand:DeleteDatabaseCommand,DeleteTableCommand:DeleteTableCommand,DescribeBatchLoadTaskCommand:DescribeBatchLoadTaskCommand,DescribeDatabaseCommand:DescribeDatabaseCommand,DescribeEndpointsCommand:DescribeEndpointsCommand,DescribeTableCommand:DescribeTableCommand,ListBatchLoadTasksCommand:ListBatchLoadTasksCommand,ListDatabasesCommand:ListDatabasesCommand,ListTablesCommand:ListTablesCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,ResumeBatchLoadTaskCommand:ResumeBatchLoadTaskCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateDatabaseCommand:UpdateDatabaseCommand,UpdateTableCommand:UpdateTableCommand,WriteRecordsCommand:WriteRecordsCommand};const Mi={paginateListBatchLoadTasks:ki,paginateListDatabases:Di,paginateListTables:Ti};class TimestreamWrite extends TimestreamWriteClient{}L(Ni,TimestreamWrite,{paginators:Mi});const Fi={CSV:"CSV"};const xi={CREATED:"CREATED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PENDING_RESUME:"PENDING_RESUME",PROGRESS_STOPPED:"PROGRESS_STOPPED",SUCCEEDED:"SUCCEEDED"};const Ui={BIGINT:"BIGINT",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",MULTI:"MULTI",TIMESTAMP:"TIMESTAMP",VARCHAR:"VARCHAR"};const Pi={BIGINT:"BIGINT",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",TIMESTAMP:"TIMESTAMP",VARCHAR:"VARCHAR"};const Li={MICROSECONDS:"MICROSECONDS",MILLISECONDS:"MILLISECONDS",NANOSECONDS:"NANOSECONDS",SECONDS:"SECONDS"};const _i={SSE_KMS:"SSE_KMS",SSE_S3:"SSE_S3"};const Oi={OPTIONAL:"OPTIONAL",REQUIRED:"REQUIRED"};const Hi={DIMENSION:"DIMENSION",MEASURE:"MEASURE"};const $i={ACTIVE:"ACTIVE",DELETING:"DELETING",RESTORING:"RESTORING"};const Vi={VARCHAR:"VARCHAR"};a=AccessDeniedException;a=os;a=Fi;a=ps;a=xi;a=ms;a=Es;a=ConflictException;a=is;a=Vo;a=CreateBatchLoadTaskCommand;a=Cs;a=Is;a=Go;a=CreateDatabaseCommand;a=ys;a=Bs;a=Yo;a=CreateTableCommand;a=Qs;a=ws;a=Ss;a=Rs;a=vs;a=ks;a=Ds;a=Ts;a=bs;a=Jo;a=DeleteDatabaseCommand;a=Ns;a=Wo;a=DeleteTableCommand;a=Ms;a=qo;a=DescribeBatchLoadTaskCommand;a=Fs;a=xs;a=jo;a=DescribeDatabaseCommand;a=Us;a=Ps;a=zo;a=DescribeEndpointsCommand;a=Ls;a=_s;a=Ko;a=DescribeTableCommand;a=Os;a=Hs;a=$s;a=Vs;a=Vi;a=Gs;a=InternalServerException;a=as;a=InvalidEndpointException;a=cs;a=Zo;a=ListBatchLoadTasksCommand;a=Ys;a=Js;a=Xo;a=ListDatabasesCommand;a=Ws;a=qs;a=ei;a=ListTablesCommand;a=js;a=zs;a=ti;a=ListTagsForResourceCommand;a=Ks;a=Zs;a=Xs;a=eo;a=to;n.Q3=Ui;a=ro;a=no;a=so;a=oo;a=Oi;a=Hi;a=ao;a=co;a=RejectedRecordsException;a=As;a=Ao;a=lo;a=ResourceNotFoundException;a=ls;a=ri;a=ResumeBatchLoadTaskCommand;a=uo;a=ho;a=fo;a=go;a=_i;a=Pi;a=po;a=ServiceQuotaExceededException;a=us;a=mo;a=$i;a=Eo;a=ni;a=TagResourceCommand;a=Co;a=Io;a=ThrottlingException;a=ds;n.yr=Li;a=TimestreamWrite;n.Go=TimestreamWriteClient;a=TimestreamWriteServiceException;a=ns;a=si;a=UntagResourceCommand;a=yo;a=Bo;a=oi;a=UpdateDatabaseCommand;a=Qo;a=wo;a=ii;a=UpdateTableCommand;a=So;a=bo;a=ValidationException;a=hs;a=ai;n.Nj=WriteRecordsCommand;a=Ro;a=vo;a=io;a=fs;a=ki;a=Di;a=Ti},5152:(t,n,i)=>{const{Retry:a,RETRY_MODES:c}=i(3609);const{HttpRequest:A,parseUrl:l}=i(3422);const{InvokeStore:d}=i(9320);const{normalizeProvider:h}=i(402);const{platform:f,release:g}=i(8161);const{versions:p,env:m}=i(1708);const{isValidHostLabel:E,isIpAddress:C,customEndpointFunctions:I}=i(2085);const{EndpointError:y,resolveEndpoint:B}=i(2085);n.EndpointError=y;n.isIpAddress=C;n.resolveEndpoint=B;const{loadConfig:Q,NODE_REGION_CONFIG_OPTIONS:w,NODE_REGION_CONFIG_FILE_OPTIONS:S}=i(7291);const{REGION_ENV_NAME:b,REGION_INI_NAME:R,resolveRegionConfig:v}=i(7291);n.NODE_REGION_CONFIG_FILE_OPTIONS=S;n.NODE_REGION_CONFIG_OPTIONS=w;n.REGION_ENV_NAME=b;n.REGION_INI_NAME=R;n.resolveRegionConfig=v;const k={warningEmitted:false};const emitWarningIfUnsupportedVersion=t=>{if(t&&!k.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){k.warningEmitted=true;return}const n=parseInt(t.substring(1,t.indexOf(".")));const i=22;if(n=${i}. You are running node ${t}.\n\nTo continue receiving updates to AWS services, bug fixes,\nand security updates please upgrade to node >=${i}.\n\nMore information can be found at: https://a.co/c895JFp`)}}};const longPollMiddleware=()=>(t,n)=>async i=>{n.__retryLongPoll=true;return t(i)};const D={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:true};const getLongPollPlugin=t=>({applyToStack:t=>{t.add(longPollMiddleware(),D)}});function setCredentialFeature(t,n,i){if(!t.$source){t.$source={}}t.$source[n]=i;return t}a.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function setFeature(t,n,i){if(!t.__aws_sdk_context){t.__aws_sdk_context={features:{}}}else if(!t.__aws_sdk_context.features){t.__aws_sdk_context.features={}}t.__aws_sdk_context.features[n]=i}function setTokenFeature(t,n,i){if(!t.$source){t.$source={}}t.$source[n]=i;return t}function resolveHostHeaderConfig(t){return t}const hostHeaderMiddleware=t=>n=>async i=>{if(!A.isInstance(i.request))return n(i);const{request:a}=i;const{handlerProtocol:c=""}=t.requestHandler.metadata||{};if(c.indexOf("h2")>=0&&!a.headers[":authority"]){delete a.headers["host"];a.headers[":authority"]=a.hostname+(a.port?":"+a.port:"")}else if(!a.headers["host"]){let t=a.hostname;if(a.port!=null)t+=`:${a.port}`;a.headers["host"]=t}return n(i)};const T={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=t=>({applyToStack:n=>{n.add(hostHeaderMiddleware(t),T)}});const loggerMiddleware=()=>(t,n)=>async i=>{try{const a=await t(i);const{clientName:c,commandName:A,logger:l,dynamoDbDocumentClientOptions:d={}}=n;const{overrideInputFilterSensitiveLog:h,overrideOutputFilterSensitiveLog:f}=d;const g=h??n.inputFilterSensitiveLog;const p=f??n.outputFilterSensitiveLog;const{$metadata:m,...E}=a.output;l?.info?.({clientName:c,commandName:A,input:g(i.input),output:p(E),metadata:m});return a}catch(t){const{clientName:a,commandName:c,logger:A,dynamoDbDocumentClientOptions:l={}}=n;const{overrideInputFilterSensitiveLog:d}=l;const h=d??n.inputFilterSensitiveLog;A?.error?.({clientName:a,commandName:c,input:h(i.input),error:t,metadata:t.$metadata});throw t}};const N={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=t=>({applyToStack:t=>{t.add(loggerMiddleware(),N)}});const M={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const F="AWS_LAMBDA_FUNCTION_NAME";const x="_X_AMZN_TRACE_ID";const U="X-Amzn-Trace-Id";const P="traceparent";const L="tracestate";const O="baggage";const recursionDetectionMiddleware=()=>t=>async n=>{const{request:i}=n;if(!A.isInstance(i)){return t(n)}let a;{const t=Object.keys(i.headers??{}).find(t=>t.toLowerCase()===U.toLowerCase())??U;if(!i.headers.hasOwnProperty(t)){const t=process.env[F];const n=process.env[x];a??=await d.getInstanceAsync();const c=a?.getXRayTraceId();const A=c??n;const nonEmptyString=t=>typeof t==="string"&&t.length>0;if(nonEmptyString(t)&&nonEmptyString(A)){i.headers[U]=A}}}{sanitizeTraceHeaders(i.headers);const t=i.headers[P];if(!t){const t=(a??=await d.getInstanceAsync())?.getTraceparent?.();if(t){i.headers[P]=t;const n=a?.getTracestate?.();if(n){i.headers[L]=n}const c=a?.getBaggage?.();if(c){i.headers[O]=c}}}}return t(n)};function sanitizeTraceHeaders(t){for(const n of Object.keys(t)){const i=n.toLowerCase();if(n!==i&&(i===P||i===L||i===O)){t[i]=t[n];delete t[n]}}}const getRecursionDetectionPlugin=t=>({applyToStack:t=>{t.add(recursionDetectionMiddleware(),M)}});const H=undefined;function isValidUserAgentAppId(t){if(t===undefined){return true}return typeof t==="string"&&t.length<=50}function resolveUserAgentConfig(t){const n=h(t.userAgentAppId??H);const{customUserAgent:i}=t;return Object.assign(t,{customUserAgent:typeof i==="string"?[[i]]:i,userAgentAppId:async()=>{const i=await n();if(!isValidUserAgentAppId(i)){const n=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;if(typeof i!=="string"){n?.warn("userAgentAppId must be a string or undefined.")}else if(i.length>50){n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return i}})}const $={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};let V=$;let G="";const partition=t=>{const{partitions:n}=V;for(const i of n){const{regions:n,outputs:a}=i;for(const[i,c]of Object.entries(n)){if(i===t){return{...a,...c}}}}for(const i of n){const{regionRegex:n,outputs:a}=i;if(new RegExp(n).test(t)){return{...a}}}const i=n.find(t=>t.id==="aws");if(!i){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...i.outputs}};const setPartitionInfo=(t,n="")=>{V=t;G=n};const useDefaultPartitionInfo=()=>{setPartitionInfo($,"")};const getUserAgentPrefix=()=>G;const Y=/\d{12}\.ddb/;async function checkFeatures(t,n,i){const a=i.request;if(a?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){setFeature(t,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof n.retryStrategy==="function"){const i=await n.retryStrategy();if(typeof i.mode==="string"){switch(i.mode){case c.ADAPTIVE:setFeature(t,"RETRY_MODE_ADAPTIVE","F");break;case c.STANDARD:setFeature(t,"RETRY_MODE_STANDARD","E");break}}}if(typeof n.accountIdEndpointMode==="function"){const i=t.endpointV2;if(String(i?.url?.hostname).match(Y)){setFeature(t,"ACCOUNT_ID_ENDPOINT","O")}switch(await(n.accountIdEndpointMode?.())){case"disabled":setFeature(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":setFeature(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":setFeature(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const A=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(A?.$source){const n=A;if(n.accountId){setFeature(t,"RESOLVED_ACCOUNT_ID","T")}for(const[i,a]of Object.entries(n.$source??{})){setFeature(t,i,a)}}}const J="user-agent";const W="x-amz-user-agent";const q=" ";const j="/";const z=/[^!$%&'*+\-.^_`|~\w]/g;const K=/[^!$%&'*+\-.^_`|~\w#]/g;const Z="-";const X=1024;function encodeFeatures(t){let n="";for(const i in t){const a=t[i];if(n.length+a.length+1<=X){if(n.length){n+=","+a}else{n+=a}continue}break}return n}const userAgentMiddleware=t=>(n,i)=>async a=>{const{request:c}=a;if(!A.isInstance(c)){return n(a)}const{headers:l}=c;const d=i?.userAgent?.map(escapeUserAgent)||[];const h=(await t.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(i,t,a);const f=i;h.push(`m/${encodeFeatures(Object.assign({},i.__smithy_context?.features,f.__aws_sdk_context?.features))}`);const g=t?.customUserAgent?.map(escapeUserAgent)||[];const p=await t.userAgentAppId();if(p){h.push(escapeUserAgent([`app`,`${p}`]))}const m=getUserAgentPrefix();const E=(m?[m]:[]).concat([...h,...d,...g]).join(q);const C=[...h.filter(t=>t.startsWith("aws-sdk-")),...g].join(q);if(t.runtime!=="browser"){if(C){l[W]=l[W]?`${l[J]} ${C}`:C}l[J]=E}else{l[W]=E}return n({...a,request:c})};const escapeUserAgent=t=>{const n=t[0].split(j).map(t=>t.replace(z,Z)).join(j);const i=t[1]?.replace(K,Z);const a=n.indexOf(j);const c=n.substring(0,a);let A=n.substring(a+1);if(c==="api"){A=A.toLowerCase()}return[c,A,i].filter(t=>t&&t.length>0).reduce((t,n,i)=>{switch(i){case 0:return n;case 1:return`${t}/${n}`;default:return`${t}#${n}`}},"")};const ee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=t=>({applyToStack:n=>{n.add(userAgentMiddleware(t),ee)}});const getRuntimeUserAgentPair=()=>{const t=["deno","bun","llrt"];for(const n of t){if(p[n]){return[`md/${n}`,p[n]]}}return["md/nodejs",p.node]};const te={isCrtAvailable:false};const isCrtAvailable=()=>{if(te.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:t,clientVersion:n})=>{const i=getRuntimeUserAgentPair();return async a=>{const c=[["aws-sdk-js",n],["ua","2.1"],[`os/${f()}`,g()],["lang/js"],i];const A=isCrtAvailable();if(A){c.push(A)}if(t){c.push([`api/${t}`,n])}if(m.AWS_EXECUTION_ENV){c.push([`exec-env/${m.AWS_EXECUTION_ENV}`])}const l=await(a?.userAgentAppId?.());const d=l?[...c,[`app/${l}`]]:[...c];return d}};const re=createDefaultUserAgentProvider;const ne="AWS_SDK_UA_APP_ID";const se="sdk_ua_app_id";const oe="sdk-ua-app-id";const ie={environmentVariableSelector:t=>t[ne],configFileSelector:t=>t[se]??t[oe],default:H};const createUserAgentStringParsingProvider=({serviceId:t,clientVersion:n})=>async a=>{const c=i(9449);const A=c.parse??c.default.parse??(()=>"");const l=typeof window!=="undefined"&&window?.navigator?.userAgent?A(window.navigator.userAgent):undefined;const d=[["aws-sdk-js",n],["ua","2.1"],[`os/${l?.os?.name||"other"}`,l?.os?.version],["lang/js"],["md/browser",`${l?.browser?.name??"unknown"}_${l?.browser?.version??"unknown"}`]];if(t){d.push([`api/${t}`,n])}const h=await(a?.userAgentAppId?.());if(h){d.push([`app/${h}`])}return d};const ae={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux";return undefined},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari";return undefined}};const isVirtualHostableS3Bucket=(t,n=false)=>{if(n){for(const n of t.split(".")){if(!isVirtualHostableS3Bucket(n)){return false}}return true}if(!E(t)){return false}if(t.length<3||t.length>63){return false}if(t!==t.toLowerCase()){return false}if(C(t)){return false}return true};const ce=":";const Ae="/";const parseArn=t=>{const n=t.split(ce);if(n.length<6)return null;const[i,a,c,A,l,...d]=n;if(i!=="arn"||a===""||c===""||d.join(ce)==="")return null;const h=d.map(t=>t.split(Ae)).flat();return{partition:a,service:c,region:A,accountId:l,resourceId:h}};const le={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};I.aws=le;const resolveDefaultAwsRegionalEndpointsConfig=t=>{if(typeof t.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:n}=t;if(n===undefined){t.endpoint=async()=>toEndpointV1(t.endpointProvider({Region:typeof t.region==="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint==="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint==="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:undefined},{logger:t.logger}))}return t};const toEndpointV1=t=>l(t.url);function stsRegionDefaultResolver(t={}){return Q({...w,async default(){if(!ue.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...S,...t})}const ue={silence:false};const getAwsRegionExtensionConfiguration=t=>({setRegion(n){t.region=n},region(){return t.region}});const resolveAwsRegionExtensionConfiguration=t=>({region:t.region()});n.DEFAULT_UA_APP_ID=H;n.NODE_APP_ID_CONFIG_OPTIONS=ie;n.UA_APP_ID_ENV_NAME=ne;n.UA_APP_ID_INI_NAME=se;n.awsEndpointFunctions=le;n.createDefaultUserAgentProvider=createDefaultUserAgentProvider;n.createUserAgentStringParsingProvider=createUserAgentStringParsingProvider;n.crtAvailability=te;n.defaultUserAgent=re;n.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;n.fallback=ae;n.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;n.getHostHeaderPlugin=getHostHeaderPlugin;n.getLoggerPlugin=getLoggerPlugin;n.getLongPollPlugin=getLongPollPlugin;n.getRecursionDetectionPlugin=getRecursionDetectionPlugin;n.getUserAgentMiddlewareOptions=ee;n.getUserAgentPlugin=getUserAgentPlugin;n.getUserAgentPrefix=getUserAgentPrefix;n.hostHeaderMiddleware=hostHeaderMiddleware;n.hostHeaderMiddlewareOptions=T;n.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket;n.loggerMiddleware=loggerMiddleware;n.loggerMiddlewareOptions=N;n.parseArn=parseArn;n.partition=partition;n.recursionDetectionMiddleware=recursionDetectionMiddleware;n.recursionDetectionMiddlewareOptions=M;n.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;n.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;n.resolveHostHeaderConfig=resolveHostHeaderConfig;n.resolveUserAgentConfig=resolveUserAgentConfig;n.setCredentialFeature=setCredentialFeature;n.setFeature=setFeature;n.setPartitionInfo=setPartitionInfo;n.setTokenFeature=setTokenFeature;n.state=k;n.stsRegionDefaultResolver=stsRegionDefaultResolver;n.stsRegionWarning=ue;n.toEndpointV1=toEndpointV1;n.useDefaultPartitionInfo=useDefaultPartitionInfo;n.userAgentMiddleware=userAgentMiddleware},7523:(t,n,i)=>{const{ProviderError:a,booleanSelector:c,SelectorType:A,loadConfig:l}=i(7291);const{setCredentialFeature:d}=i(5152);const{normalizeProvider:h,memoizeIdentityProvider:f,isIdentityExpired:g,doesIdentityRequireRefresh:p}=i(402);const{SignatureV4:m}=i(5118);const{HttpResponse:E,HttpRequest:C}=i(3422);const getDateHeader=t=>E.isInstance(t)?t.headers?.date??t.headers?.Date:undefined;const getAgeHeader=t=>E.isInstance(t)?t.headers?.age??t.headers?.Age:undefined;const getSkewCorrectedDate=t=>new Date(Date.now()+t);const getUpdatedSystemClockOffset=(t,n,i,a)=>{if(a!==undefined){return n}const c=Date.parse(t);const A=Date.now();if(i!==undefined&&A-i>9e5){return n}const l=i!==undefined?c-(i+A)/2:c-A;return l};const throwSigningPropertyError=(t,n)=>{if(!n){throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`)}return n};const validateSigningProperties=async t=>{const n=throwSigningPropertyError("context",t.context);const i=throwSigningPropertyError("config",t.config);const a=n.endpointV2?.properties?.authSchemes?.[0];const c=throwSigningPropertyError("signer",i.signer);const A=await c(a);const l=t?.signingRegion;const d=t?.signingRegionSet;const h=t?.signingName;return{config:i,signer:A,signingRegion:l,signingRegionSet:d,signingName:h}};class AwsSdkSigV4Signer{async sign(t,n,i){if(!C.isInstance(t)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const a=await validateSigningProperties(i);const{config:c,signer:A}=a;let{signingRegion:l,signingName:d}=a;const h=i.context;if(h?.authSchemes?.length??0>1){const[t,n]=h.authSchemes;if(t?.name==="sigv4a"&&n?.name==="sigv4"){l=n?.signingRegion??l;d=n?.signingName??d}}const f=await(c.disableClockSkewCorrection?.())===true;i._disableClockSkewCorrection=f;if(!f){i._preRequestSystemClockOffset=c.systemClockOffset;i._requestSentAt=Date.now()}const g=await A.sign(t,{signingDate:f?new Date:getSkewCorrectedDate(c.systemClockOffset),signingRegion:l,signingService:d});return g}errorHandler(t){return n=>{const i=n;if(!t._disableClockSkewCorrection){const n=i.ServerTime??getDateHeader(i.$response);if(n){const a=throwSigningPropertyError("config",t.config);const c=t._preRequestSystemClockOffset;const A=t._requestSentAt;const l=getAgeHeader(i.$response);const d=getUpdatedSystemClockOffset(n,a.systemClockOffset,A,l);a.systemClockOffset=d;const h=Math.abs(d)>=24e4;const f=d!==c;const g=c!==undefined&&c!==d;if(h&&(f||g)&&i.$metadata){i.$metadata.clockSkewCorrected=true}}}throw n}}successHandler(t,n){if(n._disableClockSkewCorrection){return}const i=getDateHeader(t);if(i){const a=throwSigningPropertyError("config",n.config);const c=n._requestSentAt;const A=getAgeHeader(t);a.systemClockOffset=getUpdatedSystemClockOffset(i,a.systemClockOffset,c,A)}}}const I=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(t,n,i){if(!C.isInstance(t)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:a,signer:c,signingRegion:A,signingRegionSet:l,signingName:d}=await validateSigningProperties(i);const h=await(a.sigv4aSigningRegionSet?.());const f=(h??l??[A]).join(",");const g=await(a.disableClockSkewCorrection?.())===true;i._disableClockSkewCorrection=g;if(!g){i._preRequestSystemClockOffset=a.systemClockOffset;i._requestSentAt=Date.now()}const p=await c.sign(t,{signingDate:g?new Date:getSkewCorrectedDate(a.systemClockOffset),signingRegion:f,signingService:d});return p}}const getArrayForCommaSeparatedString=t=>typeof t==="string"&&t.length>0?t.split(",").map(t=>t.trim()):[];const getBearerTokenEnvKey=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`;const y="AWS_AUTH_SCHEME_PREFERENCE";const B="auth_scheme_preference";const Q={environmentVariableSelector:(t,n)=>{if(n?.signingName){const i=getBearerTokenEnvKey(n.signingName);if(i in t)return["httpBearerAuth"]}if(!(y in t))return undefined;return getArrayForCommaSeparatedString(t[y])},configFileSelector:t=>{if(!(B in t))return undefined;return getArrayForCommaSeparatedString(t[B])},default:[]};const resolveAwsSdkSigV4AConfig=t=>{t.sigv4aSigningRegionSet=h(t.sigv4aSigningRegionSet);return t};const w={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET){return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(t=>t.trim())}throw new a("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(t){if(t.sigv4a_signing_region_set){return(t.sigv4a_signing_region_set??"").split(",").map(t=>t.trim())}throw new a("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const bindResolveAwsSdkSigV4Config=t=>n=>{let i=n.credentials;let a=!!n.credentials;let c=undefined;Object.defineProperty(n,"credentials",{set(t){if(t&&t!==i&&t!==c){a=true}i=t;const A=normalizeCredentialProvider(n,{credentials:i,credentialDefaultProvider:n.credentialDefaultProvider});const l=bindCallerConfig(n,A);if(a&&!l.attributed){const t=typeof i==="object"&&i!==null;c=async n=>{const i=await l(n);const a=i;if(t&&(!a.$source||Object.keys(a.$source).length===0)){return d(a,"CREDENTIALS_CODE","e")}return a};c.memoized=l.memoized;c.configBound=l.configBound;c.attributed=true}else{c=l}},get(){return c},enumerable:true,configurable:true});n.credentials=i;const{signingEscapePath:A=true,systemClockOffset:l=n.systemClockOffset||0,sha256:f}=n;let g;if(n.signer){g=h(n.signer)}else if(n.regionInfoProvider){g=()=>h(n.region)().then(async t=>[await n.regionInfoProvider(t,{useFipsEndpoint:await n.useFipsEndpoint(),useDualstackEndpoint:await n.useDualstackEndpoint()})||{},t]).then(([t,i])=>{const{signingRegion:a,signingService:c}=t;n.signingRegion=n.signingRegion||a||i;n.signingName=n.signingName||c||n.serviceId;const l={...n,credentials:n.credentials,region:n.signingRegion,service:n.signingName,sha256:f,uriEscapePath:A};const d=n.signerConstructor||m;return new d(l)})}else{g=async t=>{t=Object.assign({},{name:"sigv4",signingName:n.signingName||n.defaultSigningName,signingRegion:await h(n.region)(),properties:{}},t);const i=t.signingRegion;const a=t.signingName;n.signingRegion=n.signingRegion||i;n.signingName=n.signingName||a||n.serviceId;const c={...n,credentials:n.credentials,region:n.signingRegion,service:n.signingName,sha256:f,uriEscapePath:A};const l=n.signerConstructor||m;return new l(c)}}const p=Object.assign(n,{systemClockOffset:l,signingEscapePath:A,signer:g,disableClockSkewCorrection:h(n.disableClockSkewCorrection??t)});return p};function normalizeCredentialProvider(t,{credentials:n,credentialDefaultProvider:i}){let a;if(n){if(!n?.memoized){a=f(n,g,p)}else{a=n}}else{if(i){a=h(i(Object.assign({},t,{parentClientConfig:t})))}else{a=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}a.memoized=true;return a}function bindCallerConfig(t,n){if(n.configBound){return n}const fn=async i=>n({...i,callerClientConfig:t});fn.memoized=n.memoized;fn.configBound=true;return fn}const S="AWS_DISABLE_CLOCK_SKEW_CORRECTION";const b="disable_clock_skew_correction";const R={environmentVariableSelector:t=>c(t,S,A.ENV),configFileSelector:t=>c(t,b,A.CONFIG),default:false};const v=l(R);const k=bindResolveAwsSdkSigV4Config(v);const D=k;n.AWSSDKSigV4Signer=I;n.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;n.AwsSdkSigV4Signer=AwsSdkSigV4Signer;n.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=Q;n.NODE_SIGV4A_CONFIG_OPTIONS=w;n.getBearerTokenEnvKey=getBearerTokenEnvKey;n.resolveAWSSDKSigV4Config=D;n.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;n.resolveAwsSdkSigV4Config=k;n.validateSigningProperties=validateSigningProperties},7288:(t,n,i)=>{const{SmithyRpcV2CborProtocol:a,loadSmithyRpcV2CborErrorCode:c}=i(4645);const{TypeRegistry:A,NormalizedSchema:l,deref:d}=i(6890);const{decorateServiceException:h,getValueFromTextNode:f}=i(2658);const{collectBody:g,determineTimestampFormat:p,RpcProtocol:m,HttpBindingProtocol:E,HttpInterceptingShapeSerializer:C,HttpInterceptingShapeDeserializer:I,FromStringShapeDeserializer:y,extendedEncodeURIComponent:B}=i(3422);const{NumericValue:Q,toUtf8:w,fromBase64:S,LazyJsonString:b,parseEpochTimestamp:R,parseRfc7231DateTime:v,parseRfc3339DateTimeWithOffset:k,toBase64:D,dateToUtcString:T,generateIdempotencyToken:N,expectUnion:M}=i(2430);const{parseXML:F,XmlNode:x,XmlText:U}=i(4274);class ProtocolLib{queryCompat;errorRegistry;constructor(t=false){this.queryCompat=t}resolveRestContentType(t,n){const i=n.getMemberSchemas();const a=Object.values(i).find(t=>!!t.getMergedTraits().httpPayload);if(a){const n=a.getMergedTraits().mediaType;if(n){return n}else if(a.isStringSchema()){return"text/plain"}else if(a.isBlobSchema()){return"application/octet-stream"}else{return t}}else if(!n.isUnitSchema()){const n=Object.values(i).find(t=>{const{httpQuery:n,httpQueryParams:i,httpHeader:a,httpLabel:c,httpPrefixHeaders:A}=t.getMergedTraits();const l=A===void 0;return!n&&!i&&!a&&!c&&l});if(n){return t}}}async getErrorSchemaOrThrowBaseException(t,n,i,a,c,A){let l=t;if(t.includes("#")){[,l]=t.split("#")}const d={$metadata:c,$fault:i.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const n=A?.(this.errorRegistry,l)??this.errorRegistry.getSchema(t);return{errorSchema:n,errorMetadata:d}}catch(t){a.message=a.message??a.Message??"UnknownError";const n=this.errorRegistry;const i=n.getBaseException();if(i){const t=n.getErrorCtor(i)??Error;throw this.decorateServiceException(Object.assign(new t({name:l}),d),a)}const c=a;const A=c?.message??c?.Message??c?.Error?.Message??c?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(A),{name:l},d),a)}}compose(t,n,i){let a=i;if(n.includes("#")){[a]=n.split("#")}const c=A.for(a);const l=A.for("smithy.ts.sdk.synthetic."+i);t.copyFrom(c);t.copyFrom(l);this.errorRegistry=t}decorateServiceException(t,n={}){if(this.queryCompat){const i=t.Message??n.Message;const a=h(t,n);if(i){a.message=i}const c=a.Error??{};c.Type=a.Error?.Type;c.Code=a.Error?.Code;c.Message=a.Error?.message??a.Error?.Message??i;a.Error=c;const A=a.$metadata.requestId;if(A){a.RequestId=A}return a}return h(t,n)}setQueryCompatError(t,n){const i=n.headers?.["x-amzn-query-error"];if(t!==undefined&&i!=null){const[n,a]=i.split(";");const c=Object.keys(t);const A={Code:n,Type:a};t.Code=n;t.Type=a;for(let n=0;nl.of(t).getMergedTraits().awsQueryError?.[0]===n)}}}class AwsSmithyRpcV2CborProtocol extends a{awsQueryCompatible;mixin;constructor({defaultNamespace:t,errorTypeRegistries:n,awsQueryCompatible:i}){super({defaultNamespace:t,errorTypeRegistries:n});this.awsQueryCompatible=!!i;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);if(this.awsQueryCompatible){a.headers["x-amzn-query-mode"]="true"}return a}async handleError(t,n,i,a,A){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(a,i)}const d=(()=>{const t=i.headers["x-amzn-query-error"];if(t&&this.awsQueryCompatible){return t.split(";")[0]}return c(i,a)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,i,a,A,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const g=l.of(h);const p=a.message??a.Message??"UnknownError";const m=this.compositeErrorRegistry.getErrorCtor(h)??Error;const E=new m({});const C={};for(const[t,n]of g.structIterator()){if(a[t]!=null){C[t]=this.deserializer.readValue(n,a[t])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(a,C)}throw this.mixin.decorateServiceException(Object.assign(E,f,{$fault:g.getMergedTraits().error,message:p},C),a)}}class SerdeContextConfig{serdeContext;setSerdeContext(t){this.serdeContext=t}}class UnionSerde{from;to;keys;constructor(t,n){this.from=t;this.to=n;const i=Object.keys(this.from);const a=new Set(i);a.delete("__type");this.keys=a}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value;const n=this.from[t];this.to.$unknown=[t,n]}}}function jsonReviver(t,n,i){if(i?.source){const t=i.source;if(typeof n==="number"){const i=n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER;if(!i||t!==String(n)){if(i&&/[eE]/.test(t)&&String(Number(t))===String(n)){return n}if(isFractionalNumeric(t)){return new Q(t,"bigDecimal")}else{if(/[eE]/.test(t)){return BigInt(Number(t))}return BigInt(t)}}}}return n}function isFractionalNumeric(t){const n=t.indexOf(".");if(n===-1){return false}const i=t.search(/[eE]/);if(i===-1){return true}const a=i-n-1;const c=parseInt(t.slice(i+1),10);return cg(t,n).then(t=>(n?.utf8Encoder??w)(t));let L;function detectBufferParsing(){if(L===undefined){try{if(typeof Buffer!=="function"){L=false}else{const t=JSON.parse(Buffer.from([123,125]));L=t!==null&&typeof t==="object"}}catch{L=false}}return L}async function parseJsonBody(t,n,i){let a;if(detectBufferParsing()&&typeof t?.[Symbol.asyncIterator]==="function"){const i=await g(t,n);if(typeof Buffer==="function"){if(Buffer.isBuffer(i)){a=i}else{a=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}}}if(!a){a=await collectBodyString(t,n)}if(a.length===0){return{}}const c=i&&needsReviver(i)?jsonReviver:undefined;try{return JSON.parse(a,c)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:typeof a==="string"?a:a.toString("utf8")})}throw t}}const parseJsonErrorBody=async(t,n)=>{const i=await parseJsonBody(t,n);i.message=i.message??i.Message;return i};const findKey=(t,n)=>Object.keys(t).find(t=>t.toLowerCase()===n.toLowerCase());const sanitizeErrorCode=t=>{let n=t;if(typeof n==="number"){n=n.toString()}if(n.indexOf(",")>=0){n=n.split(",")[0]}if(n.indexOf(":")>=0){n=n.split(":")[0]}if(n.indexOf("#")>=0){n=n.split("#")[1]}return n};const loadRestJsonErrorCode=(t,n)=>loadErrorCode(t,n,["header","code","type"]);const loadJsonRpcErrorCode=(t,n,i=false)=>loadErrorCode(t,n,i?["code","header","type"]:["type","code","header"]);const loadErrorCode=({headers:t},n,i)=>{while(i.length>0){const a=i.shift();switch(a){case"header":const i=findKey(t??{},"x-amzn-errortype");if(i!==undefined){return sanitizeErrorCode(t[i])}break;case"code":const a=findKey(n??{},"code");if(a&&n[a]!==undefined){return sanitizeErrorCode(n[a])}break;case"type":if(n?.__type!==undefined){return sanitizeErrorCode(n.__type)}break}}};function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}async read(t,n){const i=needsReviver(t)?jsonReviver:undefined;return this._read(t,typeof n==="string"?JSON.parse(n,i):await parseJsonBody(n,this.serdeContext,t))}readObject(t,n){return this._read(t,n)}_read(t,n){const i=n!==null&&typeof n==="object";const a=l.of(t);if(i){if(a.isStructSchema()){const t=n;const i=a.isUnionSchema();const c={};let A=void 0;const{jsonName:l}=this.settings;if(l){A={}}let d;if(i){d=new UnionSerde(t,c)}for(const[n,h]of a.structIterator()){let a=n;if(l){a=h.getMergedTraits().jsonName??a;A[a]=n}if(i){d.mark(a)}if(t[a]!=null){c[n]=this._read(h,t[a])}}if(i){d.writeUnknown()}else if(typeof t.__type==="string"){for(const n in t){const i=t[n];const a=l?A[n]??n:n;if(!(a in c)){c[a]=i}}}return c}if(Array.isArray(n)&&a.isListSchema()){const t=a.getValueSchema();const i=[];for(const a of n){i.push(this._read(t,a))}return i}if(a.isMapSchema()){const t=a.getValueSchema();const i={};for(const a in n){if(a==="__proto__"){writeKey(i)}i[a]=this._read(t,n[a])}return i}}if(a.isBlobSchema()&&typeof n==="string"){return S(n)}const c=a.getMergedTraits().mediaType;if(a.isStringSchema()&&typeof n==="string"&&c){const t=c==="application/json"||c.endsWith("+json");if(t){return b.from(n)}return n}if(a.isTimestampSchema()&&n!=null){const t=p(a,this.settings);switch(t){case 5:return k(n);case 6:return v(n);case 7:return R(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(a.isBigIntegerSchema()&&(typeof n==="number"||typeof n==="string")){return BigInt(n)}if(a.isBigDecimalSchema()&&n!=undefined){if(n instanceof Q){return n}const t=n;if(t.type==="bigDecimal"&&"string"in t){return new Q(t.string,t.type)}return new Q(String(n),"bigDecimal")}if(a.isNumericSchema()&&typeof n==="string"){switch(n){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return n}if(a.isDocumentSchema()){if(i){const t=Array.isArray(n)?[]:{};for(const i in n){if(i==="__proto__"){writeKey(t)}const c=n[i];if(c instanceof Q){t[i]=c}else{t[i]=this._read(a,c)}}return t}else{return structuredClone(n)}}return n}}const O=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(t,n)=>{if(n instanceof Q){const t=`${O+"nv"+this.counter++}_`+n.string;this.values.set(`"${t}"`,n.string);return t}if(typeof n==="bigint"){const t=n.toString();const i=`${O+"b"+this.counter++}_`+t;this.values.set(`"${i}"`,t);return i}return n}}replaceInJson(t){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return t}for(const[n,i]of this.values){t=t.replace(n,i)}return t}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(t){super();this.settings=t}write(t,n){this.rootSchema=l.of(t);this.buffer=this._write(this.rootSchema,n)}flush(){const{rootSchema:t,useReplacer:n}=this;this.rootSchema=undefined;this.useReplacer=false;if(t?.isStructSchema()||t?.isDocumentSchema()){if(!n){return JSON.stringify(this.buffer)}const t=new JsonReplacer;return t.replaceInJson(JSON.stringify(this.buffer,t.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(t,n){this.write(t,n);if(typeof this.buffer==="object"){this.buffer.__type=l.of(t).getName(true)}}_write(t,n,i){const a=n!==null&&typeof n==="object";const c=l.of(t);if(a){if(c.isStructSchema()){const t=n;const i={};const{jsonName:a}=this.settings;let A=void 0;if(a){A={}}let l=0;for(const[n,d]of c.structIterator()){const h=this._write(d,t[n],c);if(h!==undefined){let t=n;if(a){t=d.getMergedTraits().jsonName??n;A[n]=t}i[t]=h;l++}}if(c.isUnionSchema()&&l===0){const{$unknown:n}=t;if(Array.isArray(n)){const[t,a]=n;if(t==="__proto__"){writeKey(i)}i[t]=this._write(15,a)}}else if(typeof t.__type==="string"){for(const n in t){const c=t[n];const l=a?A[n]??n:n;if(!(l in i)){i[l]=this._write(15,c)}}}return i}if(Array.isArray(n)&&c.isListSchema()){const t=c.getValueSchema();const i=[];const a=!!c.getMergedTraits().sparse;for(const c of n){if(a||c!=null){i.push(this._write(t,c))}}return i}if(c.isMapSchema()){const t=c.getValueSchema();const i={};const a=!!c.getMergedTraits().sparse;for(const c in n){const A=n[c];if(a||A!=null){if(c==="__proto__"){writeKey(i)}i[c]=this._write(t,A)}}return i}if(n instanceof Uint8Array&&(c.isBlobSchema()||c.isDocumentSchema())){if(c===this.rootSchema){return n}return(this.serdeContext?.base64Encoder??D)(n)}if(n instanceof Date&&(c.isTimestampSchema()||c.isDocumentSchema())){const t=p(c,this.settings);switch(t){case 5:return n.toISOString().replace(".000Z","Z");case 6:return T(n);case 7:return n.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",n);return n.getTime()/1e3}}if(n instanceof Q){this.useReplacer=true}}if(n===null&&i?.isStructSchema()){return void 0}if(c.isStringSchema()){if(typeof n==="undefined"&&c.isIdempotencyToken()){return N()}const t=c.getMergedTraits().mediaType;if(n!=null&&t){const i=t==="application/json"||t.endsWith("+json");if(i){return b.from(n)}}return n}if(typeof n==="number"&&c.isNumericSchema()){if(Math.abs(n)===Infinity||isNaN(n)){return String(n)}return n}if(typeof n==="string"&&c.isBlobSchema()){if(c===this.rootSchema){return n}return(this.serdeContext?.base64Encoder??D)(n)}if(typeof n==="bigint"){this.useReplacer=true}if(c.isDocumentSchema()){if(a){const t=Array.isArray(n)?[]:{};for(const i in n){const a=n[i];if(i==="__proto__"){writeKey(t)}if(a instanceof Q){this.useReplacer=true;t[i]=a}else{t[i]=this._write(c,a)}}return t}else{return structuredClone(n)}}return n}}class JsonCodec extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new JsonShapeSerializer(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new JsonShapeDeserializer(this.settings);t.setSerdeContext(this.serdeContext);return t}}class AwsJsonRpcProtocol extends m{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:c}){super({defaultNamespace:t,errorTypeRegistries:n});this.serviceTarget=i;this.codec=c??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!a;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);if(!a.path.endsWith("/")){a.path+="/"}a.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`;a.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`;if(this.awsQueryCompatible){a.headers["x-amzn-query-mode"]="true"}if(d(t.input)==="unit"||!a.body){a.body="{}"}return a}getPayloadCodec(){return this.codec}async handleError(t,n,i,a,c){const{awsQueryCompatible:A}=this;if(A){this.mixin.setQueryCompatError(a,i)}const d=loadJsonRpcErrorCode(i,a,A)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,i,a,c,A?this.mixin.findQueryCompatibleError:undefined);const g=l.of(h);const p=a.message??a.Message??"UnknownError";const m=this.compositeErrorRegistry.getErrorCtor(h)??Error;const E=new m({});const C={};const I=this.codec.createDeserializer();for(const[t,n]of g.structIterator()){if(a[t]!=null){C[t]=I.readObject(n,a[t])}}if(A){this.mixin.queryCompatOutput(a,C)}throw this.mixin.decorateServiceException(Object.assign(E,f,{$fault:g.getMergedTraits().error,message:p},C),a)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:c}){super({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:c})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:c}){super({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:i,awsQueryCompatible:a,jsonCodec:c})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends E{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:t,errorTypeRegistries:n}){super({defaultNamespace:t,errorTypeRegistries:n});const i={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(i);this.serializer=new C(this.codec.createSerializer(),i);this.deserializer=new I(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(t){this.codec.setSerdeContext(t);super.setSerdeContext(t)}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);const c=l.of(t.input);if(!a.headers["content-type"]){const t=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(t){a.headers["content-type"]=t}}if(a.body==null&&a.headers["content-type"]===this.getDefaultContentType()){a.body="{}"}return a}async deserializeResponse(t,n,i){const a=await super.deserializeResponse(t,n,i);const c=l.of(t.output);for(const[t,n]of c.structIterator()){if(n.getMemberTraits().httpPayload&&!(t in a)){a[t]=null}}return a}async handleError(t,n,i,a,c){const A=loadRestJsonErrorCode(i,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);const{errorSchema:d,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,i,a,c);const f=l.of(d);const g=a.message??a.Message??"UnknownError";const p=this.compositeErrorRegistry.getErrorCtor(d)??Error;const m=new p({});await this.deserializeHttpMessage(d,n,i,a);const E={};const C=this.codec.createDeserializer();for(const[t,n]of f.structIterator()){const i=n.getMergedTraits().jsonName??t;E[t]=C.readObject(n,a[i])}throw this.mixin.decorateServiceException(Object.assign(m,h,{$fault:f.getMergedTraits().error,message:g},E),a)}getDefaultContentType(){return"application/json"}}class JsonShapeDeserializer2 extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}async read(t,n){const i=needsReviver(t)?jsonReviver:undefined;let a;if(typeof n==="string"){a=JSON.parse(n,i)}else if(n instanceof Uint8Array&&detectBufferParsing()){const t=Buffer.isBuffer(n)?n:Buffer.from(n.buffer,n.byteOffset,n.byteLength);a=JSON.parse(t,i)}else{a=await parseJsonBody(n,this.serdeContext)}return this._read(t,a)}readObject(t,n){return this._read(t,n)}_read(t,n){const i=n!==null&&typeof n==="object";const a=l.of(t);if(i){if(a.isStructSchema()){return this._readStruct(a,n)}if(Array.isArray(n)&&a.isListSchema()){const t=a.getValueSchema();for(let i=0;ii.length){let a=i.length*2;while(a34&&a<92){this.json[this.i++]=a}else if(a<128){const t=X[a];if(t!==null){this.ensure(t.length+1);this.json[this.i++]=j;for(let n=0;n=55296&&a<=56319){const c=i+1=56320&&c<=57343){this.ensure(4);const{written:n}=H.encodeInto(t.substring(i,i+2),this.json.subarray(this.i));this.i+=n;i++}else{this.ensure(6);this.writeUnicodeEscape(a)}}else if(a>=56320&&a<=57343){this.ensure(6);this.writeUnicodeEscape(a)}else{let{i:t,json:n}=this;if(a<2048){n[t++]=192|a>>6;n[t++]=128|a&63}else{n[t++]=224|a>>12;n[t++]=128|a>>6&63;n[t++]=128|a&63}this.i=t}}this.json[this.i++]=J}writeUnicodeEscape(t){let{json:n,i:i}=this;n[i++]=j;n[i++]=117;const a=t.toString(16).padStart(4,"0");for(let t=0;t<4;++t){n[i++]=a.charCodeAt(t)}this.i=i}static B64=(()=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const n=new Uint8Array(64);for(let i=0;i<64;i++)n[i]=t.charCodeAt(i);return n})();writeBase64(t){const n=Math.ceil(t.length/3)*4;this.ensure(n+2);const i=this.json;const a=JsonShapeSerializer2.B64;let c=this.i;i[c++]=J;const A=t.length;const l=A%3;const d=A-l;for(let n=0;n>2];i[c++]=a[(A&3)<<4|l>>4];i[c++]=a[(l&15)<<2|d>>6];i[c++]=a[d&63]}if(l===2){const n=t[d];const A=t[d+1];i[c++]=a[n>>2];i[c++]=a[(n&3)<<4|A>>4];i[c++]=a[(A&15)<<2];i[c++]=61}else if(l===1){const n=t[d];i[c++]=a[n>>2];i[c++]=a[(n&3)<<4];i[c++]=61;i[c++]=61}i[c++]=J;this.i=c}writeValue(t,n,i){if(n==null){if(i?.isStructSchema()){if(n===undefined){const n=l.of(t);if(n.isIdempotencyToken()){this.writeAsciiQuoted(N());return}}return}this.ensure(4);this.json.set(Z,this.i);this.i+=4;return}const a=l.of(t);const c=typeof n==="object";if(a.isStringSchema()){const t=a.getMergedTraits().mediaType;if(t){const i=t==="application/json"||t.endsWith("+json");if(i){this.writeJsonString(b.from(n).toString());return}}}if(c){if(a.isStructSchema()){this.writeStruct(a,n);return}if(Array.isArray(n)&&(a.isListSchema()||a.isDocumentSchema())){this.writeList(a,n,a.isDocumentSchema());return}if(a.isMapSchema()){this.writeMap(a,n,false);return}if(n instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema())){this.writeBase64(n);return}if(n instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema())){this.writeTimestamp(a,n);return}if(n instanceof Q){this.writeAscii(n.string);return}if(a.isDocumentSchema()){if(Array.isArray(n)){this.writeList(a,n,true)}else{this.writeMap(a,n,true)}return}const t=JSON.stringify(n);this.writeAscii(t);return}if(typeof n==="string"){if(a.isBlobSchema()){const t=(this.serdeContext?.base64Encoder??D)(n);this.writeAsciiQuoted(t);return}this.writeJsonString(n);return}if(typeof n==="number"){if(a.isNumericSchema()&&(Math.abs(n)===Infinity||isNaN(n))){this.writeAsciiQuoted(String(n));return}const t=String(n);this.writeAscii(t);return}if(typeof n==="boolean"){this.ensure(5);if(n){this.json.set(z,this.i);this.i+=4}else{this.json.set(K,this.i);this.i+=5}return}if(typeof n==="bigint"){this.writeAscii(n.toString());return}this.writeAscii(String(n))}writeStruct(t,n){this.ensure(2);this.json[this.i++]=$;let i=true;let a=false;const c=typeof n.__type==="string";let A;if(c){A=new Set}for(const[c,l]of t.structIterator()){const d=n[c];if(d==null&&!l.isIdempotencyToken())continue;if(!i){this.ensure(1);this.json[this.i++]=q}i=false;a=true;const h=this.settings.jsonName?l.getMergedTraits().jsonName??c:c;if(A){A.add(c);A.add(h)}this.writeAsciiQuoted(h);this.json[this.i++]=W;this.writeValue(l,d,t)}if(!a&&t.isUnionSchema()){const{$unknown:i}=n;if(Array.isArray(i)){const[n,a]=i;this.writeAsciiQuoted(n);this.ensure(1);this.json[this.i++]=W;this.writeValue(15,a,t)}}else if(c){for(const t in n){const a=this.settings.jsonName?A.has(t)?t:t:t;if(A.has(a))continue;A.add(a);const c=n[t];if(!i){this.ensure(1);this.json[this.i++]=q}i=false;this.writeAsciiQuoted(a);this.ensure(1);this.json[this.i++]=W;this.writeValue(15,c,undefined)}}this.ensure(1);this.json[this.i++]=V}writeList(t,n,i){this.ensure(2);this.json[this.i++]=G;const a=!!t.getMergedTraits().sparse;const c=t.getValueSchema();for(let t=0;t!!t.getMemberTraits().eventPayload);if(A){const t={};const i=Object.keys(c)[0];const a=c[i];if(a.isBlobSchema()){t[i]=n}else{t[i]=this.read(c[i],n)}return t}const d=(this.serdeContext?.utf8Encoder??w)(n);const h=this.parseXml(d);return this.readSchema(t,i?h[i]:h)}readSchema(t,n){const i=l.of(t);if(i.isUnitSchema()){return}const a=i.getMergedTraits();if(i.isListSchema()&&!Array.isArray(n)){return this.readSchema(i,[n])}if(n==null){return n}if(typeof n==="object"){const t=!!a.xmlFlattened;if(i.isListSchema()){const a=i.getValueSchema();const c=[];const A=a.getMergedTraits().xmlName??"member";const l=t?n:(n[0]??n)[A];if(l==null){return c}const d=Array.isArray(l)?l:[l];for(const t of d){c.push(this.readSchema(a,t))}return c}const c={};if(i.isMapSchema()){const a=i.getKeySchema();const A=i.getValueSchema();let l;if(t){l=Array.isArray(n)?n:[n]}else{l=Array.isArray(n.entry)?n.entry:[n.entry]}const d=a.getMergedTraits().xmlName??"key";const h=A.getMergedTraits().xmlName??"value";for(const t of l){const n=t[d];const i=t[h];if(n==="__proto__"){writeKey(c)}c[n]=this.readSchema(A,i)}return c}if(i.isStructSchema()){const t=i.isUnionSchema();let a;if(t){a=new UnionSerde(n,c)}for(const[A,l]of i.structIterator()){const i=l.getMergedTraits();const d=!i.httpPayload?l.getMemberTraits().xmlName??A:i.xmlName??l.getName();if(t){a.mark(d)}if(n[d]!=null){c[A]=this.readSchema(l,n[d])}}if(t){a.writeUnknown()}return c}if(i.isDocumentSchema()){return n}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${i.getName(true)}`)}if(i.isListSchema()){return[]}if(i.isMapSchema()||i.isStructSchema()){return{}}return this.stringDeserializer.read(i,n)}parseXml(t){if(t.length){let n;try{n=F(t)}catch(n){if(n&&typeof n==="object"){Object.defineProperty(n,"$responseBodyText",{value:t})}throw n}const i="#text";const a=Object.keys(n)[0];const c=n[a];if(c[i]){c[a]=c[i];delete c[i]}return f(c)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(t){super();this.settings=t}write(t,n,i=""){if(this.buffer===undefined){this.buffer=""}const a=l.of(t);if(i&&!i.endsWith(".")){i+="."}if(a.isBlobSchema()){if(typeof n==="string"||n instanceof Uint8Array){this.writeKey(i);this.writeValue((this.serdeContext?.base64Encoder??D)(n))}}else if(a.isBooleanSchema()||a.isNumericSchema()||a.isStringSchema()){if(n!=null){this.writeKey(i);this.writeValue(String(n))}else if(a.isIdempotencyToken()){this.writeKey(i);this.writeValue(N())}}else if(a.isBigIntegerSchema()){if(n!=null){this.writeKey(i);this.writeValue(String(n))}}else if(a.isBigDecimalSchema()){if(n!=null){this.writeKey(i);this.writeValue(n instanceof Q?n.string:String(n))}}else if(a.isTimestampSchema()){if(n instanceof Date){this.writeKey(i);const t=p(a,this.settings);switch(t){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(T(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}}else if(a.isDocumentSchema()){if(Array.isArray(n)){this.write(64|15,n,i)}else if(n instanceof Date){this.write(4,n,i)}else if(n instanceof Uint8Array){this.write(21,n,i)}else if(n&&typeof n==="object"){this.write(128|15,n,i)}else{this.writeKey(i);this.writeValue(String(n))}}else if(a.isListSchema()){if(Array.isArray(n)){if(n.length===0){if(this.settings.serializeEmptyLists){this.writeKey(i);this.writeValue("")}}else{const t=a.getValueSchema();const c=this.settings.flattenLists||a.getMergedTraits().xmlFlattened;let A=1;for(const a of n){if(a==null){continue}const n=t.getMergedTraits();const l=this.getKey("member",n.xmlName,n.ec2QueryName);const d=c?`${i}${A}`:`${i}${l}.${A}`;this.write(t,a,d);++A}}}}else if(a.isMapSchema()){if(n&&typeof n==="object"){const t=a.getKeySchema();const c=a.getValueSchema();const A=a.getMergedTraits().xmlFlattened;let l=1;for(const a in n){const d=n[a];if(d==null){continue}const h=t.getMergedTraits();const f=this.getKey("key",h.xmlName,h.ec2QueryName);const g=A?`${i}${l}.${f}`:`${i}entry.${l}.${f}`;const p=c.getMergedTraits();const m=this.getKey("value",p.xmlName,p.ec2QueryName);const E=A?`${i}${l}.${m}`:`${i}entry.${l}.${m}`;this.write(t,a,g);this.write(c,d,E);++l}}}else if(a.isStructSchema()){if(n&&typeof n==="object"){let t=false;for(const[c,A]of a.structIterator()){if(n[c]==null&&!A.isIdempotencyToken()){continue}const a=A.getMergedTraits();const l=this.getKey(c,a.xmlName,a.ec2QueryName,"struct");const d=`${i}${l}`;this.write(A,n[c],d);t=true}if(!t&&a.isUnionSchema()){const{$unknown:t}=n;if(Array.isArray(t)){const[n,a]=t;const c=`${i}${n}`;this.write(15,a,c)}}}}else if(a.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${a.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const t=this.buffer;delete this.buffer;return t}getKey(t,n,i,a){const{ec2:c,capitalizeKeys:A}=this.settings;if(c&&i){return i}const l=n??t;if(A&&a==="struct"){return l[0].toUpperCase()+l.slice(1)}return l}writeKey(t){if(t.endsWith(".")){t=t.slice(0,t.length-1)}this.buffer+=`&${B(t)}=`}writeValue(t){this.buffer+=B(t)}}class AwsQueryProtocol extends m{options;serializer;deserializer;mixin=new ProtocolLib;constructor(t){super({defaultNamespace:t.defaultNamespace,errorTypeRegistries:t.errorTypeRegistries});this.options=t;const n={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(n);this.deserializer=new XmlShapeDeserializer(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t);this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);if(!a.path.endsWith("/")){a.path+="/"}a.headers["content-type"]="application/x-www-form-urlencoded";if(d(t.input)==="unit"||!a.body){a.body=""}const c=t.name.split("#")[1]??t.name;a.body=`Action=${c}&Version=${this.options.version}`+a.body;if(a.body.endsWith("&")){a.body=a.body.slice(-1)}return a}async deserializeResponse(t,n,i){const a=this.deserializer;const c=l.of(t.output);const A={};if(i.statusCode>=300){const c=await g(i.body,n);if(c.byteLength>0){Object.assign(A,await a.read(15,c))}await this.handleError(t,n,i,A,this.deserializeMetadata(i))}for(const t in i.headers){const n=i.headers[t];delete i.headers[t];i.headers[t.toLowerCase()]=n}const d=t.name.split("#")[1]??t.name;const h=c.isStructSchema()&&this.useNestedResult()?d+"Result":undefined;const f=await g(i.body,n);if(f.byteLength>0){Object.assign(A,await a.read(c,f,h))}A.$metadata=this.deserializeMetadata(i);return A}useNestedResult(){return true}async handleError(t,n,i,a,c){const A=this.loadQueryErrorCode(i,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);const d=this.loadQueryError(a)??{};const h=this.loadQueryErrorMessage(a);d.message=h;d.Error={Type:d.Type,Code:d.Code,Message:h};const{errorSchema:f,errorMetadata:g}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,i,d,c,this.mixin.findQueryCompatibleError);const p=l.of(f);const m=this.compositeErrorRegistry.getErrorCtor(f)??Error;const E=new m({});const C={Type:d.Error.Type,Code:d.Error.Code,Error:d.Error};for(const[t,n]of p.structIterator()){const i=n.getMergedTraits().xmlName??t;const c=d[i]??a[i];C[t]=this.deserializer.readSchema(n,c)}throw this.mixin.decorateServiceException(Object.assign(E,g,{$fault:p.getMergedTraits().error,message:h},C),a)}loadQueryErrorCode(t,n){const i=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(i!==undefined){return i}if(t.statusCode==404){return"NotFound"}}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(t){super(t);this.options=t;const n={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,n)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(t,n)=>collectBodyString(t,n).then(t=>{if(t.length){let n;try{n=F(t)}catch(n){if(n&&typeof n==="object"){Object.defineProperty(n,"$responseBodyText",{value:t})}throw n}const i="#text";const a=Object.keys(n)[0];const c=n[a];if(c[i]){c[a]=c[i];delete c[i]}return f(c)}return{}});const parseXmlErrorBody=async(t,n)=>{const i=await parseXmlBody(t,n);if(i.Error){i.Error.message=i.Error.message??i.Error.Message}return i};const loadRestXmlErrorCode=(t,n)=>{if(n?.Error?.Code!==undefined){return n.Error.Code}if(n?.Code!==undefined){return n.Code}if(t.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(t){super();this.settings=t}write(t,n){const i=l.of(t);if(i.isStringSchema()&&typeof n==="string"){this.stringBuffer=n}else if(i.isBlobSchema()){this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??S)(n)}else{this.buffer=this.writeStruct(i,n,undefined);const t=i.getMergedTraits();if(t.httpPayload&&!t.xmlName){this.buffer.withName(i.getName())}}}flush(){if(this.byteBuffer!==undefined){const t=this.byteBuffer;delete this.byteBuffer;return t}if(this.stringBuffer!==undefined){const t=this.stringBuffer;delete this.stringBuffer;return t}const t=this.buffer;if(this.settings.xmlNamespace){if(!t?.attributes?.["xmlns"]){t.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return t.toString()}writeStruct(t,n,i){const a=t.getMergedTraits();const c=t.isMemberSchema()&&!a.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():a.xmlName??t.getName();if(!c||!t.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(true)}.`)}const A=x.of(c);const[l,d]=this.getXmlnsAttribute(t,i);for(const[i,a]of t.structIterator()){const t=n[i];if(t!=null||a.isIdempotencyToken()){if(a.getMergedTraits().xmlAttribute){A.addAttribute(a.getMergedTraits().xmlName??i,this.writeSimple(a,t));continue}if(a.isListSchema()){this.writeList(a,t,A,d)}else if(a.isMapSchema()){this.writeMap(a,t,A,d)}else if(a.isStructSchema()){A.addChildNode(this.writeStruct(a,t,d))}else{const n=x.of(a.getMergedTraits().xmlName??a.getMemberName());this.writeSimpleInto(a,t,n,d);A.addChildNode(n)}}}const{$unknown:h}=n;if(h&&t.isUnionSchema()&&Array.isArray(h)&&Object.keys(n).length===1){const[t,i]=h;const a=x.of(t);if(typeof i!=="string"){if(n instanceof x||n instanceof U){A.addChildNode(n)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,i,a,d);A.addChildNode(a)}if(d){A.addAttribute(l,d)}return A}writeList(t,n,i,a){if(!t.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(true)}`)}const c=t.getMergedTraits();const A=t.getValueSchema();const l=A.getMergedTraits();const d=!!l.sparse;const h=!!c.xmlFlattened;const[f,g]=this.getXmlnsAttribute(t,a);const writeItem=(n,i)=>{if(A.isListSchema()){this.writeList(A,Array.isArray(i)?i:[i],n,g)}else if(A.isMapSchema()){this.writeMap(A,i,n,g)}else if(A.isStructSchema()){const a=this.writeStruct(A,i,g);n.addChildNode(a.withName(h?c.xmlName??t.getMemberName():l.xmlName??"member"))}else{const a=x.of(h?c.xmlName??t.getMemberName():l.xmlName??"member");this.writeSimpleInto(A,i,a,g);n.addChildNode(a)}};if(h){for(const t of n){if(d||t!=null){writeItem(i,t)}}}else{const a=x.of(c.xmlName??t.getMemberName());if(g){a.addAttribute(f,g)}for(const t of n){if(d||t!=null){writeItem(a,t)}}i.addChildNode(a)}}writeMap(t,n,i,a,c=false){if(!t.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(true)}`)}const A=t.getMergedTraits();const l=t.getKeySchema();const d=l.getMergedTraits();const h=d.xmlName??"key";const f=t.getValueSchema();const g=f.getMergedTraits();const p=g.xmlName??"value";const m=!!g.sparse;const E=!!A.xmlFlattened;const[C,I]=this.getXmlnsAttribute(t,a);const addKeyValue=(t,n,i)=>{const a=x.of(h,n);const[c,A]=this.getXmlnsAttribute(l,I);if(A){a.addAttribute(c,A)}t.addChildNode(a);let d=x.of(p);if(f.isListSchema()){this.writeList(f,i,d,I)}else if(f.isMapSchema()){this.writeMap(f,i,d,I,true)}else if(f.isStructSchema()){d=this.writeStruct(f,i,I)}else{this.writeSimpleInto(f,i,d,I)}t.addChildNode(d)};if(E){for(const a in n){const c=n[a];if(m||c!=null){const n=x.of(A.xmlName??t.getMemberName());addKeyValue(n,a,c);i.addChildNode(n)}}}else{let a;if(!c){a=x.of(A.xmlName??t.getMemberName());if(I){a.addAttribute(C,I)}i.addChildNode(a)}for(const t in n){const A=n[t];if(m||A!=null){const n=x.of("entry");addKeyValue(n,t,A);(c?i:a).addChildNode(n)}}}}writeSimple(t,n){if(null===n){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const i=l.of(t);let a=null;if(n&&typeof n==="object"){if(i.isBlobSchema()){a=(this.serdeContext?.base64Encoder??D)(n)}else if(i.isTimestampSchema()&&n instanceof Date){const t=p(i,this.settings);switch(t){case 5:a=n.toISOString().replace(".000Z","Z");break;case 6:a=T(n);break;case 7:a=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n);a=T(n);break}}else if(i.isBigDecimalSchema()&&n){if(n instanceof Q){return n.string}return String(n)}else if(i.isMapSchema()||i.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${i.getName(true)}`)}}if(i.isBooleanSchema()||i.isNumericSchema()||i.isBigIntegerSchema()||i.isBigDecimalSchema()){a=String(n)}if(i.isStringSchema()){if(n===undefined&&i.isIdempotencyToken()){a=N()}else{a=String(n)}}if(a===null){throw new Error(`Unhandled schema-value pair ${i.getName(true)}=${n}`)}return a}writeSimpleInto(t,n,i,a){const c=this.writeSimple(t,n);const A=l.of(t);const d=new U(c);const[h,f]=this.getXmlnsAttribute(A,a);if(f){i.addAttribute(h,f)}i.addChildNode(d)}getXmlnsAttribute(t,n){const i=t.getMergedTraits();const[a,c]=i.xmlNamespace??[];if(c&&c!==n){return[a?`xmlns:${a}`:"xmlns",c]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(t){super();this.settings=t}createSerializer(){const t=new XmlShapeSerializer(this.settings);t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new XmlShapeDeserializer(this.settings);t.setSerdeContext(this.serdeContext);return t}}class AwsRestXmlProtocol extends E{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(t){super(t);const n={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new XmlCodec(n);this.serializer=new C(this.codec.createSerializer(),n);this.deserializer=new I(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);const c=l.of(t.input);if(!a.headers["content-type"]){const t=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(t){a.headers["content-type"]=t}}if(typeof a.body==="string"&&a.headers["content-type"]===this.getDefaultContentType()&&!a.body.startsWith("'+a.body}return a}async deserializeResponse(t,n,i){return super.deserializeResponse(t,n,i)}async handleError(t,n,i,a,c){const A=loadRestXmlErrorCode(i,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,A,this.options.defaultNamespace);if(a.Error&&typeof a.Error==="object"){for(const t of Object.keys(a.Error)){a[t]=a.Error[t];if(t.toLowerCase()==="message"){a.message=a.Error[t]}}}if(a.RequestId&&!c.requestId){c.requestId=a.RequestId}const{errorSchema:d,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(A,this.options.defaultNamespace,i,a,c);const f=l.of(d);const g=a.Error?.message??a.Error?.Message??a.message??a.Message??"UnknownError";const p=this.compositeErrorRegistry.getErrorCtor(d)??Error;const m=new p({});await this.deserializeHttpMessage(d,n,i,a);const E={};const C=this.codec.createDeserializer();for(const[t,n]of f.structIterator()){const i=n.getMergedTraits().xmlName??t;const c=a.Error?.[i]??a[i];E[t]=C.readSchema(n,c)}throw this.mixin.decorateServiceException(Object.assign(m,h,{$fault:f.getMergedTraits().error,message:g},E),a)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator()){if(n.getMergedTraits().httpPayload){return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema())}}return false}}const awsExpectUnion=t=>{if(t==null){return undefined}if(typeof t==="object"&&"__type"in t){delete t.__type}return M(t)};const _toStr=t=>{if(t==null){return t}if(typeof t==="number"||typeof t==="bigint"){const n=new Error(`Received number ${t} where a string was expected.`);n.name="Warning";console.warn(n);return String(t)}if(typeof t==="boolean"){const n=new Error(`Received boolean ${t} where a string was expected.`);n.name="Warning";console.warn(n);return String(t)}return t};const _toBool=t=>{if(t==null){return t}if(typeof t==="string"){const n=t.toLowerCase();if(t!==""&&n!=="false"&&n!=="true"){const n=new Error(`Received string "${t}" where a boolean was expected.`);n.name="Warning";console.warn(n)}return t!==""&&n!=="false"}return t};const _toNum=t=>{if(t==null){return t}if(typeof t==="string"){const n=Number(t);if(n.toString()!==t){const n=new Error(`Received string "${t}" where a number was expected.`);n.name="Warning";console.warn(n);return t}return n}return t};n.AwsEc2QueryProtocol=AwsEc2QueryProtocol;n.AwsJson1_0Protocol=AwsJson1_0Protocol;n.AwsJson1_1Protocol=AwsJson1_1Protocol;n.AwsJsonRpcProtocol=AwsJsonRpcProtocol;n.AwsQueryProtocol=AwsQueryProtocol;n.AwsRestJsonProtocol=AwsRestJsonProtocol;n.AwsRestXmlProtocol=AwsRestXmlProtocol;n.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;n.JsonCodec=JsonCodec;n.JsonCodec2=JsonCodec2;n.JsonShapeDeserializer=JsonShapeDeserializer;n.JsonShapeDeserializer2=JsonShapeDeserializer2;n.JsonShapeSerializer=JsonShapeSerializer;n.JsonShapeSerializer2=JsonShapeSerializer2;n.QueryShapeSerializer=QueryShapeSerializer;n.XmlCodec=XmlCodec;n.XmlShapeDeserializer=XmlShapeDeserializer;n.XmlShapeSerializer=XmlShapeSerializer;n._toBool=_toBool;n._toNum=_toNum;n._toStr=_toStr;n.awsExpectUnion=awsExpectUnion;n.loadJsonRpcErrorCode=loadJsonRpcErrorCode;n.loadRestJsonErrorCode=loadRestJsonErrorCode;n.loadRestXmlErrorCode=loadRestXmlErrorCode;n.parseJsonBody=parseJsonBody;n.parseJsonErrorBody=parseJsonErrorBody;n.parseXmlBody=parseXmlBody;n.parseXmlErrorBody=parseXmlErrorBody},5606:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:c}=i(7291);const A="AWS_ACCESS_KEY_ID";const l="AWS_SECRET_ACCESS_KEY";const d="AWS_SESSION_TOKEN";const h="AWS_CREDENTIAL_EXPIRATION";const f="AWS_CREDENTIAL_SCOPE";const g="AWS_ACCOUNT_ID";const fromEnv=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const n=process.env[A];const i=process.env[l];const p=process.env[d];const m=process.env[h];const E=process.env[f];const C=process.env[g];if(n&&i){const t={accessKeyId:n,secretAccessKey:i,...p&&{sessionToken:p},...m&&{expiration:new Date(m)},...E&&{credentialScope:E},...C&&{accountId:C}};a(t,"CREDENTIALS_ENV_VARS","g");return t}throw new c("Unable to find environment variable credentials.",{logger:t?.logger})};n.ENV_ACCOUNT_ID=g;n.ENV_CREDENTIAL_SCOPE=f;n.ENV_EXPIRATION=h;n.ENV_KEY=A;n.ENV_SECRET=l;n.ENV_SESSION=d;n.fromEnv=fromEnv},8605:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:c}=i(7291);const{NodeHttpHandler:A}=i(1279);const l=i(1455);const{HttpRequest:d}=i(3422);const{sdkStreamMixin:h,parseRfc3339DateTime:f}=i(2430);const g="169.254.170.2";const p="169.254.170.23";const m="[fd00:ec2::23]";const checkUrl=(t,n)=>{if(t.protocol==="https:"){return}if(t.hostname===g||t.hostname===p||t.hostname===m){return}if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]"){return}}else{if(t.hostname==="localhost"){return}const n=t.hostname.split(".");const inRange=t=>{const n=parseInt(t,10);return 0<=n&&n<=255};if(n[0]==="127"&&inRange(n[1])&&inRange(n[2])&&inRange(n[3])&&n.length===4){return}}throw new c(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:n})};function createGetRequest(t){return new d({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((t,[n,i])=>{t[n]=i;return t},{}),fragment:t.hash})}async function getCredentials(t,n){const i=h(t.body);const a=await i.transformToString();if(t.statusCode===200){const t=JSON.parse(a);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string"){throw new c("HTTP credential provider response not of the required format, an object matching: "+"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:n})}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:f(t.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let i={};try{i=JSON.parse(a)}catch(t){}throw Object.assign(new c(`Server responded with status: ${t.statusCode}`,{logger:n}),{Code:i.Code,Message:i.Message})}throw new c(`Server responded with status: ${t.statusCode}`,{logger:n})}const retryWrapper=(t,n,i)=>async()=>{for(let a=0;asetTimeout(t,i))}}return await t()};const E="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const C="http://169.254.170.2";const I="AWS_CONTAINER_CREDENTIALS_FULL_URI";const y="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";const B="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromHttp=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let n;const i=t.awsContainerCredentialsRelativeUri??process.env[E];const d=t.awsContainerCredentialsFullUri??process.env[I];const h=t.awsContainerAuthorizationToken??process.env[B];const f=t.awsContainerAuthorizationTokenFile??process.env[y];const g=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(i&&d){g("@aws-sdk/credential-provider-http: "+"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");g("awsContainerCredentialsRelativeUri will take precedence.")}if(h&&f){g("@aws-sdk/credential-provider-http: "+"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");g("awsContainerAuthorizationTokenFile will take precedence.")}if(i){n=`${C}${i}`}else if(d){n=d}else{throw new c(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger})}const p=new URL(n);checkUrl(p,t.logger);const m=A.create({connectionTimeout:t.timeout??1e3});const Q=t.timeout??1e3;const w=retryWrapper(async()=>{const n=createGetRequest(p);if(f){n.headers.Authorization=validateToken((await l.readFile(f)).toString())}else if(h){n.headers.Authorization=validateToken(h)}try{const t=await m.handle(n,{requestTimeout:Q});return getCredentials(t.response).then(t=>a(t,"CREDENTIALS_HTTP","z"))}catch(n){throw new c(String(n),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await w()}finally{m.destroy?.()}}};const validateToken=t=>{if(t.includes("\r\n")){throw new c("Authorization token contains invalid \\r\\n sequence.")}return t};n.fromHttp=fromHttp},5869:(t,n,i)=>{const{CredentialsProviderError:a,chain:c,getProfileName:A,parseKnownFiles:l}=i(7291);const{setCredentialFeature:d}=i(5152);const resolveCredentialSource=(t,n,A)=>{const l={EcsContainer:async t=>{const{fromHttp:n}=i(8605);const{fromContainerMetadata:a}=i(566);A?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");return async()=>c(n(t??{}),a(t))().then(setNamedProvider)},Ec2InstanceMetadata:async t=>{A?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:n}=i(566);return async()=>n(t)().then(setNamedProvider)},Environment:async t=>{A?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:n}=i(5606);return async()=>n(t)().then(setNamedProvider)}};if(t in l){return l[t]}else{throw new a(`Unsupported credential source in profile ${n}. Got ${t}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:A})}};const setNamedProvider=t=>d(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");const isAssumeRoleProfile=(t,{profile:n="default",logger:i}={})=>Boolean(t)&&typeof t==="object"&&typeof t.role_arn==="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(t,{profile:n,logger:i})||isCredentialSourceProfile(t,{profile:n,logger:i}));const isAssumeRoleWithSourceProfile=(t,{profile:n,logger:i})=>{const a=typeof t.source_profile==="string"&&typeof t.credential_source==="undefined";if(a){i?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`)}return a};const isCredentialSourceProfile=(t,{profile:n,logger:i})=>{const a=typeof t.credential_source==="string"&&typeof t.source_profile==="undefined";if(a){i?.debug?.(` ${n} isCredentialSourceProfile credential_source=${t.credential_source}`)}return a};const resolveAssumeRoleCredentials=async(t,n,c,l,h={},f)=>{c.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const g=n[t];const{source_profile:p,region:m}=g;if(!c.roleAssumer){const{getDefaultRoleAssumer:t}=i(1136);c.roleAssumer=t({...c.clientConfig,credentialProviderLogger:c.logger,parentClientConfig:{...l,...c?.parentClientConfig,region:m??c?.parentClientConfig?.region??l?.region}},c.clientPlugins)}if(p&&p in h){throw new a(`Detected a cycle attempting to resolve credentials for profile`+` ${A(c)}. Profiles visited: `+Object.keys(h).join(", "),{logger:c.logger})}c.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${p?`source_profile=[${p}]`:`profile=[${t}]`}`);const E=p?f(p,n,c,l,{...h,[p]:true},isCredentialSourceWithoutRoleArn(n[p]??{})):(await resolveCredentialSource(g.credential_source,t,c.logger)(c))();if(isCredentialSourceWithoutRoleArn(g)){return E.then(t=>d(t,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}else{const n={RoleArn:g.role_arn,RoleSessionName:g.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:g.external_id,DurationSeconds:parseInt(g.duration_seconds||"3600",10)};const{mfa_serial:i}=g;if(i){if(!c.mfaCodeProvider){throw new a(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:c.logger,tryNextLink:false})}n.SerialNumber=i;n.TokenCode=await c.mfaCodeProvider(i)}const A=await E;return c.roleAssumer(A,n).then(t=>d(t,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}};const isCredentialSourceWithoutRoleArn=t=>!t.role_arn&&!!t.credential_source;const isLoginProfile=t=>Boolean(t&&t.login_session);const resolveLoginCredentials=async(t,n,a)=>{const{fromLoginCredentials:c}=i(4072);const A=await c({...n,profile:t})({callerClientConfig:a});return d(A,"CREDENTIALS_PROFILE_LOGIN","AC")};const isProcessProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.credential_process==="string";const resolveProcessCredentials=async(t,n)=>{const{fromProcess:a}=i(5360);const c=await a({...t,profile:n})();return d(c,"CREDENTIALS_PROFILE_PROCESS","v")};const resolveSsoCredentials=async(t,n,a={},c)=>{const{fromSSO:A}=i(998);return A({profile:t,logger:a.logger,parentClientConfig:a.parentClientConfig,clientConfig:a.clientConfig})({callerClientConfig:c}).then(t=>{if(n.sso_session){return d(t,"CREDENTIALS_PROFILE_SSO","r")}else{return d(t,"CREDENTIALS_PROFILE_SSO_LEGACY","t")}})};const isSsoProfile=t=>t&&(typeof t.sso_start_url==="string"||typeof t.sso_account_id==="string"||typeof t.sso_session==="string"||typeof t.sso_region==="string"||typeof t.sso_role_name==="string");const isStaticCredsProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.aws_access_key_id==="string"&&typeof t.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1;const resolveStaticCredentials=async(t,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const i={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return d(i,"CREDENTIALS_PROFILE","n")};const isWebIdentityProfile=t=>Boolean(t)&&typeof t==="object"&&typeof t.web_identity_token_file==="string"&&typeof t.role_arn==="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1;const resolveWebIdentityCredentials=async(t,n,a)=>{const{fromTokenFile:c}=i(9956);const A=await c({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:a});return d(A,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")};const resolveProfileData=async(t,n,i,c,A={},l=false)=>{const d=n[t];if(Object.keys(A).length>0&&isStaticCredsProfile(d)){return resolveStaticCredentials(d,i)}if(l||isAssumeRoleProfile(d,{profile:t,logger:i.logger})){return resolveAssumeRoleCredentials(t,n,i,c,A,resolveProfileData)}if(isStaticCredsProfile(d)){return resolveStaticCredentials(d,i)}if(isWebIdentityProfile(d)){return resolveWebIdentityCredentials(d,i,c)}if(isProcessProfile(d)){return resolveProcessCredentials(i,t)}if(isSsoProfile(d)){return await resolveSsoCredentials(t,d,i,c)}if(isLoginProfile(d)){return resolveLoginCredentials(t,i,c)}throw new a(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:i.logger})};const fromIni=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const i=await l(t);return resolveProfileData(A({profile:t.profile??n?.profile}),i,t,n)};n.fromIni=fromIni},4072:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:c,readFile:A,parseKnownFiles:l,getProfileName:d}=i(7291);const{HttpRequest:h}=i(3422);const{createHash:f,createPrivateKey:g,createPublicKey:p,sign:m}=i(7598);const{promises:E}=i(3024);const{homedir:C}=i(8161);const{dirname:I,join:y}=i(6760);class LoginCredentialsFetcher{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=5*60*1e3;constructor(t,n,i){this.profileData=t;this.init=n;this.callerClientConfig=i}async loadCredentials(){const t=await this.loadToken();if(!t){throw new c(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:false,logger:this.logger})}const n=t.accessToken;const i=Date.now();const a=new Date(n.expiresAt).getTime();const A=a-i;if(A<=LoginCredentialsFetcher.REFRESH_THRESHOLD){return this.refresh(t)}return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(t){const{SigninClient:n,CreateOAuth2TokenCommand:a}=i(9762);const{logger:A,userAgentAppId:l}=this.callerClientConfig??{};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const d=isH2(this.callerClientConfig?.requestHandler)?undefined:this.callerClientConfig?.requestHandler;const h=this.profileData.region??await(this.callerClientConfig?.region?.())??process.env.AWS_REGION;const f=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:d,logger:A,userAgentAppId:l,...this.init?.clientConfig});this.createDPoPInterceptor(f.middlewareStack);const g={tokenInput:{clientId:t.clientId,refreshToken:t.refreshToken,grantType:"refresh_token"}};try{const n=await f.send(new a(g));const{accessKeyId:i,secretAccessKey:A,sessionToken:l}=n.tokenOutput?.accessToken??{};const{refreshToken:d,expiresIn:h}=n.tokenOutput??{};if(!i||!A||!l||!d){throw new c("Token refresh response missing required fields",{logger:this.logger,tryNextLink:false})}const p=(h??900)*1e3;const m=new Date(Date.now()+p);const E={...t,accessToken:{...t.accessToken,accessKeyId:i,secretAccessKey:A,sessionToken:l,expiresAt:m.toISOString()},refreshToken:d};await this.saveToken(E);const C=E.accessToken;return{accessKeyId:C.accessKeyId,secretAccessKey:C.secretAccessKey,sessionToken:C.sessionToken,accountId:C.accountId,expiration:m}}catch(t){if(t.name==="AccessDeniedException"){const n=t.error;let i;switch(n){case"TOKEN_EXPIRED":i="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":i="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":i="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:i=`Failed to refresh token: ${String(t)}. Please re-authenticate using \`aws login\``}throw new c(i,{logger:this.logger,tryNextLink:false})}throw new c(`Failed to refresh token: ${String(t)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){const t=this.getTokenFilePath();try{let n;try{n=await A(t,{ignoreCache:this.init?.ignoreCache})}catch{n=await E.readFile(t,"utf8")}const i=JSON.parse(n);const a=["accessToken","clientId","refreshToken","dpopKey"].filter(t=>!i[t]);if(!i.accessToken?.accountId){a.push("accountId")}if(a.length>0){throw new c(`Token validation failed, missing fields: ${a.join(", ")}`,{logger:this.logger,tryNextLink:false})}return i}catch(n){throw new c(`Failed to load token from ${t}: ${String(n)}`,{logger:this.logger,tryNextLink:false})}}async saveToken(t){const n=this.getTokenFilePath();const i=I(n);try{await E.mkdir(i,{recursive:true})}catch(t){}await E.writeFile(n,JSON.stringify(t,null,2),"utf8")}getTokenFilePath(){const t=process.env.AWS_LOGIN_CACHE_DIRECTORY??y(C(),".aws","login","cache");const n=Buffer.from(this.loginSession,"utf8");const i=f("sha256").update(n).digest("hex");return y(t,`${i}.json`)}derToRawSignature(t){let n=2;if(t[n]!==2){throw new Error("Invalid DER signature")}n++;const i=t[n++];let a=t.subarray(n,n+i);n+=i;if(t[n]!==2){throw new Error("Invalid DER signature")}n++;const c=t[n++];let A=t.subarray(n,n+c);a=a[0]===0?a.subarray(1):a;A=A[0]===0?A.subarray(1):A;const l=Buffer.concat([Buffer.alloc(32-a.length),a]);const d=Buffer.concat([Buffer.alloc(32-A.length),A]);return Buffer.concat([l,d])}createDPoPInterceptor(t){t.add(t=>async n=>{if(h.isInstance(n.request)){const t=n.request;const i=`${t.protocol}//${t.hostname}${t.port?`:${t.port}`:""}${t.path}`;const a=await this.generateDpop(t.method,i);t.headers={...t.headers,DPoP:a}}return t(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:true})}async generateDpop(t="POST",n){const i=await this.loadToken();try{const a=g({key:i.dpopKey,format:"pem",type:"sec1"});const c=p(a);const A=c.export({format:"der",type:"spki"});let l=-1;for(let t=0;tasync({callerClientConfig:n}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");const i=await l(t||{});const A=d({profile:t?.profile??n?.profile});const h=i[A];if(!h?.login_session){throw new c(`Profile ${A} does not contain login_session.`,{tryNextLink:true,logger:t?.logger})}const f=new LoginCredentialsFetcher(h,t,n);const g=await f.loadCredentials();return a(g,"CREDENTIALS_LOGIN","AD")};n.fromLoginCredentials=fromLoginCredentials},5861:(t,n,i)=>{const{ENV_KEY:a,ENV_SECRET:c,fromEnv:A}=i(5606);const{chain:l,CredentialsProviderError:d,ENV_PROFILE:h}=i(7291);const f="AWS_EC2_METADATA_DISABLED";const remoteProvider=async t=>{const{ENV_CMDS_FULL_URI:n,ENV_CMDS_RELATIVE_URI:a,fromContainerMetadata:c,fromInstanceMetadata:A}=i(566);if(process.env[a]||process.env[n]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:n}=i(8605);return l(n(t),c(t))}if(process.env[f]&&process.env[f]!=="false"){return async()=>{throw new d("EC2 Instance Metadata Service access disabled",{logger:t.logger})}}t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return A(t)};function memoizeChain(t,n){const i=internalCreateChain(t);let a;let c;let A;let l;const provider=async t=>{if(t?.forceRefresh){if(!l){l=i(t).then(t=>{A=t}).finally(()=>{l=undefined})}await l;return A}if(A?.expiration){if(A?.expiration?.getTime(){A=t}).finally(()=>{c=undefined})}}else{a=i(t).then(t=>{A=t}).finally(()=>{a=undefined});return provider(t)}}return A};return provider}const internalCreateChain=t=>async n=>{let i;for(const a of t){try{return await a(n)}catch(t){i=t;if(t?.tryNextLink){continue}throw t}}throw i};let g=false;const defaultProvider=(t={})=>memoizeChain([async()=>{const n=t.profile??process.env[h];if(n){const n=process.env[a]&&process.env[c];if(n){if(!g){const n=t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn;n(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);g=true}}throw new d("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:true})}t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return A(t)()},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:a,ssoAccountId:c,ssoRegion:A,ssoRoleName:l,ssoSession:h}=t;if(!a&&!c&&!A&&!l&&!h){throw new d("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger})}const{fromSSO:f}=i(998);return f(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:a}=i(5869);return a(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:a}=i(5360);return a(t)(n)},async n=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:a}=i(9956);return a(t)(n)},async()=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(t))()},async()=>{throw new d("Could not load credentials from any providers",{tryNextLink:false,logger:t.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=t=>t?.expiration!==undefined;const credentialsTreatedAsExpired=t=>t?.expiration!==undefined&&t.expiration.getTime()-Date.now()<3e5;n.credentialsTreatedAsExpired=credentialsTreatedAsExpired;n.credentialsWillNeedRefresh=credentialsWillNeedRefresh;n.defaultProvider=defaultProvider},5360:(t,n,i)=>{const{externalDataInterceptor:a,CredentialsProviderError:c,parseKnownFiles:A,getProfileName:l}=i(7291);const{exec:d}=i(1421);const{promisify:h}=i(7975);const{setCredentialFeature:f}=i(5152);const getValidatedProcessCredentials=(t,n,i)=>{if(n.Version!==1){throw Error(`Profile ${t} credential_process did not return Version 1.`)}if(n.AccessKeyId===undefined||n.SecretAccessKey===undefined){throw Error(`Profile ${t} credential_process returned invalid credentials.`)}if(n.Expiration){const i=new Date;const a=new Date(n.Expiration);if(a{const A=n[t];if(n[t]){const l=A["credential_process"];if(l!==undefined){const A=h(a?.getTokenRecord?.().exec??d);try{const{stdout:i}=await A(l);let a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return getValidatedProcessCredentials(t,a,n)}catch(t){throw new c(t.message,{logger:i})}}else{throw new c(`Profile ${t} did not contain credential_process.`,{logger:i})}}else{throw new c(`Profile ${t} could not be found in shared credentials file.`,{logger:i})}};const fromProcess=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const i=await A(t);return resolveProcessCredentials(l({profile:t.profile??n?.profile}),i,t.logger)};n.fromProcess=fromProcess},998:(t,n,i)=>{const{CredentialsProviderError:a,getSSOTokenFromFile:c,getProfileName:A,parseKnownFiles:l,loadSsoSessionData:d}=i(7291);const{setCredentialFeature:h}=i(5152);const{fromSso:f}=i(5433);const isSsoProfile=t=>t&&(typeof t.sso_start_url==="string"||typeof t.sso_account_id==="string"||typeof t.sso_session==="string"||typeof t.sso_region==="string"||typeof t.sso_role_name==="string");const g=false;const resolveSSOCredentials=async({ssoStartUrl:t,ssoSession:n,ssoAccountId:A,ssoRegion:l,ssoRoleName:d,ssoClient:p,clientConfig:m,parentClientConfig:E,callerClientConfig:C,profile:I,filepath:y,configFilepath:B,ignoreCache:Q,logger:w})=>{let S;const b=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(n){try{const t=await f({profile:I,filepath:y,configFilepath:B,ignoreCache:Q,clientConfig:m,parentClientConfig:E,logger:w})({callerClientConfig:C});S={accessToken:t.token,expiresAt:new Date(t.expiration).toISOString()}}catch(t){throw new a(t.message,{tryNextLink:g,logger:w})}}else{try{S=await c(t)}catch(t){throw new a(`The SSO session associated with this profile is invalid. ${b}`,{tryNextLink:g,logger:w})}}if(new Date(S.expiresAt).getTime()-Date.now()<=0){throw new a(`The SSO session associated with this profile has expired. ${b}`,{tryNextLink:g,logger:w})}const{accessToken:R}=S;const{SSOClient:v,GetRoleCredentialsCommand:k}=i(3707);const D=p||new v(Object.assign({},m??{},{logger:m?.logger??C?.logger??E?.logger,region:m?.region??l,userAgentAppId:m?.userAgentAppId??C?.userAgentAppId??E?.userAgentAppId}));let T;try{T=await D.send(new k({accountId:A,roleName:d,accessToken:R}))}catch(t){throw new a(t,{tryNextLink:g,logger:w})}const{roleCredentials:{accessKeyId:N,secretAccessKey:M,sessionToken:F,expiration:x,credentialScope:U,accountId:P}={}}=T;if(!N||!M||!F||!x){throw new a("SSO returns an invalid temporary credential.",{tryNextLink:g,logger:w})}const L={accessKeyId:N,secretAccessKey:M,sessionToken:F,expiration:new Date(x),...U&&{credentialScope:U},...P&&{accountId:P}};if(n){h(L,"CREDENTIALS_SSO","s")}else{h(L,"CREDENTIALS_SSO_LEGACY","u")}return L};const validateSsoProfile=(t,n)=>{const{sso_start_url:i,sso_account_id:c,sso_region:A,sso_role_name:l}=t;if(!i||!c||!A||!l){throw new a(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:false,logger:n})}return t};const fromSSO=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:i,ssoAccountId:c,ssoRegion:h,ssoRoleName:f,ssoSession:g}=t;const{ssoClient:p}=t;const m=A({profile:t.profile??n?.profile});if(!i&&!c&&!h&&!f&&!g){const n=await l(t);const c=n[m];if(!c){throw new a(`Profile ${m} was not found.`,{logger:t.logger})}if(!isSsoProfile(c)){throw new a(`Profile ${m} is not configured with SSO credentials.`,{logger:t.logger})}if(c?.sso_session){const n=await d(t);const A=n[c.sso_session];const l=` configurations in profile ${m} and sso-session ${c.sso_session}`;if(h&&h!==A.sso_region){throw new a(`Conflicting SSO region`+l,{tryNextLink:false,logger:t.logger})}if(i&&i!==A.sso_start_url){throw new a(`Conflicting SSO start_url`+l,{tryNextLink:false,logger:t.logger})}c.sso_region=A.sso_region;c.sso_start_url=A.sso_start_url}const{sso_start_url:A,sso_account_id:f,sso_region:g,sso_role_name:E,sso_session:C}=validateSsoProfile(c,t.logger);return resolveSSOCredentials({ssoStartUrl:A,ssoSession:C,ssoAccountId:f,ssoRegion:g,ssoRoleName:E,ssoClient:p,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:m,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else if(!i||!c||!h||!f){throw new a("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:false,logger:t.logger})}else{return resolveSSOCredentials({ssoStartUrl:i,ssoSession:g,ssoAccountId:c,ssoRegion:h,ssoRoleName:f,ssoClient:p,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:m,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};n.fromSSO=fromSSO;n.isSsoProfile=isSsoProfile;n.validateSsoProfile=validateSsoProfile},3707:(t,n,i)=>{const{GetRoleCredentialsCommand:a,SSOClient:c}=i(2579);n.GetRoleCredentialsCommand=a;n.SSOClient=c},9956:(t,n,i)=>{const{setCredentialFeature:a}=i(5152);const{CredentialsProviderError:c,externalDataInterceptor:A}=i(7291);const{readFileSync:l}=i(3024);const fromWebToken=t=>async n=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:a,roleSessionName:c,webIdentityToken:A,providerId:l,policyArns:d,policy:h,durationSeconds:f}=t;let{roleAssumerWithWebIdentity:g}=t;if(!g){const{getDefaultRoleAssumerWithWebIdentity:a}=i(1136);g=a({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return g({RoleArn:a,RoleSessionName:c??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:A,ProviderId:l,PolicyArns:d,Policy:h,DurationSeconds:f})};const d="AWS_WEB_IDENTITY_TOKEN_FILE";const h="AWS_ROLE_ARN";const f="AWS_ROLE_SESSION_NAME";const fromTokenFile=(t={})=>async n=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const i=t?.webIdentityTokenFile??process.env[d];const g=t?.roleArn??process.env[h];const p=t?.roleSessionName??process.env[f];if(!i||!g){throw new c("Web identity configuration not specified",{logger:t.logger})}const m=await fromWebToken({...t,webIdentityToken:A?.getTokenRecord?.()[i]??l(i,{encoding:"ascii"}),roleArn:g,roleSessionName:p})(n);if(i===process.env[d]){a(m,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h")}return m};n.fromTokenFile=fromTokenFile;n.fromWebToken=fromWebToken},4431:(t,n,i)=>{const a=i(9214);class EndpointCache{cache;constructor(t){this.cache=new a(t)}getEndpoint(t){const n=this.get(t);if(!n||n.length===0){return undefined}const i=n.map(t=>t.Address);return i[Math.floor(Math.random()*i.length)]}get(t){if(!this.has(t)){return}const n=this.cache.get(t);if(!n){return}const i=Date.now();const a=n.filter(t=>i({Address:t,Expires:i+n*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t)){return false}const n=this.cache.peek(t);if(!n){return false}return n.length>0}clear(){this.cache.clear()}}n.EndpointCache=EndpointCache},3688:(t,n,i)=>{const{HttpRequest:a}=i(3422);const{EndpointCache:c}=i(4431);const A=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];const l="endpoint_discovery_enabled";const isFalsy=t=>["false","0"].indexOf(t)>=0;const d={environmentVariableSelector:t=>{for(let n=0;n{if(l in t){const n=t[l];if(n===undefined){throw Error(`Shared config entry ${l} can't be undefined, got "${n}"`)}return!isFalsy(n)}},default:undefined};const getCacheKey=async(t,n,i)=>{const{accessKeyId:a}=await n.credentials();const{identifiers:c}=i;return JSON.stringify({...a&&{accessKeyId:a},...c&&{commandName:t,identifiers:Object.entries(c).sort().reduce((t,[n,i])=>({...t,[n]:i}),{})}})};const h={};const updateDiscoveredEndpointInCache=async(t,n)=>new Promise((i,a)=>{const{endpointCache:c}=t;const{cacheKey:A,commandName:l,identifiers:d}=n;const f=c.get(A);if(f&&f.length===1&&f[0].Address===""){if(n.isDiscoveredEndpointRequired){if(!h[A])h[A]=[];h[A].push({resolve:i,reject:a})}else{i()}}else if(f&&f.length>0){i()}else{const f=[{Address:"",CachePeriodInMinutes:1}];c.set(A,f);const g=new n.endpointDiscoveryCommandCtor({Operation:l.slice(0,-7),Identifiers:d});const p=g.resolveMiddleware(n.clientStack,t,n.options);p(g).then(t=>{c.set(A,t.output.Endpoints);if(h[A]){h[A].forEach(({resolve:t})=>{t()});delete h[A]}i()}).catch(t=>{c.delete(A);const l=Object.assign(new Error(`The operation to discover endpoint failed.`+` Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.`),{reason:t});if(h[A]){h[A].forEach(({reject:t})=>{t(l)});delete h[A]}if(n.isDiscoveredEndpointRequired){a(l)}else{c.set(A,f);i()}})}});const endpointDiscoveryMiddleware=(t,n)=>(i,c)=>async A=>{if(t.isCustomEndpoint){if(t.isClientEndpointDiscoveryEnabled){throw new Error(`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.`)}return i(A)}const{endpointDiscoveryCommandCtor:l}=t;const{isDiscoveredEndpointRequired:d,identifiers:h}=n;const f=c.clientName;const g=c.commandName;const p=await t.endpointDiscoveryEnabled();const m=await getCacheKey(g,t,{identifiers:h});if(d){if(p===false){throw new Error(`Endpoint Discovery is disabled but ${g} on ${f} requires it.`+` Please check your configurations.`)}await updateDiscoveredEndpointInCache(t,{...n,commandName:g,cacheKey:m,endpointDiscoveryCommandCtor:l})}else if(p){updateDiscoveredEndpointInCache(t,{...n,commandName:g,cacheKey:m,endpointDiscoveryCommandCtor:l})}const{request:E}=A;if(m&&a.isInstance(E)){const n=t.endpointCache.getEndpoint(m);if(n){E.hostname=n}}return i(A)};const f={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:true};const getEndpointDiscoveryPlugin=(t,n)=>({applyToStack:i=>{i.add(endpointDiscoveryMiddleware(t,n),f)}});const getEndpointDiscoveryRequiredPlugin=(t,n)=>({applyToStack:i=>{i.add(endpointDiscoveryMiddleware(t,{...n,isDiscoveredEndpointRequired:true}),f)}});const getEndpointDiscoveryOptionalPlugin=(t,n)=>({applyToStack:i=>{i.add(endpointDiscoveryMiddleware(t,{...n,isDiscoveredEndpointRequired:false}),f)}});const resolveEndpointDiscoveryConfig=(t,{endpointDiscoveryCommandCtor:n})=>{const{endpointCacheSize:i,endpointDiscoveryEnabled:a,endpointDiscoveryEnabledProvider:A}=t;return Object.assign(t,{endpointDiscoveryCommandCtor:n,endpointCache:new c(i??1e3),endpointDiscoveryEnabled:a!==undefined?()=>Promise.resolve(a):A,isClientEndpointDiscoveryEnabled:a!==undefined})};n.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=d;n.endpointDiscoveryMiddlewareOptions=f;n.getEndpointDiscoveryOptionalPlugin=getEndpointDiscoveryOptionalPlugin;n.getEndpointDiscoveryPlugin=getEndpointDiscoveryPlugin;n.getEndpointDiscoveryRequiredPlugin=getEndpointDiscoveryRequiredPlugin;n.resolveEndpointDiscoveryConfig=resolveEndpointDiscoveryConfig},9762:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:c,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C}=i(5152);const{NoAuthSigner:I,getHttpAuthSchemeEndpointRuleSetPlugin:y,DefaultIdentityProviderConfig:B,getHttpSigningPlugin:Q}=i(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:b,NoOpLogger:R,emitWarningIfUnsupportedVersion:v,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:D,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:M,createAggregatedClient:F}=i(2658);const{Command:x}=i(2658);n.$Command=x;n.__Client=N;const{resolveDefaultsModeConfig:U,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_FILE_OPTIONS:$,resolveRegionConfig:V}=i(7291);const{BinaryDecisionDiagram:G,EndpointCache:Y,decideEndpoint:J,customEndpointFunctions:W,resolveEndpointConfig:q,getEndpointPlugin:j}=i(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:K,resolveHttpHandlerRuntimeConfig:Z,getContentLengthPlugin:X}=i(3422);const{DEFAULT_RETRY_MODE:ee,NODE_RETRY_MODE_CONFIG_OPTIONS:te,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:ne,getRetryPlugin:se}=i(3609);const{TypeRegistry:oe,getSchemaSerdePlugin:ie}=i(6890);const{resolveAwsSdkSigV4Config:ae,AwsSdkSigV4Signer:ce,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ae}=i(7523);const{toUtf8:le,fromUtf8:ue,toBase64:de,fromBase64:he,calculateBodyLength:fe}=i(2430);const{streamCollector:ge,NodeHttpHandler:pe}=i(1279);const{AwsRestJsonProtocol:me}=i(7288);const{Sha256:Ee}=i(9542);const defaultSigninHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSigninHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"CreateOAuth2Token":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ae(t);return Object.assign(n,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"signin"});const Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ie="3.997.37";var ye={version:Ie};const Be="ref";const Qe=-1,we=false,Se=true,be="isSet",Re="booleanEquals",ve="coalesce",ke="PartitionResult",De="stringEquals",Te="getAttr",Ne="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",Me={[Be]:"Endpoint"},Fe={fn:Te,argv:[{[Be]:ke},"name"]},xe={[Be]:"Region"},Ue={[Be]:ke},Pe={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Le={},_e=[xe];const Oe={conditions:[[be,_e],[Re,[{fn:ve,argv:[{[Be]:"IsControlPlane"},we]},Se]],[be,[Me]],["aws.partition",_e,ke],[Re,[{[Be]:"UseFIPS"},Se]],[De,[Fe,"aws"]],[Re,[{fn:ve,argv:[{[Be]:"IsOAuthEndpoint"},we]},Se]],[Re,[{[Be]:"UseDualStack"},Se]],[De,[Fe,"aws-cn"]],[De,[xe,"us-gov-west-1"]],[De,[Fe,"aws-us-gov"]],[Re,[{fn:Te,argv:[Ue,"supportsFIPS"]},Se]],[De,[Fe,"aws-iso"]],[De,[Fe,"aws-iso-b"]],[De,[Fe,"aws-iso-f"]],[De,[Fe,"aws-iso-e"]],[De,[Fe,"aws-eusc"]],[Re,[{fn:Te,argv:[Ue,"supportsDualStack"]},Se]]],results:[[Qe],["https://signin.{Region}.api.aws",Pe],["https://signin.{Region}.api.amazonwebservices.com.cn",Pe],[Ne,Pe],[Qe,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",Pe],["https://{Region}.signin.aws.amazon.com",Le],["https://{Region}.signin.amazonaws.cn",Le],["https://{Region}.signin.amazonaws-us-gov.com",Le],["https://{Region}.signin.c2shome.ic.gov",Le],["https://{Region}.signin.sc2shome.sgov.gov",Le],["https://{Region}.signin.csphome.hci.ic.gov",Le],["https://{Region}.signin.csphome.adc-e.uk",Le],["https://{Region}.signin.amazonaws-eusc.eu",Le],["https://signin-fips.amazonaws-us-gov.com",Le],["https://{Region}.signin-fips.amazonaws-us-gov.com",Le],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Le],[Qe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Me,Le],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Le],[Qe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Le],[Qe,"FIPS is enabled but this partition does not support FIPS"],[Ne,Le],[Qe,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Le],[Qe,"Invalid Configuration: Missing Region"]]};const He=2;const $e=1e8;const Ve=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,$e+27,6,$e+4,$e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,$e+7,13,10,$e+8,14,12,$e+9,15,13,$e+10,16,14,$e+11,17,15,$e+12,18,16,$e+13,$e+16,6,$e+5,20,7,21,$e+6,17,$e+24,$e+25,6,$e+4,23,7,27,24,9,$e+14,25,10,$e+15,26,11,$e+22,$e+23,11,28,$e+21,17,$e+20,$e+21,2,35,30,3,39,31,4,32,$e+27,6,$e+4,33,7,$e+27,34,9,$e+14,$e+27,3,39,36,4,38,37,7,$e+18,$e+19,6,$e+4,$e+17,5,$e+1,40,8,$e+2,$e+3]);const Ge=G.from(Ve,He,Oe.conditions,Oe.results);const Ye=new Y({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Ye.get(t,()=>J(Ge,{endpointParams:t,logger:n.logger}));W.aws=a;class SigninServiceException extends b{constructor(t){super(t);Object.setPrototypeOf(this,SigninServiceException.prototype)}}class AccessDeniedException extends SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=t.error}}class InternalServerException extends SigninServiceException{name="InternalServerException";$fault="server";error;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.error=t.error}}class TooManyRequestsError extends SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(t){super({name:"TooManyRequestsError",$fault:"client",...t});Object.setPrototypeOf(this,TooManyRequestsError.prototype);this.error=t.error}}class ValidationException extends SigninServiceException{name="ValidationException";$fault="client";error;constructor(t){super({name:"ValidationException",$fault:"client",...t});Object.setPrototypeOf(this,ValidationException.prototype);this.error=t.error}}const Je="AccessDeniedException";const We="AccessToken";const qe="CreateOAuth2Token";const je="CreateOAuth2TokenRequest";const ze="CreateOAuth2TokenRequestBody";const Ke="CreateOAuth2TokenResponseBody";const Ze="CreateOAuth2TokenResponse";const Xe="CreateOAuth2TokenWithIAM";const et="CreateOAuth2TokenWithIAMRequest";const tt="CreateOAuth2TokenWithIAMResponse";const rt="InternalServerException";const nt="OAuthAccessToken";const st="RefreshToken";const ot="TooManyRequestsError";const it="ValidationException";const at="accessKeyId";const ct="accessToken";const At="access_token";const lt="client";const ut="clientId";const dt="codeVerifier";const ht="code";const ft="error";const gt="expiresIn";const pt="expires_in";const mt="grantType";const Et="grant_type";const Ct="http";const It="httpError";const yt="idToken";const Bt="jsonName";const Qt="message";const wt="resource";const St="refreshToken";const bt="redirectUri";const Rt="smithy.ts.sdk.synthetic.com.amazonaws.signin";const vt="secretAccessKey";const kt="sessionToken";const Dt="server";const Tt="tokenInput";const Nt="tokenOutput";const Mt="tokenType";const Ft="token_type";const xt="com.amazonaws.signin";const Ut=oe.for(Rt);var Pt=[-3,Rt,"SigninServiceException",0,[],[]];Ut.registerError(Pt,SigninServiceException);const Lt=oe.for(xt);var _t=[-3,xt,Je,{[ft]:lt},[ft,Qt],[0,0],2];Lt.registerError(_t,AccessDeniedException);var Ot=[-3,xt,rt,{[ft]:Dt,[It]:500},[ft,Qt],[0,0],2];Lt.registerError(Ot,InternalServerException);var Ht=[-3,xt,ot,{[ft]:lt,[It]:429},[ft,Qt],[0,0],2];Lt.registerError(Ht,TooManyRequestsError);var $t=[-3,xt,it,{[ft]:lt,[It]:400},[ft,Qt],[0,0],2];Lt.registerError($t,ValidationException);const Vt=[Ut,Lt];var Gt=[0,xt,nt,8,0];var Yt=[0,xt,st,8,0];var Jt=[3,xt,We,8,[at,vt,kt],[[0,{[Bt]:at}],[0,{[Bt]:vt}],[0,{[Bt]:kt}]],3];var Wt=[3,xt,je,0,[Tt],[[()=>qt,16]],1];var qt=[3,xt,ze,0,[ut,mt,ht,bt,dt,St],[[0,{[Bt]:ut}],[0,{[Bt]:mt}],0,[0,{[Bt]:bt}],[0,{[Bt]:dt}],[()=>Yt,{[Bt]:St}]],2];var jt=[3,xt,Ze,0,[Nt],[[()=>zt,16]],1];var zt=[3,xt,Ke,0,[ct,Mt,gt,St,yt],[[()=>Jt,{[Bt]:ct}],[0,{[Bt]:Mt}],[1,{[Bt]:gt}],[()=>Yt,{[Bt]:St}],[0,{[Bt]:yt}]],4];var Kt=[3,xt,et,0,[mt,wt],[[0,{[Bt]:Et}],0],2];var Zt=[3,xt,tt,0,[ct,Mt,gt],[[()=>Gt,{[Bt]:At}],[0,{[Bt]:Ft}],[1,{[Bt]:pt}]],3];var Xt=[9,xt,qe,{[Ct]:["POST","/v1/token",200]},()=>Wt,()=>jt];var er=[9,xt,Xe,{[Ct]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>Kt,()=>Zt];const getRuntimeConfig$1=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??he,base64Encoder:t?.base64Encoder??de,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ce},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new I}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Vt,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ue,utf8Encoder:t?.utf8Encoder??le});const getRuntimeConfig=t=>{v(process.version);const n=U(t);const defaultConfigProvider=()=>n().then(k);const i=getRuntimeConfig$1(t);c(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(Ae,a),bodyLengthChecker:t?.bodyLengthChecker??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:i.serviceId,clientVersion:ye.version}),maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(H,{...$,...a}),requestHandler:pe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...te,default:async()=>(await defaultConfigProvider()).retryMode||ee},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??P(O,a),useFipsEndpoint:t?.useFipsEndpoint??P(L,a),userAgentAppId:t?.userAgentAppId??P(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),D(t),K(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),T(i),Z(i),resolveHttpAuthRuntimeConfig(i))};class SigninClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const c=ne(a);const A=V(c);const l=g(A);const d=q(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ie(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(se(this.config));this.middlewareStack.use(X(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(y(this.config,{httpAuthSchemeParametersProvider:defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new B({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(Q(this.config))}destroy(){super.destroy()}}const tr=M(Ce,"Signin","SigninClient",j);const rr={IsControlPlane:{type:"staticContextParams",value:false}};const nr={IsOAuthEndpoint:{type:"staticContextParams",value:true}};const _mw0=(t,n,i,a)=>[];class CreateOAuth2TokenCommand extends(tr(rr,_mw0,"CreateOAuth2Token",Xt)){}class CreateOAuth2TokenWithIAMCommand extends(tr(nr,_mw0,"CreateOAuth2TokenWithIAM",er)){}const sr={CreateOAuth2TokenCommand:CreateOAuth2TokenCommand,CreateOAuth2TokenWithIAMCommand:CreateOAuth2TokenWithIAMCommand};class Signin extends SigninClient{}F(sr,Signin);const ir={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};n.AccessDeniedException=AccessDeniedException;n.AccessDeniedException$=_t;n.AccessToken$=Jt;n.CreateOAuth2Token$=Xt;n.CreateOAuth2TokenCommand=CreateOAuth2TokenCommand;n.CreateOAuth2TokenRequest$=Wt;n.CreateOAuth2TokenRequestBody$=qt;n.CreateOAuth2TokenResponse$=jt;n.CreateOAuth2TokenResponseBody$=zt;n.CreateOAuth2TokenWithIAM$=er;n.CreateOAuth2TokenWithIAMCommand=CreateOAuth2TokenWithIAMCommand;n.CreateOAuth2TokenWithIAMRequest$=Kt;n.CreateOAuth2TokenWithIAMResponse$=Zt;n.InternalServerException=InternalServerException;n.InternalServerException$=Ot;n.OAuth2ErrorCode=ir;n.Signin=Signin;n.SigninClient=SigninClient;n.SigninServiceException=SigninServiceException;n.SigninServiceException$=Pt;n.TooManyRequestsError=TooManyRequestsError;n.TooManyRequestsError$=Ht;n.ValidationException=ValidationException;n.ValidationException$=$t;n.errorTypeRegistries=Vt},9443:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:c,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C}=i(5152);const{NoAuthSigner:I,getHttpAuthSchemeEndpointRuleSetPlugin:y,DefaultIdentityProviderConfig:B,getHttpSigningPlugin:Q}=i(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:b,NoOpLogger:R,emitWarningIfUnsupportedVersion:v,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:D,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:M,createAggregatedClient:F}=i(2658);const{Command:x}=i(2658);n.$Command=x;n.__Client=N;const{resolveDefaultsModeConfig:U,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_FILE_OPTIONS:$,resolveRegionConfig:V}=i(7291);const{BinaryDecisionDiagram:G,EndpointCache:Y,decideEndpoint:J,customEndpointFunctions:W,resolveEndpointConfig:q,getEndpointPlugin:j}=i(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:K,resolveHttpHandlerRuntimeConfig:Z,getContentLengthPlugin:X}=i(3422);const{DEFAULT_RETRY_MODE:ee,NODE_RETRY_MODE_CONFIG_OPTIONS:te,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:ne,getRetryPlugin:se}=i(3609);const{TypeRegistry:oe,getSchemaSerdePlugin:ie}=i(6890);const{resolveAwsSdkSigV4Config:ae,AwsSdkSigV4Signer:ce,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ae}=i(7523);const{toUtf8:le,fromUtf8:ue,toBase64:de,fromBase64:he,calculateBodyLength:fe}=i(2430);const{streamCollector:ge,NodeHttpHandler:pe}=i(1279);const{AwsRestJsonProtocol:me}=i(7288);const{Sha256:Ee}=i(9542);const defaultSSOOIDCHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSSOOIDCHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"CreateToken":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ae(t);return Object.assign(n,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"sso-oauth"});const Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ie="3.997.37";var ye={version:Ie};const Be="ref";const Qe=-1,we=true,Se="isSet",be="PartitionResult",Re="booleanEquals",ve="getAttr",ke={[Be]:"Endpoint"},De={[Be]:be},Te={},Ne=[{[Be]:"Region"}];const Me={conditions:[[Se,[ke]],[Se,Ne],["aws.partition",Ne,be],[Re,[{[Be]:"UseFIPS"},we]],[Re,[{[Be]:"UseDualStack"},we]],[Re,[{fn:ve,argv:[De,"supportsDualStack"]},we]],[Re,[{fn:ve,argv:[De,"supportsFIPS"]},we]],["stringEquals",[{fn:ve,argv:[De,"name"]},"aws-us-gov"]]],results:[[Qe],[Qe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ke,Te],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Te],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"Invalid Configuration: Missing Region"]]};const Fe=2;const xe=1e8;const Ue=new Int32Array([-1,1,-1,0,13,3,1,4,xe+12,2,5,xe+12,3,8,6,4,7,xe+11,5,xe+9,xe+10,4,11,9,6,10,xe+8,7,xe+6,xe+7,5,12,xe+5,6,xe+4,xe+5,3,xe+1,14,4,xe+2,xe+3]);const Pe=G.from(Ue,Fe,Me.conditions,Me.results);const Le=new Y({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Le.get(t,()=>J(Pe,{endpointParams:t,logger:n.logger}));W.aws=a;class SSOOIDCServiceException extends b{constructor(t){super(t);Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}class AccessDeniedException extends SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t});Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=t.error;this.reason=t.reason;this.error_description=t.error_description}}class AuthorizationPendingException extends SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t});Object.setPrototypeOf(this,AuthorizationPendingException.prototype);this.error=t.error;this.error_description=t.error_description}}class ExpiredTokenException extends SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype);this.error=t.error;this.error_description=t.error_description}}class InternalServerException extends SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(t){super({name:"InternalServerException",$fault:"server",...t});Object.setPrototypeOf(this,InternalServerException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidClientException extends SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(t){super({name:"InvalidClientException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidClientException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidGrantException extends SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(t){super({name:"InvalidGrantException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidGrantException.prototype);this.error=t.error;this.error_description=t.error_description}}class InvalidRequestException extends SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidRequestException.prototype);this.error=t.error;this.reason=t.reason;this.error_description=t.error_description}}class InvalidScopeException extends SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(t){super({name:"InvalidScopeException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidScopeException.prototype);this.error=t.error;this.error_description=t.error_description}}class SlowDownException extends SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(t){super({name:"SlowDownException",$fault:"client",...t});Object.setPrototypeOf(this,SlowDownException.prototype);this.error=t.error;this.error_description=t.error_description}}class UnauthorizedClientException extends SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t});Object.setPrototypeOf(this,UnauthorizedClientException.prototype);this.error=t.error;this.error_description=t.error_description}}class UnsupportedGrantTypeException extends SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t});Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype);this.error=t.error;this.error_description=t.error_description}}const _e="AccessDeniedException";const Oe="AuthorizationPendingException";const He="AccessToken";const $e="ClientSecret";const Ve="CreateToken";const Ge="CreateTokenRequest";const Ye="CreateTokenResponse";const Je="CodeVerifier";const We="ExpiredTokenException";const qe="InvalidClientException";const je="InvalidGrantException";const ze="InvalidRequestException";const Ke="InternalServerException";const Ze="InvalidScopeException";const Xe="IdToken";const et="RefreshToken";const tt="SlowDownException";const rt="UnauthorizedClientException";const nt="UnsupportedGrantTypeException";const st="accessToken";const ot="client";const it="clientId";const at="clientSecret";const ct="codeVerifier";const At="code";const lt="deviceCode";const ut="error";const dt="expiresIn";const ht="error_description";const ft="grantType";const gt="http";const pt="httpError";const mt="idToken";const Et="reason";const Ct="refreshToken";const It="redirectUri";const yt="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";const Bt="scope";const Qt="server";const wt="tokenType";const St="com.amazonaws.ssooidc";const bt=oe.for(yt);var Rt=[-3,yt,"SSOOIDCServiceException",0,[],[]];bt.registerError(Rt,SSOOIDCServiceException);const vt=oe.for(St);var kt=[-3,St,_e,{[ut]:ot,[pt]:400},[ut,Et,ht],[0,0,0]];vt.registerError(kt,AccessDeniedException);var Dt=[-3,St,Oe,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Dt,AuthorizationPendingException);var Tt=[-3,St,We,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Tt,ExpiredTokenException);var Nt=[-3,St,Ke,{[ut]:Qt,[pt]:500},[ut,ht],[0,0]];vt.registerError(Nt,InternalServerException);var Mt=[-3,St,qe,{[ut]:ot,[pt]:401},[ut,ht],[0,0]];vt.registerError(Mt,InvalidClientException);var Ft=[-3,St,je,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Ft,InvalidGrantException);var xt=[-3,St,ze,{[ut]:ot,[pt]:400},[ut,Et,ht],[0,0,0]];vt.registerError(xt,InvalidRequestException);var Ut=[-3,St,Ze,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Ut,InvalidScopeException);var Pt=[-3,St,tt,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Pt,SlowDownException);var Lt=[-3,St,rt,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(Lt,UnauthorizedClientException);var _t=[-3,St,nt,{[ut]:ot,[pt]:400},[ut,ht],[0,0]];vt.registerError(_t,UnsupportedGrantTypeException);const Ot=[bt,vt];var Ht=[0,St,He,8,0];var $t=[0,St,$e,8,0];var Vt=[0,St,Je,8,0];var Gt=[0,St,Xe,8,0];var Yt=[0,St,et,8,0];var Jt=[3,St,Ge,0,[it,at,ft,lt,At,Ct,Bt,It,ct],[0,[()=>$t,0],0,0,0,[()=>Yt,0],64|0,0,[()=>Vt,0]],3];var Wt=[3,St,Ye,0,[st,wt,dt,Ct,mt],[[()=>Ht,0],0,1,[()=>Yt,0],[()=>Gt,0]]];var qt=[9,St,Ve,{[gt]:["POST","/token",200]},()=>Jt,()=>Wt];const getRuntimeConfig$1=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??he,base64Encoder:t?.base64Encoder??de,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ce},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new I}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Ot,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ue,utf8Encoder:t?.utf8Encoder??le});const getRuntimeConfig=t=>{v(process.version);const n=U(t);const defaultConfigProvider=()=>n().then(k);const i=getRuntimeConfig$1(t);c(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(Ae,a),bodyLengthChecker:t?.bodyLengthChecker??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:i.serviceId,clientVersion:ye.version}),maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(H,{...$,...a}),requestHandler:pe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...te,default:async()=>(await defaultConfigProvider()).retryMode||ee},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??P(O,a),useFipsEndpoint:t?.useFipsEndpoint??P(L,a),userAgentAppId:t?.userAgentAppId??P(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),D(t),K(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),T(i),Z(i),resolveHttpAuthRuntimeConfig(i))};class SSOOIDCClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const c=ne(a);const A=V(c);const l=g(A);const d=q(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ie(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(se(this.config));this.middlewareStack.use(X(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(y(this.config,{httpAuthSchemeParametersProvider:defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new B({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(Q(this.config))}destroy(){super.destroy()}}const jt=M(Ce,"AWSSSOOIDCService","SSOOIDCClient",j);const zt={};const _mw0=(t,n,i,a)=>[];class CreateTokenCommand extends(jt(zt,_mw0,"CreateToken",qt)){}const Kt={CreateTokenCommand:CreateTokenCommand};class SSOOIDC extends SSOOIDCClient{}F(Kt,SSOOIDC);const Zt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"};const Xt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};n.AccessDeniedException=AccessDeniedException;n.AccessDeniedException$=kt;n.AccessDeniedExceptionReason=Zt;n.AuthorizationPendingException=AuthorizationPendingException;n.AuthorizationPendingException$=Dt;n.CreateToken$=qt;n.CreateTokenCommand=CreateTokenCommand;n.CreateTokenRequest$=Jt;n.CreateTokenResponse$=Wt;n.ExpiredTokenException=ExpiredTokenException;n.ExpiredTokenException$=Tt;n.InternalServerException=InternalServerException;n.InternalServerException$=Nt;n.InvalidClientException=InvalidClientException;n.InvalidClientException$=Mt;n.InvalidGrantException=InvalidGrantException;n.InvalidGrantException$=Ft;n.InvalidRequestException=InvalidRequestException;n.InvalidRequestException$=xt;n.InvalidRequestExceptionReason=Xt;n.InvalidScopeException=InvalidScopeException;n.InvalidScopeException$=Ut;n.SSOOIDC=SSOOIDC;n.SSOOIDCClient=SSOOIDCClient;n.SSOOIDCServiceException=SSOOIDCServiceException;n.SSOOIDCServiceException$=Rt;n.SlowDownException=SlowDownException;n.SlowDownException$=Pt;n.UnauthorizedClientException=UnauthorizedClientException;n.UnauthorizedClientException$=Lt;n.UnsupportedGrantTypeException=UnsupportedGrantTypeException;n.UnsupportedGrantTypeException$=_t;n.errorTypeRegistries=Ot},2579:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:c,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C}=i(5152);const{NoAuthSigner:I,getHttpAuthSchemeEndpointRuleSetPlugin:y,DefaultIdentityProviderConfig:B,getHttpSigningPlugin:Q}=i(402);const{normalizeProvider:w,getSmithyContext:S,ServiceException:b,NoOpLogger:R,emitWarningIfUnsupportedVersion:v,loadConfigsForDefaultMode:k,getDefaultExtensionConfiguration:D,resolveDefaultRuntimeConfig:T,Client:N,makeBuilder:M,createAggregatedClient:F}=i(2658);const{Command:x}=i(2658);n.$Command=x;n.__Client=N;const{resolveDefaultsModeConfig:U,loadConfig:P,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:L,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:O,NODE_REGION_CONFIG_OPTIONS:H,NODE_REGION_CONFIG_FILE_OPTIONS:$,resolveRegionConfig:V}=i(7291);const{BinaryDecisionDiagram:G,EndpointCache:Y,decideEndpoint:J,customEndpointFunctions:W,resolveEndpointConfig:q,getEndpointPlugin:j}=i(2085);const{parseUrl:z,getHttpHandlerExtensionConfiguration:K,resolveHttpHandlerRuntimeConfig:Z,getContentLengthPlugin:X}=i(3422);const{DEFAULT_RETRY_MODE:ee,NODE_RETRY_MODE_CONFIG_OPTIONS:te,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:re,resolveRetryConfig:ne,getRetryPlugin:se}=i(3609);const{TypeRegistry:oe,getSchemaSerdePlugin:ie}=i(6890);const{resolveAwsSdkSigV4Config:ae,AwsSdkSigV4Signer:ce,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ae}=i(7523);const{toUtf8:le,fromUtf8:ue,toBase64:de,fromBase64:he,calculateBodyLength:fe}=i(2430);const{streamCollector:ge,NodeHttpHandler:pe}=i(1279);const{AwsRestJsonProtocol:me}=i(7288);const{Sha256:Ee}=i(9542);const defaultSSOHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:S(n).operation,region:await w(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const defaultSSOHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"GetRoleCredentials":{n.push(createSmithyApiNoAuthHttpAuthOption());break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t))}}return n};const resolveHttpAuthSchemeConfig=t=>{const n=ae(t);return Object.assign(n,{authSchemePreference:w(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});const Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ie="3.997.37";var ye={version:Ie};const Be="ref";const Qe=-1,we=true,Se="isSet",be="PartitionResult",Re="booleanEquals",ve="getAttr",ke={[Be]:"Endpoint"},De={[Be]:be},Te={},Ne=[{[Be]:"Region"}];const Me={conditions:[[Se,[ke]],[Se,Ne],["aws.partition",Ne,be],[Re,[{[Be]:"UseFIPS"},we]],[Re,[{[Be]:"UseDualStack"},we]],[Re,[{fn:ve,argv:[De,"supportsDualStack"]},we]],[Re,[{fn:ve,argv:[De,"supportsFIPS"]},we]],["stringEquals",[{fn:ve,argv:[De,"name"]},"aws-us-gov"]]],results:[[Qe],[Qe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ke,Te],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Te],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Te],[Qe,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Te],[Qe,"Invalid Configuration: Missing Region"]]};const Fe=2;const xe=1e8;const Ue=new Int32Array([-1,1,-1,0,13,3,1,4,xe+12,2,5,xe+12,3,8,6,4,7,xe+11,5,xe+9,xe+10,4,11,9,6,10,xe+8,7,xe+6,xe+7,5,12,xe+5,6,xe+4,xe+5,3,xe+1,14,4,xe+2,xe+3]);const Pe=G.from(Ue,Fe,Me.conditions,Me.results);const Le=new Y({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(t,n={})=>Le.get(t,()=>J(Pe,{endpointParams:t,logger:n.logger}));W.aws=a;class SSOServiceException extends b{constructor(t){super(t);Object.setPrototypeOf(this,SSOServiceException.prototype)}}class InvalidRequestException extends SSOServiceException{name="InvalidRequestException";$fault="client";constructor(t){super({name:"InvalidRequestException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidRequestException.prototype)}}class ResourceNotFoundException extends SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}class TooManyRequestsException extends SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t});Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}class UnauthorizedException extends SSOServiceException{name="UnauthorizedException";$fault="client";constructor(t){super({name:"UnauthorizedException",$fault:"client",...t});Object.setPrototypeOf(this,UnauthorizedException.prototype)}}const _e="AccessTokenType";const Oe="GetRoleCredentials";const He="GetRoleCredentialsRequest";const $e="GetRoleCredentialsResponse";const Ve="InvalidRequestException";const Ge="RoleCredentials";const Ye="ResourceNotFoundException";const Je="SecretAccessKeyType";const We="SessionTokenType";const qe="TooManyRequestsException";const je="UnauthorizedException";const ze="accountId";const Ke="accessKeyId";const Ze="accessToken";const Xe="account_id";const et="client";const tt="error";const rt="expiration";const nt="http";const st="httpError";const ot="httpHeader";const it="httpQuery";const at="message";const ct="roleCredentials";const At="roleName";const lt="role_name";const ut="smithy.ts.sdk.synthetic.com.amazonaws.sso";const dt="secretAccessKey";const ht="sessionToken";const ft="x-amz-sso_bearer_token";const gt="com.amazonaws.sso";const pt=oe.for(ut);var mt=[-3,ut,"SSOServiceException",0,[],[]];pt.registerError(mt,SSOServiceException);const Et=oe.for(gt);var Ct=[-3,gt,Ve,{[tt]:et,[st]:400},[at],[0]];Et.registerError(Ct,InvalidRequestException);var It=[-3,gt,Ye,{[tt]:et,[st]:404},[at],[0]];Et.registerError(It,ResourceNotFoundException);var yt=[-3,gt,qe,{[tt]:et,[st]:429},[at],[0]];Et.registerError(yt,TooManyRequestsException);var Bt=[-3,gt,je,{[tt]:et,[st]:401},[at],[0]];Et.registerError(Bt,UnauthorizedException);const Qt=[pt,Et];var wt=[0,gt,_e,8,0];var St=[0,gt,Je,8,0];var bt=[0,gt,We,8,0];var Rt=[3,gt,He,0,[At,ze,Ze],[[0,{[it]:lt}],[0,{[it]:Xe}],[()=>wt,{[ot]:ft}]],3];var vt=[3,gt,$e,0,[ct],[[()=>kt,0]]];var kt=[3,gt,Ge,0,[Ke,dt,ht,rt],[0,[()=>St,0],[()=>bt,0],1]];var Dt=[9,gt,Oe,{[nt]:["GET","/federation/credentials",200]},()=>Rt,()=>vt];const getRuntimeConfig$1=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??he,base64Encoder:t?.base64Encoder??de,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ce},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new I}],logger:t?.logger??new R,protocol:t?.protocol??me,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Qt,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Ee,urlParser:t?.urlParser??z,utf8Decoder:t?.utf8Decoder??ue,utf8Encoder:t?.utf8Encoder??le});const getRuntimeConfig=t=>{v(process.version);const n=U(t);const defaultConfigProvider=()=>n().then(k);const i=getRuntimeConfig$1(t);c(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??P(Ae,a),bodyLengthChecker:t?.bodyLengthChecker??fe,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:i.serviceId,clientVersion:ye.version}),maxAttempts:t?.maxAttempts??P(re,t),region:t?.region??P(H,{...$,...a}),requestHandler:pe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??P({...te,default:async()=>(await defaultConfigProvider()).retryMode||ee},t),streamCollector:t?.streamCollector??ge,useDualstackEndpoint:t?.useDualstackEndpoint??P(O,a),useFipsEndpoint:t?.useFipsEndpoint??P(L,a),userAgentAppId:t?.userAgentAppId??P(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),D(t),K(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),T(i),Z(i),resolveHttpAuthRuntimeConfig(i))};class SSOClient extends N{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const c=ne(a);const A=V(c);const l=g(A);const d=q(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(ie(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(se(this.config));this.middlewareStack.use(X(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(y(this.config,{httpAuthSchemeParametersProvider:defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async t=>new B({"aws.auth#sigv4":t.credentials})}));this.middlewareStack.use(Q(this.config))}destroy(){super.destroy()}}const Tt=M(Ce,"SWBPortalService","SSOClient",j);const Nt={};const _mw0=(t,n,i,a)=>[];class GetRoleCredentialsCommand extends(Tt(Nt,_mw0,"GetRoleCredentials",Dt)){}const Mt={GetRoleCredentialsCommand:GetRoleCredentialsCommand};class SSO extends SSOClient{}F(Mt,SSO);n.GetRoleCredentials$=Dt;n.GetRoleCredentialsCommand=GetRoleCredentialsCommand;n.GetRoleCredentialsRequest$=Rt;n.GetRoleCredentialsResponse$=vt;n.InvalidRequestException=InvalidRequestException;n.InvalidRequestException$=Ct;n.ResourceNotFoundException=ResourceNotFoundException;n.ResourceNotFoundException$=It;n.RoleCredentials$=kt;n.SSO=SSO;n.SSOClient=SSOClient;n.SSOServiceException=SSOServiceException;n.SSOServiceException$=mt;n.TooManyRequestsException=TooManyRequestsException;n.TooManyRequestsException$=yt;n.UnauthorizedException=UnauthorizedException;n.UnauthorizedException$=Bt;n.errorTypeRegistries=Qt},1136:(t,n,i)=>{const{awsEndpointFunctions:a,emitWarningIfUnsupportedVersion:c,createDefaultUserAgentProvider:A,NODE_APP_ID_CONFIG_OPTIONS:l,getAwsRegionExtensionConfiguration:d,resolveAwsRegionExtensionConfiguration:h,resolveUserAgentConfig:f,resolveHostHeaderConfig:g,getUserAgentPlugin:p,getHostHeaderPlugin:m,getLoggerPlugin:E,getRecursionDetectionPlugin:C,setCredentialFeature:I,stsRegionDefaultResolver:y}=i(5152);const{NoAuthSigner:B,getHttpAuthSchemeEndpointRuleSetPlugin:Q,DefaultIdentityProviderConfig:w,getHttpSigningPlugin:S}=i(402);const{normalizeProvider:b,getSmithyContext:R,ServiceException:v,NoOpLogger:k,emitWarningIfUnsupportedVersion:D,loadConfigsForDefaultMode:T,getDefaultExtensionConfiguration:N,resolveDefaultRuntimeConfig:M,Client:F,makeBuilder:x,createAggregatedClient:U}=i(2658);const{Command:P}=i(2658);n.$Command=P;n.__Client=F;const{resolveDefaultsModeConfig:L,loadConfig:O,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:H,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:$,NODE_REGION_CONFIG_OPTIONS:V,NODE_REGION_CONFIG_FILE_OPTIONS:G,resolveRegionConfig:Y}=i(7291);const{BinaryDecisionDiagram:J,EndpointCache:W,decideEndpoint:q,customEndpointFunctions:j,resolveParams:z,resolveEndpointConfig:K,getEndpointPlugin:Z}=i(2085);const{parseUrl:X,getHttpHandlerExtensionConfiguration:ee,resolveHttpHandlerRuntimeConfig:te,getContentLengthPlugin:re}=i(3422);const{DEFAULT_RETRY_MODE:ne,NODE_RETRY_MODE_CONFIG_OPTIONS:se,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:oe,resolveRetryConfig:ie,getRetryPlugin:ae}=i(3609);const{TypeRegistry:ce,getSchemaSerdePlugin:Ae}=i(6890);const{resolveAwsSdkSigV4Config:le,resolveAwsSdkSigV4AConfig:ue,AwsSdkSigV4Signer:de,AwsSdkSigV4ASigner:he,NODE_SIGV4A_CONFIG_OPTIONS:fe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ge}=i(7523);const{SignatureV4MultiRegion:pe}=i(5785);const{toUtf8:me,fromUtf8:Ee,toBase64:Ce,fromBase64:Ie,calculateBodyLength:ye}=i(2430);const{streamCollector:Be,NodeHttpHandler:Qe}=i(1279);const{AwsQueryProtocol:we}=i(7288);const{Sha256:Se}=i(9542);const be="ref";const Re=-1,ve=true,ke="isSet",De="PartitionResult",Te="booleanEquals",Ne="stringEquals",Me="getAttr",Fe="us-east-1",xe="sigv4",Ue="sts",Pe="https://sts.{Region}.{PartitionResult#dnsSuffix}",Le={[be]:"Endpoint"},_e={[be]:"Region"},Oe={[be]:De},He={},$e=[_e];const Ve={conditions:[[ke,[Le]],[ke,$e],["aws.partition",$e,De],[Te,[{[be]:"UseFIPS"},ve]],[Te,[{[be]:"UseDualStack"},ve]],[Ne,[_e,"aws-global"]],[Te,[{[be]:"UseGlobalEndpoint"},ve]],[Ne,[_e,"eu-central-1"]],[Te,[{fn:Me,argv:[Oe,"supportsDualStack"]},ve]],[Te,[{fn:Me,argv:[Oe,"supportsFIPS"]},ve]],[Ne,[_e,"ap-south-1"]],[Ne,[_e,"eu-north-1"]],[Ne,[_e,"eu-west-1"]],[Ne,[_e,"eu-west-2"]],[Ne,[_e,"eu-west-3"]],[Ne,[_e,"sa-east-1"]],[Ne,[_e,Fe]],[Ne,[_e,"us-east-2"]],[Ne,[_e,"us-west-2"]],[Ne,[_e,"us-west-1"]],[Ne,[_e,"ca-central-1"]],[Ne,[_e,"ap-southeast-1"]],[Ne,[_e,"ap-northeast-1"]],[Ne,[_e,"ap-southeast-2"]],[Ne,[{fn:Me,argv:[Oe,"name"]},"aws-us-gov"]]],results:[[Re],["https://sts.amazonaws.com",{authSchemes:[{name:xe,signingName:Ue,signingRegion:Fe}]}],[Pe,{authSchemes:[{name:xe,signingName:Ue,signingRegion:"{Region}"}]}],[Re,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Re,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Le,He],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",He],[Re,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",He],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",He],[Re,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",He],[Re,"DualStack is enabled but this partition does not support DualStack"],[Pe,He],[Re,"Invalid Configuration: Missing Region"]]};const Ge=2;const Ye=1e8;const Je=new Int32Array([-1,1,-1,0,30,3,1,4,Ye+14,2,5,Ye+14,3,25,6,4,24,7,5,Ye+1,8,6,9,Ye+13,7,Ye+1,10,10,Ye+1,11,11,Ye+1,12,12,Ye+1,13,13,Ye+1,14,14,Ye+1,15,15,Ye+1,16,16,Ye+1,17,17,Ye+1,18,18,Ye+1,19,19,Ye+1,20,20,Ye+1,21,21,Ye+1,22,22,Ye+1,23,23,Ye+1,Ye+2,8,Ye+11,Ye+12,4,28,26,9,27,Ye+10,24,Ye+8,Ye+9,8,29,Ye+7,9,Ye+6,Ye+7,3,Ye+3,31,4,Ye+4,Ye+5]);const We=J.from(Je,Ge,Ve.conditions,Ve.results);const qe=new W({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(t,n={})=>qe.get(t,()=>q(We,{endpointParams:t,logger:n.logger}));j.aws=a;const createEndpointRuleSetHttpAuthSchemeParametersProvider=t=>async(n,i,a)=>{if(!a){throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`")}const c=await t(n,i,a);const A=R(i)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!A){throw new Error(`getEndpointParameterInstructions() is not defined on '${i.commandName}'`)}const l=await z(a,{getEndpointParameterInstructions:A},n);return Object.assign(c,l)};const _defaultSTSHttpAuthSchemeParametersProvider=async(t,n,i)=>({operation:R(n).operation,region:await b(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const je=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createAwsAuthSigv4aHttpAuthOption(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function createSmithyApiNoAuthHttpAuthOption(t){return{schemeId:"smithy.api#noAuth"}}const createEndpointRuleSetHttpAuthSchemeProvider=(t,n,i)=>{const endpointRuleSetHttpAuthSchemeProvider=a=>{const c=t(a);const A=c.properties?.authSchemes;if(!A){return n(a)}const l=[];for(const t of A){const{name:n,properties:c={},...d}=t;const h=n.toLowerCase();if(n!==h){console.warn(`HttpAuthScheme has been normalized with lowercasing: '${n}' to '${h}'`)}let f;if(h==="sigv4a"){f="aws.auth#sigv4a";const t=A.find(t=>{const n=t.name.toLowerCase();return n!=="sigv4a"&&n.startsWith("sigv4")});if(pe.sigv4aDependency()==="none"&&t){continue}}else if(h.startsWith("sigv4")){f="aws.auth#sigv4"}else{throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${h}'`)}const g=i[f];if(!g){throw new Error(`Could not find HttpAuthOption create function for '${f}'`)}const p=g(a);p.schemeId=f;p.signingProperties={...p.signingProperties||{},...d,...c};l.push(p)}return l};return endpointRuleSetHttpAuthSchemeProvider};const _defaultSTSHttpAuthSchemeProvider=t=>{const n=[];switch(t.operation){case"AssumeRoleWithWebIdentity":{n.push(createSmithyApiNoAuthHttpAuthOption());n.push(createAwsAuthSigv4aHttpAuthOption(t));break}default:{n.push(createAwsAuthSigv4HttpAuthOption(t));n.push(createAwsAuthSigv4aHttpAuthOption(t))}}return n};const ze=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultSTSHttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption,"smithy.api#noAuth":createSmithyApiNoAuthHttpAuthOption});const resolveHttpAuthSchemeConfig=t=>{const n=le(t);const i=ue(n);return Object.assign(i,{authSchemePreference:b(t.authSchemePreference??[])})};const resolveClientEndpointParameters=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??false,useFipsEndpoint:t.useFipsEndpoint??false,useGlobalEndpoint:t.useGlobalEndpoint??false,defaultSigningName:"sts"});const Ke={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Ze="3.997.37";var Xe={version:Ze};class STSServiceException extends v{constructor(t){super(t);Object.setPrototypeOf(this,STSServiceException.prototype)}}class ExpiredTokenException extends STSServiceException{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t});Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t});Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t});Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends STSServiceException{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t});Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t});Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t});Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t});Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}const et="Arn";const tt="AccessKeyId";const rt="AssumeRole";const nt="AssumedRoleId";const st="AssumeRoleRequest";const ot="AssumeRoleResponse";const it="AssumedRoleUser";const at="AssumeRoleWithWebIdentity";const ct="AssumeRoleWithWebIdentityRequest";const At="AssumeRoleWithWebIdentityResponse";const lt="Audience";const ut="Credentials";const dt="ContextAssertion";const ht="DurationSeconds";const ft="Expiration";const gt="ExternalId";const pt="ExpiredTokenException";const mt="IDPCommunicationErrorException";const Et="IDPRejectedClaimException";const Ct="InvalidIdentityTokenException";const It="Key";const yt="MalformedPolicyDocumentException";const Bt="Policy";const Qt="PolicyArns";const wt="ProviderArn";const St="ProvidedContexts";const bt="ProvidedContextsListType";const Rt="ProvidedContext";const vt="PolicyDescriptorType";const kt="ProviderId";const Dt="PackedPolicySize";const Tt="PackedPolicyTooLargeException";const Nt="Provider";const Mt="RoleArn";const Ft="RegionDisabledException";const xt="RoleSessionName";const Ut="SecretAccessKey";const Pt="SubjectFromWebIdentityToken";const Lt="SourceIdentity";const _t="SerialNumber";const Ot="SessionToken";const Ht="Tags";const $t="TokenCode";const Vt="TransitiveTagKeys";const Gt="Tag";const Yt="Value";const Jt="WebIdentityToken";const Wt="arn";const qt="accessKeySecretType";const jt="awsQueryError";const zt="client";const Kt="clientTokenType";const Zt="error";const Xt="httpError";const er="message";const tr="policyDescriptorListType";const rr="smithy.ts.sdk.synthetic.com.amazonaws.sts";const nr="tagListType";const sr="com.amazonaws.sts";const ir=ce.for(rr);var ar=[-3,rr,"STSServiceException",0,[],[]];ir.registerError(ar,STSServiceException);const cr=ce.for(sr);var Ar=[-3,sr,pt,{[jt]:[`ExpiredTokenException`,400],[Zt]:zt,[Xt]:400},[er],[0]];cr.registerError(Ar,ExpiredTokenException);var lr=[-3,sr,mt,{[jt]:[`IDPCommunicationError`,400],[Zt]:zt,[Xt]:400},[er],[0]];cr.registerError(lr,IDPCommunicationErrorException);var ur=[-3,sr,Et,{[jt]:[`IDPRejectedClaim`,403],[Zt]:zt,[Xt]:403},[er],[0]];cr.registerError(ur,IDPRejectedClaimException);var dr=[-3,sr,Ct,{[jt]:[`InvalidIdentityToken`,400],[Zt]:zt,[Xt]:400},[er],[0]];cr.registerError(dr,InvalidIdentityTokenException);var hr=[-3,sr,yt,{[jt]:[`MalformedPolicyDocument`,400],[Zt]:zt,[Xt]:400},[er],[0]];cr.registerError(hr,MalformedPolicyDocumentException);var fr=[-3,sr,Tt,{[jt]:[`PackedPolicyTooLarge`,400],[Zt]:zt,[Xt]:400},[er],[0]];cr.registerError(fr,PackedPolicyTooLargeException);var gr=[-3,sr,Ft,{[jt]:[`RegionDisabledException`,403],[Zt]:zt,[Xt]:403},[er],[0]];cr.registerError(gr,RegionDisabledException);const pr=[ir,cr];var mr=[0,sr,qt,8,0];var Er=[0,sr,Kt,8,0];var Cr=[3,sr,it,0,[nt,et],[0,0],2];var Ir=[3,sr,st,0,[Mt,xt,Qt,Bt,ht,Ht,Vt,gt,_t,$t,Lt,St],[0,0,()=>vr,0,1,()=>Dr,64|0,0,0,0,0,()=>kr],2];var yr=[3,sr,ot,0,[ut,it,Dt,Lt],[[()=>wr,0],()=>Cr,1,0]];var Br=[3,sr,ct,0,[Mt,xt,Jt,kt,Qt,Bt,ht],[0,0,[()=>Er,0],0,()=>vr,0,1],3];var Qr=[3,sr,At,0,[ut,Pt,it,Dt,Nt,lt,Lt],[[()=>wr,0],0,()=>Cr,1,0,0,0]];var wr=[3,sr,ut,0,[tt,Ut,Ot,ft],[0,[()=>mr,0],0,4],4];var Sr=[3,sr,vt,0,[Wt],[0]];var br=[3,sr,Rt,0,[wt,dt],[0,0]];var Rr=[3,sr,Gt,0,[It,Yt],[0,0],2];var vr=[1,sr,tr,0,()=>Sr];var kr=[1,sr,bt,0,()=>br];var Dr=[1,sr,nr,0,()=>Rr];var Tr=[9,sr,rt,0,()=>Ir,()=>yr];var Nr=[9,sr,at,0,()=>Br,()=>Qr];const getRuntimeConfig$1=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Ie,base64Encoder:t?.base64Encoder??Ce,disableHostPrefix:t?.disableHostPrefix??false,endpointProvider:t?.endpointProvider??defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??ze,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new de},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new he},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new B}],logger:t?.logger??new k,protocol:t?.protocol??we,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:pr,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Se,signerConstructor:t?.signerConstructor??pe,urlParser:t?.urlParser??X,utf8Decoder:t?.utf8Decoder??Ee,utf8Encoder:t?.utf8Encoder??me});const getRuntimeConfig=t=>{D(process.version);const n=L(t);const defaultConfigProvider=()=>n().then(T);const i=getRuntimeConfig$1(t);c(process.version);const a={profile:t?.profile,logger:i.logger};return{...i,...t,runtime:"node",defaultsMode:n,authSchemePreference:t?.authSchemePreference??O(ge,a),bodyLengthChecker:t?.bodyLengthChecker??ye,defaultUserAgentProvider:t?.defaultUserAgentProvider??A({serviceId:i.serviceId,clientVersion:Xe.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n=>n.getIdentityProvider("aws.auth#sigv4")||(async n=>await t.credentialDefaultProvider(n?.__config||{})()),signer:new de},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new he},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new B}],maxAttempts:t?.maxAttempts??O(oe,t),region:t?.region??O(V,{...G,...a}),requestHandler:Qe.create(t?.requestHandler??defaultConfigProvider),retryMode:t?.retryMode??O({...se,default:async()=>(await defaultConfigProvider()).retryMode||ne},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??O(fe,a),streamCollector:t?.streamCollector??Be,useDualstackEndpoint:t?.useDualstackEndpoint??O($,a),useFipsEndpoint:t?.useFipsEndpoint??O(H,a),userAgentAppId:t?.userAgentAppId??O(l,a)}};const getHttpAuthExtensionConfiguration=t=>{const n=t.httpAuthSchemes;let i=t.httpAuthSchemeProvider;let a=t.credentials;return{setHttpAuthScheme(t){const i=n.findIndex(n=>n.schemeId===t.schemeId);if(i===-1){n.push(t)}else{n.splice(i,1,t)}},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(t){i=t},httpAuthSchemeProvider(){return i},setCredentials(t){a=t},credentials(){return a}}};const resolveHttpAuthRuntimeConfig=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()});const resolveRuntimeExtensions=(t,n)=>{const i=Object.assign(d(t),N(t),ee(t),getHttpAuthExtensionConfiguration(t));n.forEach(t=>t.configure(i));return Object.assign(t,h(i),M(i),te(i),resolveHttpAuthRuntimeConfig(i))};class STSClient extends F{config;constructor(...[t]){const n=getRuntimeConfig(t||{});super(n);this.initConfig=n;const i=resolveClientEndpointParameters(n);const a=f(i);const c=ie(a);const A=Y(c);const l=g(A);const d=K(l);const h=resolveHttpAuthSchemeConfig(d);const I=resolveRuntimeExtensions(h,t?.extensions||[]);this.config=I;this.middlewareStack.use(Ae(this.config));this.middlewareStack.use(p(this.config));this.middlewareStack.use(ae(this.config));this.middlewareStack.use(re(this.config));this.middlewareStack.use(m(this.config));this.middlewareStack.use(E(this.config));this.middlewareStack.use(C(this.config));this.middlewareStack.use(Q(this.config,{httpAuthSchemeParametersProvider:je,identityProviderConfigProvider:async t=>new w({"aws.auth#sigv4":t.credentials,"aws.auth#sigv4a":t.credentials})}));this.middlewareStack.use(S(this.config))}destroy(){super.destroy()}}const Mr=x(Ke,"AWSSecurityTokenServiceV20110615","STSClient",Z);const Fr={};const _mw0=(t,n,i,a)=>[];class AssumeRoleCommand extends(Mr(Fr,_mw0,"AssumeRole",Tr)){}class AssumeRoleWithWebIdentityCommand extends(Mr(Fr,_mw0,"AssumeRoleWithWebIdentity",Nr)){}const xr={AssumeRoleCommand:AssumeRoleCommand,AssumeRoleWithWebIdentityCommand:AssumeRoleWithWebIdentityCommand};class STS extends STSClient{}U(xr,STS);const getAccountIdFromAssumedRoleUser=t=>{if(typeof t?.Arn==="string"){const n=t.Arn.split(":");if(n.length>4&&n[4]!==""){return n[4]}}return undefined};const resolveRegion=async(t,n,i,a={})=>{const c=typeof t==="function"?await t():t;const A=typeof n==="function"?await n():n;let l="";const d=c??A??(l=await y(a)());i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${c} (credential provider clientConfig)`,`${A} (contextual client)`,`${l} (STS default: AWS_REGION, profile region, or us-east-1)`);return d};const getDefaultRoleAssumer$1=(t,n)=>{let i;let a;return async(c,A)=>{a=c;if(!i){const{logger:c=t?.parentClientConfig?.logger,profile:A=t?.parentClientConfig?.profile,region:l,requestHandler:d=t?.parentClientConfig?.requestHandler,credentialProviderLogger:h,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t;const g=await resolveRegion(l,t?.parentClientConfig?.region,h,{logger:c,profile:A});const p=!isH2(d);i=new n({...t,userAgentAppId:f,profile:A,credentialDefaultProvider:()=>async()=>a,region:g,requestHandler:p?d:undefined,logger:c})}const{Credentials:l,AssumedRoleUser:d}=await i.send(new AssumeRoleCommand(A));if(!l||!l.AccessKeyId||!l.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${A.RoleArn}`)}const h=getAccountIdFromAssumedRoleUser(d);const f={accessKeyId:l.AccessKeyId,secretAccessKey:l.SecretAccessKey,sessionToken:l.SessionToken,expiration:l.Expiration,...l.CredentialScope&&{credentialScope:l.CredentialScope},...h&&{accountId:h}};I(f,"CREDENTIALS_STS_ASSUME_ROLE","i");return f}};const getDefaultRoleAssumerWithWebIdentity$1=(t,n)=>{let i;return async a=>{if(!i){const{logger:a=t?.parentClientConfig?.logger,profile:c=t?.parentClientConfig?.profile,region:A,requestHandler:l=t?.parentClientConfig?.requestHandler,credentialProviderLogger:d,userAgentAppId:h=t?.parentClientConfig?.userAgentAppId}=t;const f=await resolveRegion(A,t?.parentClientConfig?.region,d,{logger:a,profile:c});const g=!isH2(l);i=new n({...t,userAgentAppId:h,profile:c,region:f,requestHandler:g?l:undefined,logger:a})}const{Credentials:c,AssumedRoleUser:A}=await i.send(new AssumeRoleWithWebIdentityCommand(a));if(!c||!c.AccessKeyId||!c.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${a.RoleArn}`)}const l=getAccountIdFromAssumedRoleUser(A);const d={accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration,...c.CredentialScope&&{credentialScope:c.CredentialScope},...l&&{accountId:l}};if(l){I(d,"RESOLVED_ACCOUNT_ID","T")}I(d,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return d}};const isH2=t=>t?.metadata?.handlerProtocol==="h2";const getCustomizableStsClientCtor=(t,n)=>{if(!n)return t;else return class CustomizableSTSClient extends t{constructor(t){super(t);for(const t of n){this.middlewareStack.use(t)}}}};const getDefaultRoleAssumer=(t={},n)=>getDefaultRoleAssumer$1(t,getCustomizableStsClientCtor(STSClient,n));const getDefaultRoleAssumerWithWebIdentity=(t={},n)=>getDefaultRoleAssumerWithWebIdentity$1(t,getCustomizableStsClientCtor(STSClient,n));const decorateDefaultCredentialProvider=t=>n=>t({roleAssumer:getDefaultRoleAssumer(n),roleAssumerWithWebIdentity:getDefaultRoleAssumerWithWebIdentity(n),...n});n.AssumeRole$=Tr;n.AssumeRoleCommand=AssumeRoleCommand;n.AssumeRoleRequest$=Ir;n.AssumeRoleResponse$=yr;n.AssumeRoleWithWebIdentity$=Nr;n.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand;n.AssumeRoleWithWebIdentityRequest$=Br;n.AssumeRoleWithWebIdentityResponse$=Qr;n.AssumedRoleUser$=Cr;n.Credentials$=wr;n.ExpiredTokenException=ExpiredTokenException;n.ExpiredTokenException$=Ar;n.IDPCommunicationErrorException=IDPCommunicationErrorException;n.IDPCommunicationErrorException$=lr;n.IDPRejectedClaimException=IDPRejectedClaimException;n.IDPRejectedClaimException$=ur;n.InvalidIdentityTokenException=InvalidIdentityTokenException;n.InvalidIdentityTokenException$=dr;n.MalformedPolicyDocumentException=MalformedPolicyDocumentException;n.MalformedPolicyDocumentException$=hr;n.PackedPolicyTooLargeException=PackedPolicyTooLargeException;n.PackedPolicyTooLargeException$=fr;n.PolicyDescriptorType$=Sr;n.ProvidedContext$=br;n.RegionDisabledException=RegionDisabledException;n.RegionDisabledException$=gr;n.STS=STS;n.STSClient=STSClient;n.STSServiceException=STSServiceException;n.STSServiceException$=ar;n.Tag$=Rr;n.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider;n.errorTypeRegistries=pr;n.getDefaultRoleAssumer=getDefaultRoleAssumer;n.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity},5785:(t,n,i)=>{const{SignatureV4:a,signatureV4aContainer:c}=i(5118);const A={CrtSignerV4:null};const l="X-Amz-S3session-Token";const d=l.toLowerCase();class SignatureV4SignWithCredentials extends a{async signWithCredentials(t,n,i){const a=getCredentialsWithoutSessionToken(n);t.headers[d]=n.sessionToken;const c=this;setSingleOverride(c,a);return c.signRequest(t,i??{})}async presignWithCredentials(t,n,i){const a=getCredentialsWithoutSessionToken(n);delete t.headers[d];t.headers[l]=n.sessionToken;t.query=t.query??{};t.query[l]=n.sessionToken;const c=this;setSingleOverride(c,a);return this.presign(t,i)}}function getCredentialsWithoutSessionToken(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function setSingleOverride(t,n){const i=t.credentialProvider;t.credentialProvider=()=>{t.credentialProvider=i;return Promise.resolve(n)}}class SignatureV4MultiRegion{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof A.CrtSignerV4==="function"){return"crt"}else if(typeof c.SignatureV4a==="function"){return"js"}return"none"}constructor(t){this.sigv4Signer=new SignatureV4SignWithCredentials(t);this.signerOptions=t}async sign(t,n={}){if(n.signingRegion==="*"){return this.getSigv4aSigner().sign(t,n)}return this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,i={}){if(i.signingRegion==="*"){const a=this.getSigv4aSigner();const c=A.CrtSignerV4;if(c&&a instanceof c){return a.signWithCredentials(t,n,i)}else{throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. `+`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. `+`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] `+`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. `+`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}}return this.sigv4Signer.signWithCredentials(t,n,i)}async presign(t,n={}){if(n.signingRegion==="*"){const i=this.getSigv4aSigner();const a=A.CrtSignerV4;if(a&&i instanceof a){return i.presign(t,n)}else{throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. `+`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. `+`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] `+`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. `+`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}}return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,i={}){if(i.signingRegion==="*"){throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].")}return this.sigv4Signer.presignWithCredentials(t,n,i)}getSigv4aSigner(){if(!this.sigv4aSigner){const t=A.CrtSignerV4;const n=c.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!t&&!n){throw new Error("Neither CRT nor JS SigV4a implementation is available. "+"Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. "+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}if(t&&typeof t==="function"){this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1})}else if(n&&typeof n==="function"){this.sigv4aSigner=new n({...this.signerOptions})}else{throw new Error("Available SigV4a implementation is not a valid constructor. "+"Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a."+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}}else{if(!n||typeof n!=="function"){throw new Error("JS SigV4a implementation is not available or not a valid constructor. "+"Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. "+"You must also register the package by calling [require('@aws-sdk/signature-v4a');] "+"or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. "+"For more information please go to "+"https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a")}this.sigv4aSigner=new n({...this.signerOptions})}}return this.sigv4aSigner}}n.SignatureV4MultiRegion=SignatureV4MultiRegion;n.SignatureV4SignWithCredentials=SignatureV4SignWithCredentials;n.signatureV4CrtContainer=A},5433:(t,n,i)=>{const{setTokenFeature:a}=i(5152);const{getBearerTokenEnvKey:c}=i(7523);const{TokenProviderError:A,getSSOTokenFilepath:l,parseKnownFiles:d,getProfileName:h,loadSsoSessionData:f,getSSOTokenFromFile:g,memoize:p,chain:m}=i(7291);const{promises:E}=i(3024);const fromEnvSigningName=({logger:t,signingName:n}={})=>async()=>{t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");if(!n){throw new A("Please pass 'signingName' to compute environment variable key",{logger:t})}const i=c(n);if(!(i in process.env)){throw new A(`Token not present in '${i}' environment variable`,{logger:t})}const l={token:process.env[i]};a(l,"BEARER_SERVICE_ENV_VARS","3");return l};const C=5*60*1e3;const I=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`;const getSsoOidcClient=async(t,n={},a)=>{const{SSOOIDCClient:c}=i(9443);const coalesce=t=>n.clientConfig?.[t]??n.parentClientConfig?.[t]??a?.[t];const A=new c(Object.assign({},n.clientConfig??{},{region:t??n.clientConfig?.region,logger:coalesce("logger"),userAgentAppId:coalesce("userAgentAppId")}));return A};const getNewSsoOidcToken=async(t,n,a={},c)=>{const{CreateTokenCommand:A}=i(9443);const l=await getSsoOidcClient(n,a,c);return l.send(new A({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))};const validateTokenExpiry=t=>{if(t.expiration&&t.expiration.getTime(){if(typeof n==="undefined"){throw new A(`Value not present for '${t}' in SSO Token${i?". Cannot refresh":""}. ${I}`,false)}};const{writeFile:y}=E;const writeSSOTokenToFile=(t,n)=>{const i=l(t);const a=JSON.stringify(n,null,2);return y(i,a)};const B=new Date(0);const fromSso=(t={})=>async({callerClientConfig:n}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");const i=await d(t);const a=h({profile:t.profile??n?.profile});const c=i[a];if(!c){throw new A(`Profile '${a}' could not be found in shared credentials file.`,false)}else if(!c["sso_session"]){throw new A(`Profile '${a}' is missing required property 'sso_session'.`)}const l=c["sso_session"];const p=await f(t);const m=p[l];if(!m){throw new A(`Sso session '${l}' could not be found in shared credentials file.`,false)}for(const t of["sso_start_url","sso_region"]){if(!m[t]){throw new A(`Sso session '${l}' is missing required property '${t}'.`,false)}}m["sso_start_url"];const E=m["sso_region"];let y;try{y=await g(l)}catch(t){throw new A(`The SSO session token associated with profile=${a} was not found or is invalid. ${I}`,false)}validateTokenKey("accessToken",y.accessToken);validateTokenKey("expiresAt",y.expiresAt);const{accessToken:Q,expiresAt:w}=y;const S={token:Q,expiration:new Date(w)};if(S.expiration.getTime()-Date.now()>C){return S}if(Date.now()-B.getTime()<30*1e3){validateTokenExpiry(S);return S}validateTokenKey("clientId",y.clientId,true);validateTokenKey("clientSecret",y.clientSecret,true);validateTokenKey("refreshToken",y.refreshToken,true);try{B.setTime(Date.now());const i=await getNewSsoOidcToken(y,E,t,n);validateTokenKey("accessToken",i.accessToken);validateTokenKey("expiresIn",i.expiresIn);const a=new Date(Date.now()+i.expiresIn*1e3);try{await writeSSOTokenToFile(l,{...y,accessToken:i.accessToken,expiresAt:a.toISOString(),refreshToken:i.refreshToken})}catch(t){}return{token:i.accessToken,expiration:a}}catch(t){validateTokenExpiry(S);return S}};const fromStatic=({token:t,logger:n})=>async()=>{n?.debug("@aws-sdk/token-providers - fromStatic");if(!t||!t.token){throw new A(`Please pass a valid token to fromStatic`,false)}return t};const nodeProvider=(t={})=>p(m(fromSso(t),async()=>{throw new A("Could not load token from any providers",false)}),t=>t.expiration!==undefined&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==undefined);n.fromEnvSigningName=fromEnvSigningName;n.fromSso=fromSso;n.fromStatic=fromStatic;n.nodeProvider=nodeProvider},4274:(t,n)=>{const i=/[&<>"]/g;const a={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(t){return t.replace(i,t=>a[t])}const c=/[&"'<>\r\n\u0085\u2028]/g;const A={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","…":"…","\u2028":"
"};function escapeElement(t){return t.replace(c,t=>A[t])}class XmlText{value;constructor(t){this.value=t}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(t,n,i){const a=new XmlNode(t);if(n!==undefined){a.addChildNode(new XmlText(n))}if(i!==undefined){a.withName(i)}return a}constructor(t,n=[]){this.name=t;this.children=n}withName(t){this.name=t;return this}addAttribute(t,n){this.attributes[t]=n;return this}addChildNode(t){this.children.push(t);return this}removeAttribute(t){delete this.attributes[t];return this}n(t){this.name=t;return this}c(t){this.children.push(t);return this}a(t,n){if(n!=null){this.attributes[t]=n}return this}cc(t,n,i=n){if(t[n]!=null){const a=XmlNode.of(n,t[n]).withName(i);this.c(a)}}l(t,n,i,a){if(t[n]!=null){const t=a();t.map(t=>{t.withName(i);this.c(t)})}}lc(t,n,i,a){if(t[n]!=null){const t=a();const n=new XmlNode(i);t.map(t=>{n.c(t)});this.c(n)}}toString(){const t=Boolean(this.children.length);let n=`<${this.name}`;const i=this.attributes;for(const t of Object.keys(i)){const a=i[t];if(a!=null){n+=` ${t}="${escapeAttribute(""+a)}"`}}return n+=!t?"/>":`>${this.children.map(t=>t.toString()).join("")}`}}function writeKey(t){Object.defineProperty(t,"__proto__",{value:undefined,writable:true,enumerable:true,configurable:true})}function parseXML(t){const n=new AwsXmlParser(t);return n.parse()}class AwsXmlParser{x;i=0;z;constructor(t){this.x=t;this.x=t.replace(/\r\n?/g,"\n");this.z=this.x.length}parse(){const t=this;const{z:n}=t;while(t.i=n){break}if(t.isNext("");t.trim()}else if(t.isNext("\x3c!--")){t.readTo("--\x3e");t.trim()}else if(t.isNext("/".includes(t.x[t.i])){n+=t.x[t.i++]}let i=false;const a={};while(t.i/".includes(t.x[t.i])){break}let n="";while(t.i/?".includes(t.x[t.i])){n+=t.x[t.i++]}t.trim();if(t.x[t.i]!=="="){break}++t.i;t.trim();if(n==="__proto__"){writeKey(a)}a[n]=t.readAttrValue();i=true}if(t.i>=t.z){throw new Error("@aws-sdk XML parse error: unexpected end of input.")}if(t.x[t.i]==="/"){++t.i;if(t.i>=t.z||t.x[t.i]!==">"){throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.")}++t.i;return{tag:n,value:i?a:""}}if(t.x[t.i]!==">"){throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.")}++t.i;const c=[];const A=[];let l=false;while(t.i"))}else if(t.isNext("")}else{l=true;A.push(t.parseTag())}}else{let n="";while(t.i.`)}t.i+=2;const d=t.readTo(">").trim();if(d!==n){throw new Error(`@aws-sdk XML parse error: mismatched tags <${n}> and .`)}if(!i&&c.length===0&&!l){return{tag:n,value:""}}if(!i&&!l){const t=c.length===1?c[0]:c.join("");if(t.trim()===""&&t.includes("\n")){return{tag:n,value:""}}return{tag:n,value:t}}const h={};for(const t of c){if(t.trim()===""&&t.includes("\n")){continue}h["#text"]="#text"in h?h["#text"]+t:t}for(const t of A){if(t.tag==="__proto__"){writeKey(h)}if(t.tag in h){if(Array.isArray(h[t.tag])){h[t.tag].push(t.value)}else{h[t.tag]=[h[t.tag],t.value]}}else{h[t.tag]=t.value}}for(const[t,n]of Object.entries(a)){if(t==="__proto__"){writeKey(h)}h[t]=n}return{tag:n,value:h}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){const t=this;t.i+=9;let n=0;while(t.i"&&n===0){++t.i;return}++t.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(t){return t.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(t,n,i,a)=>{if(n){return String.fromCharCode(parseInt(n,16))}if(i){return String.fromCharCode(parseInt(i,10))}return AwsXmlParser.ENTITIES[a]??""})}}n.XmlNode=XmlNode;n.XmlText=XmlText;n.parseXML=parseXML},9320:(t,n,i)=>{const a={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")};const c=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!c){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=a;isProtectedKey(t){return Object.values(a).includes(t)}getRequestId(){return this.get(a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(a.X_RAY_TRACE_ID)}getTenantId(){return this.get(a.TENANT_ID)}getTraceparent(){return this.get(a.TRACEPARENT)}getTracestate(){return this.get(a.TRACESTATE)}getBaggage(){return this.get(a.BAGGAGE)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(t){return this.currentContext?.[t]}set(t,n){if(this.isProtectedKey(t)){throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`)}this.currentContext=this.currentContext||{};this.currentContext[t]=n}run(t,n){this.currentContext=t;return n()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const t=new InvokeStoreMulti;const n=await Promise.resolve().then(i.t.bind(i,6698,23));t.als=new n.AsyncLocalStorage;return t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(t){return this.als.getStore()?.[t]}set(t,n){if(this.isProtectedKey(t)){throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`)}const i=this.als.getStore();if(!i){throw new Error("No context available")}i[t]=n}run(t,n){return this.als.run(t,n)}}n.InvokeStore=void 0;(function(t){let n=null;async function getInstanceAsync(t){if(!n){n=(async()=>{const n=t===true||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const i=n?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!c&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!c&&globalThis.awslambda){globalThis.awslambda.InvokeStore=i;return i}else{return i}})()}return n}t.getInstanceAsync=getInstanceAsync;t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{n=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(n.InvokeStore||(n.InvokeStore={}));n.InvokeStoreBase=InvokeStoreBase},402:(t,n,i)=>{const{getSmithyContext:a}=i(4534);n.getSmithyContext=a;const{HttpRequest:c}=i(3422);const{requestBuilder:A}=i(3422);n.requestBuilder=A;const{HttpApiKeyAuthLocation:l}=i(690);const resolveAuthOptions=(t,n)=>{if(!n||n.length===0){return t}const i=[];for(const a of n){for(const n of t){const t=n.schemeId.split("#")[1];if(t===a){i.push(n)}}}for(const n of t){if(!i.find(({schemeId:t})=>t===n.schemeId)){i.push(n)}}return i};function convertHttpAuthSchemesToMap(t){const n=new Map;for(const i of t){n.set(i.schemeId,i)}return n}const httpAuthSchemeMiddleware=(t,n)=>(i,c)=>async A=>{const l=t.httpAuthSchemeProvider(await n.httpAuthSchemeParametersProvider(t,c,A.input));const d=t.authSchemePreference?await t.authSchemePreference():[];const h=resolveAuthOptions(l,d);const f=convertHttpAuthSchemesToMap(t.httpAuthSchemes);const g=a(c);const p=[];for(const i of h){const a=f.get(i.schemeId);if(!a){p.push(`HttpAuthScheme \`${i.schemeId}\` was not enabled for this service.`);continue}const A=a.identityProvider(await n.identityProviderConfigProvider(t));if(!A){p.push(`HttpAuthScheme \`${i.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:l={},signingProperties:d={}}=i.propertiesExtractor?.(t,c)||{};i.identityProperties=Object.assign(i.identityProperties||{},l);i.signingProperties=Object.assign(i.signingProperties||{},d);g.selectedHttpAuthScheme={httpAuthOption:i,identity:await A(i.identityProperties),signer:a.signer};break}if(!g.selectedHttpAuthScheme){throw new Error(p.join("\n"))}return i(A)};const d={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i})=>({applyToStack:a=>{a.addRelativeTo(httpAuthSchemeMiddleware(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i}),d)}});const h={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i})=>({applyToStack:a=>{a.addRelativeTo(httpAuthSchemeMiddleware(t,{httpAuthSchemeParametersProvider:n,identityProviderConfigProvider:i}),h)}});const defaultErrorHandler=t=>t=>{throw t};const defaultSuccessHandler=(t,n)=>{};const httpSigningMiddleware=t=>(t,n)=>async i=>{if(!c.isInstance(i.request)){return t(i)}const A=a(n);const l=A.selectedHttpAuthScheme;if(!l){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:d={}},identity:h,signer:f}=l;const g=await t({...i,request:await f.sign(i.request,h,d)}).catch((f.errorHandler||defaultErrorHandler)(d));(f.successHandler||defaultSuccessHandler)(g.response,d);return g};const f={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=t=>({applyToStack:t=>{t.addRelativeTo(httpSigningMiddleware(),f)}});const normalizeProvider=t=>{if(typeof t==="function")return t;const n=Promise.resolve(t);return()=>n};const makePagedClientRequest=async(t,n,i,a=t=>t,...c)=>{let A=new t(i);A=a(A)??A;return await n.send(A,...c)};function createPaginator(t,n,i,a,c){return async function*paginateOperation(A,l,...d){const h=l;let f=A.startingToken??h[i];let g=true;let p;while(g){h[i]=f;if(c){h[c]=h[c]??A.pageSize}if(A.client instanceof t){p=await makePagedClientRequest(n,A.client,l,A.withCommand,...d)}else{throw new Error(`Invalid client, expected instance of ${t.name}`)}yield p;const m=f;f=get(p,a);g=!!(f&&(!A.stopOnSameToken||f!==m))}return undefined}}const get=(t,n)=>{let i=t;const a=n.split(".");for(const t of a){if(!i||typeof i!=="object"){return undefined}i=i[t]}return i};function setFeature(t,n,i){if(!t.__smithy_context){t.__smithy_context={features:{}}}else if(!t.__smithy_context.features){t.__smithy_context.features={}}t.__smithy_context.features[n]=i}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(t){for(const n in t){const i=t[n];if(i!==undefined){this.authSchemes.set(n,i)}}}getIdentityProvider(t){return this.authSchemes.get(t)}}class HttpApiKeyAuthSigner{async sign(t,n,i){if(!i){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!i.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!i.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!n.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const a=c.clone(t);if(i.in===l.QUERY){a.query[i.name]=n.apiKey}else if(i.in===l.HEADER){a.headers[i.name]=i.scheme?`${i.scheme} ${n.apiKey}`:n.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+i.in+"`")}return a}}class HttpBearerAuthSigner{async sign(t,n,i){const a=c.clone(t);if(!n.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}a.headers["Authorization"]=`Bearer ${n.token}`;return a}}class NoAuthSigner{async sign(t,n,i){return t}}const createIsIdentityExpiredFunction=t=>function isIdentityExpired(n){return doesIdentityRequireRefresh(n)&&n.expiration.getTime()-Date.now()t.expiration!==undefined;const memoizeIdentityProvider=(t,n,i)=>{if(t===undefined){return undefined}const a=typeof t!=="function"?async()=>Promise.resolve(t):t;let c;let A;let l;let d=false;const coalesceProvider=async t=>{if(!A){A=a(t)}try{c=await A;l=true;d=false}finally{A=undefined}return c};if(n===undefined){return async t=>{if(!l||t?.forceRefresh){c=await coalesceProvider(t)}return c}}return async t=>{if(!l||t?.forceRefresh){c=await coalesceProvider(t)}if(d){return c}if(!i(c)){d=true;return c}if(n(c)){await coalesceProvider(t);return c}return c}};n.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;n.EXPIRATION_MS=g;n.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;n.HttpBearerAuthSigner=HttpBearerAuthSigner;n.NoAuthSigner=NoAuthSigner;n.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;n.createPaginator=createPaginator;n.doesIdentityRequireRefresh=doesIdentityRequireRefresh;n.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;n.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;n.getHttpSigningPlugin=getHttpSigningPlugin;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=d;n.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;n.httpAuthSchemeMiddlewareOptions=h;n.httpSigningMiddleware=httpSigningMiddleware;n.httpSigningMiddlewareOptions=f;n.isIdentityExpired=p;n.memoizeIdentityProvider=memoizeIdentityProvider;n.normalizeProvider=normalizeProvider;n.setFeature=setFeature},4645:(t,n,i)=>{const{nv:a,NumericValue:c,calculateBodyLength:A,generateIdempotencyToken:l,fromBase64:d,_parseEpochTimestamp:h}=i(2430);const{HttpRequest:f,collectBody:g,SerdeContext:p,RpcProtocol:m}=i(3422);const{NormalizedSchema:E,deref:C,TypeRegistry:I}=i(6890);const{getSmithyContext:y}=i(4534);const B=0;const Q=1;const w=2;const S=3;const b=4;const R=5;const v=6;const k=7;const D=20;const T=21;const N=22;const M=23;const F=24;const x=25;const U=26;const P=27;const L=31;function alloc(t){return typeof Buffer!=="undefined"?Buffer.alloc(t):new Uint8Array(t)}const O=Symbol("@smithy/core/cbor::tagSymbol");function tag(t){t[O]=true;return t}const H=typeof Buffer!=="undefined";const $=new TextDecoder;let V=alloc(0);let G=false;let Y=new DataView(V.buffer,V.byteOffset,V.byteLength);let J=0;function setPayload(t){V=t;G=H&&V instanceof Buffer;Y=new DataView(V.buffer,V.byteOffset,V.byteLength)}function decode(t,n){if(t>=n){throw new Error("unexpected end of (decode) payload.")}const i=(V[t]&224)>>5;const a=V[t]&31;if(a===L&&2<=i&&i<=5){return decodeIndefinite(t,n)}switch(i){case B:case Q:case v:{let c;let A;if(a<24){c=a;A=1}else{switch(a){case F:if(n-t<2){overflow$1(1)}c=V[t+1];A=2;break;case x:if(n-t<3){overflow$1(2)}c=Y.getUint16(t+1);A=3;break;case U:if(n-t<5){overflow$1(4)}c=Y.getUint32(t+1);A=5;break;case P:if(n-t<9){overflow$1(8)}{const n=Y.getUint32(t+1);if(n<2097152){c=n*4294967296+Y.getUint32(t+5)}else{c=Y.getBigUint64(t+1)}}A=9;break;default:unexpectedMinor(a)}}if(i===B){J=A;return castBigInt$1(c)}else if(i===Q){let t;if(typeof c==="bigint"){t=BigInt(-1)-c}else{t=-1-c}J=A;return castBigInt$1(t)}else{return decodeTagValue(t,n,a,c,A)}}case S:return decodeUtf8String(t,n);case R:return decodeMap(t,n);case b:return decodeList(t,n);case w:return decodeUnstructuredByteString(t,n);default:return decodeSpecial(t,n)}}function decodeIndefinite(t,n){const i=(V[t]&224)>>5;const a=V[t]&31;if(a===L){switch(i){case S:return decodeUtf8StringIndefinite(t,n);case R:return decodeMapIndefinite(t,n);case b:return decodeListIndefinite(t,n);case w:return decodeUnstructuredByteStringIndefinite(t,n)}}}function bytesToFloat16$1(t,n){const i=t>>7;const a=(t&124)>>2;const c=(t&3)<<8|n;const A=i===0?1:-1;if(a===0){if(c===0){return 0}return A*(Math.pow(2,1-15)*(c/1024))}else if(a===31){if(c===0){return A*Infinity}return NaN}return A*(Math.pow(2,a-15)*(1+c/1024))}function decodeMap(t,n){const i=decodeCount$1(t,n);if(i<25){return decodeMapSmall(t,n,i)}return decodeMapLarge(t,n,i)}function decodeMapLarge(t,n,i){const a=J;t+=a;const c=t;const A=Object.create(null);for(let a=0;a>5;if(a===S){A[i]=decodeUtf8String(t,n)}else{A[i]=decode(t,n)}t+=J}J=a+(t-c);Object.setPrototypeOf(A,Object.prototype);return A}function decodeMapSmall(t,n,i){const a=J;t+=a;const c=t;const A={};for(let a=0;a>>0&2047;const c=W[a];if(c!==undefined){if(c.length===n){let i=true;for(let a=0;a>5;const A=V[t]&31;if(c!==S){unexpectedMajorInIndefiniteString(c)}if(A===L){throw new Error("nested indefinite string.")}const l=decodeUnstructuredByteString(t,n);const d=J;t+=d;for(let t=0;t>5;const A=V[t]&31;if(c!==w){unexpectedMajorInIndefiniteString(c)}if(A===L){throw new Error("nested indefinite string.")}const l=decodeUnstructuredByteString(t,n);const d=J;t+=d;for(let t=0;t23){encodeHeader$1(S,Buffer.byteLength(t));ne+=te.write(t,ne)}else{encodeStringCached(t)}}else{const i=n*3;ensureSpace(i+9);const a=ne;const c=(new TextEncoder).encodeInto(t,te.subarray(ne+9));const A=c.written;let l;if(A<24){l=1}else if(A<256){l=2}else if(A<65536){l=3}else if(A<4294967296){l=5}else{l=9}if(l<9){te.copyWithin(a+l,a+9,a+9+A)}ne=a;encodeInteger(S,A);ne+=A}continue}if(te.byteLength-ne<9){ensureSpace(64)}if(typeof t==="number"){if(Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991){const n=t>=0;const i=n?B:Q;const a=n?t:-t-1;if(a<24){te[ne++]=i<<5|a}else if(a<256){te[ne++]=i<<5|24;te[ne++]=a}else if(a<65536){te[ne++]=i<<5|x;te[ne++]=a>>8;te[ne++]=a&255}else if(a<4294967296){te[ne++]=i<<5|U;re.setUint32(ne,a);ne+=4}else{te[ne++]=i<<5|P;const t=a/4294967296|0;const n=a-t*4294967296|0;re.setUint32(ne,t);re.setUint32(ne+4,n);ne+=8}continue}te[ne++]=k<<5|P;re.setFloat64(ne,t);ne+=8;continue}else if(typeof t==="bigint"){const n=t>=0;const i=n?B:Q;const a=n?t:-t-BigInt(1);if(a=0){i[i.byteLength-A]=Number(c&BigInt(255));c>>=BigInt(8)}ensureSpace(i.byteLength*2+16);te[ne++]=n?194:195;encodeHeader$1(w,i.byteLength);te.set(i,ne);ne+=i.byteLength}continue}else if(t===null){te[ne++]=k<<5|N;continue}else if(typeof t==="boolean"){te[ne++]=k<<5|(t?T:D);continue}else if(typeof t==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(t)){encodeInteger(b,t.length);ensureSpace(t.length*9+64);for(let i=t.length-1;i>=0;--i){n.push(t[i])}continue}else if(typeof t.byteLength==="number"){ensureSpace(t.length*2+9);encodeInteger(w,t.length);te.set(t,ne);ne+=t.byteLength;continue}else if(typeof t==="object"){if(t instanceof c){const i=t.string.indexOf(".");const a=i===-1?0:i-t.string.length+1;const c=BigInt(t.string.replace(".",""));te[ne++]=196;encodeInteger(b,2);n.push(c);n.push(a);continue}if(t[O]){if("tag"in t&&"value"in t){n.push(t.value);encodeHeader$1(v,t.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(t))}}const i=Object.keys(t);const a=i.length;encodeInteger(R,a);for(let c=a-1;c>=0;--c){n.push(t[i[c]]);n.push(i[c])}continue}throw new Error(`data type ${t?.constructor?.name??typeof t} not compatible for encoding.`)}}function advanceEncodingEpoch(){Z=Z+1&65535;X=false}function toUint8Array(){const t=alloc(ne);t.set(te.subarray(0,ne),0);ne=0;return t}function resize(t){const n=te;te=alloc(t);if(n){if(n.copy){n.copy(te,0,0,n.byteLength)}else{te.set(n,0)}}re=new DataView(te.buffer,te.byteOffset,te.byteLength)}function encodeStringCached(t){const n=K.get(t);if(n!==undefined){te.set(n.bytes,ne);ne+=n.bytes.length;n.epoch=Z;return}const i=ne;const a=Buffer.byteLength(t);encodeInteger(S,a);ne+=te.write(t,ne);const c=Uint8Array.prototype.slice.call(te,i,ne);if(K.size>=2048){if(X){return}let t=0;for(const[n,i]of K){if(t>=1024){break}if(i.epoch!==Z){K.delete(n);t++}}if(t===0){X=true;return}}if(K.size<2048){K.set(t,{epoch:Z,bytes:c})}}function ensureSpace(t){const n=te.byteLength-ne;if(n>8;te[ne++]=n&255}else if(n<4294967296){te[ne++]=t<<5|U;re.setUint32(ne,n);ne+=4}else{te[ne++]=t<<5|P;const i=n/4294967296|0;const a=n-i*4294967296|0;re.setUint32(ne,i);re.setUint32(ne+4,a);ne+=8}}const se={deserialize(t){advanceDecodingEpoch();setPayload(t);return decode(0,t.length)},serialize(t){advanceEncodingEpoch();try{encode(t);return toUint8Array()}catch(t){toUint8Array();throw t}},resizeEncodingBuffer(t){resize(t)}};const parseCborBody=(t,n)=>g(t,n).then(async t=>{if(t.length){try{return se.deserialize(t)}catch(i){Object.defineProperty(i,"$responseBodyText",{value:n.utf8Encoder(t)});throw i}}return{}});const dateToTag=t=>tag({tag:1,value:t.getTime()/1e3});const parseCborErrorBody=async(t,n)=>{const i=await parseCborBody(t,n);i.message=i.message??i.Message;return i};const loadSmithyRpcV2CborErrorCode=(t,n)=>{const sanitizeErrorCode=t=>{let n=t;if(typeof n==="number"){n=n.toString()}if(n.indexOf(",")>=0){n=n.split(",")[0]}if(n.indexOf(":")>=0){n=n.split(":")[0]}if(n.indexOf("#")>=0){n=n.split("#")[1]}return n};if(n["__type"]!==undefined){return sanitizeErrorCode(n["__type"])}let i;for(const t in n){if(t.toLowerCase()==="code"){i=t;break}}if(i&&n[i]!==undefined){return sanitizeErrorCode(n[i])}};const checkCborResponse=t=>{if(String(t.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+t.statusCode)}};const buildHttpRpcRequest=async(t,n,i,a,c)=>{const l=await t.endpoint();const{hostname:d,protocol:h="https",port:g,path:p}=l;const m={protocol:h,hostname:d,port:g,method:"POST",path:p.endsWith("/")?p.slice(0,-1)+i:p+i,headers:{...n}};if(a!==undefined){m.hostname=a}if(l.headers){for(const t in l.headers){m.headers[t]=l.headers[t]}}if(c!==undefined){m.body=c;try{m.headers["content-length"]=String(A(c))}catch(t){}}return new f(m)};class CborShapeSerializer2 extends p{write(t,n){ue=0;const i=E.of(t);writeValue(i,n,undefined,this.serdeContext)}flush(){const t=Ae.subarray(0,ue);ue=0;Ae=allocUnsafe(ce);le=new DataView(Ae.buffer,Ae.byteOffset,Ae.byteLength);return t}}const oe=Symbol.for("@smithy/cbor-struct-cache");function loadCborStructIterator(t){const n=t.getSchema();const i=n[oe];if(i){return i}const a=[];const c=[];for(const[n,i]of t.structIterator()){a.push(n);c.push(i)}const A=new Array(a.length);for(let t=0;t>8;c[2]=i&255}c.set(n,a);return c}const ie=typeof Buffer!=="undefined";const ae=new TextEncoder;const ce=2048;let Ae=ie?Buffer.allocUnsafe(ce):new Uint8Array(ce);let le=new DataView(Ae.buffer,Ae.byteOffset,Ae.byteLength);let ue=0;const de=2048;const he=new Map;let fe=0;let ge=false;function allocUnsafe(t){return ie?Buffer.allocUnsafe(t):new Uint8Array(t)}function writeValue(t,n,i,a){if(n==null){if(n===undefined&&t.isIdempotencyToken()){writeString(l());return}ensure(1);Ae[ue++]=k<<5|N;return}if(t.isUnitSchema()){ensure(1);encodeHeader(R,0);return}const A=typeof n==="object";if(A){if(t.isBlobSchema()){if(n instanceof Uint8Array){writeBytes(n);return}}if(t.isTimestampSchema()){if(n instanceof Date){writeTimestamp(n);return}}if(t.isStructSchema()){writeStruct(t,n,a);return}if(Array.isArray(n)&&(t.isListSchema()||t.isDocumentSchema())){writeList(t,n,t.isDocumentSchema(),a);return}if(t.isMapSchema()){writeMap(t,n,false,a);return}if(n instanceof Date){writeTimestamp(n);return}if(n instanceof Uint8Array){writeBytes(n);return}if(n instanceof c){writeNumericValue(n);return}if(n[O]){const t=n;writeTag(t.tag,t.value);return}if(t.isDocumentSchema()){if(Array.isArray(n)){writeList(t,n,true,a)}else{writeMap(t,n,true,a)}return}if(t.isBigDecimalSchema()){writeUntypedValue(n);return}writeMap(t,n,true,a);return}if(typeof n==="string"){if(t.isBlobSchema()){const t=(a?.base64Decoder??d)(n);writeBytes(t);return}writeString(n);return}if(typeof n==="number"){ensure(9);if(Number.isInteger(n)&&n>=-9007199254740992&&n<=9007199254740991){writeInteger(n)}else{writeFloat64(n)}return}if(typeof n==="boolean"){ensure(1);Ae[ue++]=k<<5|(n?T:D);return}if(typeof n==="bigint"){writeBigInt(n);return}writeString(String(n))}function writeStruct(t,n,i){if(t.isUnionSchema()){let a=false;for(const[c,A]of t.structIterator()){const l=n[c];if(l!=null){ensure(9);encodeHeader(R,1);writeString(c);writeValue(A,l,t,i);a=true;break}}if(!a){const{$unknown:t}=n;if(Array.isArray(t)){ensure(9);encodeHeader(R,1);writeString(t[0]);writeUntypedValue(t[1])}else{ensure(9);encodeHeader(R,0)}}return}const a=loadCborStructIterator(t);const{memberNames:c,memberSchemas:A,encodedKeys:l}=a;const d=c.length;let h;if(d<24){h=1}else if(d<256){h=2}else{h=3}ensure(h);const f=ue;ue+=h;let g=0;for(let a=0;a>8;Ae[f+2]=g&255}}function writeList(t,n,i,a){const c=!!t.getMergedTraits().sparse;const A=t.getValueSchema();if(i||c){const t=[];for(let a=0;a=-9007199254740992&&t<=9007199254740991){writeInteger(t)}else{writeFloat64(t)}return}if(typeof t==="boolean"){ensure(1);Ae[ue++]=k<<5|(t?T:D);return}if(typeof t==="bigint"){writeBigInt(t);return}if(t instanceof Uint8Array){writeBytes(t);return}if(t instanceof Date){writeTimestamp(t);return}if(t instanceof c){writeNumericValue(t);return}if(t[O]){const n=t;writeTag(n.tag,n.value);return}if(Array.isArray(t)){ensure(9);encodeHeader(b,t.length);for(let n=0;nAe.length){let n=Ae.length*2;while(n>8;Ae[ue++]=n&255}else if(n<4294967296){Ae[ue++]=t<<5|U;le.setUint32(ue,n);ue+=4}else{Ae[ue++]=t<<5|P;const i=n/4294967296|0;const a=n-i*4294967296|0;le.setUint32(ue,i);le.setUint32(ue+4,a);ue+=8}}function encodeBigHeader(t,n){const i=Number(n);if(i<4294967296){encodeHeader(t,i);return}Ae[ue++]=t<<5|P;le.setBigUint64(ue,n);ue+=8}function writeString(t){const n=t.length;if(n<=23){const i=he.get(t);if(i){ensure(i.bytes.length);Ae.set(i.bytes,ue);ue+=i.bytes.length;i.epoch=fe;return}const a=ue;writeStringUncached(t,n);const c=ue;const A=Uint8Array.prototype.slice.call(Ae,a,c);if(he.size>=de){if(ge){return}let t=0;for(const[n,i]of he){if(t>=1024){break}if(i.epoch!==fe){he.delete(n);++t}}if(t===0){ge=true;return}}if(he.size=0;const i=n?B:Q;const a=n?t:-t-1;encodeHeader(i,a)}function writeBigInt(t){const n=t>=0;const i=n?B:Q;const a=n?t:-t-BigInt(1);if(a=0;--t){c[t]=Number(A&BigInt(255));A>>=BigInt(8)}ensure(i+16);Ae[ue++]=n?194:195;encodeHeader(w,i);Ae.set(c,ue);ue+=i}}function writeBytes(t){ensure(t.length+9);encodeHeader(w,t.length);Ae.set(t,ue);ue+=t.length}function writeTag(t,n){ensure(9);if(typeof t==="bigint"){encodeBigHeader(v,t)}else{encodeHeader(v,t)}writeUntypedValue(n)}function writeNumericValue(t){const n=t.string.indexOf(".");const i=n===-1?0:n-t.string.length+1;const a=BigInt(t.string.replace(".",""));ensure(9);Ae[ue++]=196;encodeHeader(b,2);ensure(9);writeInteger(i);writeBigInt(a)}function writeTimestamp(t){ensure(18);encodeHeader(v,1);const n=t.getTime()/1e3;if(Number.isInteger(n)){writeInteger(n)}else{writeFloat64(n)}}class CborShapeDeserializer2 extends p{read(t,n){Ee=n;Ce=pe&&n instanceof Buffer;Ie=new DataView(n.buffer,n.byteOffset,n.byteLength);ye=0;Be=n.length;be=be+1&65535;return readValue(E.of(t))}readValue(t,n){return transformObject(E.of(t),n)}}const pe=typeof Buffer!=="undefined";const me=new TextDecoder;let Ee=new Uint8Array(0);let Ce=false;let Ie=new DataView(new ArrayBuffer(0));let ye=0;let Be=0;const Qe=2048;const we=new Array(Qe);const Se=new Uint16Array(Qe);let be=0;function readValue(t){if(ye>=Be){throw new Error("unexpected end of CBOR payload.")}const n=(Ee[ye]&224)>>5;const i=Ee[ye]&31;if(i===L&&n>=2&&n<=5){return readIndefinite(t,n)}switch(n){case B:return readUnsignedInt();case Q:return readNegativeInt();case w:return readByteString();case S:return readUtf8String();case b:return readList(t);case R:return readMap(t);case v:return readTag();case k:return readSpecial();default:throw new Error(`unexpected CBOR major type ${n}.`)}}function readList(t){const n=decodeCount();const i=t.isListSchema()?t.getValueSchema():t;const a=Array(n);for(let t=0;t=0){I=t+1;if(I>=h){I=0}const n=readValue(A[t]);if(n!=null){f[d[t]]=n}}else{const t=readUtf8String();const n=readValue(E.of(15));if(t==="__type"&&typeof n==="string"){C=true}else{g=t;p=n;++m}}}if(a){let t=true;for(const n in f){t=false;break}if(t&&m===1){f.$unknown=[g,p]}}else if(C){ye=i;const t=E.of(15);for(let i=0;i=0){p=t+1;if(p>=A){p=0}const n=readValue(i[t]);if(n!=null){d[c[t]]=n}}else{const t=readUtf8String();const n=readValue(E.of(15));if(t!=="__type"){h=t;f=n;++g}}}throw new Error("expected break marker.")}const n=t.isMapSchema()?t.getValueSchema():t;const i={};while(ye>>0&Qe-1;const c=we[a];if(c!==undefined&&c.length===n){let i=true;for(let a=0;a>7;const a=(t&124)>>2;const c=(t&3)<<8|n;const A=i===0?1:-1;if(a===0){if(c===0){return 0}return A*(Math.pow(2,1-15)*(c/1024))}else if(a===31){if(c===0){return A*Infinity}return NaN}return A*(Math.pow(2,a-15)*(1+c/1024))}function castBigInt(t){if(typeof t==="number"){return t}const n=Number(t);if(Number.MIN_SAFE_INTEGER<=n&&n<=Number.MAX_SAFE_INTEGER){return n}return t}function overflow(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function transformObject(t,n){if(t.isTimestampSchema()){if(typeof n==="number"){return h(n)}if(typeof n==="object"&&n!==null){if(n.tag===1&&"value"in n){return h(n.value)}}}if(t.isBlobSchema()){return n}if(typeof n==="undefined"||typeof n==="boolean"||typeof n==="number"||typeof n==="string"||typeof n==="bigint"||typeof n==="symbol"){return n}if(typeof n!=="object"||n===null){return n}if("byteLength"in n){return n}if(n instanceof Date){return n}if(n instanceof c){return n}if(t.isDocumentSchema()){return n}if(t.isListSchema()){const i=t.getValueSchema();const a=[];for(const t of n){a.push(transformObject(i,t))}return a}const i={};if(t.isMapSchema()){const a=t.getValueSchema();for(const t in n){i[t]=transformObject(a,n[t])}}else if(t.isStructSchema()){const a=t.isUnionSchema();let c;if(a){c=new Set;for(const t in n){if(t!=="__type"){c.add(t)}}}for(const[A,l]of t.structIterator()){if(a){c.delete(A)}if(n[A]!=null){i[A]=transformObject(l,n[A])}}if(a&&c?.size===1){let t=true;for(const n in i){t=false;break}if(t){const t=c.values().next().value;i.$unknown=[t,n[t]]}}else if(typeof n.__type==="string"){for(const t in n){if(!(t in i)){i[t]=n[t]}}}}return i}class CborCodec extends p{createSerializer(){const t=new CborShapeSerializer2;t.setSerdeContext(this.serdeContext);return t}createDeserializer(){const t=new CborShapeDeserializer2;t.setSerdeContext(this.serdeContext);return t}}class SmithyRpcV2CborProtocol extends m{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:t,errorTypeRegistries:n}){super({defaultNamespace:t,errorTypeRegistries:n})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(t,n,i){const a=await super.serializeRequest(t,n,i);Object.assign(a.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(C(t.input)==="unit"){delete a.body;delete a.headers["content-type"]}else{if(!a.body){this.serializer.write(15,{});a.body=this.serializer.flush()}try{a.headers["content-length"]=String(a.body.byteLength)}catch(t){}}const{service:c,operation:A}=y(i);const l=`/service/${c}/operation/${A}`;if(a.path.endsWith("/")){a.path+=l.slice(1)}else{a.path+=l}return a}async deserializeResponse(t,n,i){return super.deserializeResponse(t,n,i)}async handleError(t,n,i,a,c){const A=loadSmithyRpcV2CborErrorCode(i,a)??"Unknown";const l={$metadata:c,$fault:i.statusCode<=500?"client":"server"};let d=this.options.defaultNamespace;if(A.includes("#")){[d]=A.split("#")}const h=this.compositeErrorRegistry;const f=I.for(d);h.copyFrom(f);let g;try{g=h.getSchema(A)}catch(t){if(a.Message){a.message=a.Message}const n=I.for("smithy.ts.sdk.synthetic."+d);h.copyFrom(n);const i=h.getBaseException();if(i){const t=h.getErrorCtor(i);throw Object.assign(new t({name:A}),l,a)}throw Object.assign(new Error(A),l,a)}const p=E.of(g);const m=h.getErrorCtor(g);const C=a.message??a.Message??"Unknown";const y=new m({});const B={};for(const[t,n]of p.structIterator()){B[t]=this.deserializer.readValue(n,a[t])}throw Object.assign(y,l,{$fault:p.getMergedTraits().error,message:C},B)}getDefaultContentType(){return"application/cbor"}}class CborShapeSerializer extends p{value;write(t,n){this.value=this.serialize(t,n)}serialize(t,n){const i=E.of(t);if(n==null){if(i.isIdempotencyToken()){return l()}return n}if(i.isBlobSchema()){if(typeof n==="string"){return(this.serdeContext?.base64Decoder??d)(n)}return n}if(i.isTimestampSchema()){if(typeof n==="number"||typeof n==="bigint"){return dateToTag(new Date(Number(n)/1e3|0))}return dateToTag(n)}if(typeof n==="function"||typeof n==="object"){const t=n;if(i.isListSchema()&&Array.isArray(t)){const n=!!i.getMergedTraits().sparse;const a=[];let c=0;for(const A of t){const t=this.serialize(i.getValueSchema(),A);if(t!=null||n){a[c++]=t}}return a}if(t instanceof Date){return dateToTag(t)}const a={};if(i.isMapSchema()){const n=!!i.getMergedTraits().sparse;for(const c in t){const A=this.serialize(i.getValueSchema(),t[c]);if(A!=null||n){a[c]=A}}}else if(i.isStructSchema()){for(const[n,c]of i.structIterator()){const i=this.serialize(c,t[n]);if(i!=null){a[n]=i}}const n=i.isUnionSchema();if(n&&Array.isArray(t.$unknown)){const[n,i]=t.$unknown;a[n]=i}else if(typeof t.__type==="string"){for(const n in t){if(!(n in a)){a[n]=this.serialize(15,t[n])}}}}else if(i.isDocumentSchema()){if(Array.isArray(t)){const n=[];let a=0;for(const c of t){n[a++]=this.serialize(i.getValueSchema(),c)}return n}for(const n in t){a[n]=this.serialize(i.getValueSchema(),t[n])}}else if(i.isBigDecimalSchema()){return t}return a}return n}flush(){const t=se.serialize(this.value);this.value=undefined;return t}}class CborShapeDeserializer extends p{read(t,n){const i=se.deserialize(n);return this.readValue(t,i)}readValue(t,n){const i=E.of(t);if(i.isTimestampSchema()){if(typeof n==="number"){return h(n)}if(typeof n==="object"){if(n.tag===1&&"value"in n){return h(n.value)}}}if(i.isBlobSchema()){if(typeof n==="string"){return(this.serdeContext?.base64Decoder??d)(n)}return n}if(typeof n==="undefined"||typeof n==="boolean"||typeof n==="number"||typeof n==="string"||typeof n==="bigint"||typeof n==="symbol"){return n}else if(typeof n==="object"){if(n===null){return null}if("byteLength"in n){return n}if(n instanceof Date){return n}if(i.isDocumentSchema()){return n}if(i.isListSchema()){const t=[];const a=i.getValueSchema();for(const i of n){const n=this.readValue(a,i);t.push(n)}return t}const t={};if(i.isMapSchema()){const a=i.getValueSchema();for(const i in n){const c=this.readValue(a,n[i]);t[i]=c}}else if(i.isStructSchema()){const a=i.isUnionSchema();let c;if(a){c=new Set;for(const t in n){if(t!=="__type"){c.add(t)}}}for(const[A,l]of i.structIterator()){if(a){c.delete(A)}if(n[A]!=null){t[A]=this.readValue(l,n[A])}}if(a&&c?.size===1){let i=true;for(const n in t){i=false;break}if(i){const i=c.values().next().value;t.$unknown=[i,n[i]]}}else if(typeof n.__type==="string"){for(const i in n){if(!(i in t)){t[i]=n[i]}}}}else if(n instanceof c){return n}return t}else{return n}}}n.CborCodec=CborCodec;n.CborShapeDeserializer=CborShapeDeserializer;n.CborShapeDeserializer2=CborShapeDeserializer2;n.CborShapeSerializer=CborShapeSerializer;n.CborShapeSerializer2=CborShapeSerializer2;n.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;n.buildHttpRpcRequest=buildHttpRpcRequest;n.cbor=se;n.checkCborResponse=checkCborResponse;n.dateToTag=dateToTag;n.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;n.parseCborBody=parseCborBody;n.parseCborErrorBody=parseCborErrorBody;n.tag=tag;n.tagSymbol=O},9542:(t,n,i)=>{const{createReadStream:a}=i(3024);const{Writable:c}=i(7075);const{toUint8Array:A,concatBytes:l}=i(2430);const{createHash:d,createHmac:h}=i(7598);const f=i(8522);async function blobReader(t,n,i=1024*1024){const a=t.size;let c=0;while(c{i.update(t)});return i.digest()};class HashCalculator extends c{hash;constructor(t,n){super(n);this.hash=t}_write(t,n,i){try{this.hash.update(A(t))}catch(t){return i(t)}i()}}const fileStreamHasher=(t,n)=>new Promise((i,c)=>{if(!isReadStream(n)){c(new Error("Unable to calculate hash for non-file streams."));return}const A=a(n.path,{start:n.start,end:n.end});const l=new t;const d=new HashCalculator(l);A.pipe(d);A.on("error",t=>{d.end();c(t)});d.on("error",c);d.on("finish",function(){l.digest().then(i).catch(c)})});const isReadStream=t=>typeof t.path==="string";const readableStreamHasher=(t,n)=>{if(n.readableFlowing!==null){throw new Error("Unable to calculate hash for flowing readable stream")}const i=new t;const a=new HashCalculator(i);n.pipe(a);return new Promise((t,c)=>{n.on("error",t=>{a.end();c(t)});a.on("error",c);a.on("finish",()=>{i.digest().then(t).catch(c)})})};class Md5Js{digestLength=16;state=Uint32Array.from(p);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(t){const n=A(t);let i=0;let a=n.byteLength;this.bytesHashed+=a;while(a>0){this.writeBuffer.setUint8(this.bufferLength++,n[i++]);--a;if(this.bufferLength===64){compress(this.state,this.writeBuffer);this.bufferLength=0}}}async digest(){const t=Uint32Array.from(this.state);const n=new DataView(this.writeBuffer.buffer.slice(0));let i=this.bufferLength;const a=this.bytesHashed*8;n.setUint8(i++,128);if(this.bufferLength%64>=56){for(let t=i;t<64;++t){n.setUint8(t,0)}compress(t,n);i=0}for(let t=i;t<56;++t){n.setUint8(t,0)}n.setUint32(56,a>>>0,true);n.setUint32(60,Math.floor(a/2**32),true);compress(t,n);const c=new Uint8Array(16);const A=new DataView(c.buffer);for(let n=0;n<4;++n){A.setUint32(n*4,t[n],true)}return c}reset(){this.state.set(p);this.writeBuffer=new DataView(new ArrayBuffer(64));this.bufferLength=0;this.bytesHashed=0}}const p=[1732584193,4023233417,2562383102,271733878];const m=4294967295;const E=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21);const C=Array.from({length:64},(t,n)=>Math.abs(Math.sin(n+1))*2**32>>>0);function compress(t,n){let i=t[0],a=t[1],c=t[2],A=t[3];for(let t=0;t<64;++t){let l,d;if(t<16){l=a&c|~a&A;d=t}else if(t<32){l=A&a|c&~A;d=(5*t+1)%16}else if(t<48){l=a^c^A;d=(3*t+5)%16}else{l=c^(a|~A);d=7*t%16}const h=n.getUint32(d*4,true);const f=A;A=c;c=a;const g=E[(t>>4)*4+(t&3)];const p=(i+l&m)+(h+C[t]&m)&m;a=a+((p<>>32-g)>>>0)&m;i=f}t[0]=t[0]+i&m;t[1]=t[1]+a&m;t[2]=t[2]+c&m;t[3]=t[3]+A&m}const I=(()=>{try{d("md5");return true}catch{return false}})();const y=I?buildNativeClass$2():Md5Js;function buildNativeClass$2(){return class Md5Node{digestLength=16;hash=d("md5");update(t){this.hash.update(A(t))}async digest(){const t=this.hash.copy().digest();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=d("md5")}}}const B=new Uint32Array(256);for(let t=0;t<256;++t){let n=t;for(let t=0;t<8;++t){n=n&1?3988292384^n>>>1:n>>>1}B[t]=n>>>0}const Q=4294967295;class Crc32Js{digestLength=4;checksum=Q;update(t){for(let n=0;n>>8^B[(this.checksum^t[n])&255]}}digestSync(){return(this.checksum^Q)>>>0}async digest(){const t=this.digestSync();const n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t,false);return n}reset(){this.checksum=Q}}const w=typeof f.crc32==="function"?f.crc32:undefined;const S=w?buildNativeClass$1(w):Crc32Js;function buildNativeClass$1(t){return class Crc32Node{digestLength=4;value=0;update(n){this.value=t(n,this.value)}digestSync(){return this.value>>>0}async digest(){const t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,this.digestSync(),false);return t}reset(){this.value=0}}}const b=64;const R=32;const v=2**53-1;class Sha256Js{digestLength=R;state=Int32Array.from(k);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=false;inner;outer;constructor(t){if(t){const n=Sha256Js.normalizeKey(t);this.inner=new Sha256Js;this.outer=new Sha256Js;const{inner:i,outer:a}=this;const c=new Uint8Array(b*2);for(let t=0;tv){throw new Error("Cannot hash more than 2^53 - 1 bits")}while(a>0){this.buffer[this.bufferLength++]=n[i++];a--;if(this.bufferLength===b){this.hashBuffer();this.bufferLength=0}}}async digest(){const{inner:t,outer:n}=this;if(t&&n){if(this.finished){throw new Error("Attempted to digest an already finished HMAC.")}this.finished=true;const i=t.digestSync();n.update(i);return n.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(k);this.buffer=new Uint8Array(64);this.bufferLength=0;this.bytesHashed=0}digestSync(){const t=this.state.slice();const n=this.buffer.slice();let i=this.bufferLength;const a=this.bytesHashed*8;const c=new DataView(n.buffer,n.byteOffset,n.byteLength);c.setUint8(i++,128);if((i-1)%b>=b-8){for(let t=i;t>>24&255;A[n*4+1]=t[n]>>>16&255;A[n*4+2]=t[n]>>>8&255;A[n*4+3]=t[n]>>>0&255}return A}static normalizeKey(t){const n=A(t);if(n.byteLength>b){const t=new Sha256Js;t.update(n);const i=t.digestSync();const a=new Uint8Array(b);a.set(i);return a}if(n.byteLength>>17|n<<15)^(n>>>19|n<<13)^n>>>10;n=i[t-15];const c=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3;i[t]=(a+i[t-7]|0)+(c+i[t-16]|0)}const p=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(g+(D[t]+i[t]|0)|0)|0;const m=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&A^c&A)|0;g=f;f=h;h=d;d=l+p|0;l=A;A=c;c=a;a=p+m|0}t[0]+=a;t[1]+=c;t[2]+=A;t[3]+=l;t[4]+=d;t[5]+=h;t[6]+=f;t[7]+=g}}const k=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);const D=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);const T=(()=>{try{d("sha256");return true}catch{return false}})();const N=T?buildNativeClass():Sha256Js;function buildNativeClass(){return class Sha256Node{digestLength=32;secret;hash;isHmac;finished=false;constructor(t){this.secret=t;this.isHmac=!!t;this.hash=this.createHash()}update(t){if(this.finished){throw new Error("Attempted to update an already finished hash.")}this.hash.update(t)}async digest(){let t;if(this.isHmac){this.finished=true;t=this.hash.digest()}else{t=this.hash.copy().digest()}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=this.createHash();this.finished=false}createHash(){return this.secret?h("sha256",toBuffer(this.secret)):d("sha256")}}}function toBuffer(t){if(typeof t==="string"){return t}if(ArrayBuffer.isView(t)){return Buffer.from(t.buffer,t.byteOffset,t.byteLength)}return Buffer.from(t)}const{digest:M,sign:F,importKey:x}=globalThis?.crypto?.subtle??{};const U=typeof M==="function"&&typeof F==="function"&&typeof x==="function"?globalThis.crypto.subtle:undefined;const P=8*1024*1024;class Sha256WebCrypto{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=false;constructor(t){if(t){this.secret=A(t)}}update(t){if(this.finished){throw new Error("Attempted to update an already finished HMAC.")}if(this.fallback){this.fallback.update(t);return}this.pending.push(t.slice());this.pendingBytes+=t.byteLength;if(this.pendingBytes>=P){this.switchToFallback()}}async digest(){if(this.fallback){return this.fallback.digest()}if(this.secret&&this.finished){throw new Error("Attempted to digest an already finished HMAC.")}const t=l(this.pending);if(U){if(this.secret){this.finished=true;const n=await U.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},false,["sign"]);const i=await U.sign("HMAC",n,t);return new Uint8Array(i)}const n=await U.digest("SHA-256",t);return new Uint8Array(n)}const n=new Sha256Js(this.secret);n.update(t);return n.digest()}reset(){this.pending=[];this.pendingBytes=0;this.fallback=undefined;this.finished=false}switchToFallback(){const t=new Sha256Js(this.secret);for(const n of this.pending){t.update(n)}this.fallback=t;this.pending=[];this.pendingBytes=0}}n.Crc32=S;n.Crc32Js=Crc32Js;n.Crc32Node=S;n.Md5=y;n.Md5Js=Md5Js;n.Md5Node=y;n.Sha256=N;n.Sha256Js=Sha256Js;n.Sha256Node=N;n.Sha256WebCrypto=Sha256WebCrypto;n.blobHasher=g;n.blobReader=blobReader;n.fileStreamHasher=fileStreamHasher;n.readableStreamHasher=readableStreamHasher},2658:(t,n,i)=>{const{getSmithyContext:a,normalizeProvider:c}=i(4534);n.getSmithyContext=a;n.normalizeProvider=c;const{SMITHY_CONTEXT_KEY:A,AlgorithmId:l}=i(690);n.AlgorithmId=l;const{NormalizedSchema:d}=i(6890);const getAllAliases=(t,n)=>{const i=[];if(t){i.push(t)}if(n){for(const t of n){i.push(t)}}return i};const getMiddlewareNameWithAliases=(t,n)=>`${t||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`;const constructStack=()=>{let t=[];let n=[];let i=false;const a=new Set;const sort=t=>t.sort((t,n)=>h[n.step]-h[t.step]||f[n.priority||"normal"]-f[t.priority||"normal"]);const removeByName=i=>{let c=false;const filterCb=t=>{const n=getAllAliases(t.name,t.aliases);if(n.includes(i)){c=true;for(const t of n){a.delete(t)}return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return c};const removeByReference=i=>{let c=false;const filterCb=t=>{if(t.middleware===i){c=true;for(const n of getAllAliases(t.name,t.aliases)){a.delete(n)}return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return c};const cloneTo=i=>{t.forEach(t=>{i.add(t.middleware,{...t})});n.forEach(t=>{i.addRelativeTo(t.middleware,{...t})});i.identifyOnResolve?.(c.identifyOnResolve());return i};const expandRelativeMiddlewareList=t=>{const n=[];t.before.forEach(t=>{if(t.before.length===0&&t.after.length===0){n.push(t)}else{n.push(...expandRelativeMiddlewareList(t))}});n.push(t);t.after.reverse().forEach(t=>{if(t.before.length===0&&t.after.length===0){n.push(t)}else{n.push(...expandRelativeMiddlewareList(t))}});return n};const getMiddlewareList=(i=false)=>{const a=[];const c=[];const A={};t.forEach(t=>{const n={...t,before:[],after:[]};for(const t of getAllAliases(n.name,n.aliases)){A[t]=n}a.push(n)});n.forEach(t=>{const n={...t,before:[],after:[]};for(const t of getAllAliases(n.name,n.aliases)){A[t]=n}c.push(n)});c.forEach(t=>{if(t.toMiddleware){const n=A[t.toMiddleware];if(n===undefined){if(i){return}throw new Error(`${t.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(t.name,t.aliases)} `+`middleware ${t.relation} ${t.toMiddleware}`)}if(t.relation==="after"){n.after.push(t)}if(t.relation==="before"){n.before.push(t)}}});const l=sort(a).map(expandRelativeMiddlewareList).reduce((t,n)=>{t.push(...n);return t},[]);return l};const c={add:(n,i={})=>{const{name:c,override:A,aliases:l}=i;const d={step:"initialize",priority:"normal",middleware:n,...i};const h=getAllAliases(c,l);if(h.length>0){if(h.some(t=>a.has(t))){if(!A)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(c,l)}'`);for(const n of h){const i=t.findIndex(t=>t.name===n||t.aliases?.some(t=>t===n));if(i===-1){continue}const a=t[i];if(a.step!==d.step||d.priority!==a.priority){throw new Error(`"${getMiddlewareNameWithAliases(a.name,a.aliases)}" middleware with `+`${a.priority} priority in ${a.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(c,l)}" middleware with `+`${d.priority} priority in ${d.step} step.`)}t.splice(i,1)}}for(const t of h){a.add(t)}}t.push(d)},addRelativeTo:(t,i)=>{const{name:c,override:A,aliases:l}=i;const d={middleware:t,...i};const h=getAllAliases(c,l);if(h.length>0){if(h.some(t=>a.has(t))){if(!A)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(c,l)}'`);for(const t of h){const i=n.findIndex(n=>n.name===t||n.aliases?.some(n=>n===t));if(i===-1){continue}const a=n[i];if(a.toMiddleware!==d.toMiddleware||a.relation!==d.relation){throw new Error(`"${getMiddlewareNameWithAliases(a.name,a.aliases)}" middleware `+`${a.relation} "${a.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(c,l)}" middleware ${d.relation} `+`"${d.toMiddleware}" middleware.`)}n.splice(i,1)}}for(const t of h){a.add(t)}}n.push(d)},clone:()=>cloneTo(constructStack()),use:t=>{t.applyToStack(c)},remove:t=>{if(typeof t==="string")return removeByName(t);else return removeByReference(t)},removeByTag:i=>{let c=false;const filterCb=t=>{const{tags:n,name:A,aliases:l}=t;if(n&&n.includes(i)){const t=getAllAliases(A,l);for(const n of t){a.delete(n)}c=true;return false}return true};t=t.filter(filterCb);n=n.filter(filterCb);return c},concat:t=>{const n=cloneTo(constructStack());n.use(t);n.identifyOnResolve(i||n.identifyOnResolve()||(t.identifyOnResolve?.()??false));return n},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map(t=>{const n=t.step??t.relation+" "+t.toMiddleware;return getMiddlewareNameWithAliases(t.name,t.aliases)+" - "+n}),identifyOnResolve(t){if(typeof t==="boolean")i=t;return i},resolve:(t,n)=>{for(const i of getMiddlewareList().map(t=>t.middleware).reverse()){t=i(t,n)}if(i){console.log(c.identify())}return t}};return c};const h={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const f={high:3,normal:2,low:1};const invalidFunction=t=>()=>{throw new Error(t)};const invalidProvider=t=>()=>Promise.reject(t);const getCircularReplacer=()=>{const t=new WeakSet;return(n,i)=>{if(typeof i==="object"&&i!==null){if(t.has(i)){return"[Circular]"}t.add(i)}return i}};const sleep=t=>new Promise(n=>setTimeout(n,t*1e3));const g={minDelay:2,maxDelay:120};var p;(function(t){t["ABORTED"]="ABORTED";t["FAILURE"]="FAILURE";t["SUCCESS"]="SUCCESS";t["RETRY"]="RETRY";t["TIMEOUT"]="TIMEOUT"})(p||(p={}));const checkExceptions=t=>{if(t.state===p.ABORTED){const n=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},getCircularReplacer())}`);n.name="AbortError";throw n}else if(t.state===p.TIMEOUT){const n=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},getCircularReplacer())}`);n.name="TimeoutError";throw n}else if(t.state!==p.SUCCESS){throw new Error(`${JSON.stringify(t,getCircularReplacer())}`)}return t};const runPolling=async({minDelay:t,maxDelay:n,maxWaitTime:i,abortController:a,client:c,abortSignal:A},l,d)=>{const h={};const[f,g]=[t*1e3,n*1e3];let m=0;const E=Date.now()+i*1e3;const C=Date.now()+6e4;let I=false;while(true){if(m>0){const t=exponentialBackoffWithJitter(f,g,m,E);if(a?.signal?.aborted||A?.aborted){const t="AbortController signal aborted.";h[t]|=0;h[t]+=1;return{state:p.ABORTED,observedResponses:h}}if(Date.now()+t>E){return{state:p.TIMEOUT,observedResponses:h}}await sleep(t/1e3)}const{state:t,reason:n}=await d(c,l);if(n){const t=createMessageFromResponse(n);h[t]|=0;h[t]+=1}if(t!==p.RETRY){return{state:t,reason:n,final:n,observedResponses:h}}m+=1;if(!I&&Date.now()>=C){checkWarn403(h,c);I=true}}};const checkWarn403=(t={},n)=>{const i=Object.keys(t);let a=0;for(const n of i){const i=t[n]|0;if(n.startsWith("403:")){a+=i}}const c=n?.config?.logger;const A=typeof c?.warn==="function"&&!c.constructor?.name?.includes?.("NoOpLogger")?c:console;if(a>=3||i[i.length-1]?.startsWith("403:")){A.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`)}};const createMessageFromResponse=t=>{const n=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;if(t?.$responseBodyText){return`${n?n+": ":""}Deserialization error for body: ${t.$responseBodyText}`}if(n){if(t?.$response||t?.message){return`${n??"Unknown"}: ${t?.message}`}return`${n}: OK`}return String(t?.message??JSON.stringify(t,getCircularReplacer())??"Unknown")};const exponentialBackoffWithJitter=(t,n,i,a)=>{const c=Math.log(n/t)/Math.log(2)+1;if(i>c){return n}const A=t*2**(i-1);const l=Math.min(A,n);const d=randomInRange(t,l);if(Date.now()+d>a){const t=a-Date.now();return Math.max(0,t-500)}return d};const randomInRange=(t,n)=>t+Math.random()*(n-t);const validateWaiterOptions=t=>{if(t.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(t.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(t.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(t.maxWaitTime<=t.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}else if(t.maxDelay{let n;const i=new Promise(i=>{n=()=>i({state:p.ABORTED});if(typeof t.addEventListener==="function"){t.addEventListener("abort",n)}else{t.onabort=n}});return{clearListener(){if(typeof t.removeEventListener==="function"){t.removeEventListener("abort",n)}},aborted:i}};const createWaiter=async(t,n,i)=>{const a={...g,...t};validateWaiterOptions(a);const c=[runPolling(a,n,i)];const A=[];if(t.abortSignal){const{aborted:n,clearListener:i}=abortTimeout(t.abortSignal);A.push(i);c.push(n)}if(t.abortController?.signal){const{aborted:n,clearListener:i}=abortTimeout(t.abortController.signal);A.push(i);c.push(n)}return Promise.race(c).then(t=>{for(const t of A){t()}return t})};class Client{config;middlewareStack=constructStack();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:i}=t;if(i){if(typeof n==="function"){t.protocol=new n(i)}}}send(t,n,i){const a=typeof n!=="function"?n:undefined;const c=typeof n==="function"?n:i;const A=a===undefined&&this.config.cacheMiddleware===true;let l;if(A){if(!this.handlers){this.handlers=new WeakMap}const n=this.handlers;if(n.has(t.constructor)){l=n.get(t.constructor)}else{l=t.resolveMiddleware(this.middlewareStack,this.config,a);n.set(t.constructor,l)}}else{delete this.handlers;l=t.resolveMiddleware(this.middlewareStack,this.config,a)}if(c){l(t).then(t=>c(null,t.output),t=>c(t)).catch(()=>{})}else{return l(t).then(t=>t.output)}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const m="***SensitiveInformation***";function schemaLogFilter(t,n){if(n==null){return n}const i=d.of(t);if(i.getMergedTraits().sensitive){return m}if(i.isListSchema()){const t=!!i.getValueSchema().getMergedTraits().sensitive;if(t){return m}}else if(i.isMapSchema()){const t=!!i.getKeySchema().getMergedTraits().sensitive||!!i.getValueSchema().getMergedTraits().sensitive;if(t){return m}}else if(i.isStructSchema()&&typeof n==="object"){const t=n;const a={};for(const[n,c]of i.structIterator()){if(t[n]!=null){a[n]=schemaLogFilter(c,t[n])}}return a}return n}class Command{middlewareStack=constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(t,n,i,{middlewareFn:a,clientName:c,commandName:l,inputFilterSensitiveLog:d,outputFilterSensitiveLog:h,smithyContext:f,additionalContext:g,CommandCtor:p}){for(const c of a.bind(this)(p,t,n,i)){this.middlewareStack.use(c)}const m=t.concat(this.middlewareStack);const{logger:E}=n;const C={logger:E,clientName:c,commandName:l,inputFilterSensitiveLog:d,outputFilterSensitiveLog:h,[A]:{commandInstance:this,...f},...g};const{requestHandler:I}=n;let y=i??{};if(f.eventStream){y={isEventStream:true,...y}}return m.resolve(t=>I.handle(t.request,y),C)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){this._ep=t;return this}m(t){this._middlewareFn=t;return this}s(t,n,i={}){this._smithyContext={service:t,operation:n,...i};return this}c(t={}){this._additionalContext=t;return this}n(t,n){this._clientName=t;this._commandName=n;return this}f(t=t=>t,n=t=>t){this._inputFilterSensitiveLog=t;this._outputFilterSensitiveLog=n;return this}ser(t){this._serializer=t;return this}de(t){this._deserializer=t;return this}sc(t){this._operationSchema=t;this._smithyContext.operationSchema=t;return this}build(){const t=this;let n;return n=class extends Command{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[n]){super();this.input=n??{};t._init(this);this.schema=t._operationSchema}resolveMiddleware(i,a,c){const A=t._operationSchema;const l=A?.[4]??A?.input;const d=A?.[5]??A?.output;return this.resolveMiddlewareWithContext(i,a,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(A?schemaLogFilter.bind(null,l):t=>t),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(A?schemaLogFilter.bind(null,d):t=>t),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}const E="***SensitiveInformation***";const createAggregatedClient=(t,n,i)=>{for(const[i,a]of Object.entries(t)){const methodImpl=async function(t,n,i){const c=new a(t);if(typeof n==="function"){this.send(c,n)}else if(typeof i==="function"){if(typeof n!=="object")throw new Error(`Expected http options but got ${typeof n}`);this.send(c,n||{},i)}else{return this.send(c,n)}};const t=(i[0].toLowerCase()+i.slice(1)).replace(/Command$/,"");n.prototype[t]=methodImpl}const{paginators:a={},waiters:c={}}=i??{};for(const[t,i]of Object.entries(a)){if(n.prototype[t]===void 0){n.prototype[t]=function(t={},n,...a){return i({...n,client:this},t,...a)}}}for(const[t,i]of Object.entries(c)){if(n.prototype[t]===void 0){n.prototype[t]=async function(t={},n,...a){let c=n;if(typeof n==="number"){c={maxWaitTime:n}}return i({...c,client:this},t,...a)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=t.name;this.$fault=t.$fault;this.$metadata=t.$metadata}static isInstance(t){if(!t)return false;const n=t;return ServiceException.prototype.isPrototypeOf(n)||Boolean(n.$fault)&&Boolean(n.$metadata)&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return false;const n=t;if(this===ServiceException){return ServiceException.isInstance(t)}if(ServiceException.isInstance(t)){if(n.name&&this.name){return this.prototype.isPrototypeOf(t)||n.name===this.name}return this.prototype.isPrototypeOf(t)}return false}}const decorateServiceException=(t,n={})=>{Object.entries(n).filter(([,t])=>t!==undefined).forEach(([n,i])=>{if(t[n]==undefined||t[n]===""){t[n]=i}});const i=t.message||t.Message||"UnknownError";t.message=i;delete t.Message;return t};const throwDefaultError=({output:t,parsedBody:n,exceptionCtor:i,errorCode:a})=>{const c=deserializeMetadata(t);const A=c.httpStatusCode?c.httpStatusCode+"":undefined;const l=new i({name:n?.code||n?.Code||a||A||"UnknownError",$fault:"client",$metadata:c});throw decorateServiceException(l,n)};const withBaseException=t=>({output:n,parsedBody:i,errorCode:a})=>{throwDefaultError({output:n,parsedBody:i,exceptionCtor:t,errorCode:a})};const deserializeMetadata=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let C=false;const emitWarningIfUnsupportedVersion=t=>{if(t&&!C&&parseInt(t.substring(1,t.indexOf(".")))<16){C=true}};const I=Object.values(l);const getChecksumConfiguration=t=>{const n=[];for(const i in l){const a=l[i];if(t[a]===undefined){continue}n.push({algorithmId:()=>a,checksumConstructor:()=>t[a]})}for(const[i,a]of Object.entries(t.checksumAlgorithms??{})){n.push({algorithmId:()=>i,checksumConstructor:()=>a})}return{addChecksumAlgorithm(i){t.checksumAlgorithms=t.checksumAlgorithms??{};const a=i.algorithmId();const c=i.checksumConstructor();if(I.includes(a)){t.checksumAlgorithms[a.toUpperCase()]=c}else{t.checksumAlgorithms[a]=c}n.push(i)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=t=>{const n={};t.checksumAlgorithms().forEach(t=>{const i=t.algorithmId();if(I.includes(i)){n[i]=t.checksumConstructor()}});return n};const getRetryConfiguration=t=>({setRetryStrategy(n){t.retryStrategy=n},retryStrategy(){return t.retryStrategy}});const resolveRetryRuntimeConfig=t=>{const n={};n.retryStrategy=t.retryStrategy();return n};const getDefaultExtensionConfiguration=t=>Object.assign(getChecksumConfiguration(t),getRetryConfiguration(t));const y=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=t=>Object.assign(resolveChecksumRuntimeConfig(t),resolveRetryRuntimeConfig(t));const getArrayIfSingleItem=t=>Array.isArray(t)?t:[t];const getValueFromTextNode=t=>{const n="#text";for(const i in t){if(Object.prototype.hasOwnProperty.call(t,i)&&t[i][n]!==undefined){t[i]=t[i][n]}else if(typeof t[i]==="object"&&t[i]!==null){t[i]=getValueFromTextNode(t[i])}}return t};const isSerializableHeaderValue=t=>t!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(t,n,i){let a;let c;let A;if(typeof n==="undefined"&&typeof i==="undefined"){a={};A=t}else{a=t;if(typeof n==="function"){c=n;A=i;return mapWithFilter(a,c,A)}else{A=n}}for(const t of Object.keys(A)){if(!Array.isArray(A[t])){a[t]=A[t];continue}applyInstruction(a,null,A,t)}return a}const convertMap=t=>{const n={};for(const[i,a]of Object.entries(t||{})){n[i]=[,a]}return n};const take=(t,n)=>{const i={};for(const a in n){applyInstruction(i,t,n,a)}return i};const mapWithFilter=(t,n,i)=>map(t,Object.entries(i).reduce((t,[i,a])=>{if(Array.isArray(a)){t[i]=a}else{if(typeof a==="function"){t[i]=[n,a()]}else{t[i]=[n,a]}}return t},{}));const applyInstruction=(t,n,i,a)=>{if(n!==null){let c=i[a];if(typeof c==="function"){c=[,c]}const[A=nonNullish,l=pass,d=a]=c;if(typeof A==="function"&&A(n[d])||typeof A!=="function"&&!!A){t[a]=l(n[d])}return}let[c,A]=i[a];if(typeof A==="function"){let n;const i=c===undefined&&(n=A())!=null;const l=typeof c==="function"&&!!c(void 0)||typeof c!=="function"&&!!c;if(i){t[a]=n}else if(l){t[a]=A()}}else{const n=c===undefined&&A!=null;const i=typeof c==="function"&&!!c(A)||typeof c!=="function"&&!!c;if(n||i){t[a]=A}}};const nonNullish=t=>t!=null;const pass=t=>t;const serializeFloat=t=>{if(t!==t){return"NaN"}switch(t){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return t}};const serializeDateTime=t=>t.toISOString().replace(".000Z","Z");const _json=t=>{if(t==null){return{}}if(Array.isArray(t)){return t.filter(t=>t!=null).map(_json)}if(typeof t==="object"){const n={};for(const i of Object.keys(t)){if(t[i]==null){continue}n[i]=_json(t[i])}return n}return t};function makeBuilder(t,n,i,a){return function makeCommand(c,A,l,d,h={}){const f=Object.assign({},t,c);return Command.classBuilder().ep(f).m(function(t,n,i,c){const l=A.call(this,t,n,i,c);l.unshift(a(i,t.getEndpointParameterInstructions()));return l}).s(n,l,h).n(i,l.charAt(0).toUpperCase()+l.slice(1)+"Command").sc(d).build()}}n.Client=Client;n.Command=Command;n.NoOpLogger=NoOpLogger;n.SENSITIVE_STRING=E;n.ServiceException=ServiceException;n.WaiterState=p;n._json=_json;n.checkExceptions=checkExceptions;n.constructStack=constructStack;n.convertMap=convertMap;n.createAggregatedClient=createAggregatedClient;n.createWaiter=createWaiter;n.decorateServiceException=decorateServiceException;n.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;n.getArrayIfSingleItem=getArrayIfSingleItem;n.getChecksumConfiguration=getChecksumConfiguration;n.getDefaultClientConfiguration=y;n.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;n.getRetryConfiguration=getRetryConfiguration;n.getValueFromTextNode=getValueFromTextNode;n.invalidFunction=invalidFunction;n.invalidProvider=invalidProvider;n.isSerializableHeaderValue=isSerializableHeaderValue;n.loadConfigsForDefaultMode=loadConfigsForDefaultMode;n.makeBuilder=makeBuilder;n.map=map;n.resolveChecksumRuntimeConfig=resolveChecksumRuntimeConfig;n.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;n.resolveRetryRuntimeConfig=resolveRetryRuntimeConfig;n.schemaLogFilter=schemaLogFilter;n.serializeDateTime=serializeDateTime;n.serializeFloat=serializeFloat;n.take=take;n.throwDefaultError=throwDefaultError;n.waiterServiceDefaults=g;n.withBaseException=withBaseException},7291:(t,n,i)=>{const{homedir:a}=i(8161);const{sep:c,join:A}=i(6760);const{createHash:l}=i(7598);const{readFile:d}=i(1455);const{IniSectionType:h}=i(690);const{normalizeProvider:f}=i(2658);const{isValidHostLabel:g}=i(4534);class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(t,n=true){let i;let a=true;if(typeof n==="boolean"){i=undefined;a=n}else if(n!=null&&typeof n==="object"){i=n.logger;a=n.tryNextLink??true}super(t);this.tryNextLink=a;Object.setPrototypeOf(this,ProviderError.prototype);i?.debug?.(`@smithy/property-provider ${a?"->":"(!)"} ${t}`)}static from(t,n=true){return Object.assign(new this(t.message,n),t)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(t,n=true){super(t,n);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(t,n=true){super(t,n);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...t)=>async()=>{if(t.length===0){throw new ProviderError("No providers in chain")}let n;for(const i of t){try{const t=await i();return t}catch(t){n=t;if(t?.tryNextLink){continue}throw t}}throw n};const fromValue=t=>()=>Promise.resolve(t);const memoize=(t,n,i)=>{let a;let c;let A;let l=false;const coalesceProvider=async()=>{if(!c){c=t()}try{a=await c;A=true;l=false}finally{c=undefined}return a};if(n===undefined){return async t=>{if(!A||t?.forceRefresh){a=await coalesceProvider()}return a}}return async t=>{if(!A||t?.forceRefresh){a=await coalesceProvider()}if(l){return a}if(i&&!i(a)){l=true;return a}if(n(a)){await coalesceProvider();return a}return a}};const booleanSelector=(t,n,i)=>{if(!(n in t))return undefined;if(t[n]==="true")return true;if(t[n]==="false")return false;throw new Error(`Cannot load ${i} "${n}". Expected "true" or "false", got ${t[n]}.`)};const numberSelector=(t,n,i)=>{if(!(n in t))return undefined;const a=parseInt(t[n],10);if(Number.isNaN(a)){throw new TypeError(`Cannot load ${i} '${n}'. Expected number, got '${t[n]}'.`)}return a};var p;(function(t){t["ENV"]="env";t["CONFIG"]="shared config entry"})(p||(p={}));const m={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:t,USERPROFILE:n,HOMEPATH:i,HOMEDRIVE:A=`C:${c}`}=process.env;if(t)return t;if(n)return n;if(i)return`${A}${i}`;const l=getHomeDirCacheKey();if(!m[l])m[l]=a();return m[l]};const E="AWS_PROFILE";const C="default";const getProfileName=t=>t.profile||process.env[E]||C;const getSSOTokenFilepath=t=>{const n=l("sha1");const i=n.update(t).digest("hex");return A(getHomeDir(),".aws","sso","cache",`${i}.json`)};const I={};const getSSOTokenFromFile=async t=>{if(I[t]){return I[t]}const n=getSSOTokenFilepath(t);const i=await d(n,"utf8");return JSON.parse(i)};const y=".";const getConfigData=t=>Object.entries(t).filter(([t])=>{const n=t.indexOf(y);if(n===-1){return false}return Object.values(h).includes(t.substring(0,n))}).reduce((t,[n,i])=>{const a=n.indexOf(y);const c=n.substring(0,a)===h.PROFILE?n.substring(a+1):n;t[c]=i;return t},{...t.default&&{default:t.default}});const B="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[B]||A(getHomeDir(),".aws","config");const Q="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[Q]||A(getHomeDir(),".aws","credentials");const w=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;const S=["__proto__","profile __proto__"];const parseIni=t=>{const n={};let i;let a;for(const c of t.split(/\r?\n/)){const t=c.split(/(^|\s)[;#]/)[0].trim();const A=t[0]==="["&&t[t.length-1]==="]";if(A){i=undefined;a=undefined;const n=t.substring(1,t.length-1);const c=w.exec(n);if(c){const[,t,,n]=c;if(Object.values(h).includes(t)){i=[t,n].join(y)}}else{i=n}if(S.includes(n)){throw new Error(`Found invalid profile name "${n}"`)}}else if(i){const A=t.indexOf("=");if(![0,-1].includes(A)){const[l,d]=[t.substring(0,A).trim(),t.substring(A+1).trim()];if(d===""){a=l}else{if(a&&c.trimStart()===c){a=undefined}n[i]=n[i]||{};const t=a?[a,l].join(y):l;n[i][t]=d}}}}return n};const b={};const R={};const readFile=(t,n)=>{if(R[t]!==undefined){return R[t]}if(!b[t]||n?.ignoreCache){b[t]=d(t,"utf8")}return b[t]};const swallowError$1=()=>({});const loadSharedConfigFiles=async(t={})=>{const{filepath:n=getCredentialsFilepath(),configFilepath:i=getConfigFilepath()}=t;const a=getHomeDir();const c="~/";let l=n;if(n.startsWith(c)){l=A(a,n.slice(2))}let d=i;if(i.startsWith(c)){d=A(a,i.slice(2))}const h=await Promise.all([readFile(d,{ignoreCache:t.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),readFile(l,{ignoreCache:t.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:h[0],credentialsFile:h[1]}};const getSsoSessionData=t=>Object.entries(t).filter(([t])=>t.startsWith(h.SSO_SESSION+y)).reduce((t,[n,i])=>({...t,[n.substring(n.indexOf(y)+1)]:i}),{});const swallowError=()=>({});const loadSsoSessionData=async(t={})=>readFile(t.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...t)=>{const n={};for(const i of t){for(const[t,a]of Object.entries(i)){if(n[t]!==undefined){Object.assign(n[t],a)}else{n[t]=a}}}return n};const parseKnownFiles=async t=>{const n=await loadSharedConfigFiles(t);return mergeConfigFiles(n.configFile,n.credentialsFile)};const v={getFileRecord(){return R},interceptFile(t,n){R[t]=Promise.resolve(n)},getTokenRecord(){return I},interceptToken(t,n){I[t]=n}};function getSelectorName(t){try{const n=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));n.delete("CONFIG");n.delete("CONFIG_PREFIX_SEPARATOR");n.delete("ENV");return[...n].join(", ")}catch(n){return t}}const fromEnv=(t,n)=>async()=>{try{const i=t(process.env,n);if(i===undefined){throw new Error}return i}catch(i){throw new CredentialsProviderError(i.message||`Not found in ENV: ${getSelectorName(t.toString())}`,{logger:n?.logger})}};const fromSharedConfigFiles=(t,{preferredFile:n="config",...i}={})=>async()=>{const a=getProfileName(i);const{configFile:c,credentialsFile:A}=await loadSharedConfigFiles(i);const l=A[a]||{};const d=c[a]||{};const h=n==="config"?{...l,...d}:{...d,...l};try{const i=n==="config"?c:A;const a=t(h,i);if(a===undefined){throw new Error}return a}catch(n){throw new CredentialsProviderError(n.message||`Not found in config files w/ profile [${a}]: ${getSelectorName(t.toString())}`,{logger:i.logger})}};const isFunction=t=>typeof t==="function";const fromStatic=t=>isFunction(t)?async()=>await t():fromValue(t);const loadConfig=({environmentVariableSelector:t,configFileSelector:n,default:i},a={})=>{const{signingName:c,logger:A}=a;const l={signingName:c,logger:A};return memoize(chain(fromEnv(t,l),fromSharedConfigFiles(n,a),fromStatic(i)))};const k="AWS_USE_DUALSTACK_ENDPOINT";const D="use_dualstack_endpoint";const T=false;const N={environmentVariableSelector:t=>booleanSelector(t,k,p.ENV),configFileSelector:t=>booleanSelector(t,D,p.CONFIG),default:false};const M={environmentVariableSelector:t=>booleanSelector(t,k,p.ENV),configFileSelector:t=>booleanSelector(t,D,p.CONFIG),default:undefined};const F="AWS_USE_FIPS_ENDPOINT";const x="use_fips_endpoint";const U=false;const P={environmentVariableSelector:t=>booleanSelector(t,F,p.ENV),configFileSelector:t=>booleanSelector(t,x,p.CONFIG),default:false};const L={environmentVariableSelector:t=>booleanSelector(t,F,p.ENV),configFileSelector:t=>booleanSelector(t,x,p.CONFIG),default:undefined};const resolveCustomEndpointsConfig=t=>{const{tls:n,endpoint:i,urlParser:a,useDualstackEndpoint:c}=t;return Object.assign(t,{tls:n??true,endpoint:f(typeof i==="string"?a(i):i),isCustomEndpoint:true,useDualstackEndpoint:f(c??false)})};const getEndpointFromRegion=async t=>{const{tls:n=true}=t;const i=await t.region();const a=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!a.test(i)){throw new Error("Invalid region in client config")}const c=await t.useDualstackEndpoint();const A=await t.useFipsEndpoint();const{hostname:l}=await t.regionInfoProvider(i,{useDualstackEndpoint:c,useFipsEndpoint:A})??{};if(!l){throw new Error("Cannot resolve hostname from client config")}return t.urlParser(`${n?"https:":"http:"}//${l}`)};const resolveEndpointsConfig=t=>{const n=f(t.useDualstackEndpoint??false);const{endpoint:i,useFipsEndpoint:a,urlParser:c,tls:A}=t;return Object.assign(t,{tls:A??true,endpoint:i?f(typeof i==="string"?c(i):i):()=>getEndpointFromRegion({...t,useDualstackEndpoint:n,useFipsEndpoint:a}),isCustomEndpoint:!!i,useDualstackEndpoint:n})};const O="AWS_EXECUTION_ENV";const H="AWS_REGION";const $="AWS_DEFAULT_REGION";const V="AWS_EC2_METADATA_DISABLED";const G=["in-region","cross-region","mobile","standard","legacy"];const Y="/latest/meta-data/placement/region";const J="/latest/api/token";const W="x-aws-ec2-metadata-token";const q="x-aws-ec2-metadata-token-ttl-seconds";const j=1e3;const z=6e4;let K=0;const getInstanceMetadataRegion=async()=>{if(process.env[V]){return undefined}if(Date.now(){K=Date.now()+z;return undefined};const resolveImdsEndpoint=()=>{const t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){const n=new URL(t);return{hostname:n.hostname.replace(/^\[(.+)]$/,"$1"),port:n.port?Number(n.port):undefined}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"){return{hostname:"fd00:ec2::254"}}return{hostname:"169.254.169.254"}};const imdsRequest=async t=>{const{request:n}=i(7067);return new Promise((i,a)=>{const c=n({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:j,signal:AbortSignal.timeout(j)});c.on("error",t=>{a(t);c.destroy()});c.on("timeout",()=>{a(new Error("TimeoutError from instance metadata service"));c.destroy()});c.on("response",t=>{const{statusCode:n=400}=t;if(n<200||n>=300){a(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:n}));c.destroy();return}const A=[];t.on("data",t=>A.push(t));t.on("end",()=>{i(Buffer.concat(A));c.destroy()})});c.end()})};const Z="AWS_REGION";const X="region";const ee={environmentVariableSelector:t=>t[Z],configFileSelector:t=>t[X],default:async()=>{const t=await getInstanceMetadataRegion();if(t){return t}throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const re=new Set;const checkRegion=(t,n=g)=>{if(!re.has(t)&&!n(t)){if(t==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`)}}else{re.add(t)}};const isFipsRegion=t=>typeof t==="string"&&(t.startsWith("fips-")||t.endsWith("-fips"));const getRealRegion=t=>isFipsRegion(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t;const resolveRegionConfig=t=>{const{region:n,useFipsEndpoint:i}=t;if(!n){throw new Error("Region is missing")}return Object.assign(t,{region:async()=>{const t=typeof n==="function"?await n():n;const i=getRealRegion(t);checkRegion(i);return i},useFipsEndpoint:async()=>{const t=typeof n==="string"?n:await n();if(isFipsRegion(t)){return true}return typeof i!=="function"?Promise.resolve(!!i):i()}})};const getHostnameFromVariants=(t=[],{useFipsEndpoint:n,useDualstackEndpoint:i})=>t.find(({tags:t})=>n===t.includes("fips")&&i===t.includes("dualstack"))?.hostname;const getResolvedHostname=(t,{regionHostname:n,partitionHostname:i})=>n?n:i?i.replace("{region}",t):undefined;const getResolvedPartition=(t,{partitionHash:n})=>Object.keys(n||{}).find(i=>n[i].regions.includes(t))??"aws";const getResolvedSigningRegion=(t,{signingRegion:n,regionRegex:i,useFipsEndpoint:a})=>{if(n){return n}else if(a){const n=i.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const a=t.match(n);if(a){return a[0].slice(1,-1)}}};const getRegionInfo=(t,{useFipsEndpoint:n=false,useDualstackEndpoint:i=false,signingService:a,regionHash:c,partitionHash:A})=>{const l=getResolvedPartition(t,{partitionHash:A});const d=t in c?t:A[l]?.endpoint??t;const h={useFipsEndpoint:n,useDualstackEndpoint:i};const f=getHostnameFromVariants(c[d]?.variants,h);const g=getHostnameFromVariants(A[l]?.variants,h);const p=getResolvedHostname(d,{regionHostname:f,partitionHostname:g});if(p===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:d,useFipsEndpoint:n,useDualstackEndpoint:i}}`)}const m=getResolvedSigningRegion(p,{signingRegion:c[d]?.signingRegion,regionRegex:A[l].regionRegex,useFipsEndpoint:n});return{partition:l,signingService:a,hostname:p,...m&&{signingRegion:m},...c[d]?.signingService&&{signingService:c[d].signingService}}};const ne="AWS_DEFAULTS_MODE";const se="defaults_mode";const oe={environmentVariableSelector:t=>t[ne],configFileSelector:t=>t[se],default:"legacy"};const resolveDefaultsModeConfig=({region:t=loadConfig(ee),defaultsMode:n=loadConfig(oe)}={})=>memoize(async()=>{const i=typeof n==="function"?await n():n;switch(i?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(i?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${G.join(", ")}, got ${i}`)}});const resolveNodeDefaultsModeAuto=async t=>{if(t){const n=typeof t==="function"?await t():t;const i=await inferPhysicalRegion();if(!i){return"standard"}if(n===i){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[O]&&(process.env[H]||process.env[$])){return process.env[H]??process.env[$]}return getInstanceMetadataRegion()};n.CONFIG_PREFIX_SEPARATOR=y;n.CONFIG_USE_DUALSTACK_ENDPOINT=D;n.CONFIG_USE_FIPS_ENDPOINT=x;n.CredentialsProviderError=CredentialsProviderError;n.DEFAULT_PROFILE=C;n.DEFAULT_USE_DUALSTACK_ENDPOINT=T;n.DEFAULT_USE_FIPS_ENDPOINT=U;n.ENV_PROFILE=E;n.ENV_USE_DUALSTACK_ENDPOINT=k;n.ENV_USE_FIPS_ENDPOINT=F;n.NODE_REGION_CONFIG_FILE_OPTIONS=te;n.NODE_REGION_CONFIG_OPTIONS=ee;n.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=N;n.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=P;n.ProviderError=ProviderError;n.REGION_ENV_NAME=Z;n.REGION_INI_NAME=X;n.SelectorType=p;n.TokenProviderError=TokenProviderError;n.booleanSelector=booleanSelector;n.chain=chain;n.externalDataInterceptor=v;n.fromStatic=fromStatic;n.fromValue=fromValue;n.getHomeDir=getHomeDir;n.getProfileName=getProfileName;n.getRegionInfo=getRegionInfo;n.getSSOTokenFilepath=getSSOTokenFilepath;n.getSSOTokenFromFile=getSSOTokenFromFile;n.loadConfig=loadConfig;n.loadSharedConfigFiles=loadSharedConfigFiles;n.loadSsoSessionData=loadSsoSessionData;n.memoize=memoize;n.nodeDualstackConfigSelectors=M;n.nodeFipsConfigSelectors=L;n.numberSelector=numberSelector;n.parseKnownFiles=parseKnownFiles;n.readFile=readFile;n.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;n.resolveDefaultsModeConfig=resolveDefaultsModeConfig;n.resolveEndpointsConfig=resolveEndpointsConfig;n.resolveRegionConfig=resolveRegionConfig},2085:(t,n,i)=>{const{CONFIG_PREFIX_SEPARATOR:a,booleanSelector:c,SelectorType:A,loadConfig:l}=i(7291);const{toEndpointV1:d,getSmithyContext:h,normalizeProvider:f,isValidHostLabel:g}=i(4534);n.isValidHostLabel=g;n.middlewareEndpointToEndpointV1=d;n.toEndpointV1=d;const{EndpointURLScheme:p}=i(690);const m="AWS_ENDPOINT_URL";const E="endpoint_url";const getEndpointUrlConfig=t=>({environmentVariableSelector:n=>{const i=t.split(" ").map(t=>t.toUpperCase());const a=n[[m,...i].join("_")];if(a)return a;const c=n[m];if(c)return c;return undefined},configFileSelector:(n,i)=>{if(n.services){const c=["services",n.services].join(a);if(!i||!i[c]){throw new Error(`The services section "${n.services}" specified in the profile is not present in the shared configuration file.`)}const A=i[c];const l=t.split(" ").map(t=>t.toLowerCase());const d=A[[l.join("_"),E].join(a)];if(d)return d}const c=n[E];if(c)return c;return undefined},default:undefined});const C="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";const I="ignore_configured_endpoint_urls";const y={environmentVariableSelector:t=>c(t,C,A.ENV),configFileSelector:t=>c(t,I,A.CONFIG),default:false};const getEndpointFromConfig=async t=>{const n=await l(y)();if(n){return undefined}return l(getEndpointUrlConfig(t??""))()};const resolveParamsForS3=async t=>{const n=t?.Bucket||"";if(typeof t.Bucket==="string"){t.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(n)){if(t.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(n)||n.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3){t.ForcePathStyle=true}if(t.DisableMultiRegionAccessPoints){t.disableMultiRegionAccessPoints=true;t.DisableMRAP=true}return t};const B=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;const Q=/(\d+\.){3}\d+/;const w=/\.\./;const isDnsCompatibleBucketName=t=>B.test(t)&&!Q.test(t)&&!w.test(t);const isArnBucketName=t=>{const[n,i,a,,,c]=t.split(":");const A=n==="arn"&&t.split(":").length>=6;const l=Boolean(A&&i&&a&&c);if(A&&!l){throw new Error(`Invalid ARN: ${t} was an invalid ARN.`)}return l};const createConfigValueProvider=(t,n,i,a=false)=>{const configProvider=async()=>{let c;if(a){const a=i.clientContextParams;const A=a?.[t];c=A??i[t]??i[n]}else{c=i[t]??i[n]}if(typeof c==="function"){return c()}return c};if(t==="credentialScope"||n==="CredentialScope"){return async()=>{const t=typeof i.credentials==="function"?await i.credentials():i.credentials;const n=t?.credentialScope??t?.CredentialScope;return n}}if(t==="accountId"||n==="AccountId"){return async()=>{const t=typeof i.credentials==="function"?await i.credentials():i.credentials;const n=t?.accountId??t?.AccountId;return n}}if(t==="endpoint"||n==="endpoint"){return async()=>{if(i.isCustomEndpoint===false){return undefined}const t=await configProvider();if(t&&typeof t==="object"){if("url"in t){return t.url.href}if("hostname"in t){const{protocol:n,hostname:i,port:a,path:c}=t;return`${n}//${i}${a?":"+a:""}${c}`}}return t}}return configProvider};function bindGetEndpointFromInstructions(t){return async(n,i,a,c)=>{if(!a.isCustomEndpoint&&!a.ignoreConfiguredEndpointUrls){let n;if(a.serviceConfiguredEndpoint){n=await a.serviceConfiguredEndpoint()}else{n=await t(a.serviceId)}if(n){a.endpoint=()=>Promise.resolve(d(n));a.isCustomEndpoint=true;c?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${n}`)}}const A=await resolveParams(n,i,a);if(typeof a.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const l=a.endpointProvider(A,c);if(a.isCustomEndpoint&&a.endpoint){const t=await a.endpoint();if(t?.headers){l.headers??={};for(const[n,i]of Object.entries(t.headers)){l.headers[n]=Array.isArray(i)?i:[i]}}}return l}}const resolveParams=async(t,n,i)=>{const a={};const c=n?.getEndpointParameterInstructions?.()||{};for(const[n,A]of Object.entries(c)){switch(A.type){case"staticContextParams":a[n]=A.value;break;case"contextParams":a[n]=t[A.name];break;case"clientContextParams":case"builtInParams":a[n]=await createConfigValueProvider(A.name,n,i,A.type!=="builtInParams")();break;case"operationContextParams":a[n]=A.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(A))}}if(Object.keys(c).length===0){Object.assign(a,i)}if(String(i.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(a)}return a};function setFeature(t,n,i){if(!t.__smithy_context){t.__smithy_context={features:{}}}else if(!t.__smithy_context.features){t.__smithy_context.features={}}t.__smithy_context.features[n]=i}function bindEndpointMiddleware(t){const n=bindGetEndpointFromInstructions(t);return({config:t,instructions:i})=>(a,c)=>async A=>{if(t.isCustomEndpoint){setFeature(c,"ENDPOINT_OVERRIDE","N")}const l=await n(A.input,{getEndpointParameterInstructions(){return i}},{...t},c);c.endpointV2=l;c.authSchemes=l.properties?.authSchemes;const d=c.authSchemes?.[0];if(d){c["signing_region"]=d.signingRegion;c["signing_service"]=d.signingName;const t=h(c);const n=t?.selectedHttpAuthScheme?.httpAuthOption;if(n){n.signingProperties=Object.assign(n.signingProperties||{},{signing_region:d.signingRegion,signingRegion:d.signingRegion,signing_service:d.signingName,signingName:d.signingName,signingRegionSet:d.signingRegionSet},d.properties)}}return a({...A})}}const S={name:"serializerMiddleware"};const b={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:S.name};function bindGetEndpointPlugin(t){const n=bindEndpointMiddleware(t);return(t,i)=>({applyToStack:a=>{a.addRelativeTo(n({config:t,instructions:i}),b)}})}function bindResolveEndpointConfig(t){return n=>{const i=n.tls??true;const{endpoint:a,useDualstackEndpoint:c,useFipsEndpoint:A}=n;const l=a!=null?async()=>d(await f(a)()):undefined;const h=!!a;const g=Object.assign(n,{endpoint:l,tls:i,isCustomEndpoint:h,useDualstackEndpoint:f(c??false),useFipsEndpoint:f(A??false),ignoreConfiguredEndpointUrls:!!n.ignoreConfiguredEndpointUrls});let p=undefined;g.serviceConfiguredEndpoint=async()=>{if(n.serviceId&&!p){p=t(n.serviceId)}return p};return g}}class BinaryDecisionDiagram{nodes;root;conditions;results;constructor(t,n,i,a){this.nodes=t;this.root=n;this.conditions=i;this.results=a}static from(t,n,i,a){return new BinaryDecisionDiagram(t,n,i,a)}}class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50;if(n){this.parameters=n}}get(t,n){const i=this.hash(t);if(i===false){return n()}if(!this.data.has(i)){if(this.data.size>this.capacity+10){const t=this.data.keys();let n=0;while(true){const{value:i,done:a}=t.next();this.data.delete(i);if(a||++n>10){break}}}this.data.set(i,n())}return this.data.get(i)}size(){return this.data.size}hash(t){let n="";const{parameters:i}=this;if(i.length===0){return false}for(const a of i){const i=String(t[a]??"");if(i.includes("|;")){return false}n+=i+"|;"}return n}}class EndpointError extends Error{constructor(t){super(t);this.name="EndpointError"}}const R="endpoints";function toDebugString(t){if(typeof t!=="object"||t==null){return t}if("ref"in t){return`$${toDebugString(t.ref)}`}if("fn"in t){return`${t.fn}(${(t.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(t,null,2)}const v={};const booleanEquals=(t,n)=>t===n;function coalesce(...t){for(const n of t){if(n!=null){return n}}return undefined}const getAttrPathList=t=>{const n=t.split(".");const i=[];for(const a of n){const n=a.indexOf("[");if(n!==-1){if(a.indexOf("]")!==a.length-1){throw new EndpointError(`Path: '${t}' does not end with ']'`)}const c=a.slice(n+1,-1);if(Number.isNaN(parseInt(c))){throw new EndpointError(`Invalid array index: '${c}' in path: '${t}'`)}if(n!==0){i.push(a.slice(0,n))}i.push(c)}else{i.push(a)}}return i};const getAttr=(t,n)=>getAttrPathList(n).reduce((i,a)=>{if(typeof i!=="object"){throw new EndpointError(`Index '${a}' in '${n}' not found in '${JSON.stringify(t)}'`)}else if(Array.isArray(i)){const t=parseInt(a);return i[t<0?i.length+t:t]}return i[a]},t);const isSet=t=>t!=null;function ite(t,n,i){return t?n:i}const not=t=>!t;const k=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=t=>k.test(t)||t.startsWith("[")&&t.endsWith("]");const D={[p.HTTP]:80,[p.HTTPS]:443};const parseURL=t=>{const n=(()=>{try{if(t instanceof URL){return t}if(typeof t==="object"&&"hostname"in t){const{hostname:n,port:i,protocol:a="",path:c="",query:A={}}=t;const l=new URL(`${a}//${n}${i?`:${i}`:""}${c}`);l.search=Object.entries(A).map(([t,n])=>`${t}=${n}`).join("&");return l}return new URL(t)}catch(t){return null}})();if(!n){console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`);return null}const i=n.href;const{host:a,hostname:c,pathname:A,protocol:l,search:d}=n;if(d){return null}const h=l.slice(0,-1);if(!Object.values(p).includes(h)){return null}const f=isIpAddress(c);const g=i.includes(`${a}:${D[h]}`)||typeof t==="string"&&t.includes(`${a}:${D[h]}`);const m=`${a}${g?`:${D[h]}`:``}`;return{scheme:h,authority:m,path:A,normalizedPath:A.endsWith("/")?A:`${A}/`,isIp:f}};function split(t,n,i){if(i===1){return[t]}if(t===""){return[""]}const a=t.split(n);if(i===0){return a}return a.slice(0,i-1).concat(a.slice(1).join(n))}const stringEquals=(t,n)=>t===n;const substring=(t,n,i,a)=>{if(t==null||n>=i||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);const T={booleanEquals:booleanEquals,coalesce:coalesce,getAttr:getAttr,isSet:isSet,isValidHostLabel:g,ite:ite,not:not,parseURL:parseURL,split:split,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(t,n)=>{const i=[];const{referenceRecord:a,endpointParams:c}=n;let A=0;while(An.referenceRecord[t]??n.endpointParams[t];const evaluateExpression=(t,n,i)=>{if(typeof t==="string"){return evaluateTemplate(t,i)}else if(t["fn"]){return N.callFunction(t,i)}else if(t["ref"]){return getReferenceValue(t,i)}throw new EndpointError(`'${n}': ${String(t)} is not a string, function or reference.`)};const callFunction=({fn:t,argv:n},i)=>{const a=Array(n.length);for(let t=0;t{const{assign:i}=t;if(i&&i in n.referenceRecord){throw new EndpointError(`'${i}' is already defined in Reference Record.`)}const a=callFunction(t,n);n.logger?.debug?.(`${R} evaluateCondition: ${toDebugString(t)} = ${toDebugString(a)}`);const c=a===""?true:!!a;if(i!=null){return{result:c,toAssign:{name:i,value:a}}}return{result:c}};const getEndpointHeaders=(t,n)=>Object.entries(t??{}).reduce((t,[i,a])=>{t[i]=a.map(t=>{const a=evaluateExpression(t,"Header value entry",n);if(typeof a!=="string"){throw new EndpointError(`Header '${i}' value '${a}' is not a string`)}return a});return t},{});const getEndpointProperties=(t,n)=>Object.entries(t).reduce((t,[i,a])=>{t[i]=M.getEndpointProperty(a,n);return t},{});const getEndpointProperty=(t,n)=>{if(Array.isArray(t)){return t.map(t=>getEndpointProperty(t,n))}switch(typeof t){case"string":return evaluateTemplate(t,n);case"object":if(t===null){throw new EndpointError(`Unexpected endpoint property: ${t}`)}return M.getEndpointProperties(t,n);case"boolean":return t;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof t}`)}};const M={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(t,n)=>{const i=evaluateExpression(t,"Endpoint URL",n);if(typeof i==="string"){try{return new URL(i)}catch(t){console.error(`Failed to construct URL with ${i}`,t);throw t}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof i}`)};const F=1e8;const decideEndpoint=(t,n)=>{const{nodes:i,root:a,results:c,conditions:A}=t;let l=a;const d={};const h={referenceRecord:d,endpointParams:n.endpointParams,logger:n.logger};while(l!==1&&l!==-1&&l=0===m.result?a:c}if(l>=F){const t=c[l-F];if(t[0]===-1){const[,n]=t;throw new EndpointError(evaluateExpression(n,"Error",h))}const[n,i,a]=t;return{url:getEndpointUrl(n,h),properties:getEndpointProperties(i,h),headers:getEndpointHeaders(a??{},h)}}throw new EndpointError(`No matching endpoint.`)};const evaluateConditions=(t=[],n)=>{const i={};const a={...n,referenceRecord:{...n.referenceRecord}};let c=false;for(const A of t){const{result:t,toAssign:l}=evaluateCondition(A,a);if(!t){return{result:t}}if(l){c=true;i[l.name]=l.value;a.referenceRecord[l.name]=l.value;n.logger?.debug?.(`${R} assign: ${l.name} := ${toDebugString(l.value)}`)}}if(c){return{result:true,referenceRecord:i}}return{result:true}};const evaluateEndpointRule=(t,n)=>{const{conditions:i,endpoint:a}=t;const{result:c,referenceRecord:A}=evaluateConditions(i,n);if(!c){return}const l=A?{...n,referenceRecord:{...n.referenceRecord,...A}}:n;const{url:d,properties:h,headers:f}=a;n.logger?.debug?.(`${R} Resolving endpoint from template: ${toDebugString(a)}`);const g={url:getEndpointUrl(d,l)};if(f!=null){g.headers=getEndpointHeaders(f,l)}if(h!=null){g.properties=getEndpointProperties(h,l)}return g};const evaluateErrorRule=(t,n)=>{const{conditions:i,error:a}=t;const{result:c,referenceRecord:A}=evaluateConditions(i,n);if(!c){return}const l=A?{...n,referenceRecord:{...n.referenceRecord,...A}}:n;throw new EndpointError(evaluateExpression(a,"Error",l))};const evaluateRules=(t,n)=>{for(const i of t){if(i.type==="endpoint"){const t=evaluateEndpointRule(i,n);if(t){return t}}else if(i.type==="error"){evaluateErrorRule(i,n)}else if(i.type==="tree"){const t=x.evaluateTreeRule(i,n);if(t){return t}}else{throw new EndpointError(`Unknown endpoint rule: ${i}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(t,n)=>{const{conditions:i,rules:a}=t;const{result:c,referenceRecord:A}=evaluateConditions(i,n);if(!c){return}const l=A?{...n,referenceRecord:{...n.referenceRecord,...A}}:n;return x.evaluateRules(a,l)};const x={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(t,n)=>{const{endpointParams:i,logger:a}=n;const{parameters:c,rules:A}=t;n.logger?.debug?.(`${R} Initial EndpointParams: ${toDebugString(i)}`);for(const t in c){const n=c[t];const a=i[t];if(a==null&&n.default!=null){i[t]=n.default;continue}if(n.required&&a==null){throw new EndpointError(`Missing required parameter: '${t}'`)}}const l=evaluateRules(A,{endpointParams:i,logger:a,referenceRecord:{}});n.logger?.debug?.(`${R} Resolved endpoint: ${toDebugString(l)}`);return l};const resolveEndpointRequiredConfig=t=>{const{endpoint:n}=t;if(n===undefined){t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return t};const U=bindGetEndpointFromInstructions(getEndpointFromConfig);const P=bindResolveEndpointConfig(getEndpointFromConfig);const L=bindEndpointMiddleware(getEndpointFromConfig);const O=bindGetEndpointPlugin(getEndpointFromConfig);n.BinaryDecisionDiagram=BinaryDecisionDiagram;n.EndpointCache=EndpointCache;n.EndpointError=EndpointError;n.customEndpointFunctions=v;n.decideEndpoint=decideEndpoint;n.endpointMiddleware=L;n.endpointMiddlewareOptions=b;n.getEndpointFromInstructions=U;n.getEndpointPlugin=O;n.isIpAddress=isIpAddress;n.resolveEndpoint=resolveEndpoint;n.resolveEndpointConfig=P;n.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;n.resolveParams=resolveParams},6579:(t,n,i)=>{const{Crc32:a}=i(9542);const{toHex:c,fromHex:A,toUtf8:l,fromUtf8:d}=i(2430);const{Readable:h}=i(7075);const{TypeRegistry:f}=i(6890);class Int64{bytes;constructor(t){this.bytes=t;if(t.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000){throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`)}const n=new Uint8Array(8);for(let i=7,a=Math.abs(Math.round(t));i>-1&&a>0;i--,a/=256){n[i]=a}if(t<0){negate(n)}return new Int64(n)}valueOf(){const t=this.bytes.slice(0);const n=t[0]&128;if(n){negate(t)}return parseInt(c(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function negate(t){for(let n=0;n<8;n++){t[n]^=255}for(let n=7;n>-1;n--){t[n]++;if(t[n]!==0)break}}class HeaderMarshaller{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t;this.fromUtf8=n}format(t){const n=[];for(const i of Object.keys(t)){const a=this.fromUtf8(i);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[i]))}const i=new Uint8Array(n.reduce((t,n)=>t+n.byteLength,0));let a=0;for(const t of n){i.set(t,a);a+=t.byteLength}return i}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?g.boolTrue:g.boolFalse]);case"byte":return Uint8Array.from([g.byte,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));n.setUint8(0,g.short);n.setInt16(1,t.value,false);return new Uint8Array(n.buffer);case"integer":const i=new DataView(new ArrayBuffer(5));i.setUint8(0,g.integer);i.setInt32(1,t.value,false);return new Uint8Array(i.buffer);case"long":const a=new Uint8Array(9);a[0]=g.long;a.set(t.value.bytes,1);return a;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,g.byteArray);c.setUint16(1,t.value.byteLength,false);const l=new Uint8Array(c.buffer);l.set(t.value,3);return l;case"string":const d=this.fromUtf8(t.value);const h=new DataView(new ArrayBuffer(3+d.byteLength));h.setUint8(0,g.string);h.setUint16(1,d.byteLength,false);const f=new Uint8Array(h.buffer);f.set(d,3);return f;case"timestamp":const p=new Uint8Array(9);p[0]=g.timestamp;p.set(Int64.fromNumber(t.value.valueOf()).bytes,1);return p;case"uuid":if(!S.test(t.value)){throw new Error(`Invalid UUID received: ${t.value}`)}const m=new Uint8Array(17);m[0]=g.uuid;m.set(A(t.value.replace(/-/g,"")),1);return m}}parse(t){const n={};let i=0;while(i{if(typeof t!=="number"){throw new Error("Attempted to allocate an event message where size was not a number: "+t)}n=t;i=4;a=new Uint8Array(t);const c=new DataView(a.buffer);c.setUint32(0,t,false)};const iterator=async function*(){const A=t[Symbol.asyncIterator]();while(true){const{value:t,done:l}=await A.next();if(l){if(!n){return}else if(n===i){yield a}else{throw new Error("Truncated event message received.")}return}const d=t.length;let h=0;while(hnew D(t);class EventStreamMarshaller{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new D({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const i=typeof t[Symbol.asyncIterator]==="function"?t:readableToIterable(t);return this.universalMarshaller.deserialize(i,n)}serialize(t,n){return h.from(this.universalMarshaller.serialize(t,n))}}const eventStreamSerdeProvider=t=>new EventStreamMarshaller(t);async function*readableToIterable(t){let n=false;let i=false;const a=new Array;t.on("error",t=>{if(!n){n=true}if(t){throw t}});t.on("data",t=>{a.push(t)});t.on("end",()=>{n=true});while(!i){const t=await new Promise(t=>setTimeout(()=>t(a.shift()),0));if(t){yield t}i=n&&a.length===0}}const readableStreamToIterable=t=>({[Symbol.asyncIterator]:async function*(){const n=t.getReader();try{while(true){const{done:t,value:i}=await n.read();if(t)return;yield i}}finally{n.releaseLock()}}});const iterableToReadableStream=t=>{const n=t[Symbol.asyncIterator]();return new ReadableStream({async pull(t){const{done:i,value:a}=await n.next();if(i){return t.close()}t.enqueue(a)}})};const resolveEventStreamSerdeConfig=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)});class EventStreamSerde{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:t,serializer:n,deserializer:i,serdeContext:a,defaultContentType:c,compositeErrorRegistry:A}){this.marshaller=t;this.serializer=n;this.deserializer=i;this.serdeContext=a;this.defaultContentType=c;this.compositeErrorRegistry=A}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:i}){const a=this.marshaller;const c=n.getEventStreamMember();const A=n.getMemberSchema(c);const l=this.serializer;const d=this.defaultContentType;const h=Symbol("initialRequestMarker");const f={async*[Symbol.asyncIterator](){if(i){const t={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:d}};l.write(n,i);const a=l.flush();yield{[h]:true,headers:t,body:a}}for await(const n of t){yield n}}};return a.serialize(f,t=>{if(t[h]){return{headers:t.headers,body:t.body}}let n="";for(const i in t){if(i!=="__type"){n=i;break}}const{additionalHeaders:i,body:a,eventType:c,explicitPayloadContentType:l}=this.writeEventBody(n,A,t);const f={":event-type":{type:"string",value:c},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:l??d},...i};return{headers:f,body:a}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:i}){const a=this.marshaller;const c=n.getEventStreamMember();const A=n.getMemberSchema(c);const d=A.getMemberSchemas();const h=Symbol("initialResponseMarker");const f=a.deserialize(t.body,async t=>{let i="";for(const n in t){if(n!=="__type"){i=n;break}}const a=t[i].body;if(i==="initial-response"){const t=await this.deserializer.read(n,a);delete t[c];return{[h]:true,...t}}else if(i in d){const n=d[i];if(n.isStructSchema()){const c={};let A=false;for(const[d,h]of n.structIterator()){const{eventHeader:n,eventPayload:f}=h.getMergedTraits();A=A||Boolean(n||f);if(f){if(h.isBlobSchema()){c[d]=a}else if(h.isStringSchema()){c[d]=(this.serdeContext?.utf8Encoder??l)(a)}else if(h.isStructSchema()){c[d]=await this.deserializer.read(h,a)}}else if(n){const n=t[i].headers[d]?.value;if(n!=null){if(h.isNumericSchema()){if(n&&typeof n==="object"&&"bytes"in n){c[d]=BigInt(n.toString())}else{c[d]=Number(n)}}else{c[d]=n}}}}return{[i]:await this.readEventMember(n,a,A,c)}}return{[i]:await this.deserializer.read(n,a)}}else{return{$unknown:t}}});const g=f[Symbol.asyncIterator]();const p=await g.next();if(p.done){return f}if(p.value?.[h]){if(!n){throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.")}for(const t in p.value){i[t]=p.value[t]}}return{async*[Symbol.asyncIterator](){if(!p?.value?.[h]){yield p.value}while(true){const{done:t,value:n}=await g.next();if(t){break}yield n}}}}async readEventMember(t,n,i,a){let c;const A=t.getSchema();if(Array.isArray(A)&&A[0]===-3){const t=A[1];const n=f.for(t);this.compositeErrorRegistry?.copyFrom(n);c=(this.compositeErrorRegistry??n)?.getErrorCtor(A)}const l=i?a:n.byteLength===0?{}:await this.deserializer.read(t,n);if(c){const n=l.message??l.Message??"Unknown";const i={};const a=t.getMergedTraits().error;if(a){i.$fault=a}return Object.assign(new c({}),i,{message:n},l)}return l}writeEventBody(t,n,i){const a=this.serializer;let c=t;let A=null;let l;const h=(()=>{const i=n.getSchema();return i[4].includes(t)})();const f={};if(!h){const[n,A]=i[t];c=n;a.write(15,A)}else{const c=n.getMemberSchema(t);if(c.isStructSchema()){for(const[n,a]of c.structIterator()){const{eventHeader:c,eventPayload:l}=a.getMergedTraits();if(l){A=n}else if(c){const c=i[t][n];let A="binary";if(a.isNumericSchema()){if((-2)**31<=c&&c<=2**31-1){A="integer"}else{A="long"}}else if(a.isTimestampSchema()){A="timestamp"}else if(a.isStringSchema()){A="string"}else if(a.isBooleanSchema()){A="boolean"}if(c!=null){f[n]={type:A,value:c};delete i[t][n]}}}if(A!==null){const n=c.getMemberSchema(A);if(n.isBlobSchema()){l="application/octet-stream"}else if(n.isStringSchema()){l="text/plain"}a.write(n,i[t][A])}else{a.write(c,i[t])}}else if(c.isUnitSchema()){a.write(c,{})}else{throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}}const g=a.flush()??new Uint8Array;const p=typeof g==="string"?(this.serdeContext?.utf8Decoder??d)(g):g;return{body:p,eventType:c,explicitPayloadContentType:l,additionalHeaders:f}}}n.EventStreamCodec=EventStreamCodec;n.EventStreamMarshaller=EventStreamMarshaller;n.EventStreamSerde=EventStreamSerde;n.HeaderMarshaller=HeaderMarshaller;n.Int64=Int64;n.MessageDecoderStream=MessageDecoderStream;n.MessageEncoderStream=MessageEncoderStream;n.SmithyMessageDecoderStream=SmithyMessageDecoderStream;n.SmithyMessageEncoderStream=SmithyMessageEncoderStream;n.UniversalEventStreamMarshaller=D;n.eventStreamSerdeProvider=eventStreamSerdeProvider;n.getChunkedStream=getChunkedStream;n.getMessageUnmarshaller=getMessageUnmarshaller;n.getUnmarshalledStream=getUnmarshalledStream;n.iterableToReadableStream=iterableToReadableStream;n.readableStreamToIterable=readableStreamToIterable;n.resolveEventStreamSerdeConfig=resolveEventStreamSerdeConfig;n.universalEventStreamSerdeProvider=eventStreamSerdeProvider$1},3422:(t,n,i)=>{const{Uint8ArrayBlobAdapter:a,sdkStreamMixin:c,splitEvery:A,splitHeader:l,fromBase64:d,_parseEpochTimestamp:h,_parseRfc7231DateTime:f,_parseRfc3339DateTimeWithOffset:g,LazyJsonString:p,NumericValue:m,toUtf8:E,fromUtf8:C,generateIdempotencyToken:I,toBase64:y,dateToUtcString:B,quoteHeader:Q}=i(2430);const{TypeRegistry:w,NormalizedSchema:S,translateTraits:b}=i(6890);const{HttpRequest:R,HttpResponse:v,isValidHostname:k}=i(4534);const{parseQueryString:D,parseUrl:T}=i(4534);n.HttpRequest=R;n.HttpResponse=v;n.isValidHostname=k;n.parseQueryString=D;n.parseUrl=T;const{FieldPosition:N}=i(690);const collectBody=async(t=new Uint8Array,n)=>{if(t instanceof Uint8Array){return a.mutate(t)}if(!t){return a.mutate(new Uint8Array)}const i=n.streamCollector(t);return a.mutate(await i)};function extendedEncodeURIComponent(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}class SerdeContext{serdeContext;setSerdeContext(t){this.serdeContext=t}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(t){super();this.options=t;this.compositeErrorRegistry=w.for(t.defaultNamespace);for(const n of t.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(n)}}getRequestType(){return R}getResponseType(){return v}setSerdeContext(t){this.serdeContext=t;this.serializer.setSerdeContext(t);this.deserializer.setSerdeContext(t);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(t)}}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol;t.hostname=n.url.hostname;t.port=n.url.port?Number(n.url.port):undefined;t.path=n.url.pathname;t.fragment=n.url.hash||void 0;t.username=n.url.username||void 0;t.password=n.url.password||void 0;if(!t.query){t.query={}}for(const[i,a]of n.url.searchParams.entries()){t.query[i]=a}if(n.headers){for(const i in n.headers){t.headers[i]=n.headers[i].join(", ")}}return t}else{t.protocol=n.protocol;t.hostname=n.hostname;t.port=n.port?Number(n.port):undefined;t.path=n.path;t.query={...n.query};if(n.headers){for(const i in n.headers){t.headers[i]=n.headers[i]}}return t}}setHostPrefix(t,n,i){if(this.serdeContext?.disableHostPrefix){return}const a=S.of(n.input);const c=b(n.traits??{});if(c.endpoint){let n=c.endpoint?.[0];if(typeof n==="string"){for(const[t,c]of a.structIterator()){if(!c.getMergedTraits().hostLabel){continue}const a=i[t];if(typeof a!=="string"){throw new Error(`@smithy/core/schema - ${t} in input must be a string as hostLabel.`)}n=n.replace(`{${t}}`,a)}t.hostname=n+t.hostname;if(!k(t.hostname)){throw new Error(`[${t.hostname}] is not a valid hostname.`)}}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:i}){const a=await this.loadEventStreamCapability();return a.serializeEventStream({eventStream:t,requestSchema:n,initialRequest:i})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:i}){const a=await this.loadEventStreamCapability();return a.deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:i})}async loadEventStreamCapability(){const{EventStreamSerde:t,eventStreamSerdeProvider:n}=i(6579);const a=this.resolveEventStreamMarshaller(n);return new t({marshaller:a,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}resolveEventStreamMarshaller(t){const n=this.serdeContext;if(n.eventStreamMarshaller){return n.eventStreamMarshaller}return t(this.serdeContext)}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,i,a,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return t.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(t,n,i){const a=n&&typeof n==="object"?n:{};const c=this.serializer;const A={};const l={};const d=await i.endpoint();const h=S.of(t?.input);const f=[];const g=[];let p=false;let m;const E=new R({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:A,headers:l,body:undefined});if(d){this.updateServiceEndpoint(E,d);this.setHostPrefix(E,t,a);const n=b(t.traits);if(n.http){E.method=n.http[0];const[t,i]=n.http[1].split("?");if(E.path=="/"){E.path=t}else{E.path+=t}const a=new URLSearchParams(i??"");for(const[t,n]of a){A[t]=n}}}for(const[t,n]of h.structIterator()){const i=n.getMergedTraits()??{};const d=a[t];if(d==null&&!n.isIdempotencyToken()){if(i.httpLabel){if(E.path.includes(`{${t}+}`)||E.path.includes(`{${t}}`)){throw new Error(`No value provided for input HTTP label: ${t}.`)}}continue}if(i.httpPayload){const i=n.isStreaming();if(i){const i=n.isStructSchema();if(i){if(a[t]){m=await this.serializeEventStream({eventStream:a[t],requestSchema:h})}}else{m=d}}else{c.write(n,d);m=c.flush()}}else if(i.httpLabel){c.write(n,d);const i=c.flush();if(E.path.includes(`{${t}+}`)){E.path=E.path.replace(`{${t}+}`,i.split("/").map(extendedEncodeURIComponent).join("/"))}else if(E.path.includes(`{${t}}`)){E.path=E.path.replace(`{${t}}`,extendedEncodeURIComponent(i))}}else if(i.httpHeader){c.write(n,d);l[i.httpHeader.toLowerCase()]=String(c.flush())}else if(typeof i.httpPrefixHeaders==="string"){for(const t in d){const a=d[t];const A=i.httpPrefixHeaders+t;c.write([n.getValueSchema(),{httpHeader:A}],a);l[A.toLowerCase()]=c.flush()}}else if(i.httpQuery||i.httpQueryParams){this.serializeQuery(n,d,A)}else{p=true;f.push(t);g.push(n)}}if(p&&a){const[t,n]=(h.getName(true)??"#Unknown").split("#");const i=h.getSchema()[6];const A=[3,t,n,h.getMergedTraits(),f,g,undefined];if(i){A[6]=i}else{A.pop()}c.write(A,a);m=c.flush()}E.headers=l;E.query=A;E.body=m;return E}serializeQuery(t,n,i){const a=this.serializer;const c=t.getMergedTraits();if(c.httpQueryParams){for(const a in n){if(!(a in i)){const A=n[a];const l=t.getValueSchema();Object.assign(l.getMergedTraits(),{...c,httpQuery:a,httpQueryParams:undefined});this.serializeQuery(l,A,i)}}return}if(t.isListSchema()){const A=!!t.getMergedTraits().sparse;const l=[];for(const i of n){a.write([t.getValueSchema(),c],i);const n=a.flush();if(A||n!==undefined){l.push(n)}}i[c.httpQuery]=l}else{a.write([t,c],n);i[c.httpQuery]=a.flush()}}async deserializeResponse(t,n,i){const a=this.deserializer;const c=S.of(t.output);const A={};if(i.statusCode>=300){const c=await collectBody(i.body,n);if(c.byteLength>0){Object.assign(A,await a.read(15,c))}await this.handleError(t,n,i,A,this.deserializeMetadata(i));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const t in i.headers){const n=i.headers[t];delete i.headers[t];i.headers[t.toLowerCase()]=n}const l=await this.deserializeHttpMessage(c,n,i,A);if(l.length){const t=await collectBody(i.body,n);if(t.byteLength>0){const n=await a.read(c,t);for(const t of l){if(n[t]!=null){A[t]=n[t]}}}}else if(l.discardResponseBody){await collectBody(i.body,n)}A.$metadata=this.deserializeMetadata(i);return A}async deserializeHttpMessage(t,n,i,a,d){let h;if(a instanceof Set){h=d}else{h=a}let f=true;const g=this.deserializer;const p=S.of(t);const m=[];for(const[t,a]of p.structIterator()){const d=a.getMemberTraits();if(d.httpPayload){f=false;const A=a.isStreaming();if(A){const n=a.isStructSchema();if(n){h[t]=await this.deserializeEventStream({response:i,responseSchema:p})}else{h[t]=c(i.body)}}else if(i.body){const c=await collectBody(i.body,n);if(c.byteLength>0){h[t]=await g.read(a,c)}}}else if(d.httpHeader){const n=String(d.httpHeader).toLowerCase();const c=i.headers[n];if(null!=c){if(a.isListSchema()){const i=a.getValueSchema();i.getMergedTraits().httpHeader=n;let d;if(i.isTimestampSchema()&&i.getSchema()===4){d=A(c,",",2)}else{d=l(c)}const f=[];for(const t of d){f.push(await g.read(i,t.trim()))}h[t]=f}else{h[t]=await g.read(a,c)}}}else if(d.httpPrefixHeaders!==undefined){h[t]={};for(const n in i.headers){if(n.startsWith(d.httpPrefixHeaders)){const c=i.headers[n];const A=a.getValueSchema();A.getMergedTraits().httpHeader=n;h[t][n.slice(d.httpPrefixHeaders.length)]=await g.read(A,c)}}}else if(d.httpResponseCode){h[t]=i.statusCode}else{m.push(t)}}m.discardResponseBody=f;return m}}class RpcProtocol extends HttpProtocol{async serializeRequest(t,n,i){const a=this.serializer;const c={};const A={};const l=await i.endpoint();const d=S.of(t?.input);const h=d.getSchema();let f;const g=n&&typeof n==="object"?n:{};const p=new R({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:c,headers:A,body:undefined});if(l){this.updateServiceEndpoint(p,l);this.setHostPrefix(p,t,g)}if(g){const t=d.getEventStreamMember();if(t){if(g[t]){const n={};for(const[i,c]of d.structIterator()){if(i!==t&&g[i]){a.write(c,g[i]);n[i]=a.flush()}}f=await this.serializeEventStream({eventStream:g[t],requestSchema:d,initialRequest:n})}}else{a.write(h,g);f=a.flush()}}p.headers=Object.assign(p.headers,A);p.query=c;p.body=f;p.method="POST";return p}async deserializeResponse(t,n,i){const a=this.deserializer;const c=S.of(t.output);const A={};if(i.statusCode>=300){const c=await collectBody(i.body,n);if(c.byteLength>0){Object.assign(A,await a.read(15,c))}await this.handleError(t,n,i,A,this.deserializeMetadata(i));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const t in i.headers){const n=i.headers[t];delete i.headers[t];i.headers[t.toLowerCase()]=n}const l=c.getEventStreamMember();if(l){A[l]=await this.deserializeEventStream({response:i,responseSchema:c,initialResponseContainer:A})}else{const t=await collectBody(i.body,n);if(t.byteLength>0){Object.assign(A,await a.read(c,t))}}A.$metadata=this.deserializeMetadata(i);return A}}const resolvedPath=(t,n,i,a,c,A)=>{if(n!=null&&n[i]!==undefined){const n=a();if(n==null||n.length<=0){throw new Error("Empty value provided for input HTTP label: "+i+".")}t=t.replace(c,A?n.split("/").map(t=>extendedEncodeURIComponent(t)).join("/"):extendedEncodeURIComponent(n))}else{throw new Error("No value provided for input HTTP label: "+i+".")}return t};function requestBuilder(t,n){return new RequestBuilder(t,n)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,n){this.input=t;this.context=n}async build(){const{hostname:t,protocol:n="https",port:i,path:a}=await this.context.endpoint();this.path=a;for(const t of this.resolvePathStack){t(this.path)}return new R({protocol:n,hostname:this.hostname||t,port:i,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){this.hostname=t;return this}bp(t){this.resolvePathStack.push(n=>{this.path=`${n?.endsWith("/")?n.slice(0,-1):n||""}`+t});return this}p(t,n,i,a){this.resolvePathStack.push(c=>{this.path=resolvedPath(c,this.input,t,n,i,a)});return this}h(t){this.headers=t;return this}q(t){this.query=t;return this}b(t){this.body=t;return this}m(t){this.method=t;return this}}function determineTimestampFormat(t,n){if(n.timestampFormat.useTrait){if(t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7)){return t.getSchema()}}const{httpLabel:i,httpPrefixHeaders:a,httpHeader:c,httpQuery:A}=t.getMergedTraits();const l=n.httpBindings?typeof a==="string"||Boolean(c)?6:Boolean(A)||Boolean(i)?5:undefined:undefined;return l??n.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(t){super();this.settings=t}read(t,n){const i=S.of(t);if(i.isListSchema()){return l(n).map(t=>this.read(i.getValueSchema(),t))}if(i.isBlobSchema()){return(this.serdeContext?.base64Decoder??d)(n)}if(i.isTimestampSchema()){const t=determineTimestampFormat(i,this.settings);switch(t){case 5:return g(n);case 6:return f(n);case 7:return h(n);default:console.warn("Missing timestamp format, parsing value with Date constructor:",n);return new Date(n)}}if(i.isStringSchema()){const t=i.getMergedTraits().mediaType;let a=n;if(t){if(i.getMergedTraits().httpHeader){a=this.base64ToUtf8(a)}const n=t==="application/json"||t.endsWith("+json");if(n){a=p.from(a)}return a}}if(i.isNumericSchema()){return Number(n)}if(i.isBigIntegerSchema()){return BigInt(n)}if(i.isBigDecimalSchema()){return new m(n,"bigDecimal")}if(i.isBooleanSchema()){return String(n).toLowerCase()==="true"}return n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??E)((this.serdeContext?.base64Decoder??d)(t))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(t,n){super();this.codecDeserializer=t;this.stringDeserializer=new FromStringShapeDeserializer(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t);this.codecDeserializer.setSerdeContext(t);this.serdeContext=t}read(t,n){const i=S.of(t);const a=i.getMergedTraits();const c=this.serdeContext?.utf8Encoder??E;if(a.httpHeader||a.httpResponseCode){return this.stringDeserializer.read(i,c(n))}if(a.httpPayload){if(i.isBlobSchema()){const t=this.serdeContext?.utf8Decoder??C;if(typeof n==="string"){return t(n)}return n}else if(i.isStringSchema()){if("byteLength"in n){return c(n)}return n}}return this.codecDeserializer.read(i,n)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(t){super();this.settings=t}write(t,n){const i=S.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(i.isTimestampSchema()){if(!(n instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${i.getName(true)}`)}const t=determineTimestampFormat(i,this.settings);switch(t){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=B(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n);this.stringBuffer=String(n.getTime()/1e3)}return}if(i.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??y)(n);return}if(i.isListSchema()&&Array.isArray(n)){let t="";for(const a of n){this.write([i.getValueSchema(),i.getMergedTraits()],a);const n=this.flush();const c=i.getValueSchema().isTimestampSchema()?n:Q(n);if(t!==""){t+=", "}t+=c}this.stringBuffer=t;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const t=i.getMergedTraits().mediaType;let a=n;if(t){const n=t==="application/json"||t.endsWith("+json");if(n){a=p.from(a)}if(i.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??y)(a.toString());return}}this.stringBuffer=n;break;default:if(i.isIdempotencyToken()){this.stringBuffer=I()}else{this.stringBuffer=String(n)}}}flush(){const t=this.stringBuffer;this.stringBuffer="";return t}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(t,n,i=new ToStringShapeSerializer(n)){this.codecSerializer=t;this.stringSerializer=i}setSerdeContext(t){this.codecSerializer.setSerdeContext(t);this.stringSerializer.setSerdeContext(t)}write(t,n){const i=S.of(t);const a=i.getMergedTraits();if(a.httpHeader||a.httpLabel||a.httpQuery){this.stringSerializer.write(i,n);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(i,n)}flush(){if(this.buffer!==undefined){const t=this.buffer;this.buffer=undefined;return t}return this.codecSerializer.flush()}}class Field{name;kind;values;constructor({name:t,kind:n=N.HEADER,values:i=[]}){this.name=t;this.kind=n;this.values=i}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(n=>n!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:t=[],encoding:n="utf-8"}){t.forEach(this.setField.bind(this));this.encoding=n}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter(n=>n.kind===t)}}const getHttpHandlerExtensionConfiguration=t=>({setHttpHandler(n){t.httpHandler=n},httpHandler(){return t.httpHandler},updateHttpClientConfig(n,i){t.httpHandler?.updateHttpClientConfig(n,i)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=t=>({httpHandler:t.httpHandler()});const M="content-length";function contentLengthMiddleware(t){return n=>async i=>{const a=i.request;if(R.isInstance(a)){const{body:n,headers:i}=a;if(n&&Object.keys(i).map(t=>t.toLowerCase()).indexOf(M)===-1){try{const i=t(n);a.headers={...a.headers,[M]:String(i)}}catch(t){}}}return n({...i,request:a})}}const F={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=t=>({applyToStack:n=>{n.add(contentLengthMiddleware(t.bodyLengthChecker),F)}});const escapeUri=t=>encodeURIComponent(t).replace(/[!'()*]/g,hexEncode);const hexEncode=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=t=>t.split("/").map(escapeUri).join("/");function buildQueryString(t){const n=[];for(let i of Object.keys(t).sort()){const a=t[i];i=escapeUri(i);if(Array.isArray(a)){for(let t=0,c=a.length;t{const{Readable:a}=i(7075);const{NoOpLogger:c,normalizeProvider:A}=i(2658);const{HttpResponse:l,HttpRequest:d}=i(3422);const{parseRfc7231DateTime:h,v4:f}=i(2430);const isStreamingPayload=t=>t?.body instanceof a||typeof ReadableStream!=="undefined"&&t?.body instanceof ReadableStream;const g=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const p=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const m=["TimeoutError","RequestTimeout","RequestTimeoutException"];const E=[500,502,503,504];const C=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const I=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"];const isRetryableByTrait=t=>t?.$retryable!==undefined;const isClockSkewError=t=>g.includes(t.name);const isClockSkewCorrectedError=t=>t.$metadata?.clockSkewCorrected;const isBrowserNetworkError=t=>{const n=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const i=t&&t instanceof TypeError;if(!i){return false}return n.has(t.message)};const isThrottlingError=t=>t.$metadata?.httpStatusCode===429||p.includes(t.name)||t.$retryable?.throttling==true;const isTransientError=(t,n=0)=>isRetryableByTrait(t)||isClockSkewCorrectedError(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||m.includes(t.name)||C.includes(t?.code||"")||I.includes(t?.code||"")||E.includes(t.$metadata?.httpStatusCode||0)||isBrowserNetworkError(t)||isNodeJsHttp2TransientError(t)||t.cause!==undefined&&n<=10&&isTransientError(t.cause,n+1);const isServerError=t=>{if(t.$metadata?.httpStatusCode!==undefined){const n=t.$metadata.httpStatusCode;if(500<=n&&n<=599&&!isTransientError(t)){return true}return false}return false};function isNodeJsHttp2TransientError(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}const y=100;const B=20*1e3;const Q=500;const w=500;const S=5;const b=10;const R=1;const v="amz-sdk-invocation-id";const k="amz-sdk-request";function parseRetryAfterHeader(t,n){if(!l.isInstance(t)){return}for(const i of Object.keys(t.headers)){const a=i.toLowerCase();if(a==="retry-after"){const a=t.headers[i];let c=NaN;if(a.endsWith("GMT")){try{const t=h(a);c=(t.getTime()-Date.now())/1e3}catch(t){n?.trace?.("Failed to parse retry-after header");n?.trace?.(t)}}else if(a.match(/ GMT, ((\d+)|(\d+\.\d+))$/)){c=Number(a.match(/ GMT, ([\d.]+)$/)?.[1])}else if(a.match(/^((\d+)|(\d+\.\d+))$/)){c=Number(a)}else if(Date.parse(a)>=Date.now()){c=(Date.parse(a)-Date.now())/1e3}if(isNaN(c)){return}return new Date(Date.now()+c*1e3)}else if(a==="x-amz-retry-after"){const a=t.headers[i];const c=Number(a);if(isNaN(c)){n?.trace?.(`Failed to parse x-amz-retry-after=${a}`);return}return new Date(Date.now()+c)}}}function getRetryAfterHint(t,n){return parseRetryAfterHeader(t,n)}const asSdkError=t=>{if(t instanceof Error)return t;if(t instanceof Object)return Object.assign(new Error,t);if(typeof t==="string")return new Error(t);return new Error(`AWS SDK error wrapper for ${t}`)};function bindRetryMiddleware(t){return n=>(i,a)=>async A=>{let l=await n.retryStrategy();const h=await n.maxAttempts();if(isRetryStrategyV2(l)){l=l;let g=await l.acquireInitialRetryToken((a["partition_id"]??"")+(a.__retryLongPoll?":longpoll":""));let p=new Error;let m=0;let E=0;const{request:C}=A;const I=d.isInstance(C);if(I){C.headers[v]=f()}while(true){try{if(I){C.headers[k]=`attempt=${m+1}; max=${h}`}const{response:t,output:n}=await i(A);l.recordSuccess(g);n.$metadata.attempts=m+1;n.$metadata.totalRetryDelay=E;return{response:t,output:n}}catch(i){const A=getRetryErrorInfo(i,n.logger);p=asSdkError(i);if(I&&t(C)){(a.logger instanceof c?console:a.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw p}try{g=await l.refreshRetryTokenForRetry(g,A)}catch(t){if(!p.$metadata){p.$metadata={}}p.$metadata.attempts=m+1;p.$metadata.totalRetryDelay=E;throw p}m=g.getRetryCount();const d=g.getRetryDelay();E+=(g?.$retryLog?.acquisitionDelay??0)+d;if(d>0){await cooldown(d)}}}}else{l=l;if(l?.mode){a.userAgent=[...a.userAgent||[],["cfg/retry-mode",l.mode]]}return l.retry(i,A)}}}const cooldown=t=>new Promise(n=>setTimeout(n,t));const isRetryStrategyV2=t=>typeof t.acquireInitialRetryToken!=="undefined"&&typeof t.refreshRetryTokenForRetry!=="undefined"&&typeof t.recordSuccess!=="undefined";const getRetryErrorInfo=(t,n)=>{const i={error:t,errorType:getRetryErrorType(t)};const a=parseRetryAfterHeader(t.$response,n);if(a){i.retryAfterHint=a}return i};const getRetryErrorType=t=>{if(isThrottlingError(t))return"THROTTLING";if(isTransientError(t))return"TRANSIENT";if(isServerError(t))return"SERVER_ERROR";return"CLIENT_ERROR"};const D={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};function bindGetRetryPlugin(t){const n=bindRetryMiddleware(t);return t=>({applyToStack:i=>{i.add(n(t),D)}})}class DefaultRateLimiter{static setTimeoutFn=(t,n)=>setTimeout(t,n);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=false;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7;this.minCapacity=t?.minCapacity??1;this.minFillRate=t?.minFillRate??.5;this.scaleConstant=t?.scaleConstant??.4;this.smooth=t?.smooth??.8;this.lastThrottleTime=this.getCurrentTimeInSeconds();this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){let n;this.updateMeasuredRate();const i=t;const a=i?.errorType==="THROTTLING"||isThrottlingError(i?.error??t);if(a){const t=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=t;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();n=this.cubicThrottle(t);this.enableTokenBucket()}else{this.calculateTimeWindow();n=this.cubicSuccess(this.getCurrentTimeInSeconds())}const c=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(c)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(!this.enabled){return}this.refillTokenBucket();while(t>this.availableTokens){const n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>DefaultRateLimiter.setTimeoutFn(t,n));this.refillTokenBucket()}this.availableTokens=this.availableTokens-t}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+n);this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(t){this.refillTokenBucket();this.fillRate=Math.max(t,this.minFillRate);this.maxCapacity=Math.max(t,this.minCapacity);this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds();const n=Math.floor(t*2)/2;this.requestCount++;if(n>this.lastTxRateBucket){const t=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}class Retry{static v2026=typeof process!=="undefined"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return Retry.v2026?50:100}static throttlingDelay(){return Retry.v2026?1e3:500}static cost(){return Retry.v2026?14:5}static throttlingCost(){return Retry.v2026?5:10}static modifiedCostType(){return Retry.v2026?"THROTTLING":"TRANSIENT"}}class DefaultRetryBackoffStrategy{x=Retry.delay();computeNextBackoffDelay(t){const n=Math.random();const i=2;const a=n*Math.min(this.x*i**t,B);return Math.floor(a)}setDelayBase(t){this.x=t}}class DefaultRetryToken{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(t,n,i,a){this.delay=t;this.count=n;this.cost=i;this.longPoll=a}getRetryCount(){return this.count}getRetryDelay(){return Math.min(B,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var T;(function(t){t["STANDARD"]="standard";t["ADAPTIVE"]="adaptive"})(T||(T={}));const N=3;const M=T.STANDARD;const F={incompatible:1,attempts:2,capacity:3};let x=class StandardRetryStrategy{mode=T.STANDARD;retryBackoffStrategy;capacity=w;maxAttemptsProvider;baseDelay;constructor(t){if(typeof t==="number"){this.maxAttemptsProvider=async()=>t}else if(typeof t==="function"){this.maxAttemptsProvider=t}else if(t&&typeof t==="object"){this.maxAttemptsProvider=async()=>t.maxAttempts;this.baseDelay=t.baseDelay;this.retryBackoffStrategy=t.backoff}this.maxAttemptsProvider??=async()=>N;this.baseDelay??=Retry.delay();this.retryBackoffStrategy??=new DefaultRetryBackoffStrategy}async acquireInitialRetryToken(t){return new DefaultRetryToken(Retry.delay(),0,undefined,Retry.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,n){const i=await this.getMaxAttempts();const a=this.retryCode(t,n,i);const c=a===0;const A=t.isLongPoll?.();if(c||A){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?Retry.throttlingDelay():this.baseDelay);const l=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount());let d=l;if(n.retryAfterHint instanceof Date){d=Math.max(l,Math.min(n.retryAfterHint.getTime()-Date.now(),l+5e3))}if(!c){const t=Retry.v2026&&a===F.capacity&&A?d:0;if(t>0){await new Promise(n=>setTimeout(n,t))}}else{const n=this.getCapacityCost(i);this.capacity-=n;const a=new DefaultRetryToken(0,t.getRetryCount()+1,n,t.isLongPoll?.()??false);await new Promise(t=>setTimeout(t,d));a.$retryLog.acquisitionDelay=d;return a}}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.min(w,this.capacity+(t.getRetryCost()??R))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(t){console.warn(`Max attempts provider could not resolve. Using default of ${N}`);return N}}retryCode(t,n,i){const a=t.getRetryCount()+1;const c=this.isRetryableError(n.errorType)?0:F.incompatible;const A=a=this.getCapacityCost(n.errorType)?0:F.capacity;return c||A||l}getCapacityCost(t){return t===Retry.modifiedCostType()?Retry.throttlingCost():Retry.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};let U=class AdaptiveRetryStrategy{mode=T.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(t,n){const{rateLimiter:i}=n??{};this.rateLimiter=i??new DefaultRateLimiter;this.standardRetryStrategy=n?new x({maxAttempts:typeof t==="number"?t:3,...n}):new x(t)}async acquireInitialRetryToken(t){const n=await this.standardRetryStrategy.acquireInitialRetryToken(t);await this.rateLimiter.getSendToken();return n}async refreshRetryTokenForRetry(t,n){this.rateLimiter.updateClientSendingRate(n);const i=await this.standardRetryStrategy.refreshRetryTokenForRetry(t,n);await this.rateLimiter.getSendToken();return i}recordSuccess(t){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class ConfiguredRetryStrategy extends x{computeNextBackoffDelay;constructor(t,n=Retry.delay()){super(typeof t==="function"?t:async()=>t);if(typeof n==="number"){this.computeNextBackoffDelay=()=>n}else{this.computeNextBackoffDelay=n}this.retryBackoffStrategy.computeNextBackoffDelay=t=>{const n=t+1;return this.computeNextBackoffDelay(n)}}}const getDefaultRetryQuota=(t,n)=>{const i=t;const a=R;const c=S;const A=b;let l=t;const getCapacityAmount=t=>t.name==="TimeoutError"?A:c;const hasRetryTokens=t=>getCapacityAmount(t)<=l;const retrieveRetryTokens=t=>{if(!hasRetryTokens(t)){throw new Error("No retry token available")}const n=getCapacityAmount(t);l-=n;return n};const releaseRetryTokens=t=>{l+=t??a;l=Math.min(l,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(t,n)=>Math.floor(Math.min(B,Math.random()*2**n*t));const defaultRetryDecider=t=>{if(!t){return false}return isRetryableByTrait(t)||isClockSkewError(t)||isThrottlingError(t)||isTransientError(t)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=T.STANDARD;constructor(t,n){this.maxAttemptsProvider=t;this.retryDecider=n?.retryDecider??defaultRetryDecider;this.delayDecider=n?.delayDecider??defaultDelayDecider;this.retryQuota=n?.retryQuota??getDefaultRetryQuota(w)}shouldRetry(t,n,i){return nsetTimeout(t,l));continue}if(!n.$metadata){n.$metadata={}}n.$metadata.attempts=c;n.$metadata.totalRetryDelay=A;throw n}}}}const getDelayFromRetryAfterHeader=t=>{if(!l.isInstance(t))return;const n=Object.keys(t.headers).find(t=>t.toLowerCase()==="retry-after");if(!n)return;const i=t.headers[n];const a=Number(i);if(!Number.isNaN(a))return Math.min(a*1e3,2e4);const c=new Date(i);return Math.min(c.getTime()-Date.now(),2e4)};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(t,n){const{rateLimiter:i,...a}=n??{};super(t,a);this.rateLimiter=i??new DefaultRateLimiter;this.mode=T.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:t=>{this.rateLimiter.updateClientSendingRate(t)}})}}const P="AWS_MAX_ATTEMPTS";const L="max_attempts";const O={environmentVariableSelector:t=>{const n=t[P];if(!n)return undefined;const i=parseInt(n);if(Number.isNaN(i)){throw new Error(`Environment variable ${P} mast be a number, got "${n}"`)}return i},configFileSelector:t=>{const n=t[L];if(!n)return undefined;const i=parseInt(n);if(Number.isNaN(i)){throw new Error(`Shared config file entry ${L} mast be a number, got "${n}"`)}return i},default:N};const resolveRetryConfig=(t,n)=>{const{retryStrategy:i,retryMode:a}=t;const{defaultMaxAttempts:c=N,defaultBaseDelay:l=Retry.delay()}=n??{};const d=A(t.maxAttempts??c);let h=i?Promise.resolve(i):undefined;const getDefault=async()=>{const t=await d();const n=await A(a)()===T.ADAPTIVE;if(n){return new U(d,{maxAttempts:t,baseDelay:l})}return new x({maxAttempts:t,baseDelay:l})};return Object.assign(t,{maxAttempts:d,retryStrategy:()=>h??=getDefault()})};const H="AWS_RETRY_MODE";const $="retry_mode";const V={environmentVariableSelector:t=>t[H],configFileSelector:t=>t[$],default:M};const omitRetryHeadersMiddleware=()=>t=>async n=>{const{request:i}=n;if(d.isInstance(i)){delete i.headers[v];delete i.headers[k]}return t(n)};const G={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=t=>({applyToStack:t=>{t.addRelativeTo(omitRetryHeadersMiddleware(),G)}});const Y=bindRetryMiddleware(isStreamingPayload);const J=bindGetRetryPlugin(isStreamingPayload);n.AdaptiveRetryStrategy=U;n.CONFIG_MAX_ATTEMPTS=L;n.CONFIG_RETRY_MODE=$;n.ConfiguredRetryStrategy=ConfiguredRetryStrategy;n.DEFAULT_MAX_ATTEMPTS=N;n.DEFAULT_RETRY_DELAY_BASE=y;n.DEFAULT_RETRY_MODE=M;n.DefaultRateLimiter=DefaultRateLimiter;n.DeprecatedAdaptiveRetryStrategy=AdaptiveRetryStrategy;n.DeprecatedStandardRetryStrategy=StandardRetryStrategy;n.ENV_MAX_ATTEMPTS=P;n.ENV_RETRY_MODE=H;n.INITIAL_RETRY_TOKENS=w;n.INVOCATION_ID_HEADER=v;n.MAXIMUM_RETRY_DELAY=B;n.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=O;n.NODE_RETRY_MODE_CONFIG_OPTIONS=V;n.NO_RETRY_INCREMENT=R;n.REQUEST_HEADER=k;n.RETRY_COST=S;n.RETRY_MODES=T;n.Retry=Retry;n.StandardRetryStrategy=x;n.THROTTLING_RETRY_DELAY_BASE=Q;n.TIMEOUT_RETRY_COST=b;n.defaultDelayDecider=defaultDelayDecider;n.defaultRetryDecider=defaultRetryDecider;n.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;n.getRetryAfterHint=getRetryAfterHint;n.getRetryPlugin=J;n.isBrowserNetworkError=isBrowserNetworkError;n.isClockSkewCorrectedError=isClockSkewCorrectedError;n.isClockSkewError=isClockSkewError;n.isNodeJsHttp2TransientError=isNodeJsHttp2TransientError;n.isRetryableByTrait=isRetryableByTrait;n.isServerError=isServerError;n.isThrottlingError=isThrottlingError;n.isTransientError=isTransientError;n.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;n.omitRetryHeadersMiddlewareOptions=G;n.resolveRetryConfig=resolveRetryConfig;n.retryMiddleware=Y;n.retryMiddlewareOptions=D},6890:(t,n,i)=>{const{getSmithyContext:a,HttpResponse:c,toEndpointV1:A}=i(4534);const deref=t=>{if(typeof t==="function"){return t()}return t};const operation=(t,n,i,a,c)=>({name:n,namespace:t,traits:i,input:a,output:c});const schemaDeserializationMiddleware=t=>(n,i)=>async A=>{const{response:l}=await n(A);const{operationSchema:d}=a(i);const[,h,f,g,p,m]=d??[];try{const n=await t.protocol.deserializeResponse(operation(h,f,g,p,m),{...t,...i},l);return{response:l,output:n}}catch(t){Object.defineProperty(t,"$response",{value:l,enumerable:false,writable:false,configurable:false});if(!("$metadata"in t)){const n=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{t.message+="\n "+n}catch(t){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(n)}else{i.logger?.warn?.(n)}}if(typeof t.$responseBodyText!=="undefined"){if(t.$response){t.$response.body=t.$responseBodyText}}try{if(c.isInstance(l)){const{headers:n={},statusCode:i}=l;const a=Object.entries(n);t.$metadata={httpStatusCode:i,requestId:findHeader(/^x-[\w-]+-request-?id$/,a),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,a),cfId:findHeader(/^x-[\w-]+-cf-id$/,a)}}}catch(t){}}throw t}};const findHeader=(t,n)=>(n.find(([n])=>n.match(t))||[void 0,void 0])[1];const schemaSerializationMiddleware=t=>(n,i)=>async c=>{const{operationSchema:l}=a(i);const[,d,h,f,g,p]=l??[];const m=i.endpointV2?async()=>A(i.endpointV2):t.endpoint;const E=await t.protocol.serializeRequest(operation(d,h,f,g,p),c.input,{...t,...i,endpoint:m});return n({...c,request:E})};const l={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(t){return{applyToStack:n=>{n.add(schemaSerializationMiddleware(t),d);n.add(schemaDeserializationMiddleware(t),l);t.protocol.setSerdeContext(t)}}}class Schema{name;namespace;traits;static assign(t,n){const i=Object.assign(t,n);return i}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);if(!n&&typeof t==="object"&&t!==null){const n=t;return n.symbol===this.symbol}return n}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(t,n,i,a)=>Schema.assign(new ListSchema,{name:n,namespace:t,traits:i,valueSchema:a});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(t,n,i,a,c)=>Schema.assign(new MapSchema,{name:n,namespace:t,traits:i,keySchema:a,valueSchema:c});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(t,n,i,a,c)=>Schema.assign(new OperationSchema,{name:n,namespace:t,traits:i,input:a,output:c});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(t,n,i,a,c)=>Schema.assign(new StructureSchema,{name:n,namespace:t,traits:i,memberNames:a,memberList:c});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(t,n,i,a,c,A)=>Schema.assign(new ErrorSchema,{name:n,namespace:t,traits:i,memberNames:a,memberList:c,ctor:null});const h=[];function translateTraits(t){if(typeof t==="object"){return t}t=t|0;if(h[t]){return h[t]}const n={};let i=0;for(const a of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((t>>i++&1)===1){n[a]=1}}return h[t]=n}const f={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const g=[];const p={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t;this.memberName=n;const i=[];let a=t;let c=t;this._isMemberSchema=false;while(isMemberSchema(a)){i.push(a[1]);a=a[0];c=deref(a);this._isMemberSchema=true}if(i.length>0){this.memberTraits={};for(let t=i.length-1;t>=0;--t){const n=i[t];Object.assign(this.memberTraits,translateTraits(n))}}else{this.memberTraits=0}if(c instanceof NormalizedSchema){const t=this.memberTraits;Object.assign(this,c);this.memberTraits=Object.assign({},t,c.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=n??c.memberName;return}this.schema=deref(c);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(c);this.traits=0}if(this._isMemberSchema&&!n){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);if(!n&&typeof t==="object"&&t!==null){const n=t;return n.symbol===this.symbol}return n}static of(t){const n=typeof t==="function"||typeof t==="object"&&t!==null;if(typeof t==="number"){if(g[t]){return g[t]}}else if(typeof t==="string"){if(p[t]){return p[t]}}else if(n){if(t[f.ns]){return t[f.ns]}}const i=deref(t);if(i instanceof NormalizedSchema){return i}if(isMemberSchema(i)){const[n,a]=i;if(n instanceof NormalizedSchema){Object.assign(n.getMergedTraits(),translateTraits(a));return n}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}const a=new NormalizedSchema(i);if(n){return t[f.ns]=a}if(typeof i==="string"){return p[i]=a}if(typeof i==="number"){return g[i]=a}return a}getSchema(){const t=this.schema;if(Array.isArray(t)&&t[0]===0){return t[4]}return t}getName(t=false){const{name:n}=this;const i=!t&&n&&n.includes("#");return i?n.split("#")[1]:n||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t==="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t==="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!=="object"){return false}const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();if(typeof t!=="object"){return false}return t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t==="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const i=this.getSchema();const a=t?15:i[4]??0;return member([a,0],"key")}getValueSchema(){const t=this.getSchema();const[n,i,a]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const c=typeof t==="number"?63&t:t&&typeof t==="object"&&(i||a)?t[3+t[0]]:n?15:void 0;if(c!=null){return member([c,0],i?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const i=n[4].indexOf(t);const a=n[5][i];return member(isMemberSchema(a)?a:[a,0],t)}if(this.isDocumentSchema()){return member([15,0],t)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,i]of this.structIterator()){t[n]=i}}catch(t){}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator()){if(n.isStreaming()&&n.isStructSchema()){return t}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const t=this.getSchema();const n=t[4].length;let i=t[f.it];if(i&&n===i.length){yield*i;return}i=Array(n);for(let a=0;aArray.isArray(t)&&t.length===2;const isStaticSchema=t=>Array.isArray(t)&&t.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(t,n,i,a)=>Schema.assign(new SimpleSchema,{name:n,namespace:t,traits:a,schemaRef:i});const simAdapter=(t,n,i,a)=>Schema.assign(new SimpleSchema,{name:n,namespace:t,traits:i,schemaRef:a});const m={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,i=new Map){this.namespace=t;this.schemas=n;this.exceptions=i}static for(t){if(!TypeRegistry.registries.has(t)){TypeRegistry.registries.set(t,new TypeRegistry(t))}return TypeRegistry.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:i}=this;for(const[i,a]of t.schemas){if(!n.has(i)){n.set(i,a)}}for(const[n,a]of t.exceptions){if(!i.has(n)){i.set(n,a)}}}register(t,n){const i=this.normalizeShapeId(t);for(const t of[this,TypeRegistry.for(i.split("#")[0])]){t.schemas.set(i,n)}}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n)){if(!t.includes("#")){const n="#"+t;const i=[];for(const[t,a]of this.schemas.entries()){if(t.endsWith(n)){i.push(a)}}if(i.length===1){return i[0]}}throw new Error(`@smithy/core/schema - schema not found for ${n}`)}return this.schemas.get(n)}registerError(t,n){const i=t;const a=i[1];for(const t of[this,TypeRegistry.for(a)]){t.schemas.set(a+"#"+i[2],i);t.exceptions.set(i,n)}}getErrorCtor(t){const n=t;if(this.exceptions.has(n)){return this.exceptions.get(n)}const i=TypeRegistry.for(n[1]);return i.exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys()){if(Array.isArray(t)){const[,n,i]=t;const a=n+"#"+i;if(a.startsWith("smithy.ts.sdk.synthetic.")&&a.endsWith("ServiceException")){return t}}}return undefined}find(t){for(const n of this.schemas.values()){if(t(n)){return n}}return undefined}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(t){if(t.includes("#")){return t}return this.namespace+"#"+t}}n.ErrorSchema=ErrorSchema;n.ListSchema=ListSchema;n.MapSchema=MapSchema;n.NormalizedSchema=NormalizedSchema;n.OperationSchema=OperationSchema;n.SCHEMA=m;n.Schema=Schema;n.SimpleSchema=SimpleSchema;n.StructureSchema=StructureSchema;n.TypeRegistry=TypeRegistry;n.deref=deref;n.deserializerMiddlewareOption=l;n.error=error;n.getSchemaSerdePlugin=getSchemaSerdePlugin;n.isStaticSchema=isStaticSchema;n.list=list;n.map=map;n.op=op;n.operation=operation;n.serializerMiddlewareOption=d;n.sim=sim;n.simAdapter=simAdapter;n.simpleSchemaCacheN=g;n.simpleSchemaCacheS=p;n.struct=struct;n.traitsCache=h;n.translateTraits=translateTraits},2430:(t,n,i)=>{const{createHmac:a,createHash:c,getRandomValues:A}=i(7598);const{ReadStream:l,lstatSync:d,fstatSync:h}=i(3024);const{HttpResponse:f}=i(4534);const{toEndpointV1:g}=i(2085);const{Readable:p,Writable:m,PassThrough:E}=i(7075);const isArrayBuffer=t=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";const fromArrayBuffer=(t,n=0,i=t.byteLength-n)=>{if(!isArrayBuffer(t)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`)}return Buffer.from(t,n,i)};const fromString=(t,n)=>{if(typeof t!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`)}return n?Buffer.from(t,n):Buffer.from(t)};const C=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=t=>{if(t.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!C.exec(t)){throw new TypeError(`Invalid base64 string.`)}const n=fromString(t,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};const fromUtf8$1=t=>{const n=fromString(t,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toBase64$1=t=>{let n;if(typeof t==="string"){n=fromUtf8$1(t)}else{n=t}if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString("base64")};function bindUint8ArrayBlobAdapter(t,n,i,a){return class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(t,i="utf-8"){if(typeof t==="string"){if(i==="base64"){return Uint8ArrayBlobAdapter.mutate(a(t))}return Uint8ArrayBlobAdapter.mutate(n(t))}throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){Object.setPrototypeOf(t,Uint8ArrayBlobAdapter.prototype);return t}transformToString(n="utf-8"){if(n==="base64"){return i(this)}return t(this)}}}const toUtf8$1=t=>{if(typeof t==="string"){return t}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};const I=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function bindV4(t){if(typeof crypto!=="undefined"&&typeof crypto.randomUUID==="function"){return()=>crypto.randomUUID()}return()=>{const n=new Uint8Array(16);t(n);n[6]=n[6]&15|64;n[8]=n[8]&63|128;return I[n[0]]+I[n[1]]+I[n[2]]+I[n[3]]+"-"+I[n[4]]+I[n[5]]+"-"+I[n[6]]+I[n[7]]+"-"+I[n[8]]+I[n[9]]+"-"+I[n[10]]+I[n[11]]+I[n[12]]+I[n[13]]+I[n[14]]+I[n[15]]}}const copyDocumentWithTransform=(t,n,i=t=>t)=>t;const parseBoolean=t=>{switch(t){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${t}"`)}};const expectBoolean=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="number"){if(t===0||t===1){v.warn(stackTraceWarning(`Expected boolean, got ${typeof t}: ${t}`))}if(t===0){return false}if(t===1){return true}}if(typeof t==="string"){const n=t.toLowerCase();if(n==="false"||n==="true"){v.warn(stackTraceWarning(`Expected boolean, got ${typeof t}: ${t}`))}if(n==="false"){return false}if(n==="true"){return true}}if(typeof t==="boolean"){return t}throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)};const expectNumber=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="string"){const n=parseFloat(t);if(!Number.isNaN(n)){if(String(n)!==String(t)){v.warn(stackTraceWarning(`Expected number but observed string: ${t}`))}return n}}if(typeof t==="number"){return t}throw new TypeError(`Expected number, got ${typeof t}: ${t}`)};const y=Math.ceil(2**127*(2-2**-23));const expectFloat32=t=>{const n=expectNumber(t);if(n!==undefined&&!Number.isNaN(n)&&n!==Infinity&&n!==-Infinity){if(Math.abs(n)>y){throw new TypeError(`Expected 32-bit float, got ${t}`)}}return n};const expectLong=t=>{if(t===null||t===undefined){return undefined}if(Number.isInteger(t)&&!Number.isNaN(t)){return t}throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};const B=expectLong;const expectInt32=t=>expectSizedInt(t,32);const expectShort=t=>expectSizedInt(t,16);const expectByte=t=>expectSizedInt(t,8);const expectSizedInt=(t,n)=>{const i=expectLong(t);if(i!==undefined&&castInt(i,n)!==i){throw new TypeError(`Expected ${n}-bit integer, got ${t}`)}return i};const castInt=(t,n)=>{switch(n){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}};const expectNonNull=(t,n)=>{if(t===null||t===undefined){if(n){throw new TypeError(`Expected a non-null value for ${n}`)}throw new TypeError("Expected a non-null value")}return t};const expectObject=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="object"&&!Array.isArray(t)){return t}const n=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${n}: ${t}`)};const expectString=t=>{if(t===null||t===undefined){return undefined}if(typeof t==="string"){return t}if(["boolean","number","bigint"].includes(typeof t)){v.warn(stackTraceWarning(`Expected string, got ${typeof t}: ${t}`));return String(t)}throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};const expectUnion=t=>{if(t===null||t===undefined){return undefined}const n=expectObject(t);const i=[];for(const t in n){if(n[t]!=null){i.push(t)}}if(i.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(i.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${i} were not null.`)}return n};const strictParseDouble=t=>{if(typeof t=="string"){return expectNumber(parseNumber(t))}return expectNumber(t)};const Q=strictParseDouble;const strictParseFloat32=t=>{if(typeof t=="string"){return expectFloat32(parseNumber(t))}return expectFloat32(t)};const w=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=t=>{const n=t.match(w);if(n===null||n[0].length!==t.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(t)};const limitedParseDouble=t=>{if(typeof t=="string"){return parseFloatString(t)}return expectNumber(t)};const S=limitedParseDouble;const b=limitedParseDouble;const limitedParseFloat32=t=>{if(typeof t=="string"){return parseFloatString(t)}return expectFloat32(t)};const parseFloatString=t=>{switch(t){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${t}`)}};const strictParseLong=t=>{if(typeof t==="string"){return expectLong(parseNumber(t))}return expectLong(t)};const R=strictParseLong;const strictParseInt32=t=>{if(typeof t==="string"){return expectInt32(parseNumber(t))}return expectInt32(t)};const strictParseShort=t=>{if(typeof t==="string"){return expectShort(parseNumber(t))}return expectShort(t)};const strictParseByte=t=>{if(typeof t==="string"){return expectByte(parseNumber(t))}return expectByte(t)};const stackTraceWarning=t=>String(new TypeError(t).stack||t).split("\n").slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join("\n");const v={warn:console.warn};const k=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(t){const n=t.getUTCFullYear();const i=t.getUTCMonth();const a=t.getUTCDay();const c=t.getUTCDate();const A=t.getUTCHours();const l=t.getUTCMinutes();const d=t.getUTCSeconds();const h=c<10?`0${c}`:`${c}`;const f=A<10?`0${A}`:`${A}`;const g=l<10?`0${l}`:`${l}`;const p=d<10?`0${d}`:`${d}`;return`${k[a]}, ${h} ${D[i]} ${n} ${f}:${g}:${p} GMT`}const T=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const n=T.exec(t);if(!n){throw new TypeError("Invalid RFC-3339 date-time value")}const[i,a,c,A,l,d,h,f]=n;const g=strictParseShort(stripLeadingZeroes(a));const p=parseDateValue(c,"month",1,12);const m=parseDateValue(A,"day",1,31);return buildDate(g,p,m,{hours:l,minutes:d,seconds:h,fractionalMilliseconds:f})};const N=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const n=N.exec(t);if(!n){throw new TypeError("Invalid RFC-3339 date-time value")}const[i,a,c,A,l,d,h,f,g]=n;const p=strictParseShort(stripLeadingZeroes(a));const m=parseDateValue(c,"month",1,12);const E=parseDateValue(A,"day",1,31);const C=buildDate(p,m,E,{hours:l,minutes:d,seconds:h,fractionalMilliseconds:f});if(g.toUpperCase()!="Z"){C.setTime(C.getTime()-parseOffsetToMilliseconds(g))}return C};const M=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const F=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const x=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=t=>{if(t===null||t===undefined){return undefined}if(typeof t!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let n=M.exec(t);if(n){const[t,i,a,c,A,l,d,h]=n;return buildDate(strictParseShort(stripLeadingZeroes(c)),parseMonthByShortName(a),parseDateValue(i,"day",1,31),{hours:A,minutes:l,seconds:d,fractionalMilliseconds:h})}n=F.exec(t);if(n){const[t,i,a,c,A,l,d,h]=n;return adjustRfc850Year(buildDate(parseTwoDigitYear(c),parseMonthByShortName(a),parseDateValue(i,"day",1,31),{hours:A,minutes:l,seconds:d,fractionalMilliseconds:h}))}n=x.exec(t);if(n){const[t,i,a,c,A,l,d,h]=n;return buildDate(strictParseShort(stripLeadingZeroes(h)),parseMonthByShortName(i),parseDateValue(a.trimLeft(),"day",1,31),{hours:c,minutes:A,seconds:l,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=t=>{if(t===null||t===undefined){return undefined}let n;if(typeof t==="number"){n=t}else if(typeof t==="string"){n=strictParseDouble(t)}else if(typeof t==="object"&&t.tag===1){n=t.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(n)||n===Infinity||n===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(n*1e3))};const buildDate=(t,n,i,a)=>{const c=n-1;validateDayOfMonth(t,c,i);return new Date(Date.UTC(t,c,i,parseDateValue(a.hours,"hour",0,23),parseDateValue(a.minutes,"minute",0,59),parseDateValue(a.seconds,"seconds",0,60),parseMilliseconds(a.fractionalMilliseconds)))};const parseTwoDigitYear=t=>{const n=(new Date).getUTCFullYear();const i=Math.floor(n/100)*100+strictParseShort(stripLeadingZeroes(t));if(i{if(t.getTime()-(new Date).getTime()>U){return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()))}return t};const parseMonthByShortName=t=>{const n=D.indexOf(t);if(n<0){throw new TypeError(`Invalid month: ${t}`)}return n+1};const P=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(t,n,i)=>{let a=P[n];if(n===1&&isLeapYear(t)){a=29}if(i>a){throw new TypeError(`Invalid day for ${D[n]} in ${t}: ${i}`)}};const isLeapYear=t=>t%4===0&&(t%100!==0||t%400===0);const parseDateValue=(t,n,i,a)=>{const c=strictParseByte(stripLeadingZeroes(t));if(ca){throw new TypeError(`${n} must be between ${i} and ${a}, inclusive`)}return c};const parseMilliseconds=t=>{if(t===null||t===undefined){return 0}return strictParseFloat32("0."+t)*1e3};const parseOffsetToMilliseconds=t=>{const n=t[0];let i=1;if(n=="+"){i=1}else if(n=="-"){i=-1}else{throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`)}const a=Number(t.substring(1,3));const c=Number(t.substring(4,6));return i*(a*60+c)*60*1e3};const stripLeadingZeroes=t=>{let n=0;while(n{if(t&&typeof t==="object"&&(t instanceof L||"deserializeJSON"in t)){return t}else if(typeof t==="string"||Object.getPrototypeOf(t)===String.prototype){return L(String(t))}return L(JSON.stringify(t))};L.fromObject=L.from;function quoteHeader(t){if(t.includes(",")||t.includes('"')){t=`"${t.replace(/"/g,'\\"')}"`}return t}const O=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const H=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const $=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const V=`(\\d?\\d)`;const G=`(\\d{4})`;const Y=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const J=new RegExp(`^${O}, ${V} ${H} ${G} ${$} GMT$`);const W=new RegExp(`^${O}, ${V}-${H}-(\\d\\d) ${$} GMT$`);const q=new RegExp(`^${O} ${H} ( [1-9]|\\d\\d) ${$} ${G}$`);const j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=t=>{if(t==null){return void 0}let n=NaN;if(typeof t==="number"){n=t}else if(typeof t==="string"){if(!/^-?\d*\.?\d+$/.test(t)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}n=Number.parseFloat(t)}else if(typeof t==="object"&&t.tag===1){n=t.value}if(isNaN(n)||Math.abs(n)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(n*1e3))};const _parseRfc3339DateTimeWithOffset=t=>{if(t==null){return void 0}if(typeof t!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const n=Y.exec(t);if(!n){throw new TypeError(`Invalid RFC3339 timestamp format ${t}`)}const[,i,a,c,A,l,d,,h,f]=n;range(a,1,12);range(c,1,31);range(A,0,23);range(l,0,59);range(d,0,60);const g=new Date(Date.UTC(Number(i),Number(a)-1,Number(c),Number(A),Number(l),Number(d),Number(h)?Math.round(parseFloat(`0.${h}`)*1e3):0));g.setUTCFullYear(Number(i));if(f.toUpperCase()!="Z"){const[,t,n,i]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0];const a=t==="-"?1:-1;g.setTime(g.getTime()+a*(Number(n)*60*60*1e3+Number(i)*60*1e3))}return g};const _parseRfc7231DateTime=t=>{if(t==null){return void 0}if(typeof t!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let n;let i;let a;let c;let A;let l;let d;let h;if(h=J.exec(t)){[,n,i,a,c,A,l,d]=h}else if(h=W.exec(t)){[,n,i,a,c,A,l,d]=h;a=(Number(a)+1900).toString()}else if(h=q.exec(t)){[,i,n,c,A,l,d,a]=h}if(a&&l){const t=Date.UTC(Number(a),j.indexOf(i),Number(n),Number(c),Number(A),Number(l),d?Math.round(parseFloat(`0.${d}`)*1e3):0);range(n,1,31);range(c,0,23);range(A,0,59);range(l,0,60);const h=new Date(t);h.setUTCFullYear(Number(a));return h}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)};function range(t,n,i){const a=Number(t);if(ai){throw new Error(`Value ${a} out of range [${n}, ${i}]`)}}function splitEvery(t,n,i){if(i<=0||!Number.isInteger(i)){throw new Error("Invalid number of delimiters ("+i+") for splitEvery.")}const a=t.split(n);if(i===1){return a}const c=[];let A="";for(let t=0;t{const n=t.length;const i=[];let a=false;let c=undefined;let A=0;for(let l=0;l{t=t.trim();const n=t.length;if(n<2){return t}if(t[0]===`"`&&t[n-1]===`"`){t=t.slice(1,n-1)}return t.replace(/\\"/g,'"')})};const z=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;class NumericValue{string;type;constructor(t,n){this.string=t;this.type=n;if(!z.test(t)){throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${t}"`)}}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=="object"){return false}const n=t;return NumericValue.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&z.test(n.string)}}function nv(t){return new NumericValue(String(t),"bigDecimal")}const K={};const Z={};for(let t=0;t<256;t++){let n=t.toString(16).toLowerCase();if(n.length===1){n=`0${n}`}K[t]=n;Z[n]=t}function fromHex(t){if(t.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const n=new Uint8Array(t.length/2);for(let i=0;i{if(!t){return 0}if(typeof t==="string"){return Buffer.byteLength(t)}else if(typeof t.byteLength==="number"){return t.byteLength}else if(typeof t.size==="number"){return t.size}else if(typeof t.start==="number"&&typeof t.end==="number"){return t.end+1-t.start}else if(t instanceof l){if(t.path!=null){return d(t.path).size}else if(typeof t.fd==="number"){return h(t.fd).size}}throw new Error(`Body Length computation failed for ${t}`)};const toUint8Array=t=>{if(t instanceof Uint8Array){return t}if(typeof t==="string"){return fromUtf8$1(t)}if(ArrayBuffer.isView(t)){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(t)};function concatBytes(t,n){if(n===undefined){n=0;for(const i of t){n+=i.byteLength}}const i=new Uint8Array(n);let a=0;for(const n of t){i.set(n,a);a+=n.byteLength}return i}const deserializerMiddleware=(t,n)=>(i,a)=>async c=>{const{response:A}=await i(c);try{const i=await n(A,t);return{response:A,output:i}}catch(t){Object.defineProperty(t,"$response",{value:A,enumerable:false,writable:false,configurable:false});if(!("$metadata"in t)){const n=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{t.message+="\n "+n}catch(t){if(!a.logger||a.logger?.constructor?.name==="NoOpLogger"){console.warn(n)}else{a.logger?.warn?.(n)}}if(typeof t.$responseBodyText!=="undefined"){if(t.$response){t.$response.body=t.$responseBodyText}}try{if(f.isInstance(A)){const{headers:n={}}=A;const i=Object.entries(n);t.$metadata={httpStatusCode:A.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,i),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,i),cfId:findHeader(/^x-[\w-]+-cf-id$/,i)}}}catch(t){}}throw t}};const findHeader=(t,n)=>(n.find(([n])=>n.match(t))||[void 0,void 0])[1];const serializerMiddleware=(t,n)=>(i,a)=>async c=>{const A=t;const l=a.endpointV2?async()=>g(a.endpointV2):A.endpoint;if(!l){throw new Error("No valid endpoint provider available.")}const d=await n(c.input,{...t,endpoint:l});return i({...c,request:d})};const X={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const ee={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(t,n,i){return{applyToStack:a=>{a.add(deserializerMiddleware(t,i),X);a.add(serializerMiddleware(t,n),ee)}}}class Hash{algorithmIdentifier;secret;hash;constructor(t,n){this.algorithmIdentifier=t;this.secret=n;this.reset()}update(t,n){this.hash.update(toUint8Array(castSourceData(t,n)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?a(this.algorithmIdentifier,castSourceData(this.secret)):c(this.algorithmIdentifier)}}function castSourceData(t,n){if(Buffer.isBuffer(t)){return t}if(typeof t==="string"){return fromString(t,n)}if(ArrayBuffer.isView(t)){return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayBuffer(t)}let te=class ChecksumStream extends p{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:t,checksum:n,source:i,checksumSourceLocation:a,base64Encoder:c}){super();if(typeof i.pipe!=="function"){throw new Error(`@smithy/util-stream: unsupported source type ${i?.constructor?.name??i} in ChecksumStream.`)}this.source=i;this.base64Encoder=c??toBase64$1;this.expectedChecksum=t;this.checksum=n;this.checksumSourceLocation=a;this.source.on("data",this.onSourceData);this.source.on("end",this.onSourceEnd);this.source.on("error",this.onSourceError);this.source.on("close",this.onSourceClose);this.source.pause()}onSourceData=t=>{if(this.destroyed){return}try{this.checksum.update(t)}catch(t){this.destroy(t);return}if(!this.push(t)){this.source.pause()}};onSourceEnd=async()=>{if(this.destroyed){return}try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`));return}}catch(t){this.destroy(t);return}this.push(null)};onSourceError=t=>{this.destroy(t)};onSourceClose=()=>{if(!this.destroyed&&!this.source.readableEnded){this.destroy(new Error("Connection lost or stream closed before all data was received."))}};_read(t){this.source.resume()}_destroy(t,n){this.source?.removeListener("data",this.onSourceData);this.source?.removeListener("end",this.onSourceEnd);this.source?.removeListener("error",this.onSourceError);this.source?.removeListener("close",this.onSourceClose);this.source?.destroy();n(t)}};const isReadableStream=t=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);const isBlob=t=>typeof Blob==="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob);const fromUtf8=t=>(new TextEncoder).encode(t);const re=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;Object.entries(re).reduce((t,[n,i])=>{t[i]=Number(n);return t},{});const ne=re.split("");const se=6;const oe=8;const ie=63;function toBase64(t){let n;if(typeof t==="string"){n=fromUtf8(t)}else{n=t}const i=typeof n==="object"&&typeof n.length==="number";const a=typeof n==="object"&&typeof n.byteOffset==="number"&&typeof n.byteLength==="number";if(!i&&!a){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}let c="";for(let t=0;t>n]}c+="==".slice(0,4-A)}return c}const ae=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends ae{}const createChecksumStream$1=({expectedChecksum:t,checksum:n,source:i,checksumSourceLocation:a,base64Encoder:c})=>{if(!isReadableStream(i)){throw new Error(`@smithy/util-stream: unsupported source type ${i?.constructor?.name??i} in ChecksumStream.`)}const A=c??toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const l=new TransformStream({start(){},async transform(t,i){n.update(t);i.enqueue(t)},async flush(i){const c=await n.digest();const l=A(c);if(t!==l){const n=new Error(`Checksum mismatch: expected "${t}" but received "${l}"`+` in response header "${a}".`);i.error(n)}else{i.terminate()}}});i.pipeThrough(l);const d=l.readable;Object.setPrototypeOf(d,ChecksumStream.prototype);return d};function createChecksumStream(t){if(typeof ReadableStream==="function"&&isReadableStream(t.source)){return createChecksumStream$1(t)}return new te(t)}class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t);this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){const t=this.byteArrays[0];this.reset();return t}const t=this.allocByteArray(this.byteLength);let n=0;for(let i=0;inew Uint8Array(t))];let d=-1;const pull=async t=>{const{value:h,done:f}=await a.read();const g=h;if(f){if(d!==-1){const n=flush(l,d);if(sizeOf(n)>0){t.enqueue(n)}}t.close()}else{const a=modeOf(g,false);if(d!==a){if(d>=0){t.enqueue(flush(l,d))}d=a}if(d===-1){t.enqueue(g);return}const h=sizeOf(g);A+=h;const f=sizeOf(l[d]);if(h>=n&&f===0){t.enqueue(g)}else{const a=merge(l,d,g);if(!c&&A>n*2){c=true;i?.warn(`@smithy/util-stream - stream chunk size ${h} is below threshold of ${n}, automatically buffering.`)}if(a>=n){t.enqueue(flush(l,d))}else{await pull(t)}}}};return new ReadableStream({pull:pull})}function merge(t,n,i){switch(n){case 0:t[0]+=i;return sizeOf(t[0]);case 1:case 2:t[n].push(i);return sizeOf(t[n])}}function flush(t,n){switch(n){case 0:const i=t[0];t[0]="";return i;case 1:case 2:return t[n].flush()}throw new Error(`@smithy/util-stream - invalid index ${n} given to flush()`)}function sizeOf(t){return t?.byteLength??t?.length??0}function modeOf(t,n=true){if(n&&typeof Buffer!=="undefined"&&t instanceof Buffer){return 2}if(t instanceof Uint8Array){return 1}if(typeof t==="string"){return 0}return-1}function createBufferedReadable(t,n,i){if(isReadableStream(t)){return createBufferedReadableStream(t,n,i)}const a=new p({read(){}});let c=false;let A=0;const l=["",new ByteArrayCollector(t=>new Uint8Array(t)),new ByteArrayCollector(t=>Buffer.from(new Uint8Array(t)))];let d=-1;t.on("data",t=>{const h=modeOf(t,true);if(d!==h){if(d>=0){a.push(flush(l,d))}d=h}if(d===-1){a.push(t);return}const f=sizeOf(t);A+=f;const g=sizeOf(l[d]);if(f>=n&&g===0){a.push(t)}else{const h=merge(l,d,t);if(!c&&A>n*2){c=true;i?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${n}, automatically buffering.`)}if(h>=n){a.push(flush(l,d))}}});t.on("end",()=>{if(d!==-1){const t=flush(l,d);if(sizeOf(t)>0){a.push(t)}}a.push(null)});return a}const getAwsChunkedEncodingStream$1=(t,n)=>{const{base64Encoder:i,bodyLengthChecker:a,checksumAlgorithmFn:c,checksumLocationName:A,streamHasher:l}=n;const d=i!==undefined&&a!==undefined&&c!==undefined&&A!==undefined&&l!==undefined;const h=d?l(c,t):undefined;const f=t.getReader();return new ReadableStream({async pull(t){const{value:n,done:c}=await f.read();if(c){t.enqueue(`0\r\n`);if(d){const n=i(await h);t.enqueue(`${A}:${n}\r\n`);t.enqueue(`\r\n`)}t.close()}else{t.enqueue(`${(a(n)||0).toString(16)}\r\n${n}\r\n`)}}})};function getAwsChunkedEncodingStream(t,n){const i=t;const a=t;if(isReadableStream(a)){return getAwsChunkedEncodingStream$1(a,n)}const{base64Encoder:c,bodyLengthChecker:A,checksumAlgorithmFn:l,checksumLocationName:d,streamHasher:h}=n;const f=c!==undefined&&l!==undefined&&d!==undefined&&h!==undefined;const g=f?h(l,i):undefined;const m=new p({read:()=>{}});i.on("data",t=>{const n=A(t)||0;if(n===0){return}m.push(`${n.toString(16)}\r\n`);m.push(t);m.push("\r\n")});i.on("end",async()=>{m.push(`0\r\n`);if(f){const t=c(await g);m.push(`${d}:${t}\r\n`);m.push(`\r\n`)}m.push(null)});return m}async function headStream$1(t,n){let i=0;const a=[];const c=t.getReader();let A=false;while(!A){const{done:t,value:l}=await c.read();if(l){a.push(l);i+=l?.byteLength??0}if(i>=n){break}A=t}c.releaseLock();const l=new Uint8Array(Math.min(n,i));let d=0;for(const t of a){if(t.byteLength>l.byteLength-d){l.set(t.subarray(0,l.byteLength-d),d);break}else{l.set(t,d)}d+=t.length}return l}const headStream=(t,n)=>{if(isReadableStream(t)){return headStream$1(t,n)}return new Promise((i,a)=>{const c=new ce;c.limit=n;t.pipe(c);t.on("error",t=>{c.end();a(t)});c.on("error",a);c.on("finish",function(){const t=concatBytes(this.buffers);i(t)})})};let ce=class Collector extends m{buffers=[];limit=Infinity;bytesBuffered=0;_write(t,n,i){this.buffers.push(t);this.bytesBuffered+=t.byteLength??0;if(this.bytesBuffered>=this.limit){const t=this.bytesBuffered-this.limit;const n=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=n.subarray(0,n.byteLength-t);this.emit("finish")}i()}};const toUtf8=t=>{if(typeof t==="string"){return t}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return new TextDecoder("utf-8").decode(t)};const streamCollector$1=async t=>{if(isBlob(t)){return collectBlob(t)}return collectReadableStream(t)};async function collectBlob(t){return t.arrayBuffer().then(t=>new Uint8Array(t))}async function collectReadableStream(t){const n=[];const i=t.getReader();let a=0;while(true){const{done:t,value:c}=await i.read();if(c){n.push(c);a+=c.length}if(t){break}}return concatBytes(n,a)}const Ae="The stream has already been transformed.";const sdkStreamMixin$1=t=>{if(!isBlobInstance(t)&&!isReadableStream(t)){const n=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let n=false;const transformToByteArray=async()=>{if(n){throw new Error(Ae)}n=true;return await streamCollector$1(t)};const blobToWebStream=t=>{if(typeof t.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return t.stream()};return Object.assign(t,{transformToByteArray:transformToByteArray,transformToString:async t=>{const n=await transformToByteArray();if(t==="base64"){return toBase64(n)}else if(t==="hex"){return toHex(n)}else if(t===undefined||t==="utf8"||t==="utf-8"){return toUtf8(n)}else if(typeof TextDecoder==="function"){return new TextDecoder(t).decode(n)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(n){throw new Error(Ae)}n=true;if(isBlobInstance(t)){return blobToWebStream(t)}else if(isReadableStream(t)){return t}else{throw new Error(`Cannot transform payload to web stream, got ${t}`)}}})};const isBlobInstance=t=>typeof Blob==="function"&&t instanceof Blob;const streamCollector=t=>{if(isBlob(t)){return collectBlob(t)}if(isReadableStream(t)){return collectReadableStream(t)}return new Promise((n,i)=>{const a=new Collector;const c=t;c.pipe(a);c.on("error",t=>{a.end();i(t)});a.on("error",i);a.on("finish",function(){const t=concatBytes(this.bufferedBytes);n(t)})})};class Collector extends m{bufferedBytes=[];_write(t,n,i){this.bufferedBytes.push(t);i()}}const le="The stream has already been transformed.";const sdkStreamMixin=t=>{if(!(t instanceof p)){try{return sdkStreamMixin$1(t)}catch(n){const i=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${i}`)}}let n=false;const transformToByteArray=async()=>{if(n){throw new Error(le)}n=true;return await streamCollector(t)};return Object.assign(t,{transformToByteArray:transformToByteArray,transformToString:async t=>{const n=await transformToByteArray();if(t===undefined||Buffer.isEncoding(t)){return fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString(t)}else{const i=new TextDecoder(t);return i.decode(n)}},transformToWebStream:()=>{if(n){throw new Error(le)}if(t.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof p.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}n=true;return p.toWeb(t)}})};async function splitStream$1(t){if(typeof t.stream==="function"){t=t.stream()}const n=t;return n.tee()}async function splitStream(t){if(isReadableStream(t)||isBlob(t)){return splitStream$1(t)}const n=new E;const i=new E;t.pipe(n);t.pipe(i);return[n,i]}class Uint8ArrayBlobAdapter extends(bindUint8ArrayBlobAdapter(toUtf8$1,fromUtf8$1,toBase64$1,fromBase64)){}const ue=A;const de=bindV4(ue);const he=de;n.ChecksumStream=te;n.Hash=Hash;n.LazyJsonString=L;n.NumericValue=NumericValue;n.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;n._parseEpochTimestamp=_parseEpochTimestamp;n._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;n._parseRfc7231DateTime=_parseRfc7231DateTime;n.calculateBodyLength=calculateBodyLength;n.concatBytes=concatBytes;n.copyDocumentWithTransform=copyDocumentWithTransform;n.createBufferedReadable=createBufferedReadable;n.createChecksumStream=createChecksumStream;n.dateToUtcString=dateToUtcString;n.deserializerMiddleware=deserializerMiddleware;n.deserializerMiddlewareOption=X;n.expectBoolean=expectBoolean;n.expectByte=expectByte;n.expectFloat32=expectFloat32;n.expectInt=B;n.expectInt32=expectInt32;n.expectLong=expectLong;n.expectNonNull=expectNonNull;n.expectNumber=expectNumber;n.expectObject=expectObject;n.expectShort=expectShort;n.expectString=expectString;n.expectUnion=expectUnion;n.fromArrayBuffer=fromArrayBuffer;n.fromBase64=fromBase64;n.fromHex=fromHex;n.fromString=fromString;n.fromUtf8=fromUtf8$1;n.generateIdempotencyToken=he;n.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;n.getSerdePlugin=getSerdePlugin;n.handleFloat=S;n.headStream=headStream;n.isArrayBuffer=isArrayBuffer;n.isBlob=isBlob;n.isReadableStream=isReadableStream;n.limitedParseDouble=limitedParseDouble;n.limitedParseFloat=b;n.limitedParseFloat32=limitedParseFloat32;n.logger=v;n.nv=nv;n.parseBoolean=parseBoolean;n.parseEpochTimestamp=parseEpochTimestamp;n.parseRfc3339DateTime=parseRfc3339DateTime;n.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;n.parseRfc7231DateTime=parseRfc7231DateTime;n.quoteHeader=quoteHeader;n.sdkStreamMixin=sdkStreamMixin;n.serializerMiddleware=serializerMiddleware;n.serializerMiddlewareOption=ee;n.splitEvery=splitEvery;n.splitHeader=splitHeader;n.splitStream=splitStream;n.streamCollector=streamCollector;n.strictParseByte=strictParseByte;n.strictParseDouble=strictParseDouble;n.strictParseFloat=Q;n.strictParseFloat32=strictParseFloat32;n.strictParseInt=R;n.strictParseInt32=strictParseInt32;n.strictParseLong=strictParseLong;n.strictParseShort=strictParseShort;n.toBase64=toBase64$1;n.toHex=toHex;n.toUint8Array=toUint8Array;n.toUtf8=toUtf8$1;n.v4=de},4534:(t,n,i)=>{const{SMITHY_CONTEXT_KEY:a}=i(690);const getSmithyContext=t=>t[a]||(t[a]={});class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET";this.hostname=t.hostname||"localhost";this.port=t.port;this.query=t.query||{};this.headers=t.headers||{};this.body=t.body;this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:";this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/";this.username=t.username;this.password=t.password;this.fragment=t.fragment}static clone(t){const n=new HttpRequest({...t,headers:{...t.headers}});if(n.query){n.query=cloneQuery(n.query)}return n}static isInstance(t){if(!t){return false}const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n["query"]==="object"&&typeof n["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(t){return Object.keys(t).reduce((n,i)=>{const a=t[i];return{...n,[i]:Array.isArray(a)?[...a]:a}},{})}class HttpResponse{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode;this.reason=t.reason;this.headers=t.headers||{};this.body=t.body}static isInstance(t){if(!t)return false;const n=t;return typeof n.statusCode==="number"&&typeof n.headers==="object"}}const c=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(t,n=false)=>{if(!n){return c.test(t)}const i=t.split(".");for(const t of i){if(!isValidHostLabel(t)){return false}}return true};function isValidHostname(t){const n=/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/;return n.test(t)}const normalizeProvider=t=>{if(typeof t==="function")return t;const n=Promise.resolve(t);return()=>n};function parseQueryString(t){const n={};t=t.replace(/^\?/,"");if(t){for(const i of t.split("&")){let[t,a=null]=i.split("=");t=decodeURIComponent(t);if(a){a=decodeURIComponent(a)}if(!(t in n)){n[t]=a}else if(Array.isArray(n[t])){n[t].push(a)}else{n[t]=[n[t],a]}}}return n}const parseUrl=t=>{if(typeof t==="string"){return parseUrl(new URL(t))}const{hostname:n,pathname:i,port:a,protocol:c,search:A}=t;let l;if(A){l=parseQueryString(A)}return{hostname:n,port:a?parseInt(a):undefined,protocol:c,path:i,query:l}};const toEndpointV1=t=>{if(typeof t==="object"){if("url"in t){const n=parseUrl(t.url);if(t.headers){n.headers={};for(const i in t.headers){n.headers[i.toLowerCase()]=t.headers[i].join(", ")}}return n}return t}return parseUrl(t)};n.HttpRequest=HttpRequest;n.HttpResponse=HttpResponse;n.getSmithyContext=getSmithyContext;n.isValidHostLabel=isValidHostLabel;n.isValidHostname=isValidHostname;n.normalizeProvider=normalizeProvider;n.parseQueryString=parseQueryString;n.parseUrl=parseUrl;n.toEndpointV1=toEndpointV1},566:(t,n,i)=>{const{ProviderError:a,CredentialsProviderError:c,loadConfig:A}=i(7291);const l=i(7067);const{parseUrl:d}=i(3422);const isImdsCredentials=t=>Boolean(t)&&typeof t==="object"&&typeof t.AccessKeyId==="string"&&typeof t.SecretAccessKey==="string"&&typeof t.Token==="string"&&typeof t.Expiration==="string";const fromImdsCredentials=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}});const h=1e3;const f=0;const providerConfigFromInit=({maxRetries:t=f,timeout:n=h})=>({maxRetries:t,timeout:n});function httpRequest(t){return new Promise((n,i)=>{const c=l.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});c.on("error",t=>{i(Object.assign(new a("Unable to connect to instance metadata service"),t));c.destroy()});c.on("timeout",()=>{i(new a("TimeoutError from instance metadata service"));c.destroy()});c.on("response",t=>{const{statusCode:A=400}=t;if(A<200||300<=A){i(Object.assign(new a("Error response received from instance metadata service"),{statusCode:A}));c.destroy()}const l=[];t.on("data",t=>{l.push(t)});t.on("end",()=>{n(Buffer.concat(l));c.destroy()})});c.end()})}const retry=(t,n)=>{let i=t();for(let a=0;a{const{timeout:n,maxRetries:i}=providerConfigFromInit(t);return()=>retry(async()=>{const i=await getCmdsUri({logger:t.logger});const a=JSON.parse(await requestFromEcsImds(n,i));if(!isImdsCredentials(a)){throw new c("Invalid response received from instance metadata service.",{logger:t.logger})}return fromImdsCredentials(a)},i)};const requestFromEcsImds=async(t,n)=>{if(process.env[m]){n.headers={...n.headers,Authorization:process.env[m]}}const i=await httpRequest({...n,timeout:t});return i.toString()};const E="169.254.170.2";const C=new Set(["localhost","127.0.0.1"]);const I=new Set(["http:","https:"]);const getCmdsUri=async({logger:t})=>{if(process.env[p]){return{hostname:E,path:process.env[p]}}if(process.env[g]){let n;try{n=new URL(process.env[g])}catch{throw new c(`${process.env[g]} is not a valid container metadata service URL`,{tryNextLink:false,logger:t})}if(!n.hostname||!C.has(n.hostname)){throw new c(`${n.hostname} is not a valid container metadata service hostname`,{tryNextLink:false,logger:t})}if(!n.protocol||!I.has(n.protocol)){throw new c(`${n.protocol} is not a valid container metadata service protocol`,{tryNextLink:false,logger:t})}return{protocol:n.protocol,hostname:n.hostname,path:n.pathname+n.search,port:n.port?parseInt(n.port,10):undefined}}throw new c("The container metadata credential provider cannot be used unless"+` the ${p} or ${g} environment`+" variable is set",{tryNextLink:false,logger:t})};class InstanceMetadataV1FallbackError extends c{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(t,n=true){super(t,n);this.tryNextLink=n;Object.setPrototypeOf(this,InstanceMetadataV1FallbackError.prototype)}}var y;(function(t){t["IPv4"]="http://169.254.169.254";t["IPv6"]="http://[fd00:ec2::254]"})(y||(y={}));const B="AWS_EC2_METADATA_SERVICE_ENDPOINT";const Q="ec2_metadata_service_endpoint";const w={environmentVariableSelector:t=>t[B],configFileSelector:t=>t[Q],default:undefined};var S;(function(t){t["IPv4"]="IPv4";t["IPv6"]="IPv6"})(S||(S={}));const b="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";const R="ec2_metadata_service_endpoint_mode";const v={environmentVariableSelector:t=>t[b],configFileSelector:t=>t[R],default:S.IPv4};const getInstanceMetadataEndpoint=async()=>d(await getFromEndpointConfig()||await getFromEndpointModeConfig());const getFromEndpointConfig=async()=>A(w)();const getFromEndpointModeConfig=async()=>{const t=await A(v)();switch(t){case S.IPv4:return y.IPv4;case S.IPv6:return y.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}.`+` Select from ${Object.values(S)}`)}};const k=5*60;const D=5*60;const T="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(t,n)=>{const i=k+Math.floor(Math.random()*D);const a=new Date(Date.now()+i*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(a)}.\nFor more information, please visit: `+T);const c=t.originalExpiration??t.expiration;return{...t,...c?{originalExpiration:c}:{},expiration:a}};const staticStabilityProvider=(t,n={})=>{const i=n?.logger||console;let a;return async()=>{let n;try{n=await t();if(n.expiration&&n.expiration.getTime()staticStabilityProvider(getInstanceMetadataProvider(t),{logger:t.logger});const getInstanceMetadataProvider=(t={})=>{let n=false;const{logger:i,profile:a}=t;const{timeout:l,maxRetries:d}=providerConfigFromInit(t);const getCredentials=async(i,l)=>{const d=n||l.headers?.[U]==null;if(d){let n=false;let i=false;const l=await A({environmentVariableSelector:n=>{const a=n[F];i=!!a&&a!=="false";if(a===undefined){throw new c(`${F} not set in env, checking config file next.`,{logger:t.logger})}return i},configFileSelector:t=>{const i=t[x];n=!!i&&i!=="false";return n},default:false},{profile:a})();if(t.ec2MetadataV1Disabled||l){const a=[];if(t.ec2MetadataV1Disabled)a.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(n)a.push(`config file profile (${x})`);if(i)a.push(`process environment variable (${F})`);throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${a.join(", ")}].`)}}const h=(await retry(async()=>{let t;try{t=await getProfile(l)}catch(t){if(t.statusCode===401){n=false}throw t}return t},i)).trim();return retry(async()=>{let i;try{i=await getCredentialsFromProfile(h,l,t)}catch(t){if(t.statusCode===401){n=false}throw t}return i},i)};return async()=>{const t=await getInstanceMetadataEndpoint();if(n){i?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)");return getCredentials(d,{...t,timeout:l})}else{let a;try{a=(await getMetadataToken({...t,timeout:l})).toString()}catch(a){if(a?.statusCode===400){throw Object.assign(a,{message:"EC2 Metadata token request returned error"})}else if(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode)){n=true}i?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)");return getCredentials(d,{...t,timeout:l})}return getCredentials(d,{...t,headers:{[U]:a},timeout:l})}}};const getMetadataToken=async t=>httpRequest({...t,path:M,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async t=>(await httpRequest({...t,path:N})).toString();const getCredentialsFromProfile=async(t,n,i)=>{const a=JSON.parse((await httpRequest({...n,path:N+t})).toString());if(!isImdsCredentials(a)){throw new c("Invalid response received from instance metadata service.",{logger:i.logger})}return fromImdsCredentials(a)};n.DEFAULT_MAX_RETRIES=f;n.DEFAULT_TIMEOUT=h;n.ENV_CMDS_AUTH_TOKEN=m;n.ENV_CMDS_FULL_URI=g;n.ENV_CMDS_RELATIVE_URI=p;n.Endpoint=y;n.fromContainerMetadata=fromContainerMetadata;n.fromInstanceMetadata=fromInstanceMetadata;n.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;n.httpRequest=httpRequest;n.providerConfigFromInit=providerConfigFromInit},1279:(t,n,i)=>{const{buildQueryString:a,HttpResponse:c}=i(3422);const A=i(4708);const{Readable:l}=i(7075);const d=i(2467);const{streamCollector:h}=i(2430);n.streamCollector=h;function buildAbortError(t){const n=t&&typeof t==="object"&&"reason"in t?t.reason:undefined;if(n){if(n instanceof Error){const t=new Error("Request aborted");t.name="AbortError";t.cause=n;return t}const t=new Error(String(n));t.name="AbortError";return t}const i=new Error("Request aborted");i.name="AbortError";return i}const f=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=t=>{const n={};for(const i in t){const a=t[i];n[i]=Array.isArray(a)?a.join(","):a}return n};const g={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t)};const p=1e3;const setConnectionTimeout=(t,n,i=0)=>{if(!i){return-1}const registerTimeout=a=>{const c=g.setTimeout(()=>{t.destroy();n(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${i} ms.`),{name:"TimeoutError"}))},i-a);const doWithSocket=t=>{if(t?.connecting){t.on("connect",()=>{g.clearTimeout(c)})}else{g.clearTimeout(c)}};if(t.socket){doWithSocket(t.socket)}else{t.on("socket",doWithSocket)}};if(i<2e3){registerTimeout(0);return 0}return g.setTimeout(registerTimeout.bind(null,p),p)};const setRequestTimeout=(t,n,i=0,a,c)=>{if(i){return g.setTimeout(()=>{let A=`@smithy/node-http-handler - [${a?"ERROR":"WARN"}] a request has exceeded the configured ${i} ms requestTimeout.`;if(a){const i=Object.assign(new Error(A),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(i);n(i)}else{A+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;c?.warn?.(A)}},i)}return-1};const m=3e3;const setSocketKeepAlive=(t,{keepAlive:n,keepAliveMsecs:i},a=m)=>{if(n!==true){return-1}const registerListener=()=>{if(t.socket){t.socket.setKeepAlive(n,i||0)}else{t.on("socket",t=>{t.setKeepAlive(n,i||0)})}};if(a===0){registerListener();return 0}return g.setTimeout(registerListener,a)};const E=3e3;const setSocketTimeout=(t,n,i=0)=>{const registerTimeout=a=>{const c=i-a;const onTimeout=()=>{t.destroy();n(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${i} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(t.socket){t.socket.setTimeout(c,onTimeout);t.on("close",()=>t.socket?.removeListener("timeout",onTimeout))}else{t.setTimeout(c,onTimeout)}};if(0{l=Number(g.setTimeout(()=>t(true),Math.max(C,i)))}),new Promise(n=>{t.on("continue",()=>{g.clearTimeout(l);n(true)});t.on("response",()=>{g.clearTimeout(l);n(false)});t.on("error",()=>{g.clearTimeout(l);n(false)})})])}if(d){writeBody(t,n.body)}}function writeBody(t,n){if(n instanceof l){n.pipe(t);return}if(n){const i=Buffer.isBuffer(n);const a=typeof n==="string";if(i||a){if(i&&n.byteLength===0){t.end()}else{t.end(n)}return}const c=n;if(typeof c==="object"&&c.buffer&&typeof c.byteOffset==="number"&&typeof c.byteLength==="number"){t.end(Buffer.from(c.buffer,c.byteOffset,c.byteLength));return}t.end(Buffer.from(n));return}t.end()}const I=0;let y=undefined;let B=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(t){if(typeof t?.handle==="function"){return t}return new NodeHttpHandler(t)}static checkSocketUsage(t,n,i=console){const{sockets:a,requests:c,maxSockets:A}=t;if(typeof A!=="number"||A===Infinity){return n}const l=15e3;if(Date.now()-l=A&&l>=2*A){i?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${n} and ${l} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return n}constructor(t){this.configProvider=new Promise((n,i)=>{if(typeof t==="function"){t().then(t=>{n(this.resolveDefaultConfig(t))}).catch(i)}else{n(this.resolveDefaultConfig(t))}})}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:n,requestTimeout:i}={}){if(!this.config){this.config=await this.configProvider}const l=this.config;const d=t.protocol==="https:";if(!d&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise((h,p)=>{let m=undefined;let E=-1;let C=-1;let I=-1;let Q=-1;let w=-1;const clearTimeouts=()=>{g.clearTimeout(E);g.clearTimeout(C);g.clearTimeout(I);g.clearTimeout(Q);g.clearTimeout(w)};const resolve=async t=>{await m;clearTimeouts();h(t)};const reject=async t=>{await m;clearTimeouts();p(t)};if(n?.aborted){const t=buildAbortError(n);reject(t);return}const S=t.headers;const b=S?(S.Expect??S.expect)==="100-continue":false;let R=d?l.httpsAgent:l.httpAgent;if(b&&!this.externalAgent){R=new(d?A.Agent:y)({keepAlive:false,maxSockets:Infinity})}E=g.setTimeout(()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(R,this.socketWarningTimestamp,l.logger)},l.socketAcquisitionWarningTimeout??(l.requestTimeout??2e3)+(l.connectionTimeout??1e3));const v=t.query?a(t.query):"";let k=undefined;if(t.username!=null||t.password!=null){const n=t.username??"";const i=t.password??"";k=`${n}:${i}`}let D=t.path;if(v){D+=`?${v}`}if(t.fragment){D+=`#${t.fragment}`}let T=t.hostname??"";if(T[0]==="["&&T.endsWith("]")){T=t.hostname.slice(1,-1)}else{T=t.hostname}const N={headers:t.headers,host:T,method:t.method,path:D,port:t.port,agent:R,auth:k};const M=d?A.request:B;const F=M(N,t=>{const n=new c({statusCode:t.statusCode||-1,reason:t.statusMessage,headers:getTransformedHeaders(t.headers),body:t});resolve({response:n})});F.on("error",t=>{if(f.includes(t.code)){reject(Object.assign(t,{name:"TimeoutError"}))}else{reject(t)}});if(n){const onAbort=()=>{F.destroy();const t=buildAbortError(n);reject(t)};if(typeof n.addEventListener==="function"){const t=n;t.addEventListener("abort",onAbort,{once:true});F.once("close",()=>t.removeEventListener("abort",onAbort))}else{n.onabort=onAbort}}const x=i??l.requestTimeout;C=setConnectionTimeout(F,reject,l.connectionTimeout);I=setRequestTimeout(F,reject,x,l.throwOnRequestTimeout,l.logger??console);Q=setSocketTimeout(F,reject,l.socketTimeout);const U=N.agent;if(typeof U==="object"&&"keepAlive"in U){w=setSocketKeepAlive(F,{keepAlive:U.keepAlive,keepAliveMsecs:U.keepAliveMsecs})}m=writeRequestBody(F,t,x,this.externalAgent).catch(t=>{clearTimeouts();return p(t)})})}updateHttpClientConfig(t,n){this.config=undefined;this.configProvider=this.configProvider.then(i=>({...i,[t]:n}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(t){const{requestTimeout:n,connectionTimeout:a,socketTimeout:c,socketAcquisitionWarningTimeout:l,httpAgent:d,httpsAgent:h,throwOnRequestTimeout:f,logger:g}=t||{};const p=true;const m=50;return{connectionTimeout:a,requestTimeout:n,socketTimeout:c,socketAcquisitionWarningTimeout:l,throwOnRequestTimeout:f,httpAgentProvider:async()=>{const t=i(7067);const{Agent:n,request:a}=t.default??t;B=a;y=n;if(d instanceof y||typeof d?.destroy==="function"){this.externalAgent=true;return d}return new y({keepAlive:p,maxSockets:m,...d})},httpsAgent:(()=>{if(h instanceof A.Agent||typeof h?.destroy==="function"){this.externalAgent=true;return h}return new A.Agent({keepAlive:p,maxSockets:m,...h})})(),logger:g}}}const Q=new Uint16Array(1);class ClientHttp2SessionRef{id=Q[0]++;total=0;max=0;session;refs=0;constructor(t){t.unref();this.session=t}retain(){if(this.session.destroyed){throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.")}this.refs+=1;this.total+=1;this.max=Math.max(this.refs,this.max);this.session.ref()}free(){if(this.session.destroyed){return}this.refs-=1;if(this.refs===0){this.session.unref()}if(this.refs<0){throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}}deref(){return this.session}close(){if(!this.session.closed){this.session.close()}}destroy(){this.refs=0;if(!this.session.destroyed){this.session.destroy()}}useCount(){return this.refs}}class NodeHttp2ConnectionPool{sessions=[];maxConcurrency=0;constructor(t){this.sessions=(t??[]).map(t=>new ClientHttp2SessionRef(t))}poll(){let t=false;for(const n of this.sessions){if(n.deref().destroyed){t=true;continue}if(!this.maxConcurrency||n.useCount()-1){this.sessions.splice(n,1)}}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(t){this.maxConcurrency=t}destroy(t){this.remove(t);t.destroy()}}class NodeHttp2ConnectionManager{config;connectOptions;connectionPools=new Map;constructor(t){this.config=t;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}lease(t,n){const i=this.getUrlString(t);const a=this.getPool(i);if(!this.config.disableConcurrency&&!n.isEventStream){const t=a.poll();if(t){t.retain();return t}}const c=new ClientHttp2SessionRef(this.connect(i));const A=c.deref();if(this.config.maxConcurrency){A.settings({maxConcurrentStreams:this.config.maxConcurrency},n=>{if(n){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())}})}const graceful=()=>{this.removeFromPoolAndClose(i,c)};const ensureDestroyed=()=>{this.removeFromPoolAndCheckedDestroy(i,c)};A.on("goaway",graceful);A.on("error",ensureDestroyed);A.on("frameError",ensureDestroyed);A.on("close",ensureDestroyed);if(n.requestTimeout){A.setTimeout(n.requestTimeout,ensureDestroyed)}a.offerLast(c);c.retain();return c}release(t,n){n.free()}createIsolatedSession(t,n){const i=this.getUrlString(t);const a=new ClientHttp2SessionRef(this.connect(i));const c=a.deref();c.settings({maxConcurrentStreams:1});const ensureDestroyed=()=>{a.destroy()};c.on("error",ensureDestroyed);c.on("frameError",ensureDestroyed);c.on("close",ensureDestroyed);if(n.requestTimeout){c.setTimeout(n.requestTimeout,ensureDestroyed)}a.retain();return a}destroy(){for(const[t,n]of this.connectionPools){for(const t of[...n]){t.destroy()}this.connectionPools.delete(t)}}setMaxConcurrentStreams(t){if(t&&t<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=t;for(const n of this.connectionPools.values()){n.setMaxConcurrency(t)}}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}setNodeHttp2ConnectOptions(t){this.connectOptions=t}debug(){const t={};for(const[n,i]of this.connectionPools){const a=[];for(const t of i){a.push({id:t.id,active:t.useCount(),maxConcurrent:t.max,totalRequests:t.total})}t[n]={sessions:a}}return t}removeFromPoolAndClose(t,n){this.connectionPools.get(t)?.remove(n);n.close()}removeFromPoolAndCheckedDestroy(t,n){this.connectionPools.get(t)?.remove(n);n.destroy()}getPool(t){if(!this.connectionPools.has(t)){const n=new NodeHttp2ConnectionPool;if(this.config.maxConcurrency){n.setMaxConcurrency(this.config.maxConcurrency)}this.connectionPools.set(t,n)}return this.connectionPools.get(t)}getUrlString(t){return t.destination.toString()}connect(t){return this.connectOptions===undefined?d.connect(t):d.connect(t,this.connectOptions)}}const{constants:w}=d;class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(t){if(typeof t?.handle==="function"){return t}return new NodeHttp2Handler(t)}constructor(t){this.configProvider=new Promise((n,i)=>{if(typeof t==="function"){t().then(t=>{n(t||{})}).catch(i)}else{n(t||{})}})}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:n,requestTimeout:i,isEventStream:A}={}){if(!this.config){this.config=await this.configProvider;const{disableConcurrentStreams:t,maxConcurrentStreams:n,nodeHttp2ConnectOptions:i}=this.config;this.connectionManager.setDisableConcurrentStreams(t??false);if(n){this.connectionManager.setMaxConcurrentStreams(n)}if(i){this.connectionManager.setNodeHttp2ConnectOptions(i)}}const{requestTimeout:l,disableConcurrentStreams:d}=this.config;const h=d||A;const f=i??l;return new Promise((i,l)=>{let d=false;let g=undefined;const resolve=async t=>{await g;i(t)};const reject=async t=>{await g;l(t)};if(n?.aborted){d=true;const t=buildAbortError(n);reject(t);return}const{hostname:p,method:m,port:E,protocol:C,query:I}=t;let y="";if(t.username!=null||t.password!=null){const n=t.username??"";const i=t.password??"";y=`${n}:${i}@`}const B=`${C}//${y}${p}${E?`:${E}`:""}`;const Q={destination:new URL(B)};const S={requestTimeout:this.config?.sessionTimeout,isEventStream:A};const b=h?this.connectionManager.createIsolatedSession(Q,S):this.connectionManager.lease(Q,S);const R=b.deref();const rejectWithDestroy=t=>{if(h){b.destroy()}d=true;reject(t)};const v=I?a(I):"";let k=t.path;if(v){k+=`?${v}`}if(t.fragment){k+=`#${t.fragment}`}const D=R.request({...t.headers,[w.HTTP2_HEADER_PATH]:k,[w.HTTP2_HEADER_METHOD]:m});if(f){D.setTimeout(f,()=>{D.close();const t=new Error(`Stream timed out because of no activity for ${f} ms`);t.name="TimeoutError";rejectWithDestroy(t)})}if(n){const onAbort=()=>{D.close();const t=buildAbortError(n);rejectWithDestroy(t)};if(typeof n.addEventListener==="function"){const t=n;t.addEventListener("abort",onAbort,{once:true});D.once("close",()=>t.removeEventListener("abort",onAbort))}else{n.onabort=onAbort}}D.on("frameError",(t,n,i)=>{rejectWithDestroy(new Error(`Frame type id ${t} in stream id ${i} has failed with code ${n}.`))});D.on("error",rejectWithDestroy);D.on("aborted",()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${D.rstCode}.`))});D.on("response",t=>{const n=new c({statusCode:t[":status"]??-1,headers:getTransformedHeaders(t),body:D});d=true;resolve({response:n});if(h){R.close()}});D.on("close",()=>{if(h){b.destroy()}else{this.connectionManager.release(Q,b)}if(!d){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}});g=writeRequestBody(D,t,f)})}updateHttpClientConfig(t,n){this.config=undefined;this.configProvider=this.configProvider.then(i=>({...i,[t]:n}))}httpHandlerConfigs(){return this.config??{}}}n.DEFAULT_REQUEST_TIMEOUT=I;n.NodeHttp2Handler=NodeHttp2Handler;n.NodeHttpHandler=NodeHttpHandler},5118:(t,n,i)=>{const{fromUtf8:a,fromHex:c,toHex:A,toUint8Array:l,isArrayBuffer:d}=i(2430);const{normalizeProvider:h}=i(2658);const{escapeUri:f,HttpRequest:g}=i(3422);class HeaderFormatter{format(t){const n=[];for(const i of Object.keys(t)){const c=a(i);n.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(t[i]))}const i=new Uint8Array(n.reduce((t,n)=>t+n.byteLength,0));let c=0;for(const t of n){i.set(t,c);c+=t.byteLength}return i}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?p.boolTrue:p.boolFalse]);case"byte":return Uint8Array.from([p.byte,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));n.setUint8(0,p.short);n.setInt16(1,t.value,false);return new Uint8Array(n.buffer);case"integer":const i=new DataView(new ArrayBuffer(5));i.setUint8(0,p.integer);i.setInt32(1,t.value,false);return new Uint8Array(i.buffer);case"long":const A=new Uint8Array(9);A[0]=p.long;A.set(t.value.bytes,1);return A;case"binary":const l=new DataView(new ArrayBuffer(3+t.value.byteLength));l.setUint8(0,p.byteArray);l.setUint16(1,t.value.byteLength,false);const d=new Uint8Array(l.buffer);d.set(t.value,3);return d;case"string":const h=a(t.value);const f=new DataView(new ArrayBuffer(3+h.byteLength));f.setUint8(0,p.string);f.setUint16(1,h.byteLength,false);const g=new Uint8Array(f.buffer);g.set(h,3);return g;case"timestamp":const E=new Uint8Array(9);E[0]=p.timestamp;E.set(Int64.fromNumber(t.value.valueOf()).bytes,1);return E;case"uuid":if(!m.test(t.value)){throw new Error(`Invalid UUID received: ${t.value}`)}const C=new Uint8Array(17);C[0]=p.uuid;C.set(c(t.value.replace(/-/g,"")),1);return C}}}var p;(function(t){t[t["boolTrue"]=0]="boolTrue";t[t["boolFalse"]=1]="boolFalse";t[t["byte"]=2]="byte";t[t["short"]=3]="short";t[t["integer"]=4]="integer";t[t["long"]=5]="long";t[t["byteArray"]=6]="byteArray";t[t["string"]=7]="string";t[t["timestamp"]=8]="timestamp";t[t["uuid"]=9]="uuid"})(p||(p={}));const m=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(t){this.bytes=t;if(t.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000){throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`)}const n=new Uint8Array(8);for(let i=7,a=Math.abs(Math.round(t));i>-1&&a>0;i--,a/=256){n[i]=a}if(t<0){negate(n)}return new Int64(n)}valueOf(){const t=this.bytes.slice(0);const n=t[0]&128;if(n){negate(t)}return parseInt(A(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function negate(t){for(let n=0;n<8;n++){t[n]^=255}for(let n=7;n>-1;n--){t[n]++;if(t[n]!==0)break}}const E="X-Amz-Algorithm";const C="X-Amz-Credential";const I="X-Amz-Date";const y="X-Amz-SignedHeaders";const B="X-Amz-Expires";const Q="X-Amz-Signature";const w="X-Amz-Security-Token";const S="X-Amz-Region-Set";const b="authorization";const R=I.toLowerCase();const v="date";const k=[b,R,v];const D=Q.toLowerCase();const T="x-amz-content-sha256";const N=w.toLowerCase();const M="host";const F={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const x=/^proxy-/;const U=/^sec-/;const P=[/^proxy-/i,/^sec-/i];const L="AWS4-HMAC-SHA256";const O="AWS4-ECDSA-P256-SHA256";const H="AWS4-HMAC-SHA256-PAYLOAD";const $="UNSIGNED-PAYLOAD";const V=50;const G="aws4_request";const Y=60*60*24*7;const getCanonicalQuery=({query:t={}})=>{const n=[];const i={};for(const a of Object.keys(t)){if(a.toLowerCase()===D){continue}const c=f(a);n.push(c);const A=t[a];if(typeof A==="string"){i[c]=`${c}=${f(A)}`}else if(Array.isArray(A)){i[c]=A.slice(0).reduce((t,n)=>t.concat([`${c}=${f(n)}`]),[]).sort().join("&")}}return n.sort().map(t=>i[t]).filter(t=>t).join("&")};const iso8601=t=>toDate(t).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=t=>{if(typeof t==="number"){return new Date(t*1e3)}if(typeof t==="string"){if(Number(t)){return new Date(Number(t)*1e3)}return new Date(t)}return t};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:i,service:a,sha256:c,uriEscapePath:A=true}){this.service=a;this.sha256=c;this.uriEscapePath=A;this.applyChecksum=typeof t==="boolean"?t:true;this.regionProvider=h(i);this.credentialProvider=h(n)}createCanonicalRequest(t,n,i){const a=Object.keys(n).sort();return`${t.method}\n${this.getCanonicalPath(t)}\n${getCanonicalQuery(t)}\n${a.map(t=>`${t}:${n[t]}`).join("\n")}\n\n${a.join(";")}\n${i}`}async createStringToSign(t,n,i,a){const c=new this.sha256;c.update(l(i));const d=await c.digest();return`${a}\n${t}\n${n}\n${A(d)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const i of t.split("/")){if(i?.length===0)continue;if(i===".")continue;if(i===".."){n.pop()}else{n.push(i)}}const i=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;const a=f(i);return a.replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!=="object"||typeof t.accessKeyId!=="string"||typeof t.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(t){const n=iso8601(t).replace(/[-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}const J={};const W=[];const createScope=(t,n,i)=>`${t}/${n}/${i}/${G}`;const getSigningKey=async(t,n,i,a,c)=>{const l=await hmac(t,n.secretAccessKey,n.accessKeyId);const d=`${i}:${a}:${c}:${A(l)}:${n.sessionToken}`;if(d in J){return J[d]}W.push(d);while(W.length>V){delete J[W.shift()]}let h=`AWS4${n.secretAccessKey}`;for(const n of[i,a,c,G]){h=await hmac(t,h,n)}return J[d]=h};const clearCredentialCache=()=>{W.length=0;Object.keys(J).forEach(t=>{delete J[t]})};const hmac=(t,n,i)=>{const a=new t(n);a.update(l(i));return a.digest()};const getCanonicalHeaders=({headers:t},n,i)=>{const a={};for(const c of Object.keys(t).sort()){if(t[c]==undefined){continue}const A=c.toLowerCase();if(A in F||n?.has(A)||x.test(A)||U.test(A)){if(!i||i&&!i.has(A)){continue}}a[A]=t[c].trim().replace(/\s+/g," ")}return a};const getPayloadHash=async({headers:t,body:n},i)=>{for(const n of Object.keys(t)){if(n.toLowerCase()===T){return t[n]}}if(n==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof n==="string"||ArrayBuffer.isView(n)||d(n)){const t=new i;t.update(l(n));return A(await t.digest())}return $};const hasHeader=(t,n)=>{t=t.toLowerCase();for(const i of Object.keys(n)){if(t===i.toLowerCase()){return true}}return false};const moveHeadersToQuery=(t,n={})=>{const{headers:i,query:a={}}=g.clone(t);for(const t of Object.keys(i)){const c=t.toLowerCase();if(c.slice(0,6)==="x-amz-"&&!n.unhoistableHeaders?.has(c)||n.hoistableHeaders?.has(c)){a[t]=i[t];delete i[t]}}return{...t,headers:i,query:a}};const prepareRequest=t=>{t=g.clone(t);for(const n of Object.keys(t.headers)){if(k.indexOf(n.toLowerCase())>-1){delete t.headers[n]}}return t};class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:t,credentials:n,region:i,service:a,sha256:c,uriEscapePath:A=true}){super({applyChecksum:t,credentials:n,region:i,service:a,sha256:c,uriEscapePath:A})}async presign(t,n={}){const{signingDate:i=new Date,expiresIn:a=3600,unsignableHeaders:c,unhoistableHeaders:A,signableHeaders:l,hoistableHeaders:d,signingRegion:h,signingService:f}=n;const g=await this.credentialProvider();this.validateResolvedCredentials(g);const p=h??await this.regionProvider();const{longDate:m,shortDate:S}=this.formatDate(i);if(a>Y){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const b=createScope(S,p,f??this.service);const R=moveHeadersToQuery(prepareRequest(t),{unhoistableHeaders:A,hoistableHeaders:d});if(g.sessionToken){R.query[w]=g.sessionToken}R.query[E]=L;R.query[C]=`${g.accessKeyId}/${b}`;R.query[I]=m;R.query[B]=a.toString(10);const v=getCanonicalHeaders(R,c,l);R.query[y]=this.getCanonicalHeaderList(v);R.query[Q]=await this.getSignature(m,b,this.getSigningKey(g,p,S,f),this.createCanonicalRequest(R,v,await getPayloadHash(t,this.sha256)));return R}async sign(t,n){if(typeof t==="string"){return this.signString(t,n)}else if(t.headers&&t.payload){return this.signEvent(t,n)}else if(t.message){return this.signMessage(t,n)}else{return this.signRequest(t,n)}}async signEvent({headers:t,payload:n},{signingDate:i=new Date,priorSignature:a,signingRegion:c,signingService:l,eventStreamCredentials:d}){const h=c??await this.regionProvider();const{shortDate:f,longDate:g}=this.formatDate(i);const p=createScope(f,h,l??this.service);const m=await getPayloadHash({headers:{},body:n},this.sha256);const E=new this.sha256;E.update(t);const C=A(await E.digest());const I=[H,g,p,a,C,m].join("\n");return this.signString(I,{signingDate:i,signingRegion:h,signingService:l,eventStreamCredentials:d})}async signMessage(t,{signingDate:n=new Date,signingRegion:i,signingService:a,eventStreamCredentials:c}){const A=this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:i,signingService:a,priorSignature:t.priorSignature,eventStreamCredentials:c});return A.then(n=>({message:t.message,signature:n}))}async signString(t,{signingDate:n=new Date,signingRegion:i,signingService:a,eventStreamCredentials:c}={}){const d=c??await this.credentialProvider();this.validateResolvedCredentials(d);const h=i??await this.regionProvider();const{shortDate:f}=this.formatDate(n);const g=new this.sha256(await this.getSigningKey(d,h,f,a));g.update(l(t));return A(await g.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:i,unsignableHeaders:a,signingRegion:c,signingService:A}={}){const l=await this.credentialProvider();this.validateResolvedCredentials(l);const d=c??await this.regionProvider();const h=prepareRequest(t);const{longDate:f,shortDate:g}=this.formatDate(n);const p=createScope(g,d,A??this.service);h.headers[R]=f;if(l.sessionToken){h.headers[N]=l.sessionToken}const m=await getPayloadHash(h,this.sha256);if(!hasHeader(T,h.headers)&&this.applyChecksum){h.headers[T]=m}const E=getCanonicalHeaders(h,a,i);const C=await this.getSignature(f,p,this.getSigningKey(l,d,g,A),this.createCanonicalRequest(h,E,m));h.headers[b]=`${L} `+`Credential=${l.accessKeyId}/${p}, `+`SignedHeaders=${this.getCanonicalHeaderList(E)}, `+`Signature=${C}`;return h}async getSignature(t,n,i,a){const c=await this.createStringToSign(t,n,a,L);const d=new this.sha256(await i);d.update(l(c));return A(await d.digest())}getSigningKey(t,n,i,a){return getSigningKey(this.sha256,t,i,n,a||this.service)}}const q={SignatureV4a:null};n.ALGORITHM_IDENTIFIER=L;n.ALGORITHM_IDENTIFIER_V4A=O;n.ALGORITHM_QUERY_PARAM=E;n.ALWAYS_UNSIGNABLE_HEADERS=F;n.AMZ_DATE_HEADER=R;n.AMZ_DATE_QUERY_PARAM=I;n.AUTH_HEADER=b;n.CREDENTIAL_QUERY_PARAM=C;n.DATE_HEADER=v;n.EVENT_ALGORITHM_IDENTIFIER=H;n.EXPIRES_QUERY_PARAM=B;n.GENERATED_HEADERS=k;n.HOST_HEADER=M;n.KEY_TYPE_IDENTIFIER=G;n.MAX_CACHE_SIZE=V;n.MAX_PRESIGNED_TTL=Y;n.PROXY_HEADER_PATTERN=x;n.REGION_SET_PARAM=S;n.SEC_HEADER_PATTERN=U;n.SHA256_HEADER=T;n.SIGNATURE_HEADER=D;n.SIGNATURE_QUERY_PARAM=Q;n.SIGNED_HEADERS_QUERY_PARAM=y;n.SignatureV4=SignatureV4;n.SignatureV4Base=SignatureV4Base;n.TOKEN_HEADER=N;n.TOKEN_QUERY_PARAM=w;n.UNSIGNABLE_PATTERNS=P;n.UNSIGNED_PAYLOAD=$;n.clearCredentialCache=clearCredentialCache;n.createScope=createScope;n.getCanonicalHeaders=getCanonicalHeaders;n.getCanonicalQuery=getCanonicalQuery;n.getPayloadHash=getPayloadHash;n.getSigningKey=getSigningKey;n.hasHeader=hasHeader;n.moveHeadersToQuery=moveHeadersToQuery;n.prepareRequest=prepareRequest;n.signatureV4aContainer=q},690:(t,n)=>{var i;(function(t){t["HEADER"]="header";t["QUERY"]="query"})(i||(i={}));var a;(function(t){t["HEADER"]="header";t["QUERY"]="query"})(a||(a={}));var c;(function(t){t["HTTP"]="http";t["HTTPS"]="https"})(c||(c={}));var A;(function(t){t["MD5"]="md5";t["CRC32"]="crc32";t["CRC32C"]="crc32c";t["SHA1"]="sha1";t["SHA256"]="sha256"})(A||(A={}));const getChecksumConfiguration=t=>{const n=[];if(t.sha256!==undefined){n.push({algorithmId:()=>A.SHA256,checksumConstructor:()=>t.sha256})}if(t.md5!=undefined){n.push({algorithmId:()=>A.MD5,checksumConstructor:()=>t.md5})}return{addChecksumAlgorithm(t){n.push(t)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=t=>{const n={};t.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()});return n};const getDefaultClientConfiguration=t=>getChecksumConfiguration(t);const resolveDefaultRuntimeConfig=t=>resolveChecksumRuntimeConfig(t);var l;(function(t){t[t["HEADER"]=0]="HEADER";t[t["TRAILER"]=1]="TRAILER"})(l||(l={}));const d="__smithy_context";var h;(function(t){t["PROFILE"]="profile";t["SSO_SESSION"]="sso-session";t["SERVICES"]="services"})(h||(h={}));var f;(function(t){t["HTTP_0_9"]="http/0.9";t["HTTP_1_0"]="http/1.0";t["TDS_8_0"]="tds/8.0"})(f||(f={}));n.AlgorithmId=A;n.EndpointURLScheme=c;n.FieldPosition=l;n.HttpApiKeyAuthLocation=a;n.HttpAuthLocation=i;n.IniSectionType=h;n.RequestHandlerProtocol=f;n.SMITHY_CONTEXT_KEY=d;n.getDefaultClientConfiguration=getDefaultClientConfiguration;n.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},3966:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(2463);const c=i(1436);const A=i(567);const l=i(7881);const d=i(1283);const h=i(630);const f="errorMessage";const g=new a.Name("emUsed");const p={required:"missingProperty",dependencies:"property",dependentRequired:"property"};const m=/\$\{[^}]+\}/;const E=/\$\{([^}]+)\}/g;const C=/^""\s*\+\s*|\s*\+\s*""$/g;function errorMessage(t){return{keyword:f,schemaType:["string","object"],post:true,code(n){const{gen:i,data:I,schema:y,schemaValue:B,it:Q}=n;if(Q.createErrors===false)return;const w=y;const S=c.strConcat(h.default.instancePath,Q.errorPath);i.if(a._`${h.default.errors} > 0`,()=>{if(typeof w=="object"){const[t,n]=keywordErrorsConfig(w);if(n)processKeywordErrors(n);if(t)processKeywordPropErrors(t);processChildErrors(childErrorsConfig(w))}const n=typeof w=="string"?w:w._;if(n)processAllErrors(n);if(!t.keepErrors)removeUsedErrors()});function childErrorsConfig({properties:t,items:n}){const i={};if(t){i.props={};for(const n in t)i.props[n]=[]}if(n){i.items={};for(let t=0;ti.if(matchKeywordError(t,A),()=>i.code(a._`${A}[${t}.keyword].push(${t})`).assign(a._`${t}.${g}`,true)));const{singleError:f}=t;if(f){const t=i.let("message",a._`""`);const c=i.let("paramsErrors",a._`[]`);loopErrors(n=>{i.if(t,()=>i.code(a._`${t} += ${typeof f=="string"?f:";"}`));i.code(a._`${t} += ${errMessage(n)}`);i.assign(c,a._`${c}.concat(${A}[${n}])`)});d.reportError(n,{message:t,params:a._`{errors: ${c}}`})}else{loopErrors(t=>d.reportError(n,{message:errMessage(t),params:a._`{errors: ${A}[${t}]}`}))}function loopErrors(t){i.forIn("key",A,n=>i.if(a._`${A}[${n}].length`,()=>t(n)))}function errMessage(t){return a._`${t} in ${l} ? ${l}[${t}]() : ${B}[${t}]`}}function processKeywordPropErrors(t){const c=i.const("emErrors",a.stringify(t));const A=[];for(const n in t){A.push([n,getTemplatesCode(t[n],y[n])])}const l=i.const("templates",i.object(...A));const f=i.scopeValue("obj",{ref:p,code:a.stringify(p)});const m=i.let("emPropParams");const E=i.let("emParamsErrors");i.forOf("err",h.default.vErrors,t=>i.if(matchKeywordError(t,c),()=>{i.assign(m,a._`${f}[${t}.keyword]`);i.assign(E,a._`${c}[${t}.keyword][${t}.params[${m}]]`);i.if(E,()=>i.code(a._`${E}.push(${t})`).assign(a._`${t}.${g}`,true))}));i.forIn("key",c,t=>i.forIn("keyProp",a._`${c}[${t}]`,A=>{i.assign(E,a._`${c}[${t}][${A}]`);i.if(a._`${E}.length`,()=>{const c=i.const("tmpl",a._`${l}[${t}] && ${l}[${t}][${A}]`);d.reportError(n,{message:a._`${c} ? ${c}() : ${B}[${t}][${A}]`,params:a._`{errors: ${E}}`})})}))}function processChildErrors(t){const{props:A,items:l}=t;if(!A&&!l)return;const f=a._`typeof ${I} == "object"`;const p=a._`Array.isArray(${I})`;const m=i.let("emErrors");let E;let C;const Q=i.let("templates");if(A&&l){E=i.let("emChildKwd");i.if(f);i.if(p,()=>{init(l,y.items);i.assign(E,a.str`items`)},()=>{init(A,y.properties);i.assign(E,a.str`properties`)});C=a._`[${E}]`}else if(l){i.if(p);init(l,y.items);C=a._`.items`}else if(A){i.if(c.and(f,c.not(p)));init(A,y.properties);C=a._`.properties`}i.forOf("err",h.default.vErrors,t=>ifMatchesChildError(t,m,n=>i.code(a._`${m}[${n}].push(${t})`).assign(a._`${t}.${g}`,true)));i.forIn("key",m,t=>i.if(a._`${m}[${t}].length`,()=>{d.reportError(n,{message:a._`${t} in ${Q} ? ${Q}[${t}]() : ${B}${C}[${t}]`,params:a._`{errors: ${m}[${t}]}`});i.assign(a._`${h.default.vErrors}[${h.default.errors}-1].instancePath`,a._`${S} + "/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`)}));i.endIf();function init(t,n){i.assign(m,a.stringify(t));i.assign(Q,getTemplatesCode(t,n))}}function processAllErrors(t){const c=i.const("emErrs",a._`[]`);i.forOf("err",h.default.vErrors,t=>i.if(matchAnyError(t),()=>i.code(a._`${c}.push(${t})`).assign(a._`${t}.${g}`,true)));i.if(a._`${c}.length`,()=>d.reportError(n,{message:templateExpr(t),params:a._`{errors: ${c}}`}))}function removeUsedErrors(){const t=i.const("emErrs",a._`[]`);i.forOf("err",h.default.vErrors,n=>i.if(a._`!${n}.${g}`,()=>i.code(a._`${t}.push(${n})`)));i.assign(h.default.vErrors,t).assign(h.default.errors,a._`${t}.length`)}function matchKeywordError(t,n){return c.and(a._`${t}.keyword !== ${f}`,a._`!${t}.${g}`,a._`${t}.instancePath === ${S}`,a._`${t}.keyword in ${n}`,a._`${t}.schemaPath.indexOf(${Q.errSchemaPath}) === 0`,a._`/^\\/[^\\/]*$/.test(${t}.schemaPath.slice(${Q.errSchemaPath.length}))`)}function ifMatchesChildError(t,n,A){i.if(c.and(a._`${t}.keyword !== ${f}`,a._`!${t}.${g}`,a._`${t}.instancePath.indexOf(${S}) === 0`),()=>{const c=i.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:a._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`});const l=i.const("emMatches",a._`${c}.exec(${t}.instancePath.slice(${S}.length))`);const d=i.const("emChild",a._`${l} && ${l}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);i.if(a._`${d} !== undefined && ${d} in ${n}`,()=>A(d))})}function matchAnyError(t){return c.and(a._`${t}.keyword !== ${f}`,a._`!${t}.${g}`,c.or(a._`${t}.instancePath === ${S}`,c.and(a._`${t}.instancePath.indexOf(${S}) === 0`,a._`${t}.instancePath[${S}.length] === "/"`)),a._`${t}.schemaPath.indexOf(${Q.errSchemaPath}) === 0`,a._`${t}.schemaPath[${Q.errSchemaPath}.length] === "/"`)}function getTemplatesCode(t,n){const a=[];for(const i in t){const t=n[i];if(m.test(t))a.push([i,templateFunc(t)])}return i.object(...a)}function templateExpr(t){if(!m.test(t))return a.stringify(t);return new A._Code(A.safeStringify(t).replace(E,(t,n)=>`" + JSON.stringify(${l.getData(n,Q)}) + "`).replace(C,""))}function templateFunc(t){return a._`function(){return ${templateExpr(t)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const ajvErrors=(t,n={})=>{if(!t.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(t.opts.jsPropertySyntax){throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported")}return t.addKeyword(errorMessage(n))};n["default"]=ajvErrors;t.exports=ajvErrors;t.exports["default"]=ajvErrors},779:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.formatNames=n.fastFormats=n.fullFormats=void 0;function fmtDef(t,n){return{validate:t,compare:n}}n.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/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!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};n.fastFormats={...n.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};n.formatNames=Object.keys(n.fullFormats);function isLeapYear(t){return t%4===0&&(t%100!==0||t%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(t){const n=i.exec(t);if(!n)return false;const c=+n[1];const A=+n[2];const l=+n[3];return A>=1&&A<=12&&l>=1&&l<=(A===2&&isLeapYear(c)?29:a[A])}function compareDate(t,n){if(!(t&&n))return undefined;if(t>n)return 1;if(t23||g>59||t&&!d)return false;if(a<=23&&A<=59&&l<60)return true;const p=A-g*h;const m=a-f*h-(p<0?1:0);return(m===23||m===-1)&&(p===59||p===-1)&&l<61}}function compareTime(t,n){if(!(t&&n))return undefined;const i=new Date("2020-01-01T"+t).valueOf();const a=new Date("2020-01-01T"+n).valueOf();if(!(i&&a))return undefined;return i-a}function compareIsoTime(t,n){if(!(t&&n))return undefined;const i=c.exec(t);const a=c.exec(n);if(!(i&&a))return undefined;t=i[1]+i[2]+i[3];n=a[1]+a[2]+a[3];if(t>n)return 1;if(t=f}function validateInt64(t){return Number.isInteger(t)}function validateNumber(){return true}const p=/[^\\]\\Z/;function regex(t){if(p.test(t))return false;try{new RegExp(t);return true}catch(t){return false}}},2815:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(779);const c=i(1284);const A=i(1436);const l=new A.Name("fullFormats");const d=new A.Name("fastFormats");const formatsPlugin=(t,n={keywords:true})=>{if(Array.isArray(n)){addFormats(t,n,a.fullFormats,l);return t}const[i,A]=n.mode==="fast"?[a.fastFormats,d]:[a.fullFormats,l];const h=n.formats||a.formatNames;addFormats(t,h,i,A);if(n.keywords)(0,c.default)(t);return t};formatsPlugin.get=(t,n="full")=>{const i=n==="fast"?a.fastFormats:a.fullFormats;const c=i[t];if(!c)throw new Error(`Unknown format "${t}"`);return c};function addFormats(t,n,i,a){var c;var l;(c=(l=t.opts.code).formats)!==null&&c!==void 0?c:l.formats=(0,A._)`require("ajv-formats/dist/formats").${a}`;for(const a of n)t.addFormat(a,i[a])}t.exports=n=formatsPlugin;Object.defineProperty(n,"__esModule",{value:true});n["default"]=formatsPlugin},1284:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.formatLimitDefinition=void 0;const a=i(2463);const c=i(1436);const A=c.operators;const l={formatMaximum:{okStr:"<=",ok:A.LTE,fail:A.GT},formatMinimum:{okStr:">=",ok:A.GTE,fail:A.LT},formatExclusiveMaximum:{okStr:"<",ok:A.LT,fail:A.GTE},formatExclusiveMinimum:{okStr:">",ok:A.GT,fail:A.LTE}};const d={message:({keyword:t,schemaCode:n})=>(0,c.str)`should be ${l[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>(0,c._)`{comparison: ${l[t].okStr}, limit: ${n}}`};n.formatLimitDefinition={keyword:Object.keys(l),type:"string",schemaType:"string",$data:true,error:d,code(t){const{gen:n,data:i,schemaCode:A,keyword:d,it:h}=t;const{opts:f,self:g}=h;if(!f.validateFormats)return;const p=new a.KeywordCxt(h,g.RULES.all.format.definition,"format");if(p.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const i=n.scopeValue("formats",{ref:g.formats,code:f.code.formats});const a=n.const("fmt",(0,c._)`${i}[${p.schemaCode}]`);t.fail$data((0,c.or)((0,c._)`typeof ${a} != "object"`,(0,c._)`${a} instanceof RegExp`,(0,c._)`typeof ${a}.compare != "function"`,compareCode(a)))}function validateFormat(){const i=p.schema;const a=g.formats[i];if(!a||a===true)return;if(typeof a!="object"||a instanceof RegExp||typeof a.compare!="function"){throw new Error(`"${d}": format "${i}" does not define "compare" function`)}const A=n.scopeValue("formats",{key:i,ref:a,code:f.code.formats?(0,c._)`${f.code.formats}${(0,c.getProperty)(i)}`:undefined});t.fail$data(compareCode(A))}function compareCode(t){return(0,c._)`${t}.compare(${i}, ${A}) ${l[d].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=t=>{t.addKeyword(n.formatLimitDefinition);return t};n["default"]=formatLimitPlugin},878:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.MissingRefError=n.ValidationError=n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=n.Ajv2019=void 0;const a=i(3893);const c=i(9941);const A=i(9923);const l=i(7844);const d=i(2010);const h=i(8886);const f=i(5375);const g="https://json-schema.org/draft/2019-09/schema";class Ajv2019 extends a.default{constructor(t={}){super({...t,dynamicRef:true,next:true,unevaluated:true})}_addVocabularies(){super._addVocabularies();this.addVocabulary(A.default);c.default.forEach(t=>this.addVocabulary(t));this.addVocabulary(l.default);this.addVocabulary(d.default);if(this.opts.discriminator)this.addKeyword(h.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:t,meta:n}=this.opts;if(!n)return;f.default.call(this,t);this.refs["http://json-schema.org/schema"]=g}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(g)?g:undefined)}}n.Ajv2019=Ajv2019;t.exports=n=Ajv2019;t.exports.Ajv2019=Ajv2019;Object.defineProperty(n,"__esModule",{value:true});n["default"]=Ajv2019;var p=i(7881);Object.defineProperty(n,"KeywordCxt",{enumerable:true,get:function(){return p.KeywordCxt}});var m=i(1436);Object.defineProperty(n,"_",{enumerable:true,get:function(){return m._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return m.str}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return m.stringify}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return m.nil}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return m.Name}});Object.defineProperty(n,"CodeGen",{enumerable:true,get:function(){return m.CodeGen}});var E=i(3021);Object.defineProperty(n,"ValidationError",{enumerable:true,get:function(){return E.default}});var C=i(3162);Object.defineProperty(n,"MissingRefError",{enumerable:true,get:function(){return C.default}})},2463:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.MissingRefError=n.ValidationError=n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=n.Ajv=void 0;const a=i(3893);const c=i(9941);const A=i(8886);const l=i(2079);const d=["/properties"];const h="http://json-schema.org/draft-07/schema";class Ajv extends a.default{_addVocabularies(){super._addVocabularies();c.default.forEach(t=>this.addVocabulary(t));if(this.opts.discriminator)this.addKeyword(A.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const t=this.opts.$data?this.$dataMetaSchema(l,d):l;this.addMetaSchema(t,h,false);this.refs["http://json-schema.org/schema"]=h}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(h)?h:undefined)}}n.Ajv=Ajv;t.exports=n=Ajv;t.exports.Ajv=Ajv;Object.defineProperty(n,"__esModule",{value:true});n["default"]=Ajv;var f=i(7881);Object.defineProperty(n,"KeywordCxt",{enumerable:true,get:function(){return f.KeywordCxt}});var g=i(1436);Object.defineProperty(n,"_",{enumerable:true,get:function(){return g._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return g.str}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return g.stringify}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return g.nil}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return g.Name}});Object.defineProperty(n,"CodeGen",{enumerable:true,get:function(){return g.CodeGen}});var p=i(3021);Object.defineProperty(n,"ValidationError",{enumerable:true,get:function(){return p.default}});var m=i(3162);Object.defineProperty(n,"MissingRefError",{enumerable:true,get:function(){return m.default}})},567:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.regexpCode=n.getEsmExportName=n.getProperty=n.safeStringify=n.stringify=n.strConcat=n.addCodeArg=n.str=n._=n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0;class _CodeOrName{}n._CodeOrName=_CodeOrName;n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(t){super();if(!n.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}n.Name=Name;class _Code extends _CodeOrName{constructor(t){super();this._items=typeof t==="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((t,n)=>`${t}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((t,n)=>{if(n instanceof Name)t[n.str]=(t[n.str]||0)+1;return t},{})}}n._Code=_Code;n.nil=new _Code("");function _(t,...n){const i=[t[0]];let a=0;while(a{Object.defineProperty(n,"__esModule",{value:true});n.or=n.and=n.not=n.CodeGen=n.operators=n.varKinds=n.ValueScopeName=n.ValueScope=n.Scope=n.Name=n.regexpCode=n.stringify=n.getProperty=n.nil=n.strConcat=n.str=n._=void 0;const a=i(567);const c=i(7788);var A=i(567);Object.defineProperty(n,"_",{enumerable:true,get:function(){return A._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return A.str}});Object.defineProperty(n,"strConcat",{enumerable:true,get:function(){return A.strConcat}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return A.nil}});Object.defineProperty(n,"getProperty",{enumerable:true,get:function(){return A.getProperty}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return A.stringify}});Object.defineProperty(n,"regexpCode",{enumerable:true,get:function(){return A.regexpCode}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return A.Name}});var l=i(7788);Object.defineProperty(n,"Scope",{enumerable:true,get:function(){return l.Scope}});Object.defineProperty(n,"ValueScope",{enumerable:true,get:function(){return l.ValueScope}});Object.defineProperty(n,"ValueScopeName",{enumerable:true,get:function(){return l.ValueScopeName}});Object.defineProperty(n,"varKinds",{enumerable:true,get:function(){return l.varKinds}});n.operators={GT:new a._Code(">"),GTE:new a._Code(">="),LT:new a._Code("<"),LTE:new a._Code("<="),EQ:new a._Code("==="),NEQ:new a._Code("!=="),NOT:new a._Code("!"),OR:new a._Code("||"),AND:new a._Code("&&"),ADD:new a._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(t,n){return this}}class Def extends Node{constructor(t,n,i){super();this.varKind=t;this.name=n;this.rhs=i}render({es5:t,_n:n}){const i=t?c.varKinds.var:this.varKind;const a=this.rhs===undefined?"":` = ${this.rhs}`;return`${i} ${this.name}${a};`+n}optimizeNames(t,n){if(!t[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,t,n);return this}get names(){return this.rhs instanceof a._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(t,n,i){super();this.lhs=t;this.rhs=n;this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,n){if(this.lhs instanceof a.Name&&!t[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,t,n);return this}get names(){const t=this.lhs instanceof a.Name?{}:{...this.lhs.names};return addExprNames(t,this.rhs)}}class AssignOp extends Assign{constructor(t,n,i,a){super(t,i,a);this.op=n}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class Label extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){return`${this.label}:`+t}}class Break extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){const n=this.label?` ${this.label}`:"";return`break${n};`+t}}class Throw extends Node{constructor(t){super();this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class AnyCode extends Node{constructor(t){super();this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(t,n){this.code=optimizeExpr(this.code,t,n);return this}get names(){return this.code instanceof a._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(t=[]){super();this.nodes=t}render(t){return this.nodes.reduce((n,i)=>n+i.render(t),"")}optimizeNodes(){const{nodes:t}=this;let n=t.length;while(n--){const i=t[n].optimizeNodes();if(Array.isArray(i))t.splice(n,1,...i);else if(i)t[n]=i;else t.splice(n,1)}return t.length>0?this:undefined}optimizeNames(t,n){const{nodes:i}=this;let a=i.length;while(a--){const c=i[a];if(c.optimizeNames(t,n))continue;subtractNames(t,c.names);i.splice(a,1)}return i.length>0?this:undefined}get names(){return this.nodes.reduce((t,n)=>addNames(t,n.names),{})}}class BlockNode extends ParentNode{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(t,n){super(n);this.condition=t}render(t){let n=`if(${this.condition})`+super.render(t);if(this.else)n+="else "+this.else.render(t);return n}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(t===true)return this.nodes;let n=this.else;if(n){const t=n.optimizeNodes();n=this.else=Array.isArray(t)?new Else(t):t}if(n){if(t===false)return n instanceof If?n:n.nodes;if(this.nodes.length)return this;return new If(not(t),n instanceof If?[n]:n.nodes)}if(t===false||!this.nodes.length)return undefined;return this}optimizeNames(t,n){var i;this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,n);if(!(super.optimizeNames(t,n)||this.else))return;this.condition=optimizeExpr(this.condition,t,n);return this}get names(){const t=super.names;addExprNames(t,this.condition);if(this.else)addNames(t,this.else.names);return t}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(t){super();this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,n){if(!super.optimizeNames(t,n))return;this.iteration=optimizeExpr(this.iteration,t,n);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(t,n,i,a){super();this.varKind=t;this.name=n;this.from=i;this.to=a}render(t){const n=t.es5?c.varKinds.var:this.varKind;const{name:i,from:a,to:A}=this;return`for(${n} ${i}=${a}; ${i}<${A}; ${i}++)`+super.render(t)}get names(){const t=addExprNames(super.names,this.from);return addExprNames(t,this.to)}}class ForIter extends For{constructor(t,n,i,a){super();this.loop=t;this.varKind=n;this.name=i;this.iterable=a}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,n){if(!super.optimizeNames(t,n))return;this.iterable=optimizeExpr(this.iterable,t,n);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(t,n,i){super();this.name=t;this.args=n;this.async=i}render(t){const n=this.async?"async ":"";return`${n}function ${this.name}(${this.args})`+super.render(t)}}Func.kind="func";class Return extends ParentNode{render(t){return"return "+super.render(t)}}Return.kind="return";class Try extends BlockNode{render(t){let n="try"+super.render(t);if(this.catch)n+=this.catch.render(t);if(this.finally)n+=this.finally.render(t);return n}optimizeNodes(){var t,n;super.optimizeNodes();(t=this.catch)===null||t===void 0?void 0:t.optimizeNodes();(n=this.finally)===null||n===void 0?void 0:n.optimizeNodes();return this}optimizeNames(t,n){var i,a;super.optimizeNames(t,n);(i=this.catch)===null||i===void 0?void 0:i.optimizeNames(t,n);(a=this.finally)===null||a===void 0?void 0:a.optimizeNames(t,n);return this}get names(){const t=super.names;if(this.catch)addNames(t,this.catch.names);if(this.finally)addNames(t,this.finally.names);return t}}class Catch extends BlockNode{constructor(t){super();this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}Catch.kind="catch";class Finally extends BlockNode{render(t){return"finally"+super.render(t)}}Finally.kind="finally";class CodeGen{constructor(t,n={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...n,_n:n.lines?"\n":""};this._extScope=t;this._scope=new c.Scope({parent:t});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,n){const i=this._extScope.value(t,n);const a=this._values[i.prefix]||(this._values[i.prefix]=new Set);a.add(i);return i}getScopeValue(t,n){return this._extScope.getValue(t,n)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,n,i,a){const c=this._scope.toName(n);if(i!==undefined&&a)this._constants[c.str]=i;this._leafNode(new Def(t,c,i));return c}const(t,n,i){return this._def(c.varKinds.const,t,n,i)}let(t,n,i){return this._def(c.varKinds.let,t,n,i)}var(t,n,i){return this._def(c.varKinds.var,t,n,i)}assign(t,n,i){return this._leafNode(new Assign(t,n,i))}add(t,i){return this._leafNode(new AssignOp(t,n.operators.ADD,i))}code(t){if(typeof t=="function")t();else if(t!==a.nil)this._leafNode(new AnyCode(t));return this}object(...t){const n=["{"];for(const[i,c]of t){if(n.length>1)n.push(",");n.push(i);if(i!==c||this.opts.es5){n.push(":");(0,a.addCodeArg)(n,c)}}n.push("}");return new a._Code(n)}if(t,n,i){this._blockNode(new If(t));if(n&&i){this.code(n).else().code(i).endIf()}else if(n){this.code(n).endIf()}else if(i){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(t){return this._elseNode(new If(t))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(t,n){this._blockNode(t);if(n)this.code(n).endFor();return this}for(t,n){return this._for(new ForLoop(t),n)}forRange(t,n,i,a,A=(this.opts.es5?c.varKinds.var:c.varKinds.let)){const l=this._scope.toName(t);return this._for(new ForRange(A,l,n,i),()=>a(l))}forOf(t,n,i,A=c.varKinds.const){const l=this._scope.toName(t);if(this.opts.es5){const t=n instanceof a.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,a._)`${t}.length`,n=>{this.var(l,(0,a._)`${t}[${n}]`);i(l)})}return this._for(new ForIter("of",A,l,n),()=>i(l))}forIn(t,n,i,A=(this.opts.es5?c.varKinds.var:c.varKinds.const)){if(this.opts.ownProperties){return this.forOf(t,(0,a._)`Object.keys(${n})`,i)}const l=this._scope.toName(t);return this._for(new ForIter("in",A,l,n),()=>i(l))}endFor(){return this._endBlockNode(For)}label(t){return this._leafNode(new Label(t))}break(t){return this._leafNode(new Break(t))}return(t){const n=new Return;this._blockNode(n);this.code(t);if(n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(t,n,i){if(!n&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');const a=new Try;this._blockNode(a);this.code(t);if(n){const t=this.name("e");this._currNode=a.catch=new Catch(t);n(t)}if(i){this._currNode=a.finally=new Finally;this.code(i)}return this._endBlockNode(Catch,Finally)}throw(t){return this._leafNode(new Throw(t))}block(t,n){this._blockStarts.push(this._nodes.length);if(t)this.code(t).endBlock(n);return this}endBlock(t){const n=this._blockStarts.pop();if(n===undefined)throw new Error("CodeGen: not in self-balancing block");const i=this._nodes.length-n;if(i<0||t!==undefined&&i!==t){throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`)}this._nodes.length=n;return this}func(t,n=a.nil,i,c){this._blockNode(new Func(t,n,i));if(c)this.code(c).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(t=1){while(t-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(t){this._currNode.nodes.push(t);return this}_blockNode(t){this._currNode.nodes.push(t);this._nodes.push(t)}_endBlockNode(t,n){const i=this._currNode;if(i instanceof t||n&&i instanceof n){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${n?`${t.kind}/${n.kind}`:t.kind}"`)}_elseNode(t){const n=this._currNode;if(!(n instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=n.else=t;return this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const n=this._nodes;n[n.length-1]=t}}n.CodeGen=CodeGen;function addNames(t,n){for(const i in n)t[i]=(t[i]||0)+(n[i]||0);return t}function addExprNames(t,n){return n instanceof a._CodeOrName?addNames(t,n.names):t}function optimizeExpr(t,n,i){if(t instanceof a.Name)return replaceName(t);if(!canOptimize(t))return t;return new a._Code(t._items.reduce((t,n)=>{if(n instanceof a.Name)n=replaceName(n);if(n instanceof a._Code)t.push(...n._items);else t.push(n);return t},[]));function replaceName(t){const a=i[t.str];if(a===undefined||n[t.str]!==1)return t;delete n[t.str];return a}function canOptimize(t){return t instanceof a._Code&&t._items.some(t=>t instanceof a.Name&&n[t.str]===1&&i[t.str]!==undefined)}}function subtractNames(t,n){for(const i in n)t[i]=(t[i]||0)-(n[i]||0)}function not(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,a._)`!${par(t)}`}n.not=not;const d=mappend(n.operators.AND);function and(...t){return t.reduce(d)}n.and=and;const h=mappend(n.operators.OR);function or(...t){return t.reduce(h)}n.or=or;function mappend(t){return(n,i)=>n===a.nil?i:i===a.nil?n:(0,a._)`${par(n)} ${t} ${par(i)}`}function par(t){return t instanceof a.Name?t:(0,a._)`(${t})`}},7788:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const a=i(567);class ValueError extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`);this.value=t.value}}var c;(function(t){t[t["Started"]=0]="Started";t[t["Completed"]=1]="Completed"})(c||(n.UsedValueState=c={}));n.varKinds={const:new a.Name("const"),let:new a.Name("let"),var:new a.Name("var")};class Scope{constructor({prefixes:t,parent:n}={}){this._names={};this._prefixes=t;this._parent=n}toName(t){return t instanceof a.Name?t:this.name(t)}name(t){return new a.Name(this._newName(t))}_newName(t){const n=this._names[t]||this._nameGroup(t);return`${t}${n.index++}`}_nameGroup(t){var n,i;if(((i=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||i===void 0?void 0:i.has(t))||this._prefixes&&!this._prefixes.has(t)){throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`)}return this._names[t]={prefix:t,index:0}}}n.Scope=Scope;class ValueScopeName extends a.Name{constructor(t,n){super(n);this.prefix=t}setValue(t,{property:n,itemIndex:i}){this.value=t;this.scopePath=(0,a._)`.${new a.Name(n)}[${i}]`}}n.ValueScopeName=ValueScopeName;const A=(0,a._)`\n`;class ValueScope extends Scope{constructor(t){super(t);this._values={};this._scope=t.scope;this.opts={...t,_n:t.lines?A:a.nil}}get(){return this._scope}name(t){return new ValueScopeName(t,this._newName(t))}value(t,n){var i;if(n.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const a=this.toName(t);const{prefix:c}=a;const A=(i=n.key)!==null&&i!==void 0?i:n.ref;let l=this._values[c];if(l){const t=l.get(A);if(t)return t}else{l=this._values[c]=new Map}l.set(A,a);const d=this._scope[c]||(this._scope[c]=[]);const h=d.length;d[h]=n.ref;a.setValue(n,{property:c,itemIndex:h});return a}getValue(t,n){const i=this._values[t];if(!i)return;return i.get(n)}scopeRefs(t,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===undefined)throw new Error(`CodeGen: name "${n}" has no value`);return(0,a._)`${t}${n.scopePath}`})}scopeCode(t=this._values,n,i){return this._reduceValues(t,t=>{if(t.value===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code},n,i)}_reduceValues(t,i,A={},l){let d=a.nil;for(const h in t){const f=t[h];if(!f)continue;const g=A[h]=A[h]||new Map;f.forEach(t=>{if(g.has(t))return;g.set(t,c.Started);let A=i(t);if(A){const i=this.opts.es5?n.varKinds.var:n.varKinds.const;d=(0,a._)`${d}${i} ${t} = ${A};${this.opts._n}`}else if(A=l===null||l===void 0?void 0:l(t)){d=(0,a._)`${d}${A}${this.opts._n}`}else{throw new ValueError(t)}g.set(t,c.Completed)})}return d}}n.ValueScope=ValueScope},1283:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.extendErrors=n.resetErrorsCount=n.reportExtraError=n.reportError=n.keyword$DataError=n.keywordError=void 0;const a=i(1436);const c=i(4464);const A=i(630);n.keywordError={message:({keyword:t})=>(0,a.str)`must pass "${t}" keyword validation`};n.keyword$DataError={message:({keyword:t,schemaType:n})=>n?(0,a.str)`"${t}" keyword must be ${n} ($data)`:(0,a.str)`"${t}" keyword is invalid ($data)`};function reportError(t,i=n.keywordError,c,A){const{it:l}=t;const{gen:d,compositeRule:h,allErrors:f}=l;const g=errorObjectCode(t,i,c);if(A!==null&&A!==void 0?A:h||f){addError(d,g)}else{returnErrors(l,(0,a._)`[${g}]`)}}n.reportError=reportError;function reportExtraError(t,i=n.keywordError,a){const{it:c}=t;const{gen:l,compositeRule:d,allErrors:h}=c;const f=errorObjectCode(t,i,a);addError(l,f);if(!(d||h)){returnErrors(c,A.default.vErrors)}}n.reportExtraError=reportExtraError;function resetErrorsCount(t,n){t.assign(A.default.errors,n);t.if((0,a._)`${A.default.vErrors} !== null`,()=>t.if(n,()=>t.assign((0,a._)`${A.default.vErrors}.length`,n),()=>t.assign(A.default.vErrors,null)))}n.resetErrorsCount=resetErrorsCount;function extendErrors({gen:t,keyword:n,schemaValue:i,data:c,errsCount:l,it:d}){if(l===undefined)throw new Error("ajv implementation error");const h=t.name("err");t.forRange("i",l,A.default.errors,l=>{t.const(h,(0,a._)`${A.default.vErrors}[${l}]`);t.if((0,a._)`${h}.instancePath === undefined`,()=>t.assign((0,a._)`${h}.instancePath`,(0,a.strConcat)(A.default.instancePath,d.errorPath)));t.assign((0,a._)`${h}.schemaPath`,(0,a.str)`${d.errSchemaPath}/${n}`);if(d.opts.verbose){t.assign((0,a._)`${h}.schema`,i);t.assign((0,a._)`${h}.data`,c)}})}n.extendErrors=extendErrors;function addError(t,n){const i=t.const("err",n);t.if((0,a._)`${A.default.vErrors} === null`,()=>t.assign(A.default.vErrors,(0,a._)`[${i}]`),(0,a._)`${A.default.vErrors}.push(${i})`);t.code((0,a._)`${A.default.errors}++`)}function returnErrors(t,n){const{gen:i,validateName:c,schemaEnv:A}=t;if(A.$async){i.throw((0,a._)`new ${t.ValidationError}(${n})`)}else{i.assign((0,a._)`${c}.errors`,n);i.return(false)}}const l={keyword:new a.Name("keyword"),schemaPath:new a.Name("schemaPath"),params:new a.Name("params"),propertyName:new a.Name("propertyName"),message:new a.Name("message"),schema:new a.Name("schema"),parentSchema:new a.Name("parentSchema")};function errorObjectCode(t,n,i){const{createErrors:c}=t.it;if(c===false)return(0,a._)`{}`;return errorObject(t,n,i)}function errorObject(t,n,i={}){const{gen:a,it:c}=t;const A=[errorInstancePath(c,i),errorSchemaPath(t,i)];extraErrorProps(t,n,A);return a.object(...A)}function errorInstancePath({errorPath:t},{instancePath:n}){const i=n?(0,a.str)`${t}${(0,c.getErrorPath)(n,c.Type.Str)}`:t;return[A.default.instancePath,(0,a.strConcat)(A.default.instancePath,i)]}function errorSchemaPath({keyword:t,it:{errSchemaPath:n}},{schemaPath:i,parentSchema:A}){let d=A?n:(0,a.str)`${n}/${t}`;if(i){d=(0,a.str)`${d}${(0,c.getErrorPath)(i,c.Type.Str)}`}return[l.schemaPath,d]}function extraErrorProps(t,{params:n,message:i},c){const{keyword:d,data:h,schemaValue:f,it:g}=t;const{opts:p,propertyName:m,topSchemaRef:E,schemaPath:C}=g;c.push([l.keyword,d],[l.params,typeof n=="function"?n(t):n||(0,a._)`{}`]);if(p.messages){c.push([l.message,typeof i=="function"?i(t):i])}if(p.verbose){c.push([l.schema,f],[l.parentSchema,(0,a._)`${E}${C}`],[A.default.data,h])}if(m)c.push([l.propertyName,m])}},2718:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.resolveSchema=n.getCompilingSchema=n.resolveRef=n.compileSchema=n.SchemaEnv=void 0;const a=i(1436);const c=i(3021);const A=i(630);const l=i(4090);const d=i(4464);const h=i(7881);class SchemaEnv{constructor(t){var n;this.refs={};this.dynamicAnchors={};let i;if(typeof t.schema=="object")i=t.schema;this.schema=t.schema;this.schemaId=t.schemaId;this.root=t.root||this;this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,l.normalizeId)(i===null||i===void 0?void 0:i[t.schemaId||"$id"]);this.schemaPath=t.schemaPath;this.localRefs=t.localRefs;this.meta=t.meta;this.$async=i===null||i===void 0?void 0:i.$async;this.refs={}}}n.SchemaEnv=SchemaEnv;function compileSchema(t){const n=getCompilingSchema.call(this,t);if(n)return n;const i=(0,l.getFullPath)(this.opts.uriResolver,t.root.baseId);const{es5:d,lines:f}=this.opts.code;const{ownProperties:g}=this.opts;const p=new a.CodeGen(this.scope,{es5:d,lines:f,ownProperties:g});let m;if(t.$async){m=p.scopeValue("Error",{ref:c.default,code:(0,a._)`require("ajv/dist/runtime/validation_error").default`})}const E=p.scopeName("validate");t.validateName=E;const C={gen:p,allErrors:this.opts.allErrors,data:A.default.data,parentData:A.default.parentData,parentDataProperty:A.default.parentDataProperty,dataNames:[A.default.data],dataPathArr:[a.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",this.opts.code.source===true?{ref:t.schema,code:(0,a.stringify)(t.schema)}:{ref:t.schema}),validateName:E,ValidationError:m,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:a.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,a._)`""`,opts:this.opts,self:this};let I;try{this._compilations.add(t);(0,h.validateFunctionCode)(C);p.optimize(this.opts.code.optimize);const n=p.toString();I=`${p.scopeRefs(A.default.scope)}return ${n}`;if(this.opts.code.process)I=this.opts.code.process(I,t);const i=new Function(`${A.default.self}`,`${A.default.scope}`,I);const c=i(this,this.scope.get());this.scope.value(E,{ref:c});c.errors=null;c.schema=t.schema;c.schemaEnv=t;if(t.$async)c.$async=true;if(this.opts.code.source===true){c.source={validateName:E,validateCode:n,scopeValues:p._values}}if(this.opts.unevaluated){const{props:t,items:n}=C;c.evaluated={props:t instanceof a.Name?undefined:t,items:n instanceof a.Name?undefined:n,dynamicProps:t instanceof a.Name,dynamicItems:n instanceof a.Name};if(c.source)c.source.evaluated=(0,a.stringify)(c.evaluated)}t.validate=c;return t}catch(n){delete t.validate;delete t.validateName;if(I)this.logger.error("Error compiling schema, function code:",I);throw n}finally{this._compilations.delete(t)}}n.compileSchema=compileSchema;function resolveRef(t,n,i){var a;i=(0,l.resolveUrl)(this.opts.uriResolver,n,i);const c=t.refs[i];if(c)return c;let A=resolve.call(this,t,i);if(A===undefined){const c=(a=t.localRefs)===null||a===void 0?void 0:a[i];const{schemaId:l}=this.opts;if(c)A=new SchemaEnv({schema:c,schemaId:l,root:t,baseId:n})}if(A===undefined)return;return t.refs[i]=inlineOrCompile.call(this,A)}n.resolveRef=resolveRef;function inlineOrCompile(t){if((0,l.inlineRef)(t.schema,this.opts.inlineRefs))return t.schema;return t.validate?t:compileSchema.call(this,t)}function getCompilingSchema(t){for(const n of this._compilations){if(sameSchemaEnv(n,t))return n}}n.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(t,n){return t.schema===n.schema&&t.root===n.root&&t.baseId===n.baseId}function resolve(t,n){let i;while(typeof(i=this.refs[n])=="string")n=i;return i||this.schemas[n]||resolveSchema.call(this,t,n)}function resolveSchema(t,n){const i=this.opts.uriResolver.parse(n);const a=(0,l._getFullPath)(this.opts.uriResolver,i);let c=(0,l.getFullPath)(this.opts.uriResolver,t.baseId,undefined);if(Object.keys(t.schema).length>0&&a===c){return getJsonPointer.call(this,i,t)}const A=(0,l.normalizeId)(a);const d=this.refs[A]||this.schemas[A];if(typeof d=="string"){const n=resolveSchema.call(this,t,d);if(typeof(n===null||n===void 0?void 0:n.schema)!=="object")return;return getJsonPointer.call(this,i,n)}if(typeof(d===null||d===void 0?void 0:d.schema)!=="object")return;if(!d.validate)compileSchema.call(this,d);if(A===(0,l.normalizeId)(n)){const{schema:n}=d;const{schemaId:i}=this.opts;const a=n[i];if(a)c=(0,l.resolveUrl)(this.opts.uriResolver,c,a);return new SchemaEnv({schema:n,schemaId:i,root:t,baseId:c})}return getJsonPointer.call(this,i,d)}n.resolveSchema=resolveSchema;const f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(t,{baseId:n,schema:i,root:a}){var c;if(((c=t.fragment)===null||c===void 0?void 0:c[0])!=="/")return;for(const a of t.fragment.slice(1).split("/")){if(typeof i==="boolean")return;const t=i[(0,d.unescapeFragment)(a)];if(t===undefined)return;i=t;const c=typeof i==="object"&&i[this.opts.schemaId];if(!f.has(a)&&c){n=(0,l.resolveUrl)(this.opts.uriResolver,n,c)}}let A;if(typeof i!="boolean"&&i.$ref&&!(0,d.schemaHasRulesButRef)(i,this.RULES)){const t=(0,l.resolveUrl)(this.opts.uriResolver,n,i.$ref);A=resolveSchema.call(this,a,t)}const{schemaId:h}=this.opts;A=A||new SchemaEnv({schema:i,schemaId:h,root:a,baseId:n});if(A.schema!==A.root.schema)return A;return undefined}},630:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c={data:new a.Name("data"),valCxt:new a.Name("valCxt"),instancePath:new a.Name("instancePath"),parentData:new a.Name("parentData"),parentDataProperty:new a.Name("parentDataProperty"),rootData:new a.Name("rootData"),dynamicAnchors:new a.Name("dynamicAnchors"),vErrors:new a.Name("vErrors"),errors:new a.Name("errors"),this:new a.Name("this"),self:new a.Name("self"),scope:new a.Name("scope"),json:new a.Name("json"),jsonPos:new a.Name("jsonPos"),jsonLen:new a.Name("jsonLen"),jsonPart:new a.Name("jsonPart")};n["default"]=c},3162:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4090);class MissingRefError extends Error{constructor(t,n,i,c){super(c||`can't resolve reference ${i} from id ${n}`);this.missingRef=(0,a.resolveUrl)(t,n,i);this.missingSchema=(0,a.normalizeId)((0,a.getFullPath)(t,this.missingRef))}}n["default"]=MissingRefError},4090:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.getSchemaRefs=n.resolveUrl=n.normalizeId=n._getFullPath=n.getFullPath=n.inlineRef=void 0;const a=i(4464);const c=i(3430);const A=i(1167);const l=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(t,n=true){if(typeof t=="boolean")return true;if(n===true)return!hasRef(t);if(!n)return false;return countKeys(t)<=n}n.inlineRef=inlineRef;const d=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(t){for(const n in t){if(d.has(n))return true;const i=t[n];if(Array.isArray(i)&&i.some(hasRef))return true;if(typeof i=="object"&&hasRef(i))return true}return false}function countKeys(t){let n=0;for(const i in t){if(i==="$ref")return Infinity;n++;if(l.has(i))continue;if(typeof t[i]=="object"){(0,a.eachItem)(t[i],t=>n+=countKeys(t))}if(n===Infinity)return Infinity}return n}function getFullPath(t,n="",i){if(i!==false)n=normalizeId(n);const a=t.parse(n);return _getFullPath(t,a)}n.getFullPath=getFullPath;function _getFullPath(t,n){const i=t.serialize(n);return i.split("#")[0]+"#"}n._getFullPath=_getFullPath;const h=/#\/?$/;function normalizeId(t){return t?t.replace(h,""):""}n.normalizeId=normalizeId;function resolveUrl(t,n,i){i=normalizeId(i);return t.resolve(n,i)}n.resolveUrl=resolveUrl;const f=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(t,n){if(typeof t=="boolean")return{};const{schemaId:i,uriResolver:a}=this.opts;const l=normalizeId(t[i]||n);const d={"":l};const h=getFullPath(a,l,false);const g={};const p=new Set;A(t,{allKeys:true},(t,n,a,c)=>{if(c===undefined)return;const A=h+n;let l=d[c];if(typeof t[i]=="string")l=addRef.call(this,t[i]);addAnchor.call(this,t.$anchor);addAnchor.call(this,t.$dynamicAnchor);d[n]=l;function addRef(n){const i=this.opts.uriResolver.resolve;n=normalizeId(l?i(l,n):n);if(p.has(n))throw ambiguos(n);p.add(n);let a=this.refs[n];if(typeof a=="string")a=this.refs[a];if(typeof a=="object"){checkAmbiguosRef(t,a.schema,n)}else if(n!==normalizeId(A)){if(n[0]==="#"){checkAmbiguosRef(t,g[n],n);g[n]=t}else{this.refs[n]=A}}return n}function addAnchor(t){if(typeof t=="string"){if(!f.test(t))throw new Error(`invalid anchor "${t}"`);addRef.call(this,`#${t}`)}}});return g;function checkAmbiguosRef(t,n,i){if(n!==undefined&&!c(t,n))throw ambiguos(i)}function ambiguos(t){return new Error(`reference "${t}" resolves to more than one schema`)}}n.getSchemaRefs=getSchemaRefs},7353:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.getRules=n.isJSONType=void 0;const i=["string","number","integer","boolean","null","object","array"];const a=new Set(i);function isJSONType(t){return typeof t=="string"&&a.has(t)}n.isJSONType=isJSONType;function getRules(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:true,boolean:true,null:true},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}n.getRules=getRules},4464:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.checkStrictMode=n.getErrorPath=n.Type=n.useFunc=n.setEvaluated=n.evaluatedPropsToName=n.mergeEvaluated=n.eachItem=n.unescapeJsonPointer=n.escapeJsonPointer=n.escapeFragment=n.unescapeFragment=n.schemaRefOrVal=n.schemaHasRulesButRef=n.schemaHasRules=n.checkUnknownRules=n.alwaysValidSchema=n.toHash=void 0;const a=i(1436);const c=i(567);function toHash(t){const n={};for(const i of t)n[i]=true;return n}n.toHash=toHash;function alwaysValidSchema(t,n){if(typeof n=="boolean")return n;if(Object.keys(n).length===0)return true;checkUnknownRules(t,n);return!schemaHasRules(n,t.self.RULES.all)}n.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(t,n=t.schema){const{opts:i,self:a}=t;if(!i.strictSchema)return;if(typeof n==="boolean")return;const c=a.RULES.keywords;for(const i in n){if(!c[i])checkStrictMode(t,`unknown keyword: "${i}"`)}}n.checkUnknownRules=checkUnknownRules;function schemaHasRules(t,n){if(typeof t=="boolean")return!t;for(const i in t)if(n[i])return true;return false}n.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(t,n){if(typeof t=="boolean")return!t;for(const i in t)if(i!=="$ref"&&n.all[i])return true;return false}n.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:t,schemaPath:n},i,c,A){if(!A){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,a._)`${i}`}return(0,a._)`${t}${n}${(0,a.getProperty)(c)}`}n.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(t){return unescapeJsonPointer(decodeURIComponent(t))}n.unescapeFragment=unescapeFragment;function escapeFragment(t){return encodeURIComponent(escapeJsonPointer(t))}n.escapeFragment=escapeFragment;function escapeJsonPointer(t){if(typeof t=="number")return`${t}`;return t.replace(/~/g,"~0").replace(/\//g,"~1")}n.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}n.unescapeJsonPointer=unescapeJsonPointer;function eachItem(t,n){if(Array.isArray(t)){for(const i of t)n(i)}else{n(t)}}n.eachItem=eachItem;function makeMergeEvaluated({mergeNames:t,mergeToName:n,mergeValues:i,resultToName:c}){return(A,l,d,h)=>{const f=d===undefined?l:d instanceof a.Name?(l instanceof a.Name?t(A,l,d):n(A,l,d),d):l instanceof a.Name?(n(A,d,l),l):i(l,d);return h===a.Name&&!(f instanceof a.Name)?c(A,f):f}}n.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(t,n,i)=>t.if((0,a._)`${i} !== true && ${n} !== undefined`,()=>{t.if((0,a._)`${n} === true`,()=>t.assign(i,true),()=>t.assign(i,(0,a._)`${i} || {}`).code((0,a._)`Object.assign(${i}, ${n})`))}),mergeToName:(t,n,i)=>t.if((0,a._)`${i} !== true`,()=>{if(n===true){t.assign(i,true)}else{t.assign(i,(0,a._)`${i} || {}`);setEvaluated(t,i,n)}}),mergeValues:(t,n)=>t===true?true:{...t,...n},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(t,n,i)=>t.if((0,a._)`${i} !== true && ${n} !== undefined`,()=>t.assign(i,(0,a._)`${n} === true ? true : ${i} > ${n} ? ${i} : ${n}`)),mergeToName:(t,n,i)=>t.if((0,a._)`${i} !== true`,()=>t.assign(i,n===true?true:(0,a._)`${i} > ${n} ? ${i} : ${n}`)),mergeValues:(t,n)=>t===true?true:Math.max(t,n),resultToName:(t,n)=>t.var("items",n)})};function evaluatedPropsToName(t,n){if(n===true)return t.var("props",true);const i=t.var("props",(0,a._)`{}`);if(n!==undefined)setEvaluated(t,i,n);return i}n.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(t,n,i){Object.keys(i).forEach(i=>t.assign((0,a._)`${n}${(0,a.getProperty)(i)}`,true))}n.setEvaluated=setEvaluated;const A={};function useFunc(t,n){return t.scopeValue("func",{ref:n,code:A[n.code]||(A[n.code]=new c._Code(n.code))})}n.useFunc=useFunc;var l;(function(t){t[t["Num"]=0]="Num";t[t["Str"]=1]="Str"})(l||(n.Type=l={}));function getErrorPath(t,n,i){if(t instanceof a.Name){const c=n===l.Num;return i?c?(0,a._)`"[" + ${t} + "]"`:(0,a._)`"['" + ${t} + "']"`:c?(0,a._)`"/" + ${t}`:(0,a._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,a.getProperty)(t).toString():"/"+escapeJsonPointer(t)}n.getErrorPath=getErrorPath;function checkStrictMode(t,n,i=t.opts.strictSchema){if(!i)return;n=`strict mode: ${n}`;if(i===true)throw new Error(n);t.self.logger.warn(n)}n.checkStrictMode=checkStrictMode},7692:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.shouldUseRule=n.shouldUseGroup=n.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:t,self:n},i){const a=n.RULES.types[i];return a&&a!==true&&shouldUseGroup(t,a)}n.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(t,n){return n.rules.some(n=>shouldUseRule(t,n))}n.shouldUseGroup=shouldUseGroup;function shouldUseRule(t,n){var i;return t[n.keyword]!==undefined||((i=n.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==undefined))}n.shouldUseRule=shouldUseRule},5346:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.boolOrEmptySchema=n.topBoolOrEmptySchema=void 0;const a=i(1283);const c=i(1436);const A=i(630);const l={message:"boolean schema is false"};function topBoolOrEmptySchema(t){const{gen:n,schema:i,validateName:a}=t;if(i===false){falseSchemaError(t,false)}else if(typeof i=="object"&&i.$async===true){n.return(A.default.data)}else{n.assign((0,c._)`${a}.errors`,null);n.return(true)}}n.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(t,n){const{gen:i,schema:a}=t;if(a===false){i.var(n,false);falseSchemaError(t)}else{i.var(n,true)}}n.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(t,n){const{gen:i,data:c}=t;const A={gen:i,keyword:"false schema",data:c,schema:false,schemaCode:false,schemaValue:false,params:{},it:t};(0,a.reportError)(A,l,undefined,n)}},6685:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.reportTypeError=n.checkDataTypes=n.checkDataType=n.coerceAndCheckDataType=n.getJSONTypes=n.getSchemaTypes=n.DataType=void 0;const a=i(7353);const c=i(7692);const A=i(1283);const l=i(1436);const d=i(4464);var h;(function(t){t[t["Correct"]=0]="Correct";t[t["Wrong"]=1]="Wrong"})(h||(n.DataType=h={}));function getSchemaTypes(t){const n=getJSONTypes(t.type);const i=n.includes("null");if(i){if(t.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&t.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(t.nullable===true)n.push("null")}return n}n.getSchemaTypes=getSchemaTypes;function getJSONTypes(t){const n=Array.isArray(t)?t:t?[t]:[];if(n.every(a.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}n.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(t,n){const{gen:i,data:a,opts:A}=t;const l=coerceToTypes(n,A.coerceTypes);const d=n.length>0&&!(l.length===0&&n.length===1&&(0,c.schemaHasRulesForType)(t,n[0]));if(d){const c=checkDataTypes(n,a,A.strictNumbers,h.Wrong);i.if(c,()=>{if(l.length)coerceData(t,n,l);else reportTypeError(t)})}return d}n.coerceAndCheckDataType=coerceAndCheckDataType;const f=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(t,n){return n?t.filter(t=>f.has(t)||n==="array"&&t==="array"):[]}function coerceData(t,n,i){const{gen:a,data:c,opts:A}=t;const d=a.let("dataType",(0,l._)`typeof ${c}`);const h=a.let("coerced",(0,l._)`undefined`);if(A.coerceTypes==="array"){a.if((0,l._)`${d} == 'object' && Array.isArray(${c}) && ${c}.length == 1`,()=>a.assign(c,(0,l._)`${c}[0]`).assign(d,(0,l._)`typeof ${c}`).if(checkDataTypes(n,c,A.strictNumbers),()=>a.assign(h,c)))}a.if((0,l._)`${h} !== undefined`);for(const t of i){if(f.has(t)||t==="array"&&A.coerceTypes==="array"){coerceSpecificType(t)}}a.else();reportTypeError(t);a.endIf();a.if((0,l._)`${h} !== undefined`,()=>{a.assign(c,h);assignParentData(t,h)});function coerceSpecificType(t){switch(t){case"string":a.elseIf((0,l._)`${d} == "number" || ${d} == "boolean"`).assign(h,(0,l._)`"" + ${c}`).elseIf((0,l._)`${c} === null`).assign(h,(0,l._)`""`);return;case"number":a.elseIf((0,l._)`${d} == "boolean" || ${c} === null + || (${d} == "string" && ${c} && ${c} == +${c})`).assign(h,(0,l._)`+${c}`);return;case"integer":a.elseIf((0,l._)`${d} === "boolean" || ${c} === null + || (${d} === "string" && ${c} && ${c} == +${c} && !(${c} % 1))`).assign(h,(0,l._)`+${c}`);return;case"boolean":a.elseIf((0,l._)`${c} === "false" || ${c} === 0 || ${c} === null`).assign(h,false).elseIf((0,l._)`${c} === "true" || ${c} === 1`).assign(h,true);return;case"null":a.elseIf((0,l._)`${c} === "" || ${c} === 0 || ${c} === false`);a.assign(h,null);return;case"array":a.elseIf((0,l._)`${d} === "string" || ${d} === "number" + || ${d} === "boolean" || ${c} === null`).assign(h,(0,l._)`[${c}]`)}}}function assignParentData({gen:t,parentData:n,parentDataProperty:i},a){t.if((0,l._)`${n} !== undefined`,()=>t.assign((0,l._)`${n}[${i}]`,a))}function checkDataType(t,n,i,a=h.Correct){const c=a===h.Correct?l.operators.EQ:l.operators.NEQ;let A;switch(t){case"null":return(0,l._)`${n} ${c} null`;case"array":A=(0,l._)`Array.isArray(${n})`;break;case"object":A=(0,l._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":A=numCond((0,l._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":A=numCond();break;default:return(0,l._)`typeof ${n} ${c} ${t}`}return a===h.Correct?A:(0,l.not)(A);function numCond(t=l.nil){return(0,l.and)((0,l._)`typeof ${n} == "number"`,t,i?(0,l._)`isFinite(${n})`:l.nil)}}n.checkDataType=checkDataType;function checkDataTypes(t,n,i,a){if(t.length===1){return checkDataType(t[0],n,i,a)}let c;const A=(0,d.toHash)(t);if(A.array&&A.object){const t=(0,l._)`typeof ${n} != "object"`;c=A.null?t:(0,l._)`!${n} || ${t}`;delete A.null;delete A.array;delete A.object}else{c=l.nil}if(A.number)delete A.integer;for(const t in A)c=(0,l.and)(c,checkDataType(t,n,i,a));return c}n.checkDataTypes=checkDataTypes;const g={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:n})=>typeof t=="string"?(0,l._)`{type: ${t}}`:(0,l._)`{type: ${n}}`};function reportTypeError(t){const n=getTypeErrorContext(t);(0,A.reportError)(n,g)}n.reportTypeError=reportTypeError;function getTypeErrorContext(t){const{gen:n,data:i,schema:a}=t;const c=(0,d.schemaRefOrVal)(t,a,"type");return{gen:n,keyword:"type",data:i,schema:a.type,schemaCode:c,schemaValue:c,parentSchema:a,params:{},it:t}}},1699:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.assignDefaults=void 0;const a=i(1436);const c=i(4464);function assignDefaults(t,n){const{properties:i,items:a}=t.schema;if(n==="object"&&i){for(const n in i){assignDefault(t,n,i[n].default)}}else if(n==="array"&&Array.isArray(a)){a.forEach((n,i)=>assignDefault(t,i,n.default))}}n.assignDefaults=assignDefaults;function assignDefault(t,n,i){const{gen:A,compositeRule:l,data:d,opts:h}=t;if(i===undefined)return;const f=(0,a._)`${d}${(0,a.getProperty)(n)}`;if(l){(0,c.checkStrictMode)(t,`default is ignored for: ${f}`);return}let g=(0,a._)`${f} === undefined`;if(h.useDefaults==="empty"){g=(0,a._)`${g} || ${f} === null || ${f} === ""`}A.if(g,(0,a._)`${f} = ${(0,a.stringify)(i)}`)}},7881:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.getData=n.KeywordCxt=n.validateFunctionCode=void 0;const a=i(5346);const c=i(6685);const A=i(7692);const l=i(6685);const d=i(1699);const h=i(5202);const f=i(6200);const g=i(1436);const p=i(630);const m=i(4090);const E=i(4464);const C=i(1283);function validateFunctionCode(t){if(isSchemaObj(t)){checkKeywords(t);if(schemaCxtHasRules(t)){topSchemaObjCode(t);return}}validateFunction(t,()=>(0,a.topBoolOrEmptySchema)(t))}n.validateFunctionCode=validateFunctionCode;function validateFunction({gen:t,validateName:n,schema:i,schemaEnv:a,opts:c},A){if(c.code.es5){t.func(n,(0,g._)`${p.default.data}, ${p.default.valCxt}`,a.$async,()=>{t.code((0,g._)`"use strict"; ${funcSourceUrl(i,c)}`);destructureValCxtES5(t,c);t.code(A)})}else{t.func(n,(0,g._)`${p.default.data}, ${destructureValCxt(c)}`,a.$async,()=>t.code(funcSourceUrl(i,c)).code(A))}}function destructureValCxt(t){return(0,g._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${t.dynamicRef?(0,g._)`, ${p.default.dynamicAnchors}={}`:g.nil}}={}`}function destructureValCxtES5(t,n){t.if(p.default.valCxt,()=>{t.var(p.default.instancePath,(0,g._)`${p.default.valCxt}.${p.default.instancePath}`);t.var(p.default.parentData,(0,g._)`${p.default.valCxt}.${p.default.parentData}`);t.var(p.default.parentDataProperty,(0,g._)`${p.default.valCxt}.${p.default.parentDataProperty}`);t.var(p.default.rootData,(0,g._)`${p.default.valCxt}.${p.default.rootData}`);if(n.dynamicRef)t.var(p.default.dynamicAnchors,(0,g._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{t.var(p.default.instancePath,(0,g._)`""`);t.var(p.default.parentData,(0,g._)`undefined`);t.var(p.default.parentDataProperty,(0,g._)`undefined`);t.var(p.default.rootData,p.default.data);if(n.dynamicRef)t.var(p.default.dynamicAnchors,(0,g._)`{}`)})}function topSchemaObjCode(t){const{schema:n,opts:i,gen:a}=t;validateFunction(t,()=>{if(i.$comment&&n.$comment)commentKeyword(t);checkNoDefault(t);a.let(p.default.vErrors,null);a.let(p.default.errors,0);if(i.unevaluated)resetEvaluated(t);typeAndKeywords(t);returnResults(t)});return}function resetEvaluated(t){const{gen:n,validateName:i}=t;t.evaluated=n.const("evaluated",(0,g._)`${i}.evaluated`);n.if((0,g._)`${t.evaluated}.dynamicProps`,()=>n.assign((0,g._)`${t.evaluated}.props`,(0,g._)`undefined`));n.if((0,g._)`${t.evaluated}.dynamicItems`,()=>n.assign((0,g._)`${t.evaluated}.items`,(0,g._)`undefined`))}function funcSourceUrl(t,n){const i=typeof t=="object"&&t[n.schemaId];return i&&(n.code.source||n.code.process)?(0,g._)`/*# sourceURL=${i} */`:g.nil}function subschemaCode(t,n){if(isSchemaObj(t)){checkKeywords(t);if(schemaCxtHasRules(t)){subSchemaObjCode(t,n);return}}(0,a.boolOrEmptySchema)(t,n)}function schemaCxtHasRules({schema:t,self:n}){if(typeof t=="boolean")return!t;for(const i in t)if(n.RULES.all[i])return true;return false}function isSchemaObj(t){return typeof t.schema!="boolean"}function subSchemaObjCode(t,n){const{schema:i,gen:a,opts:c}=t;if(c.$comment&&i.$comment)commentKeyword(t);updateContext(t);checkAsyncSchema(t);const A=a.const("_errs",p.default.errors);typeAndKeywords(t,A);a.var(n,(0,g._)`${A} === ${p.default.errors}`)}function checkKeywords(t){(0,E.checkUnknownRules)(t);checkRefsAndKeywords(t)}function typeAndKeywords(t,n){if(t.opts.jtd)return schemaKeywords(t,[],false,n);const i=(0,c.getSchemaTypes)(t.schema);const a=(0,c.coerceAndCheckDataType)(t,i);schemaKeywords(t,i,!a,n)}function checkRefsAndKeywords(t){const{schema:n,errSchemaPath:i,opts:a,self:c}=t;if(n.$ref&&a.ignoreKeywordsWithRef&&(0,E.schemaHasRulesButRef)(n,c.RULES)){c.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}}function checkNoDefault(t){const{schema:n,opts:i}=t;if(n.default!==undefined&&i.useDefaults&&i.strictSchema){(0,E.checkStrictMode)(t,"default is ignored in the schema root")}}function updateContext(t){const n=t.schema[t.opts.schemaId];if(n)t.baseId=(0,m.resolveUrl)(t.opts.uriResolver,t.baseId,n)}function checkAsyncSchema(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:t,schemaEnv:n,schema:i,errSchemaPath:a,opts:c}){const A=i.$comment;if(c.$comment===true){t.code((0,g._)`${p.default.self}.logger.log(${A})`)}else if(typeof c.$comment=="function"){const i=(0,g.str)`${a}/$comment`;const c=t.scopeValue("root",{ref:n.root});t.code((0,g._)`${p.default.self}.opts.$comment(${A}, ${i}, ${c}.schema)`)}}function returnResults(t){const{gen:n,schemaEnv:i,validateName:a,ValidationError:c,opts:A}=t;if(i.$async){n.if((0,g._)`${p.default.errors} === 0`,()=>n.return(p.default.data),()=>n.throw((0,g._)`new ${c}(${p.default.vErrors})`))}else{n.assign((0,g._)`${a}.errors`,p.default.vErrors);if(A.unevaluated)assignEvaluated(t);n.return((0,g._)`${p.default.errors} === 0`)}}function assignEvaluated({gen:t,evaluated:n,props:i,items:a}){if(i instanceof g.Name)t.assign((0,g._)`${n}.props`,i);if(a instanceof g.Name)t.assign((0,g._)`${n}.items`,a)}function schemaKeywords(t,n,i,a){const{gen:c,schema:d,data:h,allErrors:f,opts:m,self:C}=t;const{RULES:I}=C;if(d.$ref&&(m.ignoreKeywordsWithRef||!(0,E.schemaHasRulesButRef)(d,I))){c.block(()=>keywordCode(t,"$ref",I.all.$ref.definition));return}if(!m.jtd)checkStrictTypes(t,n);c.block(()=>{for(const t of I.rules)groupKeywords(t);groupKeywords(I.post)});function groupKeywords(E){if(!(0,A.shouldUseGroup)(d,E))return;if(E.type){c.if((0,l.checkDataType)(E.type,h,m.strictNumbers));iterateKeywords(t,E);if(n.length===1&&n[0]===E.type&&i){c.else();(0,l.reportTypeError)(t)}c.endIf()}else{iterateKeywords(t,E)}if(!f)c.if((0,g._)`${p.default.errors} === ${a||0}`)}}function iterateKeywords(t,n){const{gen:i,schema:a,opts:{useDefaults:c}}=t;if(c)(0,d.assignDefaults)(t,n.type);i.block(()=>{for(const i of n.rules){if((0,A.shouldUseRule)(a,i)){keywordCode(t,i.keyword,i.definition,n.type)}}})}function checkStrictTypes(t,n){if(t.schemaEnv.meta||!t.opts.strictTypes)return;checkContextTypes(t,n);if(!t.opts.allowUnionTypes)checkMultipleTypes(t,n);checkKeywordTypes(t,t.dataTypes)}function checkContextTypes(t,n){if(!n.length)return;if(!t.dataTypes.length){t.dataTypes=n;return}n.forEach(n=>{if(!includesType(t.dataTypes,n)){strictTypesError(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}});narrowSchemaTypes(t,n)}function checkMultipleTypes(t,n){if(n.length>1&&!(n.length===2&&n.includes("null"))){strictTypesError(t,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(t,n){const i=t.self.RULES.all;for(const a in i){const c=i[a];if(typeof c=="object"&&(0,A.shouldUseRule)(t.schema,c)){const{type:i}=c.definition;if(i.length&&!i.some(t=>hasApplicableType(n,t))){strictTypesError(t,`missing type "${i.join(",")}" for keyword "${a}"`)}}}}function hasApplicableType(t,n){return t.includes(n)||n==="number"&&t.includes("integer")}function includesType(t,n){return t.includes(n)||n==="integer"&&t.includes("number")}function narrowSchemaTypes(t,n){const i=[];for(const a of t.dataTypes){if(includesType(n,a))i.push(a);else if(n.includes("integer")&&a==="number")i.push("integer")}t.dataTypes=i}function strictTypesError(t,n){const i=t.schemaEnv.baseId+t.errSchemaPath;n+=` at "${i}" (strictTypes)`;(0,E.checkStrictMode)(t,n,t.opts.strictTypes)}class KeywordCxt{constructor(t,n,i){(0,h.validateKeywordUsage)(t,n,i);this.gen=t.gen;this.allErrors=t.allErrors;this.keyword=i;this.data=t.data;this.schema=t.schema[i];this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,E.schemaRefOrVal)(t,this.schema,i,this.$data);this.schemaType=n.schemaType;this.parentSchema=t.schema;this.params={};this.it=t;this.def=n;if(this.$data){this.schemaCode=t.gen.const("vSchema",getData(this.$data,t))}else{this.schemaCode=this.schemaValue;if(!(0,h.validSchemaType)(this.schema,n.schemaType,n.allowUndefined)){throw new Error(`${i} value must be ${JSON.stringify(n.schemaType)}`)}}if("code"in n?n.trackErrors:n.errors!==false){this.errsCount=t.gen.const("_errs",p.default.errors)}}result(t,n,i){this.failResult((0,g.not)(t),n,i)}failResult(t,n,i){this.gen.if(t);if(i)i();else this.error();if(n){this.gen.else();n();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(t,n){this.failResult((0,g.not)(t),undefined,n)}fail(t){if(t===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(t);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,g._)`${n} !== undefined && (${(0,g.or)(this.invalid$data(),t)})`)}error(t,n,i){if(n){this.setParams(n);this._error(t,i);this.setParams({});return}this._error(t,i)}_error(t,n){(t?C.reportExtraError:C.reportError)(this,this.def.error,n)}$dataError(){(0,C.reportError)(this,this.def.$dataError||C.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,C.resetErrorsCount)(this.gen,this.errsCount)}ok(t){if(!this.allErrors)this.gen.if(t)}setParams(t,n){if(n)Object.assign(this.params,t);else this.params=t}block$data(t,n,i=g.nil){this.gen.block(()=>{this.check$data(t,i);n()})}check$data(t=g.nil,n=g.nil){if(!this.$data)return;const{gen:i,schemaCode:a,schemaType:c,def:A}=this;i.if((0,g.or)((0,g._)`${a} === undefined`,n));if(t!==g.nil)i.assign(t,true);if(c.length||A.validateSchema){i.elseIf(this.invalid$data());this.$dataError();if(t!==g.nil)i.assign(t,false)}i.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:i,def:a,it:c}=this;return(0,g.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(i.length){if(!(n instanceof g.Name))throw new Error("ajv implementation error");const t=Array.isArray(i)?i:[i];return(0,g._)`${(0,l.checkDataTypes)(t,n,c.opts.strictNumbers,l.DataType.Wrong)}`}return g.nil}function invalid$DataSchema(){if(a.validateSchema){const i=t.scopeValue("validate$data",{ref:a.validateSchema});return(0,g._)`!${i}(${n})`}return g.nil}}subschema(t,n){const i=(0,f.getSubschema)(this.it,t);(0,f.extendSubschemaData)(i,this.it,t);(0,f.extendSubschemaMode)(i,t);const a={...this.it,...i,items:undefined,props:undefined};subschemaCode(a,n);return a}mergeEvaluated(t,n){const{it:i,gen:a}=this;if(!i.opts.unevaluated)return;if(i.props!==true&&t.props!==undefined){i.props=E.mergeEvaluated.props(a,t.props,i.props,n)}if(i.items!==true&&t.items!==undefined){i.items=E.mergeEvaluated.items(a,t.items,i.items,n)}}mergeValidEvaluated(t,n){const{it:i,gen:a}=this;if(i.opts.unevaluated&&(i.props!==true||i.items!==true)){a.if(n,()=>this.mergeEvaluated(t,g.Name));return true}}}n.KeywordCxt=KeywordCxt;function keywordCode(t,n,i,a){const c=new KeywordCxt(t,i,n);if("code"in i){i.code(c,a)}else if(c.$data&&i.validate){(0,h.funcKeywordCode)(c,i)}else if("macro"in i){(0,h.macroKeywordCode)(c,i)}else if(i.compile||i.validate){(0,h.funcKeywordCode)(c,i)}}const I=/^\/(?:[^~]|~0|~1)*$/;const y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(t,{dataLevel:n,dataNames:i,dataPathArr:a}){let c;let A;if(t==="")return p.default.rootData;if(t[0]==="/"){if(!I.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);c=t;A=p.default.rootData}else{const l=y.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);const d=+l[1];c=l[2];if(c==="#"){if(d>=n)throw new Error(errorMsg("property/index",d));return a[n-d]}if(d>n)throw new Error(errorMsg("data",d));A=i[n-d];if(!c)return A}let l=A;const d=c.split("/");for(const t of d){if(t){A=(0,g._)`${A}${(0,g.getProperty)((0,E.unescapeJsonPointer)(t))}`;l=(0,g._)`${l} && ${A}`}}return l;function errorMsg(t,i){return`Cannot access ${t} ${i} levels up, current level is ${n}`}}n.getData=getData},5202:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateKeywordUsage=n.validSchemaType=n.funcKeywordCode=n.macroKeywordCode=void 0;const a=i(1436);const c=i(630);const A=i(8484);const l=i(1283);function macroKeywordCode(t,n){const{gen:i,keyword:c,schema:A,parentSchema:l,it:d}=t;const h=n.macro.call(d.self,A,l,d);const f=useKeyword(i,c,h);if(d.opts.validateSchema!==false)d.self.validateSchema(h,true);const g=i.name("valid");t.subschema({schema:h,schemaPath:a.nil,errSchemaPath:`${d.errSchemaPath}/${c}`,topSchemaRef:f,compositeRule:true},g);t.pass(g,()=>t.error(true))}n.macroKeywordCode=macroKeywordCode;function funcKeywordCode(t,n){var i;const{gen:l,keyword:d,schema:h,parentSchema:f,$data:g,it:p}=t;checkAsyncKeyword(p,n);const m=!g&&n.compile?n.compile.call(p.self,h,f,p):n.validate;const E=useKeyword(l,d,m);const C=l.let("valid");t.block$data(C,validateKeyword);t.ok((i=n.valid)!==null&&i!==void 0?i:C);function validateKeyword(){if(n.errors===false){assignValid();if(n.modifying)modifyData(t);reportErrs(()=>t.error())}else{const i=n.async?validateAsync():validateSync();if(n.modifying)modifyData(t);reportErrs(()=>addErrs(t,i))}}function validateAsync(){const t=l.let("ruleErrs",null);l.try(()=>assignValid((0,a._)`await `),n=>l.assign(C,false).if((0,a._)`${n} instanceof ${p.ValidationError}`,()=>l.assign(t,(0,a._)`${n}.errors`),()=>l.throw(n)));return t}function validateSync(){const t=(0,a._)`${E}.errors`;l.assign(t,null);assignValid(a.nil);return t}function assignValid(i=(n.async?(0,a._)`await `:a.nil)){const d=p.opts.passContext?c.default.this:c.default.self;const h=!("compile"in n&&!g||n.schema===false);l.assign(C,(0,a._)`${i}${(0,A.callValidateCode)(t,E,d,h)}`,n.modifying)}function reportErrs(t){var i;l.if((0,a.not)((i=n.valid)!==null&&i!==void 0?i:C),t)}}n.funcKeywordCode=funcKeywordCode;function modifyData(t){const{gen:n,data:i,it:c}=t;n.if(c.parentData,()=>n.assign(i,(0,a._)`${c.parentData}[${c.parentDataProperty}]`))}function addErrs(t,n){const{gen:i}=t;i.if((0,a._)`Array.isArray(${n})`,()=>{i.assign(c.default.vErrors,(0,a._)`${c.default.vErrors} === null ? ${n} : ${c.default.vErrors}.concat(${n})`).assign(c.default.errors,(0,a._)`${c.default.vErrors}.length`);(0,l.extendErrors)(t)},()=>t.error())}function checkAsyncKeyword({schemaEnv:t},n){if(n.async&&!t.$async)throw new Error("async keyword in sync schema")}function useKeyword(t,n,i){if(i===undefined)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,a.stringify)(i)})}function validSchemaType(t,n,i=false){return!n.length||n.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t=="undefined")}n.validSchemaType=validSchemaType;function validateKeywordUsage({schema:t,opts:n,self:i,errSchemaPath:a},c,A){if(Array.isArray(c.keyword)?!c.keyword.includes(A):c.keyword!==A){throw new Error("ajv implementation error")}const l=c.dependencies;if(l===null||l===void 0?void 0:l.some(n=>!Object.prototype.hasOwnProperty.call(t,n))){throw new Error(`parent schema must have dependencies of ${A}: ${l.join(",")}`)}if(c.validateSchema){const l=c.validateSchema(t[A]);if(!l){const t=`keyword "${A}" value is invalid at path "${a}": `+i.errorsText(c.validateSchema.errors);if(n.validateSchema==="log")i.logger.error(t);else throw new Error(t)}}}n.validateKeywordUsage=validateKeywordUsage},6200:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.extendSubschemaMode=n.extendSubschemaData=n.getSubschema=void 0;const a=i(1436);const c=i(4464);function getSubschema(t,{keyword:n,schemaProp:i,schema:A,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(n!==undefined&&A!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(n!==undefined){const A=t.schema[n];return i===undefined?{schema:A,schemaPath:(0,a._)`${t.schemaPath}${(0,a.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${n}`}:{schema:A[i],schemaPath:(0,a._)`${t.schemaPath}${(0,a.getProperty)(n)}${(0,a.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${n}/${(0,c.escapeFragment)(i)}`}}if(A!==undefined){if(l===undefined||d===undefined||h===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:A,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}n.getSubschema=getSubschema;function extendSubschemaData(t,n,{dataProp:i,dataPropType:A,data:l,dataTypes:d,propertyName:h}){if(l!==undefined&&i!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:f}=n;if(i!==undefined){const{errorPath:l,dataPathArr:d,opts:h}=n;const g=f.let("data",(0,a._)`${n.data}${(0,a.getProperty)(i)}`,true);dataContextProps(g);t.errorPath=(0,a.str)`${l}${(0,c.getErrorPath)(i,A,h.jsPropertySyntax)}`;t.parentDataProperty=(0,a._)`${i}`;t.dataPathArr=[...d,t.parentDataProperty]}if(l!==undefined){const n=l instanceof a.Name?l:f.let("data",l,true);dataContextProps(n);if(h!==undefined)t.propertyName=h}if(d)t.dataTypes=d;function dataContextProps(i){t.data=i;t.dataLevel=n.dataLevel+1;t.dataTypes=[];n.definedProperties=new Set;t.parentData=n.data;t.dataNames=[...n.dataNames,i]}}n.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(t,{jtdDiscriminator:n,jtdMetadata:i,compositeRule:a,createErrors:c,allErrors:A}){if(a!==undefined)t.compositeRule=a;if(c!==undefined)t.createErrors=c;if(A!==undefined)t.allErrors=A;t.jtdDiscriminator=n;t.jtdMetadata=i}n.extendSubschemaMode=extendSubschemaMode},3893:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=void 0;var a=i(7881);Object.defineProperty(n,"KeywordCxt",{enumerable:true,get:function(){return a.KeywordCxt}});var c=i(1436);Object.defineProperty(n,"_",{enumerable:true,get:function(){return c._}});Object.defineProperty(n,"str",{enumerable:true,get:function(){return c.str}});Object.defineProperty(n,"stringify",{enumerable:true,get:function(){return c.stringify}});Object.defineProperty(n,"nil",{enumerable:true,get:function(){return c.nil}});Object.defineProperty(n,"Name",{enumerable:true,get:function(){return c.Name}});Object.defineProperty(n,"CodeGen",{enumerable:true,get:function(){return c.CodeGen}});const A=i(3021);const l=i(3162);const d=i(7353);const h=i(2718);const f=i(1436);const g=i(4090);const p=i(6685);const m=i(4464);const E=i(3837);const C=i(6285);const defaultRegExp=(t,n)=>new RegExp(t,n);defaultRegExp.code="new RegExp";const I=["removeAdditional","useDefaults","coerceTypes"];const y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const B={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const Q={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const w=200;function requiredOptions(t){var n,i,a,c,A,l,d,h,f,g,p,m,E,I,y,B,Q,S,b,R,v,k,D,T,N;const M=t.strict;const F=(n=t.code)===null||n===void 0?void 0:n.optimize;const x=F===true||F===undefined?1:F||0;const U=(a=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&a!==void 0?a:defaultRegExp;const P=(c=t.uriResolver)!==null&&c!==void 0?c:C.default;return{strictSchema:(l=(A=t.strictSchema)!==null&&A!==void 0?A:M)!==null&&l!==void 0?l:true,strictNumbers:(h=(d=t.strictNumbers)!==null&&d!==void 0?d:M)!==null&&h!==void 0?h:true,strictTypes:(g=(f=t.strictTypes)!==null&&f!==void 0?f:M)!==null&&g!==void 0?g:"log",strictTuples:(m=(p=t.strictTuples)!==null&&p!==void 0?p:M)!==null&&m!==void 0?m:"log",strictRequired:(I=(E=t.strictRequired)!==null&&E!==void 0?E:M)!==null&&I!==void 0?I:false,code:t.code?{...t.code,optimize:x,regExp:U}:{optimize:x,regExp:U},loopRequired:(y=t.loopRequired)!==null&&y!==void 0?y:w,loopEnum:(B=t.loopEnum)!==null&&B!==void 0?B:w,meta:(Q=t.meta)!==null&&Q!==void 0?Q:true,messages:(S=t.messages)!==null&&S!==void 0?S:true,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:true,schemaId:(R=t.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(v=t.addUsedSchema)!==null&&v!==void 0?v:true,validateSchema:(k=t.validateSchema)!==null&&k!==void 0?k:true,validateFormats:(D=t.validateFormats)!==null&&D!==void 0?D:true,unicodeRegExp:(T=t.unicodeRegExp)!==null&&T!==void 0?T:true,int32range:(N=t.int32range)!==null&&N!==void 0?N:true,uriResolver:P}}class Ajv{constructor(t={}){this.schemas={};this.refs={};this.formats=Object.create(null);this._compilations=new Set;this._loading={};this._cache=new Map;t=this.opts={...t,...requiredOptions(t)};const{es5:n,lines:i}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:y,es5:n,lines:i});this.logger=getLogger(t.logger);const a=t.validateFormats;t.validateFormats=false;this.RULES=(0,d.getRules)();checkOptions.call(this,B,t,"NOT SUPPORTED");checkOptions.call(this,Q,t,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(t.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(t.keywords)addInitialKeywords.call(this,t.keywords);if(typeof t.meta=="object")this.addMetaSchema(t.meta);addInitialSchemas.call(this);t.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:t,meta:n,schemaId:i}=this.opts;let a=E;if(i==="id"){a={...E};a.id=a.$id;delete a.$id}if(n&&t)this.addMetaSchema(a,a[i],false)}defaultMeta(){const{meta:t,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[n]||t:undefined}validate(t,n){let i;if(typeof t=="string"){i=this.getSchema(t);if(!i)throw new Error(`no schema with key or ref "${t}"`)}else{i=this.compile(t)}const a=i(n);if(!("$async"in i))this.errors=i.errors;return a}compile(t,n){const i=this._addSchema(t,n);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,n){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:i}=this.opts;return runCompileAsync.call(this,t,n);async function runCompileAsync(t,n){await loadMetaSchema.call(this,t.$schema);const i=this._addSchema(t,n);return i.validate||_compileAsync.call(this,i)}async function loadMetaSchema(t){if(t&&!this.getSchema(t)){await runCompileAsync.call(this,{$ref:t},true)}}async function _compileAsync(t){try{return this._compileSchemaEnv(t)}catch(n){if(!(n instanceof l.default))throw n;checkLoaded.call(this,n);await loadMissingSchema.call(this,n.missingSchema);return _compileAsync.call(this,t)}}function checkLoaded({missingSchema:t,missingRef:n}){if(this.refs[t]){throw new Error(`AnySchema ${t} is loaded but ${n} cannot be resolved`)}}async function loadMissingSchema(t){const i=await _loadSchema.call(this,t);if(!this.refs[t])await loadMetaSchema.call(this,i.$schema);if(!this.refs[t])this.addSchema(i,t,n)}async function _loadSchema(t){const n=this._loading[t];if(n)return n;try{return await(this._loading[t]=i(t))}finally{delete this._loading[t]}}}addSchema(t,n,i,a=this.opts.validateSchema){if(Array.isArray(t)){for(const n of t)this.addSchema(n,undefined,i,a);return this}let c;if(typeof t==="object"){const{schemaId:n}=this.opts;c=t[n];if(c!==undefined&&typeof c!="string"){throw new Error(`schema ${n} must be string`)}}n=(0,g.normalizeId)(n||c);this._checkUnique(n);this.schemas[n]=this._addSchema(t,i,n,a,true);return this}addMetaSchema(t,n,i=this.opts.validateSchema){this.addSchema(t,n,true,i);return this}validateSchema(t,n){if(typeof t=="boolean")return true;let i;i=t.$schema;if(i!==undefined&&typeof i!="string"){throw new Error("$schema must be a string")}i=i||this.opts.defaultMeta||this.defaultMeta();if(!i){this.logger.warn("meta-schema not available");this.errors=null;return true}const a=this.validate(i,t);if(!a&&n){const t="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(t);else throw new Error(t)}return a}getSchema(t){let n;while(typeof(n=getSchEnv.call(this,t))=="string")t=n;if(n===undefined){const{schemaId:i}=this.opts;const a=new h.SchemaEnv({schema:{},schemaId:i});n=h.resolveSchema.call(this,a,t);if(!n)return;this.refs[t]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(t){if(t instanceof RegExp){this._removeAllSchemas(this.schemas,t);this._removeAllSchemas(this.refs,t);return this}switch(typeof t){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const n=getSchEnv.call(this,t);if(typeof n=="object")this._cache.delete(n.schema);delete this.schemas[t];delete this.refs[t];return this}case"object":{const n=t;this._cache.delete(n);let i=t[this.opts.schemaId];if(i){i=(0,g.normalizeId)(i);delete this.schemas[i];delete this.refs[i]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(const n of t)this.addKeyword(n);return this}addKeyword(t,n){let i;if(typeof t=="string"){i=t;if(typeof n=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");n.keyword=i}}else if(typeof t=="object"&&n===undefined){n=t;i=n.keyword;if(Array.isArray(i)&&!i.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,i,n);if(!n){(0,m.eachItem)(i,t=>addRule.call(this,t));return this}keywordMetaschema.call(this,n);const a={...n,type:(0,p.getJSONTypes)(n.type),schemaType:(0,p.getJSONTypes)(n.schemaType)};(0,m.eachItem)(i,a.type.length===0?t=>addRule.call(this,t,a):t=>a.type.forEach(n=>addRule.call(this,t,a,n)));return this}getKeyword(t){const n=this.RULES.all[t];return typeof n=="object"?n.definition:!!n}removeKeyword(t){const{RULES:n}=this;delete n.keywords[t];delete n.all[t];for(const i of n.rules){const n=i.rules.findIndex(n=>n.keyword===t);if(n>=0)i.rules.splice(n,1)}return this}addFormat(t,n){if(typeof n=="string")n=new RegExp(n);this.formats[t]=n;return this}errorsText(t=this.errors,{separator:n=", ",dataVar:i="data"}={}){if(!t||t.length===0)return"No errors";return t.map(t=>`${i}${t.instancePath} ${t.message}`).reduce((t,i)=>t+n+i)}$dataMetaSchema(t,n){const i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(const a of n){const n=a.split("/").slice(1);let c=t;for(const t of n)c=c[t];for(const t in i){const n=i[t];if(typeof n!="object")continue;const{$data:a}=n.definition;const A=c[t];if(a&&A)c[t]=schemaOrData(A)}}return t}_removeAllSchemas(t,n){for(const i in t){const a=t[i];if(!n||n.test(i)){if(typeof a=="string"){delete t[i]}else if(a&&!a.meta){this._cache.delete(a.schema);delete t[i]}}}}_addSchema(t,n,i,a=this.opts.validateSchema,c=this.opts.addUsedSchema){let A;const{schemaId:l}=this.opts;if(typeof t=="object"){A=t[l]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let d=this._cache.get(t);if(d!==undefined)return d;i=(0,g.normalizeId)(A||i);const f=g.getSchemaRefs.call(this,t,i);d=new h.SchemaEnv({schema:t,schemaId:l,meta:n,baseId:i,localRefs:f});this._cache.set(d.schema,d);if(c&&!i.startsWith("#")){if(i)this._checkUnique(i);this.refs[i]=d}if(a)this.validateSchema(t,true);return d}_checkUnique(t){if(this.schemas[t]||this.refs[t]){throw new Error(`schema with key or id "${t}" already exists`)}}_compileSchemaEnv(t){if(t.meta)this._compileMetaSchema(t);else h.compileSchema.call(this,t);if(!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){const n=this.opts;this.opts=this._metaOpts;try{h.compileSchema.call(this,t)}finally{this.opts=n}}}Ajv.ValidationError=A.default;Ajv.MissingRefError=l.default;n["default"]=Ajv;function checkOptions(t,n,i,a="error"){for(const c in t){const A=c;if(A in n)this.logger[a](`${i}: option ${c}. ${t[A]}`)}}function getSchEnv(t){t=(0,g.normalizeId)(t);return this.schemas[t]||this.refs[t]}function addInitialSchemas(){const t=this.opts.schemas;if(!t)return;if(Array.isArray(t))this.addSchema(t);else for(const n in t)this.addSchema(t[n],n)}function addInitialFormats(){for(const t in this.opts.formats){const n=this.opts.formats[t];if(n)this.addFormat(t,n)}}function addInitialKeywords(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const n in t){const i=t[n];if(!i.keyword)i.keyword=n;this.addKeyword(i)}}function getMetaSchemaOptions(){const t={...this.opts};for(const n of I)delete t[n];return t}const S={log(){},warn(){},error(){}};function getLogger(t){if(t===false)return S;if(t===undefined)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}const b=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(t,n){const{RULES:i}=this;(0,m.eachItem)(t,t=>{if(i.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!b.test(t))throw new Error(`Keyword ${t} has invalid name`)});if(!n)return;if(n.$data&&!("code"in n||"validate"in n)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(t,n,i){var a;const c=n===null||n===void 0?void 0:n.post;if(i&&c)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:A}=this;let l=c?A.post:A.rules.find(({type:t})=>t===i);if(!l){l={type:i,rules:[]};A.rules.push(l)}A.keywords[t]=true;if(!n)return;const d={keyword:t,definition:{...n,type:(0,p.getJSONTypes)(n.type),schemaType:(0,p.getJSONTypes)(n.schemaType)}};if(n.before)addBeforeRule.call(this,l,d,n.before);else l.rules.push(d);A.all[t]=d;(a=n.implements)===null||a===void 0?void 0:a.forEach(t=>this.addKeyword(t))}function addBeforeRule(t,n,i){const a=t.rules.findIndex(t=>t.keyword===i);if(a>=0){t.rules.splice(a,0,n)}else{t.rules.push(n);this.logger.warn(`rule ${i} is not defined`)}}function keywordMetaschema(t){let{metaSchema:n}=t;if(n===undefined)return;if(t.$data&&this.opts.$data)n=schemaOrData(n);t.validateSchema=this.compile(n,true)}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(t){return{anyOf:[t,R]}}},5375:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8138);const c=i(4908);const A=i(958);const l=i(58);const d=i(6534);const h=i(711);const f=i(8030);const g=["/properties"];function addMetaSchema2019(t){[a,c,A,l,with$data(this,d),h,with$data(this,f)].forEach(t=>this.addMetaSchema(t,undefined,false));return this;function with$data(n,i){return t?n.$dataMetaSchema(i,g):i}}n["default"]=addMetaSchema2019},4951:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(3430);a.code='require("ajv/dist/runtime/equal").default';n["default"]=a},6214:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});function ucs2length(t){const n=t.length;let i=0;let a=0;let c;while(a=55296&&c<=56319&&a{Object.defineProperty(n,"__esModule",{value:true});const a=i(4352);a.code='require("ajv/dist/runtime/uri").default';n["default"]=a},3021:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});class ValidationError extends Error{constructor(t){super("validation failed");this.errors=t;this.ajv=this.validation=true}}n["default"]=ValidationError},3448:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateAdditionalItems=void 0;const a=i(1436);const c=i(4464);const A={message:({params:{len:t}})=>(0,a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,a._)`{limit: ${t}}`};const l={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:A,code(t){const{parentSchema:n,it:i}=t;const{items:a}=n;if(!Array.isArray(a)){(0,c.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(t,a)}};function validateAdditionalItems(t,n){const{gen:i,schema:A,data:l,keyword:d,it:h}=t;h.items=true;const f=i.const("len",(0,a._)`${l}.length`);if(A===false){t.setParams({len:n.length});t.pass((0,a._)`${f} <= ${n.length}`)}else if(typeof A=="object"&&!(0,c.alwaysValidSchema)(h,A)){const c=i.var("valid",(0,a._)`${f} <= ${n.length}`);i.if((0,a.not)(c),()=>validateItems(c));t.ok(c)}function validateItems(A){i.forRange("i",n.length,f,n=>{t.subschema({keyword:d,dataProp:n,dataPropType:c.Type.Num},A);if(!h.allErrors)i.if((0,a.not)(A),()=>i.break())})}}n.validateAdditionalItems=validateAdditionalItems;n["default"]=l},2431:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const c=i(1436);const A=i(630);const l=i(4464);const d={message:"must NOT have additional properties",params:({params:t})=>(0,c._)`{additionalProperty: ${t.additionalProperty}}`};const h={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:d,code(t){const{gen:n,schema:i,parentSchema:d,data:h,errsCount:f,it:g}=t;if(!f)throw new Error("ajv implementation error");const{allErrors:p,opts:m}=g;g.props=true;if(m.removeAdditional!=="all"&&(0,l.alwaysValidSchema)(g,i))return;const E=(0,a.allSchemaProperties)(d.properties);const C=(0,a.allSchemaProperties)(d.patternProperties);checkAdditionalProperties();t.ok((0,c._)`${f} === ${A.default.errors}`);function checkAdditionalProperties(){n.forIn("key",h,t=>{if(!E.length&&!C.length)additionalPropertyCode(t);else n.if(isAdditional(t),()=>additionalPropertyCode(t))})}function isAdditional(i){let A;if(E.length>8){const t=(0,l.schemaRefOrVal)(g,d.properties,"properties");A=(0,a.isOwnProperty)(n,t,i)}else if(E.length){A=(0,c.or)(...E.map(t=>(0,c._)`${i} === ${t}`))}else{A=c.nil}if(C.length){A=(0,c.or)(A,...C.map(n=>(0,c._)`${(0,a.usePattern)(t,n)}.test(${i})`))}return(0,c.not)(A)}function deleteAdditional(t){n.code((0,c._)`delete ${h}[${t}]`)}function additionalPropertyCode(a){if(m.removeAdditional==="all"||m.removeAdditional&&i===false){deleteAdditional(a);return}if(i===false){t.setParams({additionalProperty:a});t.error();if(!p)n.break();return}if(typeof i=="object"&&!(0,l.alwaysValidSchema)(g,i)){const i=n.name("valid");if(m.removeAdditional==="failing"){applyAdditionalSchema(a,i,false);n.if((0,c.not)(i),()=>{t.reset();deleteAdditional(a)})}else{applyAdditionalSchema(a,i);if(!p)n.if((0,c.not)(i),()=>n.break())}}}function applyAdditionalSchema(n,i,a){const c={keyword:"additionalProperties",dataProp:n,dataPropType:l.Type.Str};if(a===false){Object.assign(c,{compositeRule:true,createErrors:false,allErrors:false})}t.subschema(c,i)}}};n["default"]=h},9205:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const c={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:i,it:c}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const A=n.name("valid");i.forEach((n,i)=>{if((0,a.alwaysValidSchema)(c,n))return;const l=t.subschema({keyword:"allOf",schemaProp:i},A);t.ok(A);t.mergeEvaluated(l)})}};n["default"]=c},9380:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const c={keyword:"anyOf",schemaType:"array",trackErrors:true,code:a.validateUnion,error:{message:"must match a schema in anyOf"}};n["default"]=c},6182:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A={message:({params:{min:t,max:n}})=>n===undefined?(0,a.str)`must contain at least ${t} valid item(s)`:(0,a.str)`must contain at least ${t} and no more than ${n} valid item(s)`,params:({params:{min:t,max:n}})=>n===undefined?(0,a._)`{minContains: ${t}}`:(0,a._)`{minContains: ${t}, maxContains: ${n}}`};const l={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:A,code(t){const{gen:n,schema:i,parentSchema:A,data:l,it:d}=t;let h;let f;const{minContains:g,maxContains:p}=A;if(d.opts.next){h=g===undefined?1:g;f=p}else{h=1}const m=n.const("len",(0,a._)`${l}.length`);t.setParams({min:h,max:f});if(f===undefined&&h===0){(0,c.checkStrictMode)(d,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(f!==undefined&&h>f){(0,c.checkStrictMode)(d,`"minContains" > "maxContains" is always invalid`);t.fail();return}if((0,c.alwaysValidSchema)(d,i)){let n=(0,a._)`${m} >= ${h}`;if(f!==undefined)n=(0,a._)`${n} && ${m} <= ${f}`;t.pass(n);return}d.items=true;const E=n.name("valid");if(f===undefined&&h===1){validateItems(E,()=>n.if(E,()=>n.break()))}else if(h===0){n.let(E,true);if(f!==undefined)n.if((0,a._)`${l}.length > 0`,validateItemsWithCount)}else{n.let(E,false);validateItemsWithCount()}t.result(E,()=>t.reset());function validateItemsWithCount(){const t=n.name("_valid");const i=n.let("count",0);validateItems(t,()=>n.if(t,()=>checkLimits(i)))}function validateItems(i,a){n.forRange("i",0,m,n=>{t.subschema({keyword:"contains",dataProp:n,dataPropType:c.Type.Num,compositeRule:true},i);a()})}function checkLimits(t){n.code((0,a._)`${t}++`);if(f===undefined){n.if((0,a._)`${t} >= ${h}`,()=>n.assign(E,true).break())}else{n.if((0,a._)`${t} > ${f}`,()=>n.assign(E,false).break());if(h===1)n.assign(E,true);else n.if((0,a._)`${t} >= ${h}`,()=>n.assign(E,true))}}}};n["default"]=l},5826:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateSchemaDeps=n.validatePropertyDeps=n.error=void 0;const a=i(1436);const c=i(4464);const A=i(8484);n.error={message:({params:{property:t,depsCount:n,deps:i}})=>{const c=n===1?"property":"properties";return(0,a.str)`must have ${c} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:n,deps:i,missingProperty:c}})=>(0,a._)`{property: ${t}, + missingProperty: ${c}, depsCount: ${n}, - deps: ${i}}`};const l={keyword:"dependencies",type:"object",schemaType:"object",error:n.error,code(t){const[n,i]=splitDependencies(t);validatePropertyDeps(t,n);validateSchemaDeps(t,i)}};function splitDependencies({schema:t}){const n={};const i={};for(const a in t){if(a==="__proto__")continue;const A=Array.isArray(t[a])?n:i;A[a]=t[a]}return[n,i]}function validatePropertyDeps(t,n=t.schema){const{gen:i,data:A,it:l}=t;if(Object.keys(n).length===0)return;const d=i.let("missing");for(const h in n){const f=n[h];if(f.length===0)continue;const g=(0,c.propertyInData)(i,A,h,l.opts.ownProperties);t.setParams({property:h,depsCount:f.length,deps:f.join(", ")});if(l.allErrors){i.if(g,()=>{for(const n of f){(0,c.checkReportMissingProp)(t,n)}})}else{i.if((0,a._)`${g} && (${(0,c.checkMissingProp)(t,f,d)})`);(0,c.reportMissingProp)(t,d);i.else()}}}n.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(t,n=t.schema){const{gen:i,data:a,keyword:l,it:d}=t;const h=i.name("valid");for(const f in n){if((0,A.alwaysValidSchema)(d,n[f]))continue;i.if((0,c.propertyInData)(i,a,f,d.opts.ownProperties),()=>{const n=t.subschema({keyword:l,schemaProp:f},h);t.mergeValidEvaluated(n,h)},()=>i.var(h,true));t.ok(h)}}n.validateSchemaDeps=validateSchemaDeps;n["default"]=l},3818:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5826);const A={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,a.validateSchemaDeps)(t)};n["default"]=A},8584:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c={message:({params:t})=>(0,a.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,a._)`{failingKeyword: ${t.ifClause}}`};const l={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:c,code(t){const{gen:n,parentSchema:i,it:c}=t;if(i.then===undefined&&i.else===undefined){(0,A.checkStrictMode)(c,'"if" without "then" and "else" is ignored')}const l=hasSchema(c,"then");const d=hasSchema(c,"else");if(!l&&!d)return;const h=n.let("valid",true);const f=n.name("_valid");validateIf();t.reset();if(l&&d){const i=n.let("ifClause");t.setParams({ifClause:i});n.if(f,validateClause("then",i),validateClause("else",i))}else if(l){n.if(f,validateClause("then"))}else{n.if((0,a.not)(f),validateClause("else"))}t.pass(h,()=>t.error(true));function validateIf(){const n=t.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},f);t.mergeEvaluated(n)}function validateClause(i,A){return()=>{const c=t.subschema({keyword:i},f);n.assign(h,f);t.mergeValidEvaluated(c,h);if(A)n.assign(A,(0,a._)`${i}`);else t.setParams({ifClause:i})}}}};function hasSchema(t,n){const i=t.schema[n];return i!==undefined&&!(0,A.alwaysValidSchema)(t,i)}n["default"]=l},8775:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(3448);const A=i(6467);const c=i(5791);const l=i(2959);const d=i(6182);const h=i(5826);const f=i(1372);const g=i(2431);const p=i(8778);const m=i(664);const E=i(8350);const C=i(9380);const I=i(2490);const y=i(9205);const B=i(8584);const Q=i(6829);function getApplicator(t=false){const n=[E.default,C.default,I.default,y.default,B.default,Q.default,f.default,g.default,h.default,p.default,m.default];if(t)n.push(A.default,l.default);else n.push(a.default,c.default);n.push(d.default);return n}n["default"]=getApplicator},5791:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateTuple=void 0;const a=i(1436);const A=i(4464);const c=i(8484);const l={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:n,it:i}=t;if(Array.isArray(n))return validateTuple(t,"additionalItems",n);i.items=true;if((0,A.alwaysValidSchema)(i,n))return;t.ok((0,c.validateArray)(t))}};function validateTuple(t,n,i=t.schema){const{gen:c,parentSchema:l,data:d,keyword:h,it:f}=t;checkStrictTuple(l);if(f.opts.unevaluated&&i.length&&f.items!==true){f.items=A.mergeEvaluated.items(c,i.length,f.items)}const g=c.name("valid");const p=c.const("len",(0,a._)`${d}.length`);i.forEach((n,i)=>{if((0,A.alwaysValidSchema)(f,n))return;c.if((0,a._)`${p} > ${i}`,()=>t.subschema({keyword:h,schemaProp:i,dataProp:i},g));t.ok(g)});function checkStrictTuple(t){const{opts:a,errSchemaPath:c}=f;const l=i.length;const d=l===t.minItems&&(l===t.maxItems||t[n]===false);if(a.strictTuples&&!d){const t=`"${h}" is ${l}-tuple, but minItems or maxItems/${n} are not specified or different at path "${c}"`;(0,A.checkStrictMode)(f,t,a.strictTuples)}}}n.validateTuple=validateTuple;n["default"]=l},2959:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c=i(8484);const l=i(3448);const d={message:({params:{len:t}})=>(0,a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,a._)`{limit: ${t}}`};const h={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:d,code(t){const{schema:n,parentSchema:i,it:a}=t;const{prefixItems:d}=i;a.items=true;if((0,A.alwaysValidSchema)(a,n))return;if(d)(0,l.validateAdditionalItems)(t,d);else t.ok((0,c.validateArray)(t))}};n["default"]=h},8350:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const A={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(t){const{gen:n,schema:i,it:A}=t;if((0,a.alwaysValidSchema)(A,i)){t.fail();return}const c=n.name("valid");t.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},c);t.failResult(c,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};n["default"]=A},2490:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,a._)`{passingSchemas: ${t.passing}}`};const l={keyword:"oneOf",schemaType:"array",trackErrors:true,error:c,code(t){const{gen:n,schema:i,parentSchema:c,it:l}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(l.opts.discriminator&&c.discriminator)return;const d=i;const h=n.let("valid",false);const f=n.let("passing",null);const g=n.name("_valid");t.setParams({passing:f});n.block(validateOneOf);t.result(h,()=>t.reset(),()=>t.error(true));function validateOneOf(){d.forEach((i,c)=>{let d;if((0,A.alwaysValidSchema)(l,i)){n.var(g,true)}else{d=t.subschema({keyword:"oneOf",schemaProp:c,compositeRule:true},g)}if(c>0){n.if((0,a._)`${g} && ${h}`).assign(h,false).assign(f,(0,a._)`[${f}, ${c}]`).else()}n.if(g,()=>{n.assign(h,true);n.assign(f,c);if(d)t.mergeEvaluated(d,a.Name)})})}}};n["default"]=l},664:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const A=i(1436);const c=i(4464);const l=i(4464);const d={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:n,schema:i,data:d,parentSchema:h,it:f}=t;const{opts:g}=f;const p=(0,a.allSchemaProperties)(i);const m=p.filter(t=>(0,c.alwaysValidSchema)(f,i[t]));if(p.length===0||m.length===p.length&&(!f.opts.unevaluated||f.props===true)){return}const E=g.strictSchema&&!g.allowMatchingProperties&&h.properties;const C=n.name("valid");if(f.props!==true&&!(f.props instanceof A.Name)){f.props=(0,l.evaluatedPropsToName)(n,f.props)}const{props:I}=f;validatePatternProperties();function validatePatternProperties(){for(const t of p){if(E)checkMatchingProperties(t);if(f.allErrors){validateProperties(t)}else{n.var(C,true);validateProperties(t);n.if(C)}}}function checkMatchingProperties(t){for(const n in E){if(new RegExp(t).test(n)){(0,c.checkStrictMode)(f,`property ${n} matches pattern ${t} (use allowMatchingProperties)`)}}}function validateProperties(i){n.forIn("key",d,c=>{n.if((0,A._)`${(0,a.usePattern)(t,i)}.test(${c})`,()=>{const a=m.includes(i);if(!a){t.subschema({keyword:"patternProperties",schemaProp:i,dataProp:c,dataPropType:l.Type.Str},C)}if(f.opts.unevaluated&&I!==true){n.assign((0,A._)`${I}[${c}]`,true)}else if(!a&&!f.allErrors){n.if((0,A.not)(C),()=>n.break())}})})}}};n["default"]=d},6467:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5791);const A={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,a.validateTuple)(t,"items")};n["default"]=A},8778:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(7881);const A=i(8484);const c=i(4464);const l=i(2431);const d={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:n,schema:i,parentSchema:d,data:h,it:f}=t;if(f.opts.removeAdditional==="all"&&d.additionalProperties===undefined){l.default.code(new a.KeywordCxt(f,l.default,"additionalProperties"))}const g=(0,A.allSchemaProperties)(i);for(const t of g){f.definedProperties.add(t)}if(f.opts.unevaluated&&g.length&&f.props!==true){f.props=c.mergeEvaluated.props(n,(0,c.toHash)(g),f.props)}const p=g.filter(t=>!(0,c.alwaysValidSchema)(f,i[t]));if(p.length===0)return;const m=n.name("valid");for(const i of p){if(hasDefault(i)){applyPropertySchema(i)}else{n.if((0,A.propertyInData)(n,h,i,f.opts.ownProperties));applyPropertySchema(i);if(!f.allErrors)n.else().var(m,true);n.endIf()}t.it.definedProperties.add(i);t.ok(m)}function hasDefault(t){return f.opts.useDefaults&&!f.compositeRule&&i[t].default!==undefined}function applyPropertySchema(n){t.subschema({keyword:"properties",schemaProp:n,dataProp:n},m)}}};n["default"]=d},1372:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c={message:"property name must be valid",params:({params:t})=>(0,a._)`{propertyName: ${t.propertyName}}`};const l={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:c,code(t){const{gen:n,schema:i,data:c,it:l}=t;if((0,A.alwaysValidSchema)(l,i))return;const d=n.name("valid");n.forIn("key",c,i=>{t.setParams({propertyName:i});t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:true},d);n.if((0,a.not)(d),()=>{t.error(true);if(!l.allErrors)n.break()})});t.ok(d)}};n["default"]=l},6829:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const A={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:i}){if(n.if===undefined)(0,a.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};n["default"]=A},8484:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateUnion=n.validateArray=n.usePattern=n.callValidateCode=n.schemaProperties=n.allSchemaProperties=n.noPropertyInData=n.propertyInData=n.isOwnProperty=n.hasPropFunc=n.reportMissingProp=n.checkMissingProp=n.checkReportMissingProp=void 0;const a=i(1436);const A=i(4464);const c=i(630);const l=i(4464);function checkReportMissingProp(t,n){const{gen:i,data:A,it:c}=t;i.if(noPropertyInData(i,A,n,c.opts.ownProperties),()=>{t.setParams({missingProperty:(0,a._)`${n}`},true);t.error()})}n.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:t,data:n,it:{opts:i}},A,c){return(0,a.or)(...A.map(A=>(0,a.and)(noPropertyInData(t,n,A,i.ownProperties),(0,a._)`${c} = ${A}`)))}n.checkMissingProp=checkMissingProp;function reportMissingProp(t,n){t.setParams({missingProperty:n},true);t.error()}n.reportMissingProp=reportMissingProp;function hasPropFunc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,a._)`Object.prototype.hasOwnProperty`})}n.hasPropFunc=hasPropFunc;function isOwnProperty(t,n,i){return(0,a._)`${hasPropFunc(t)}.call(${n}, ${i})`}n.isOwnProperty=isOwnProperty;function propertyInData(t,n,i,A){const c=(0,a._)`${n}${(0,a.getProperty)(i)} !== undefined`;return A?(0,a._)`${c} && ${isOwnProperty(t,n,i)}`:c}n.propertyInData=propertyInData;function noPropertyInData(t,n,i,A){const c=(0,a._)`${n}${(0,a.getProperty)(i)} === undefined`;return A?(0,a.or)(c,(0,a.not)(isOwnProperty(t,n,i))):c}n.noPropertyInData=noPropertyInData;function allSchemaProperties(t){return t?Object.keys(t).filter(t=>t!=="__proto__"):[]}n.allSchemaProperties=allSchemaProperties;function schemaProperties(t,n){return allSchemaProperties(n).filter(i=>!(0,A.alwaysValidSchema)(t,n[i]))}n.schemaProperties=schemaProperties;function callValidateCode({schemaCode:t,data:n,it:{gen:i,topSchemaRef:A,schemaPath:l,errorPath:d},it:h},f,g,p){const m=p?(0,a._)`${t}, ${n}, ${A}${l}`:n;const E=[[c.default.instancePath,(0,a.strConcat)(c.default.instancePath,d)],[c.default.parentData,h.parentData],[c.default.parentDataProperty,h.parentDataProperty],[c.default.rootData,c.default.rootData]];if(h.opts.dynamicRef)E.push([c.default.dynamicAnchors,c.default.dynamicAnchors]);const C=(0,a._)`${m}, ${i.object(...E)}`;return g!==a.nil?(0,a._)`${f}.call(${g}, ${C})`:(0,a._)`${f}(${C})`}n.callValidateCode=callValidateCode;const d=(0,a._)`new RegExp`;function usePattern({gen:t,it:{opts:n}},i){const A=n.unicodeRegExp?"u":"";const{regExp:c}=n.code;const h=c(i,A);return t.scopeValue("pattern",{key:h.toString(),ref:h,code:(0,a._)`${c.code==="new RegExp"?d:(0,l.useFunc)(t,c)}(${i}, ${A})`})}n.usePattern=usePattern;function validateArray(t){const{gen:n,data:i,keyword:c,it:l}=t;const d=n.name("valid");if(l.allErrors){const t=n.let("valid",true);validateItems(()=>n.assign(t,false));return t}n.var(d,true);validateItems(()=>n.break());return d;function validateItems(l){const h=n.const("len",(0,a._)`${i}.length`);n.forRange("i",0,h,i=>{t.subschema({keyword:c,dataProp:i,dataPropType:A.Type.Num},d);n.if((0,a.not)(d),l)})}}n.validateArray=validateArray;function validateUnion(t){const{gen:n,schema:i,keyword:c,it:l}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const d=i.some(t=>(0,A.alwaysValidSchema)(l,t));if(d&&!l.opts.unevaluated)return;const h=n.let("valid",false);const f=n.name("_valid");n.block(()=>i.forEach((i,A)=>{const l=t.subschema({keyword:c,schemaProp:A,compositeRule:true},f);n.assign(h,(0,a._)`${h} || ${f}`);const d=t.mergeValidEvaluated(l,f);if(!d)n.if((0,a.not)(h))}));t.result(h,()=>t.reset(),()=>t.error(true))}n.validateUnion=validateUnion},9872:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});const i={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};n["default"]=i},7397:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(9872);const A=i(2996);const c=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a.default,A.default];n["default"]=c},2996:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.callRef=n.getValidate=void 0;const a=i(3162);const A=i(8484);const c=i(1436);const l=i(630);const d=i(2718);const h=i(4464);const f={keyword:"$ref",schemaType:"string",code(t){const{gen:n,schema:i,it:A}=t;const{baseId:l,schemaEnv:h,validateName:f,opts:g,self:p}=A;const{root:m}=h;if((i==="#"||i==="#/")&&l===m.baseId)return callRootRef();const E=d.resolveRef.call(p,m,l,i);if(E===undefined)throw new a.default(A.opts.uriResolver,l,i);if(E instanceof d.SchemaEnv)return callValidate(E);return inlineRefSchema(E);function callRootRef(){if(h===m)return callRef(t,f,h,h.$async);const i=n.scopeValue("root",{ref:m});return callRef(t,(0,c._)`${i}.validate`,m,m.$async)}function callValidate(n){const i=getValidate(t,n);callRef(t,i,n,n.$async)}function inlineRefSchema(a){const A=n.scopeValue("schema",g.code.source===true?{ref:a,code:(0,c.stringify)(a)}:{ref:a});const l=n.name("valid");const d=t.subschema({schema:a,dataTypes:[],schemaPath:c.nil,topSchemaRef:A,errSchemaPath:i},l);t.mergeEvaluated(d);t.ok(l)}}};function getValidate(t,n){const{gen:i}=t;return n.validate?i.scopeValue("validate",{ref:n.validate}):(0,c._)`${i.scopeValue("wrapper",{ref:n})}.validate`}n.getValidate=getValidate;function callRef(t,n,i,a){const{gen:d,it:f}=t;const{allErrors:g,schemaEnv:p,opts:m}=f;const E=m.passContext?l.default.this:c.nil;if(a)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!p.$async)throw new Error("async schema referenced by sync schema");const i=d.let("valid");d.try(()=>{d.code((0,c._)`await ${(0,A.callValidateCode)(t,n,E)}`);addEvaluatedFrom(n);if(!g)d.assign(i,true)},t=>{d.if((0,c._)`!(${t} instanceof ${f.ValidationError})`,()=>d.throw(t));addErrorsFrom(t);if(!g)d.assign(i,false)});t.ok(i)}function callSyncRef(){t.result((0,A.callValidateCode)(t,n,E),()=>addEvaluatedFrom(n),()=>addErrorsFrom(n))}function addErrorsFrom(t){const n=(0,c._)`${t}.errors`;d.assign(l.default.vErrors,(0,c._)`${l.default.vErrors} === null ? ${n} : ${l.default.vErrors}.concat(${n})`);d.assign(l.default.errors,(0,c._)`${l.default.vErrors}.length`)}function addEvaluatedFrom(t){var n;if(!f.opts.unevaluated)return;const a=(n=i===null||i===void 0?void 0:i.validate)===null||n===void 0?void 0:n.evaluated;if(f.props!==true){if(a&&!a.dynamicProps){if(a.props!==undefined){f.props=h.mergeEvaluated.props(d,a.props,f.props)}}else{const n=d.var("props",(0,c._)`${t}.evaluated.props`);f.props=h.mergeEvaluated.props(d,n,f.props,c.Name)}}if(f.items!==true){if(a&&!a.dynamicItems){if(a.items!==undefined){f.items=h.mergeEvaluated.items(d,a.items,f.items)}}else{const n=d.var("items",(0,c._)`${t}.evaluated.items`);f.items=h.mergeEvaluated.items(d,n,f.items,c.Name)}}}}n.callRef=callRef;n["default"]=f},8886:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(7115);const c=i(2718);const l=i(3162);const d=i(4464);const h={message:({params:{discrError:t,tagName:n}})=>t===A.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:t,tag:n,tagName:i}})=>(0,a._)`{error: ${t}, tag: ${i}, tagValue: ${n}}`};const f={keyword:"discriminator",type:"object",schemaType:"object",error:h,code(t){const{gen:n,data:i,schema:h,parentSchema:f,it:g}=t;const{oneOf:p}=f;if(!g.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const m=h.propertyName;if(typeof m!="string")throw new Error("discriminator: requires propertyName");if(h.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const E=n.let("valid",false);const C=n.const("tag",(0,a._)`${i}${(0,a.getProperty)(m)}`);n.if((0,a._)`typeof ${C} == "string"`,()=>validateMapping(),()=>t.error(false,{discrError:A.DiscrError.Tag,tag:C,tagName:m}));t.ok(E);function validateMapping(){const i=getMapping();n.if(false);for(const t in i){n.elseIf((0,a._)`${C} === ${t}`);n.assign(E,applyTagSchema(i[t]))}n.else();t.error(false,{discrError:A.DiscrError.Mapping,tag:C,tagName:m});n.endIf()}function applyTagSchema(i){const A=n.name("valid");const c=t.subschema({keyword:"oneOf",schemaProp:i},A);t.mergeEvaluated(c,a.Name);return A}function getMapping(){var t;const n={};const i=hasRequired(f);let a=true;for(let n=0;n{Object.defineProperty(n,"__esModule",{value:true});n.DiscrError=void 0;var i;(function(t){t["Tag"]="tag";t["Mapping"]="mapping"})(i||(n.DiscrError=i={}))},9941:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(7397);const A=i(5481);const c=i(8775);const l=i(2601);const d=i(6620);const h=[a.default,A.default,(0,c.default)(),l.default,d.metadataVocabulary,d.contentVocabulary];n["default"]=h},8639:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.dynamicAnchor=void 0;const a=i(1436);const A=i(630);const c=i(2718);const l=i(2996);const d={keyword:"$dynamicAnchor",schemaType:"string",code:t=>dynamicAnchor(t,t.schema)};function dynamicAnchor(t,n){const{gen:i,it:c}=t;c.schemaEnv.root.dynamicAnchors[n]=true;const l=(0,a._)`${A.default.dynamicAnchors}${(0,a.getProperty)(n)}`;const d=c.errSchemaPath==="#"?c.validateName:_getValidate(t);i.if((0,a._)`!${l}`,()=>i.assign(l,d))}n.dynamicAnchor=dynamicAnchor;function _getValidate(t){const{schemaEnv:n,schema:i,self:a}=t.it;const{root:A,baseId:d,localRefs:h,meta:f}=n.root;const{schemaId:g}=a.opts;const p=new c.SchemaEnv({schema:i,schemaId:g,root:A,baseId:d,localRefs:h,meta:f});c.compileSchema.call(a,p);return(0,l.getValidate)(t,p)}n["default"]=d},5065:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.dynamicRef=void 0;const a=i(1436);const A=i(630);const c=i(2996);const l={keyword:"$dynamicRef",schemaType:"string",code:t=>dynamicRef(t,t.schema)};function dynamicRef(t,n){const{gen:i,keyword:l,it:d}=t;if(n[0]!=="#")throw new Error(`"${l}" only supports hash fragment reference`);const h=n.slice(1);if(d.allErrors){_dynamicRef()}else{const n=i.let("valid",false);_dynamicRef(n);t.ok(n)}function _dynamicRef(t){if(d.schemaEnv.root.dynamicAnchors[h]){const n=i.let("_v",(0,a._)`${A.default.dynamicAnchors}${(0,a.getProperty)(h)}`);i.if(n,_callRef(n,t),_callRef(d.validateName,t))}else{_callRef(d.validateName,t)()}}function _callRef(n,a){return a?()=>i.block(()=>{(0,c.callRef)(t,n);i.let(a,true)}):()=>(0,c.callRef)(t,n)}}n.dynamicRef=dynamicRef;n["default"]=l},9923:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8639);const A=i(5065);const c=i(9982);const l=i(1794);const d=[a.default,A.default,c.default,l.default];n["default"]=d},9982:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8639);const A=i(4464);const c={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){if(t.schema)(0,a.dynamicAnchor)(t,"");else(0,A.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};n["default"]=c},1794:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5065);const A={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,a.dynamicRef)(t,t.schema)};n["default"]=A},6402:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A={message:({schemaCode:t})=>(0,a.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,a._)`{format: ${t}}`};const c={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:A,code(t,n){const{gen:i,data:A,$data:c,schema:l,schemaCode:d,it:h}=t;const{opts:f,errSchemaPath:g,schemaEnv:p,self:m}=h;if(!f.validateFormats)return;if(c)validate$DataFormat();else validateFormat();function validate$DataFormat(){const c=i.scopeValue("formats",{ref:m.formats,code:f.code.formats});const l=i.const("fDef",(0,a._)`${c}[${d}]`);const h=i.let("fType");const g=i.let("format");i.if((0,a._)`typeof ${l} == "object" && !(${l} instanceof RegExp)`,()=>i.assign(h,(0,a._)`${l}.type || "string"`).assign(g,(0,a._)`${l}.validate`),()=>i.assign(h,(0,a._)`"string"`).assign(g,l));t.fail$data((0,a.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(f.strictSchema===false)return a.nil;return(0,a._)`${d} && !${g}`}function invalidFmt(){const t=p.$async?(0,a._)`(${l}.async ? await ${g}(${A}) : ${g}(${A}))`:(0,a._)`${g}(${A})`;const i=(0,a._)`(typeof ${g} == "function" ? ${t} : ${g}.test(${A}))`;return(0,a._)`${g} && ${g} !== true && ${h} === ${n} && !${i}`}}function validateFormat(){const c=m.formats[l];if(!c){unknownFormat();return}if(c===true)return;const[d,h,E]=getFormat(c);if(d===n)t.pass(validCondition());function unknownFormat(){if(f.strictSchema===false){m.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${l}" ignored in schema at path "${g}"`}}function getFormat(t){const n=t instanceof RegExp?(0,a.regexpCode)(t):f.code.formats?(0,a._)`${f.code.formats}${(0,a.getProperty)(l)}`:undefined;const A=i.scopeValue("formats",{key:l,ref:t,code:n});if(typeof t=="object"&&!(t instanceof RegExp)){return[t.type||"string",t.validate,(0,a._)`${A}.validate`]}return["string",t,A]}function validCondition(){if(typeof c=="object"&&!(c instanceof RegExp)&&c.async){if(!p.$async)throw new Error("async format in sync schema");return(0,a._)`await ${E}(${A})`}return typeof h=="function"?(0,a._)`${E}(${A})`:(0,a._)`${E}.test(${A})`}}}};n["default"]=c},2601:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(6402);const A=[a.default];n["default"]=A},6620:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.contentVocabulary=n.metadataVocabulary=void 0;n.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];n.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7844:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5881);const A=i(3818);const c=i(3907);const l=[a.default,A.default,c.default];n["default"]=l},2010:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(6855);const A=i(4144);const c=[a.default,A.default];n["default"]=c},4144:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c={message:({params:{len:t}})=>(0,a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,a._)`{limit: ${t}}`};const l={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:c,code(t){const{gen:n,schema:i,data:c,it:l}=t;const d=l.items||0;if(d===true)return;const h=n.const("len",(0,a._)`${c}.length`);if(i===false){t.setParams({len:d});t.fail((0,a._)`${h} > ${d}`)}else if(typeof i=="object"&&!(0,A.alwaysValidSchema)(l,i)){const i=n.var("valid",(0,a._)`${h} <= ${d}`);n.if((0,a.not)(i),()=>validateItems(i,d));t.ok(i)}l.items=true;function validateItems(i,c){n.forRange("i",c,h,c=>{t.subschema({keyword:"unevaluatedItems",dataProp:c,dataPropType:A.Type.Num},i);if(!l.allErrors)n.if((0,a.not)(i),()=>n.break())})}}};n["default"]=l},6855:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c=i(630);const l={message:"must NOT have unevaluated properties",params:({params:t})=>(0,a._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`};const d={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:l,code(t){const{gen:n,schema:i,data:l,errsCount:d,it:h}=t;if(!d)throw new Error("ajv implementation error");const{allErrors:f,props:g}=h;if(g instanceof a.Name){n.if((0,a._)`${g} !== true`,()=>n.forIn("key",l,t=>n.if(unevaluatedDynamic(g,t),()=>unevaluatedPropCode(t))))}else if(g!==true){n.forIn("key",l,t=>g===undefined?unevaluatedPropCode(t):n.if(unevaluatedStatic(g,t),()=>unevaluatedPropCode(t)))}h.props=true;t.ok((0,a._)`${d} === ${c.default.errors}`);function unevaluatedPropCode(c){if(i===false){t.setParams({unevaluatedProperty:c});t.error();if(!f)n.break();return}if(!(0,A.alwaysValidSchema)(h,i)){const i=n.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:c,dataPropType:A.Type.Str},i);if(!f)n.if((0,a.not)(i),()=>n.break())}}function unevaluatedDynamic(t,n){return(0,a._)`!${t} || !${t}[${n}]`}function unevaluatedStatic(t,n){const i=[];for(const A in t){if(t[A]===true)i.push((0,a._)`${n} !== ${A}`)}return(0,a.and)(...i)}}};n["default"]=d},8026:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c=i(4951);const l={message:"must be equal to constant",params:({schemaCode:t})=>(0,a._)`{allowedValue: ${t}}`};const d={keyword:"const",$data:true,error:l,code(t){const{gen:n,data:i,$data:l,schemaCode:d,schema:h}=t;if(l||h&&typeof h=="object"){t.fail$data((0,a._)`!${(0,A.useFunc)(n,c.default)}(${i}, ${d})`)}else{t.fail((0,a._)`${h} !== ${i}`)}}};n["default"]=d},5881:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5826);const A={keyword:"dependentRequired",type:"object",schemaType:"object",error:a.error,code:t=>(0,a.validatePropertyDeps)(t)};n["default"]=A},3200:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c=i(4951);const l={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,a._)`{allowedValues: ${t}}`};const d={keyword:"enum",schemaType:"array",$data:true,error:l,code(t){const{gen:n,data:i,$data:l,schema:d,schemaCode:h,it:f}=t;if(!l&&d.length===0)throw new Error("enum must have non-empty array");const g=d.length>=f.opts.loopEnum;let p;const getEql=()=>p!==null&&p!==void 0?p:p=(0,A.useFunc)(n,c.default);let m;if(g||l){m=n.let("valid");t.block$data(m,loopEnum)}else{if(!Array.isArray(d))throw new Error("ajv implementation error");const t=n.const("vSchema",h);m=(0,a.or)(...d.map((n,i)=>equalCode(t,i)))}t.pass(m);function loopEnum(){n.assign(m,false);n.forOf("v",h,t=>n.if((0,a._)`${getEql()}(${i}, ${t})`,()=>n.assign(m,true).break()))}function equalCode(t,n){const A=d[n];return typeof A==="object"&&A!==null?(0,a._)`${getEql()}(${i}, ${t}[${n}])`:(0,a._)`${i} === ${A}`}}};n["default"]=d},5481:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(3723);const A=i(8132);const c=i(6962);const l=i(6023);const d=i(895);const h=i(4504);const f=i(6296);const g=i(5132);const p=i(8026);const m=i(3200);const E=[a.default,A.default,c.default,l.default,d.default,h.default,f.default,g.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,m.default];n["default"]=E},3907:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const A={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:n,it:i}){if(n.contains===undefined){(0,a.checkStrictMode)(i,`"${t}" without "contains" is ignored`)}}};n["default"]=A},6296:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A={message({keyword:t,schemaCode:n}){const i=t==="maxItems"?"more":"fewer";return(0,a.str)`must NOT have ${i} than ${n} items`},params:({schemaCode:t})=>(0,a._)`{limit: ${t}}`};const c={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:A,code(t){const{keyword:n,data:i,schemaCode:A}=t;const c=n==="maxItems"?a.operators.GT:a.operators.LT;t.fail$data((0,a._)`${i}.length ${c} ${A}`)}};n["default"]=c},6962:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=i(4464);const c=i(6214);const l={message({keyword:t,schemaCode:n}){const i=t==="maxLength"?"more":"fewer";return(0,a.str)`must NOT have ${i} than ${n} characters`},params:({schemaCode:t})=>(0,a._)`{limit: ${t}}`};const d={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:l,code(t){const{keyword:n,data:i,schemaCode:l,it:d}=t;const h=n==="maxLength"?a.operators.GT:a.operators.LT;const f=d.opts.unicode===false?(0,a._)`${i}.length`:(0,a._)`${(0,A.useFunc)(t.gen,c.default)}(${i})`;t.fail$data((0,a._)`${f} ${h} ${l}`)}};n["default"]=d},3723:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A=a.operators;const c={maximum:{okStr:"<=",ok:A.LTE,fail:A.GT},minimum:{okStr:">=",ok:A.GTE,fail:A.LT},exclusiveMaximum:{okStr:"<",ok:A.LT,fail:A.GTE},exclusiveMinimum:{okStr:">",ok:A.GT,fail:A.LTE}};const l={message:({keyword:t,schemaCode:n})=>(0,a.str)`must be ${c[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>(0,a._)`{comparison: ${c[t].okStr}, limit: ${n}}`};const d={keyword:Object.keys(c),type:"number",schemaType:"number",$data:true,error:l,code(t){const{keyword:n,data:i,schemaCode:A}=t;t.fail$data((0,a._)`${i} ${c[n].fail} ${A} || isNaN(${i})`)}};n["default"]=d},895:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A={message({keyword:t,schemaCode:n}){const i=t==="maxProperties"?"more":"fewer";return(0,a.str)`must NOT have ${i} than ${n} properties`},params:({schemaCode:t})=>(0,a._)`{limit: ${t}}`};const c={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:A,code(t){const{keyword:n,data:i,schemaCode:A}=t;const c=n==="maxProperties"?a.operators.GT:a.operators.LT;t.fail$data((0,a._)`Object.keys(${i}).length ${c} ${A}`)}};n["default"]=c},8132:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const A={message:({schemaCode:t})=>(0,a.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,a._)`{multipleOf: ${t}}`};const c={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:A,code(t){const{gen:n,data:i,schemaCode:A,it:c}=t;const l=c.opts.multipleOfPrecision;const d=n.let("res");const h=l?(0,a._)`Math.abs(Math.round(${d}) - ${d}) > 1e-${l}`:(0,a._)`${d} !== parseInt(${d})`;t.fail$data((0,a._)`(${A} === 0 || (${d} = ${i}/${A}, ${h}))`)}};n["default"]=c},6023:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const A=i(4464);const c=i(1436);const l={message:({schemaCode:t})=>(0,c.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,c._)`{pattern: ${t}}`};const d={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:l,code(t){const{gen:n,data:i,$data:l,schema:d,schemaCode:h,it:f}=t;const g=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:a}=f.opts.code;const l=a.code==="new RegExp"?(0,c._)`new RegExp`:(0,A.useFunc)(n,a);const d=n.let("valid");n.try(()=>n.assign(d,(0,c._)`${l}(${h}, ${g}).test(${i})`),()=>n.assign(d,false));t.fail$data((0,c._)`!${d}`)}else{const n=(0,a.usePattern)(t,d);t.fail$data((0,c._)`!${n}.test(${i})`)}}};n["default"]=d},4504:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const A=i(1436);const c=i(4464);const l={message:({params:{missingProperty:t}})=>(0,A.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,A._)`{missingProperty: ${t}}`};const d={keyword:"required",type:"object",schemaType:"array",$data:true,error:l,code(t){const{gen:n,schema:i,schemaCode:l,data:d,$data:h,it:f}=t;const{opts:g}=f;if(!h&&i.length===0)return;const p=i.length>=g.loopRequired;if(f.allErrors)allErrorsMode();else exitOnErrorMode();if(g.strictRequired){const n=t.parentSchema.properties;const{definedProperties:a}=t.it;for(const t of i){if((n===null||n===void 0?void 0:n[t])===undefined&&!a.has(t)){const n=f.schemaEnv.baseId+f.errSchemaPath;const i=`required property "${t}" is not defined at "${n}" (strictRequired)`;(0,c.checkStrictMode)(f,i,f.opts.strictRequired)}}}function allErrorsMode(){if(p||h){t.block$data(A.nil,loopAllRequired)}else{for(const n of i){(0,a.checkReportMissingProp)(t,n)}}}function exitOnErrorMode(){const A=n.let("missing");if(p||h){const i=n.let("valid",true);t.block$data(i,()=>loopUntilMissing(A,i));t.ok(i)}else{n.if((0,a.checkMissingProp)(t,i,A));(0,a.reportMissingProp)(t,A);n.else()}}function loopAllRequired(){n.forOf("prop",l,i=>{t.setParams({missingProperty:i});n.if((0,a.noPropertyInData)(n,d,i,g.ownProperties),()=>t.error())})}function loopUntilMissing(i,c){t.setParams({missingProperty:i});n.forOf(i,l,()=>{n.assign(c,(0,a.propertyInData)(n,d,i,g.ownProperties));n.if((0,A.not)(c),()=>{t.error();n.break()})},A.nil)}}};n["default"]=d},5132:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(6685);const A=i(1436);const c=i(4464);const l=i(4951);const d={message:({params:{i:t,j:n}})=>(0,A.str)`must NOT have duplicate items (items ## ${n} and ${t} are identical)`,params:({params:{i:t,j:n}})=>(0,A._)`{i: ${t}, j: ${n}}`};const h={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:d,code(t){const{gen:n,data:i,$data:d,schema:h,parentSchema:f,schemaCode:g,it:p}=t;if(!d&&!h)return;const m=n.let("valid");const E=f.items?(0,a.getSchemaTypes)(f.items):[];t.block$data(m,validateUniqueItems,(0,A._)`${g} === false`);t.ok(m);function validateUniqueItems(){const a=n.let("i",(0,A._)`${i}.length`);const c=n.let("j");t.setParams({i:a,j:c});n.assign(m,true);n.if((0,A._)`${a} > 1`,()=>(canOptimize()?loopN:loopN2)(a,c))}function canOptimize(){return E.length>0&&!E.some(t=>t==="object"||t==="array")}function loopN(c,l){const d=n.name("item");const h=(0,a.checkDataTypes)(E,d,p.opts.strictNumbers,a.DataType.Wrong);const f=n.const("indices",(0,A._)`{}`);n.for((0,A._)`;${c}--;`,()=>{n.let(d,(0,A._)`${i}[${c}]`);n.if(h,(0,A._)`continue`);if(E.length>1)n.if((0,A._)`typeof ${d} == "string"`,(0,A._)`${d} += "_"`);n.if((0,A._)`typeof ${f}[${d}] == "number"`,()=>{n.assign(l,(0,A._)`${f}[${d}]`);t.error();n.assign(m,false).break()}).code((0,A._)`${f}[${d}] = ${c}`)})}function loopN2(a,d){const h=(0,c.useFunc)(n,l.default);const f=n.name("outer");n.label(f).for((0,A._)`;${a}--;`,()=>n.for((0,A._)`${d} = ${a}; ${d}--;`,()=>n.if((0,A._)`${h}(${i}[${a}], ${i}[${d}])`,()=>{t.error();n.assign(m,false).break(f)})))}}};n["default"]=h},9449:function(t){!function(n,i){true?t.exports=i():0}(this,function(){return function(t){var n={};function r(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=n,r.d=function(t,n,i){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)r.d(i,a,function(n){return t[n]}.bind(null,a));return i},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=90)}({17:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a=i(18),A=function(){function e(){}return e.getFirstMatch=function(t,n){var i=n.match(t);return i&&i.length>0&&i[1]||""},e.getSecondMatch=function(t,n){var i=n.match(t);return i&&i.length>1&&i[2]||""},e.matchAndReturnConst=function(t,n,i){if(t.test(n))return i},e.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(t){var n=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});n.push(0);var i=n[0],a=n[1];if(10===i)switch(a){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(t){var n=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(n.push(0),!(1===n[0]&&n[1]<5))return 1===n[0]&&n[1]<6?"Cupcake":1===n[0]&&n[1]>=6?"Donut":2===n[0]&&n[1]<2?"Eclair":2===n[0]&&2===n[1]?"Froyo":2===n[0]&&n[1]>2?"Gingerbread":3===n[0]?"Honeycomb":4===n[0]&&n[1]<1?"Ice Cream Sandwich":4===n[0]&&n[1]<4?"Jelly Bean":4===n[0]&&n[1]>=4?"KitKat":5===n[0]?"Lollipop":6===n[0]?"Marshmallow":7===n[0]?"Nougat":8===n[0]?"Oreo":9===n[0]?"Pie":void 0},e.getVersionPrecision=function(t){return t.split(".").length},e.compareVersions=function(t,n,i){void 0===i&&(i=!1);var a=e.getVersionPrecision(t),A=e.getVersionPrecision(n),c=Math.max(a,A),l=0,d=e.map([t,n],function(t){var n=c-e.getVersionPrecision(t),i=t+new Array(n+1).join(".0");return e.map(i.split("."),function(t){return new Array(20-t.length).join("0")+t}).reverse()});for(i&&(l=c-Math.min(a,A)),c-=1;c>=l;){if(d[0][c]>d[1][c])return 1;if(d[0][c]===d[1][c]){if(c===l)return 0;c-=1}else if(d[0][c]1?A-1:0),l=1;l0){var l=Object.keys(i),h=d.default.find(l,function(t){return n.isOS(t)});if(h){var f=this.satisfies(i[h]);if(void 0!==f)return f}var g=d.default.find(l,function(t){return n.isPlatform(t)});if(g){var p=this.satisfies(i[g]);if(void 0!==p)return p}}if(c>0){var m=Object.keys(A),E=d.default.find(m,function(t){return n.isBrowser(t,!0)});if(void 0!==E)return this.compareVersion(A[E])}},t.isBrowser=function(t,n){void 0===n&&(n=!1);var i=this.getBrowserName().toLowerCase(),a=t.toLowerCase(),A=d.default.getBrowserTypeByAlias(a);return n&&A&&(a=A.toLowerCase()),a===i},t.compareVersion=function(t){var n=[0],i=t,a=!1,A=this.getBrowserVersion();if("string"==typeof A)return">"===t[0]||"<"===t[0]?(i=t.substr(1),"="===t[1]?(a=!0,i=t.substr(2)):n=[],">"===t[0]?n.push(1):n.push(-1)):"="===t[0]?i=t.substr(1):"~"===t[0]&&(a=!0,i=t.substr(1)),n.indexOf(d.default.compareVersions(A,i,a))>-1},t.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},t.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},t.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},t.is=function(t,n){return void 0===n&&(n=!1),this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)},t.some=function(t){var n=this;return void 0===t&&(t=[]),t.some(function(t){return n.is(t)})},e}();n.default=h,t.exports=n.default},92:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,A=(a=i(17))&&a.__esModule?a:{default:a};var c=/version\/(\d+(\.?_?\d+)+)/i,l=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},i=A.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},i=A.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},i=A.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},i=A.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},i=A.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},i=A.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},i=A.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},i=A.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},i=A.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},i=A.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},i=A.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},i=A.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},i=A.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},i=A.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},i=A.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},i=A.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},i=A.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},i=A.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},i=A.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},i=A.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},i=A.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},i=A.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},i=A.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},i=A.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},i=A.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},i=A.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},i=A.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},i=A.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},i=A.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},i=A.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},i=A.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},i=A.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},i=A.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},i=A.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},i=A.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return i&&(n.version=i),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},i=A.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},i=A.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},i=A.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},i=A.default.getFirstMatch(c,t)||A.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},i=A.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},i=A.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},i=A.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},i=A.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},i=A.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},i=A.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},i=A.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),a=A.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),c=A.default.getFirstMatch(/se ([\d.]+)x/i,t),l=i||a||c;return l&&(n.version=l),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},i=A.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return!!t.hasBrand("DuckDuckGo")||t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var i={name:"DuckDuckGo"};if(n){var a=n.getBrandVersion("DuckDuckGo");if(a)return i.version=a,i}var c=A.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return c&&(i.version=c),i}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var i={name:"Brave"};if(n){var a=n.getBrandVersion("Brave");if(a)return i.version=a,i}return i}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},i=A.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},i=A.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},i=A.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n={name:"Android Browser"},i=A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},i=A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},i=A.default.getFirstMatch(c,t);return i&&(n.version=i),n}},{test:[/.*/i],describe:function(t){var n=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:A.default.getFirstMatch(n,t),version:A.default.getSecondMatch(n,t)}}}];n.default=l,t.exports=n.default},93:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,A=(a=i(17))&&a.__esModule?a:{default:a},c=i(18);var l=[{test:[/Roku\/DVP/],describe:function(t){var n=A.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:c.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=A.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:c.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=A.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),i=A.default.getWindowsVersionName(n);return{name:c.OS_MAP.Windows,version:n,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:c.OS_MAP.iOS},i=A.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return i&&(n.version=i),n}},{test:[/macintosh/i],describe:function(t){var n=A.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),i=A.default.getMacOSVersionName(n),a={name:c.OS_MAP.MacOS,version:n};return i&&(a.versionName=i),a}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=A.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:c.OS_MAP.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=A.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:c.OS_MAP.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n=A.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),i=A.default.getAndroidVersionName(n),a={name:c.OS_MAP.Android,version:n};return i&&(a.versionName=i),a}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=A.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),i={name:c.OS_MAP.WebOS};return n&&n.length&&(i.version=n),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=A.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||A.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||A.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:c.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=A.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:c.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=A.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:c.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:c.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:c.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=A.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:c.OS_MAP.PlayStation4,version:n}}}];n.default=l,t.exports=n.default},94:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,A=(a=i(17))&&a.__esModule?a:{default:a},c=i(18);var l=[{test:[/googlebot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:c.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=A.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",i={type:c.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(i.model=n),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),i=t.test(/like (ipod|iphone)/i);return n&&!i},describe:function(t){var n=A.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:c.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:c.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=A.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),i={type:c.PLATFORMS_MAP.mobile,vendor:"Nokia"};return n&&(i.model=n),i}},{test:[/[^-]mobi/i],describe:function(){return{type:c.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:c.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&n>=3},describe:function(){return{type:c.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:c.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:c.PLATFORMS_MAP.tv}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.tv}}}];n.default=l,t.exports=n.default},95:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,A=(a=i(17))&&a.__esModule?a:{default:a},c=i(18);var l=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:c.ENGINE_MAP.Blink};var n=A.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:c.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:c.ENGINE_MAP.Trident},i=A.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:c.ENGINE_MAP.Presto},i=A.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=t.test(/gecko/i),i=t.test(/like gecko/i);return n&&!i},describe:function(t){var n={name:c.ENGINE_MAP.Gecko},i=A.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:c.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:c.ENGINE_MAP.WebKit},i=A.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}}];n.default=l,t.exports=n.default}})})},3430:t=>{t.exports=function equal(t,n){if(t===n)return true;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return false;var i,a,A;if(Array.isArray(t)){i=t.length;if(i!=n.length)return false;for(a=i;a--!==0;)if(!equal(t[a],n[a]))return false;return true}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();A=Object.keys(t);i=A.length;if(i!==Object.keys(n).length)return false;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,A[a]))return false;for(a=i;a--!==0;){var c=A[a];if(!equal(t[c],n[c]))return false}return true}return t!==t&&n!==n}},1167:t=>{var n=t.exports=function(t,n,i){if(typeof n=="function"){i=n;n={}}i=n.cb||i;var a=typeof i=="function"?i:i.pre||function(){};var A=i.post||function(){};_traverse(n,a,A,t,"",t)};n.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};n.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};n.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};n.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(t,i,a,A,c,l,d,h,f,g){if(A&&typeof A=="object"&&!Array.isArray(A)){i(A,c,l,d,h,f,g);for(var p in A){var m=A[p];if(Array.isArray(m)){if(p in n.arrayKeywords){for(var E=0;E{var a=i(1571),A=i(8095),c=i(4909),l=i(177);function LRUCache(t,n,i){if(arguments.length<2){i=t;t=null;n=null}this.capacity=i;if(typeof this.capacity!=="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var a=c.getPointerArray(i);this.forward=new a(i);this.backward=new a(i);this.K=typeof t==="function"?new t(i):new Array(i);this.V=typeof n==="function"?new n(i):new Array(i);this.size=0;this.head=0;this.tail=0;this.items={}}LRUCache.prototype.clear=function(){this.size=0;this.head=0;this.tail=0;this.items={}};LRUCache.prototype.splayOnTop=function(t){var n=this.head;if(this.head===t)return this;var i=this.backward[t],a=this.forward[t];if(this.tail===t){this.tail=i}else{this.backward[a]=i}this.forward[i]=a;this.backward[n]=t;this.head=t;this.forward[t]=n;return this};LRUCache.prototype.set=function(t,n){var i=this.items[t];if(typeof i!=="undefined"){this.splayOnTop(i);this.V[i]=n;return}if(this.size1?n:this;var i=0,a=this.size;var A=this.head,c=this.K,l=this.V,d=this.forward;while(i=n)return{done:true};var a=A[i];t++;if(t=n)return{done:true};var a=A[i];t++;if(t=n)return{done:true};var a=A[i],d=c[i];t++;if(t{var a=i(8095);var A=i(4909);function isArrayLike(t){return Array.isArray(t)||A.isTypedArray(t)}function guessLength(t){if(typeof t.length==="number")return t.length;if(typeof t.size==="number")return t.size;return}function toArray(t){var n=guessLength(t);var i=typeof n==="number"?new Array(n):[];var A=0;a(t,function(t){i[A++]=t});return i}function toArrayWithIndices(t){var n=guessLength(t);var i=typeof n==="number"?A.getPointerArray(n):Array;var c=typeof n==="number"?new Array(n):[];var l=typeof n==="number"?new i(n):[];var d=0;a(t,function(t){c[d]=t;l[d]=d++});return[c,l]}n.isArrayLike=isArrayLike;n.guessLength=guessLength;n.toArray=toArray;n.toArrayWithIndices=toArrayWithIndices},4909:(t,n)=>{var i=Math.pow(2,8)-1,a=Math.pow(2,16)-1,A=Math.pow(2,32)-1;var c=Math.pow(2,7)-1,l=Math.pow(2,15)-1,d=Math.pow(2,31)-1;n.getPointerArray=function(t){var n=t-1;if(n<=i)return Uint8Array;if(n<=a)return Uint16Array;if(n<=A)return Uint32Array;return Float64Array};n.getSignedPointerArray=function(t){var n=t-1;if(n<=c)return Int8Array;if(n<=l)return Int16Array;if(n<=d)return Int32Array;return Float64Array};n.getNumberType=function(t){if(t===(t|0)){if(Math.sign(t)===-1){if(t<=127&&t>=-128)return Int8Array;if(t<=32767&&t>=-32768)return Int16Array;return Int32Array}else{if(t<=255)return Uint8Array;if(t<=65535)return Uint16Array;return Uint32Array}}return Float64Array};var h={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};n.getMinimalRepresentation=function(t,i){var a=null,A=0,c,l,d,f,g;for(f=0,g=t.length;fA){A=c;a=l}}return a};n.isTypedArray=function(t){return typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView(t)};n.concat=function(){var t=0,n,i,a;for(n=0,a=arguments.length;n{var n=typeof ArrayBuffer!=="undefined",i=typeof Symbol!=="undefined";function forEach(t,a){var A,c,l,d,h;if(!t)throw new Error("obliterator/forEach: invalid iterable.");if(typeof a!=="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(t)||n&&ArrayBuffer.isView(t)||typeof t==="string"||t.toString()==="[object Arguments]"){for(l=0,d=t.length;l{function Iterator(t){Object.defineProperty(this,"_next",{writable:false,enumerable:false,value:t});this.done=false}Iterator.prototype.next=function(){if(this.done)return{done:true};var t=this._next();if(t.done)this.done=true;return t};if(typeof Symbol!=="undefined")Iterator.prototype[Symbol.iterator]=function(){return this};Iterator.of=function(){var t=arguments,n=t.length,i=0;return new Iterator(function(){if(i>=n)return{done:true};return{done:false,value:t[i++]}})};Iterator.empty=function(){var t=new Iterator(null);t.done=true;return t};Iterator.is=function(t){if(t instanceof Iterator)return true;return typeof t==="object"&&t!==null&&typeof t.next==="function"};t.exports=Iterator},770:(t,n,i)=>{i(218)},218:(t,n,i)=>{var a;var A=i(9278);var c=i(4756);var l=i(8611);var d=i(5692);var h=i(4434);var f=i(2613);var g=i(9023);a=httpOverHttp;a=httpsOverHttp;a=httpOverHttps;a=httpsOverHttps;function httpOverHttp(t){var n=new TunnelingAgent(t);n.request=l.request;return n}function httpsOverHttp(t){var n=new TunnelingAgent(t);n.request=l.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function httpOverHttps(t){var n=new TunnelingAgent(t);n.request=d.request;return n}function httpsOverHttps(t){var n=new TunnelingAgent(t);n.request=d.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function TunnelingAgent(t){var n=this;n.options=t||{};n.proxyOptions=n.options.proxy||{};n.maxSockets=n.options.maxSockets||l.Agent.defaultMaxSockets;n.requests=[];n.sockets=[];n.on("free",function onFree(t,i,a,A){var c=toOptions(i,a,A);for(var l=0,d=n.requests.length;l=this.maxSockets){A.requests.push(c);return}A.createSocket(c,function(n){n.on("free",onFree);n.on("close",onCloseOrRemove);n.on("agentRemove",onCloseOrRemove);t.onSocket(n);function onFree(){A.emit("free",n,c)}function onCloseOrRemove(t){A.removeSocket(n);n.removeListener("free",onFree);n.removeListener("close",onCloseOrRemove);n.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(t,n){var i=this;var a={};i.sockets.push(a);var A=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:false,headers:{host:t.host+":"+t.port}});if(t.localAddress){A.localAddress=t.localAddress}if(A.proxyAuth){A.headers=A.headers||{};A.headers["Proxy-Authorization"]="Basic "+new Buffer(A.proxyAuth).toString("base64")}p("making CONNECT request");var c=i.request(A);c.useChunkedEncodingByDefault=false;c.once("response",onResponse);c.once("upgrade",onUpgrade);c.once("connect",onConnect);c.once("error",onError);c.end();function onResponse(t){t.upgrade=true}function onUpgrade(t,n,i){process.nextTick(function(){onConnect(t,n,i)})}function onConnect(A,l,d){c.removeAllListeners();l.removeAllListeners();if(A.statusCode!==200){p("tunneling socket could not be established, statusCode=%d",A.statusCode);l.destroy();var h=new Error("tunneling socket could not be established, "+"statusCode="+A.statusCode);h.code="ECONNRESET";t.request.emit("error",h);i.removeSocket(a);return}if(d.length>0){p("got illegal response body from proxy");l.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET";t.request.emit("error",h);i.removeSocket(a);return}p("tunneling connection has established");i.sockets[i.sockets.indexOf(a)]=l;return n(l)}function onError(n){c.removeAllListeners();p("tunneling socket could not be established, cause=%s\n",n.message,n.stack);var A=new Error("tunneling socket could not be established, "+"cause="+n.message);A.code="ECONNRESET";t.request.emit("error",A);i.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(t){var n=this.sockets.indexOf(t);if(n===-1){return}this.sockets.splice(n,1);var i=this.requests.shift();if(i){this.createSocket(i,function(t){i.request.onSocket(t)})}};function createSecureSocket(t,n){var i=this;TunnelingAgent.prototype.createSocket.call(i,t,function(a){var A=t.request.getHeader("host");var l=mergeOptions({},i.options,{socket:a,servername:A?A.replace(/:.*$/,""):t.host});var d=c.connect(0,l);i.sockets[i.sockets.indexOf(a)]=d;n(d)})}function toOptions(t,n,i){if(typeof t==="string"){return{host:t,port:n,localAddress:i}}return t}function mergeOptions(t){for(var n=1,i=arguments.length;n{var a;const A=i(3701);const c=i(883);const l=i(628);const d=i(837);const h=i(7405);const f=i(6672);const g=i(3137);const p=i(50);const m=i(8707);const E=i(3440);const{InvalidArgumentError:C}=m;const I=i(6615);const y=i(9136);const B=i(7365);const Q=i(7501);const w=i(4004);const S=i(2429);const b=i(7816);const{getGlobalDispatcher:R,setGlobalDispatcher:v}=i(2581);const k=i(8155);const D=i(8754);const T=i(5092);Object.assign(c.prototype,I);a=c;a=A;a=l;a=d;a=h;a=f;a=g;a=p;a=b;a=k;a=D;a=T;a={redirect:i(1514),retry:i(2026),dump:i(8060),dns:i(379)};a=y;a=m;a={parseHeaders:E.parseHeaders,headerNameToString:E.headerNameToString};function makeDispatcher(t){return(n,i,a)=>{if(typeof i==="function"){a=i;i=null}if(!n||typeof n!=="string"&&typeof n!=="object"&&!(n instanceof URL)){throw new C("invalid url")}if(i!=null&&typeof i!=="object"){throw new C("invalid opts")}if(i&&i.path!=null){if(typeof i.path!=="string"){throw new C("invalid opts.path")}let t=i.path;if(!i.path.startsWith("/")){t=`/${t}`}n=new URL(E.parseOrigin(n).origin+t)}else{if(!i){i=typeof n==="object"?n:{}}n=E.parseURL(n)}const{agent:A,dispatcher:c=R()}=i;if(A){throw new C("unsupported opts.agent. Did you mean opts.client?")}return t.call(c,{...i,origin:n.origin,path:n.search?`${n.pathname}${n.search}`:n.pathname,method:i.method||(i.body?"PUT":"GET")},a)}}a=v;a=R;const N=i(4398).fetch;a=async function fetch(t,n=undefined){try{return await N(t,n)}catch(t){if(t&&typeof t==="object"){Error.captureStackTrace(t)}throw t}};i(660).Headers;i(9051).Response;i(9967).Request;i(5910).FormData;a=globalThis.File??i(4573).File;i(8355).FileReader;const{setGlobalOrigin:M,getGlobalOrigin:F}=i(1059);a=M;a=F;const{CacheStorage:x}=i(3245);const{kConstruct:U}=i(109);a=new x(U);const{deleteCookie:P,getCookies:L,getSetCookies:O,setCookie:H}=i(9061);a=P;a=L;a=O;a=H;const{parseMIMEType:$,serializeAMimeType:G}=i(1900);a=$;a=G;const{CloseEvent:V,ErrorEvent:Y,MessageEvent:J}=i(5188);i(3726).WebSocket;a=V;a=Y;a=J;a=makeDispatcher(I.request);a=makeDispatcher(I.stream);a=makeDispatcher(I.pipeline);a=makeDispatcher(I.connect);a=makeDispatcher(I.upgrade);a=B;a=w;a=Q;a=S;const{EventSource:W}=i(1238);a=W},158:(t,n,i)=>{const{addAbortListener:a}=i(3440);const{RequestAbortedError:A}=i(8707);const c=Symbol("kListener");const l=Symbol("kSignal");function abort(t){if(t.abort){t.abort(t[l]?.reason)}else{t.reason=t[l]?.reason??new A}removeSignal(t)}function addSignal(t,n){t.reason=null;t[l]=null;t[c]=null;if(!n){return}if(n.aborted){abort(t);return}t[l]=n;t[c]=()=>{abort(t)};a(t[l],t[c])}function removeSignal(t){if(!t[l]){return}if("removeEventListener"in t[l]){t[l].removeEventListener("abort",t[c])}else{t[l].removeListener("abort",t[c])}t[l]=null;t[c]=null}t.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(t,n,i)=>{const a=i(4589);const{AsyncResource:A}=i(6698);const{InvalidArgumentError:c,SocketError:l}=i(8707);const d=i(3440);const{addSignal:h,removeSignal:f}=i(158);class ConnectHandler extends A{constructor(t,n){if(!t||typeof t!=="object"){throw new c("invalid opts")}if(typeof n!=="function"){throw new c("invalid callback")}const{signal:i,opaque:a,responseHeaders:A}=t;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=A||null;this.callback=n;this.abort=null;h(this,i)}onConnect(t,n){if(this.reason){t(this.reason);return}a(this.callback);this.abort=t;this.context=n}onHeaders(){throw new l("bad connect",null)}onUpgrade(t,n,i){const{callback:a,opaque:A,context:c}=this;f(this);this.callback=null;let l=n;if(l!=null){l=this.responseHeaders==="raw"?d.parseRawHeaders(n):d.parseHeaders(n)}this.runInAsyncScope(a,null,null,{statusCode:t,headers:l,socket:i,opaque:A,context:c})}onError(t){const{callback:n,opaque:i}=this;f(this);if(n){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(n,null,t,{opaque:i})})}}}function connect(t,n){if(n===undefined){return new Promise((n,i)=>{connect.call(this,t,(t,a)=>t?i(t):n(a))})}try{const i=new ConnectHandler(t,n);this.dispatch({...t,method:"CONNECT"},i)}catch(i){if(typeof n!=="function"){throw i}const a=t?.opaque;queueMicrotask(()=>n(i,{opaque:a}))}}t.exports=connect},6862:(t,n,i)=>{const{Readable:a,Duplex:A,PassThrough:c}=i(7075);const{InvalidArgumentError:l,InvalidReturnValueError:d,RequestAbortedError:h}=i(8707);const f=i(3440);const{AsyncResource:g}=i(6698);const{addSignal:p,removeSignal:m}=i(158);const E=i(4589);const C=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[C]=null}_read(){const{[C]:t}=this;if(t){this[C]=null;t()}}_destroy(t,n){this._read();n(t)}}class PipelineResponse extends a{constructor(t){super({autoDestroy:true});this[C]=t}_read(){this[C]()}_destroy(t,n){if(!t&&!this._readableState.endEmitted){t=new h}n(t)}}class PipelineHandler extends g{constructor(t,n){if(!t||typeof t!=="object"){throw new l("invalid opts")}if(typeof n!=="function"){throw new l("invalid handler")}const{signal:i,method:a,opaque:c,onInfo:d,responseHeaders:g}=t;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new l("invalid method")}if(d&&typeof d!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=c||null;this.responseHeaders=g||null;this.handler=n;this.abort=null;this.context=null;this.onInfo=d||null;this.req=(new PipelineRequest).on("error",f.nop);this.ret=new A({readableObjectMode:t.objectMode,autoDestroy:true,read:()=>{const{body:t}=this;if(t?.resume){t.resume()}},write:(t,n,i)=>{const{req:a}=this;if(a.push(t,n)||a._readableState.destroyed){i()}else{a[C]=i}},destroy:(t,n)=>{const{body:i,req:a,res:A,ret:c,abort:l}=this;if(!t&&!c._readableState.endEmitted){t=new h}if(l&&t){l()}f.destroy(i,t);f.destroy(a,t);f.destroy(A,t);m(this);n(t)}}).on("prefinish",()=>{const{req:t}=this;t.push(null)});this.res=null;p(this,i)}onConnect(t,n){const{ret:i,res:a}=this;if(this.reason){t(this.reason);return}E(!a,"pipeline cannot be retried");E(!i.destroyed);this.abort=t;this.context=n}onHeaders(t,n,i){const{opaque:a,handler:A,context:c}=this;if(t<200){if(this.onInfo){const i=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);this.onInfo({statusCode:t,headers:i})}return}this.res=new PipelineResponse(i);let l;try{this.handler=null;const i=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);l=this.runInAsyncScope(A,null,{statusCode:t,headers:i,opaque:a,body:this.res,context:c})}catch(t){this.res.on("error",f.nop);throw t}if(!l||typeof l.on!=="function"){throw new d("expected Readable")}l.on("data",t=>{const{ret:n,body:i}=this;if(!n.push(t)&&i.pause){i.pause()}}).on("error",t=>{const{ret:n}=this;f.destroy(n,t)}).on("end",()=>{const{ret:t}=this;t.push(null)}).on("close",()=>{const{ret:t}=this;if(!t._readableState.ended){f.destroy(t,new h)}});this.body=l}onData(t){const{res:n}=this;return n.push(t)}onComplete(t){const{res:n}=this;n.push(null)}onError(t){const{ret:n}=this;this.handler=null;f.destroy(n,t)}}function pipeline(t,n){try{const i=new PipelineHandler(t,n);this.dispatch({...t,body:i.req},i);return i.ret}catch(t){return(new c).destroy(t)}}t.exports=pipeline},4043:(t,n,i)=>{const a=i(4589);const{Readable:A}=i(9927);const{InvalidArgumentError:c,RequestAbortedError:l}=i(8707);const d=i(3440);const{getResolveErrorBodyCallback:h}=i(7655);const{AsyncResource:f}=i(6698);class RequestHandler extends f{constructor(t,n){if(!t||typeof t!=="object"){throw new c("invalid opts")}const{signal:i,method:a,opaque:A,body:h,onInfo:f,responseHeaders:g,throwOnError:p,highWaterMark:m}=t;try{if(typeof n!=="function"){throw new c("invalid callback")}if(m&&(typeof m!=="number"||m<0)){throw new c("invalid highWaterMark")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new c("invalid method")}if(f&&typeof f!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(t){if(d.isStream(h)){d.destroy(h.on("error",d.nop),t)}throw t}this.method=a;this.responseHeaders=g||null;this.opaque=A||null;this.callback=n;this.res=null;this.abort=null;this.body=h;this.trailers={};this.context=null;this.onInfo=f||null;this.throwOnError=p;this.highWaterMark=m;this.signal=i;this.reason=null;this.removeAbortListener=null;if(d.isStream(h)){h.on("error",t=>{this.onError(t)})}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new l}else{this.removeAbortListener=d.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new l;if(this.res){d.destroy(this.res.on("error",d.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}})}}}onConnect(t,n){if(this.reason){t(this.reason);return}a(this.callback);this.abort=t;this.context=n}onHeaders(t,n,i,a){const{callback:c,opaque:l,abort:f,context:g,responseHeaders:p,highWaterMark:m}=this;const E=p==="raw"?d.parseRawHeaders(n):d.parseHeaders(n);if(t<200){if(this.onInfo){this.onInfo({statusCode:t,headers:E})}return}const C=p==="raw"?d.parseHeaders(n):E;const I=C["content-type"];const y=C["content-length"];const B=new A({resume:i,abort:f,contentType:I,contentLength:this.method!=="HEAD"&&y?Number(y):null,highWaterMark:m});if(this.removeAbortListener){B.on("close",this.removeAbortListener)}this.callback=null;this.res=B;if(c!==null){if(this.throwOnError&&t>=400){this.runInAsyncScope(h,null,{callback:c,body:B,contentType:I,statusCode:t,statusMessage:a,headers:E})}else{this.runInAsyncScope(c,null,null,{statusCode:t,headers:E,trailers:this.trailers,opaque:l,body:B,context:g})}}}onData(t){return this.res.push(t)}onComplete(t){d.parseHeaders(t,this.trailers);this.res.push(null)}onError(t){const{res:n,callback:i,body:a,opaque:A}=this;if(i){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(i,null,t,{opaque:A})})}if(n){this.res=null;queueMicrotask(()=>{d.destroy(n,t)})}if(a){this.body=null;d.destroy(a,t)}if(this.removeAbortListener){n?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(t,n){if(n===undefined){return new Promise((n,i)=>{request.call(this,t,(t,a)=>t?i(t):n(a))})}try{this.dispatch(t,new RequestHandler(t,n))}catch(i){if(typeof n!=="function"){throw i}const a=t?.opaque;queueMicrotask(()=>n(i,{opaque:a}))}}t.exports=request;t.exports.RequestHandler=RequestHandler},3560:(t,n,i)=>{const a=i(4589);const{finished:A,PassThrough:c}=i(7075);const{InvalidArgumentError:l,InvalidReturnValueError:d}=i(8707);const h=i(3440);const{getResolveErrorBodyCallback:f}=i(7655);const{AsyncResource:g}=i(6698);const{addSignal:p,removeSignal:m}=i(158);class StreamHandler extends g{constructor(t,n,i){if(!t||typeof t!=="object"){throw new l("invalid opts")}const{signal:a,method:A,opaque:c,body:d,onInfo:f,responseHeaders:g,throwOnError:m}=t;try{if(typeof i!=="function"){throw new l("invalid callback")}if(typeof n!=="function"){throw new l("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(A==="CONNECT"){throw new l("invalid method")}if(f&&typeof f!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_STREAM")}catch(t){if(h.isStream(d)){h.destroy(d.on("error",h.nop),t)}throw t}this.responseHeaders=g||null;this.opaque=c||null;this.factory=n;this.callback=i;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=d;this.onInfo=f||null;this.throwOnError=m||false;if(h.isStream(d)){d.on("error",t=>{this.onError(t)})}p(this,a)}onConnect(t,n){if(this.reason){t(this.reason);return}a(this.callback);this.abort=t;this.context=n}onHeaders(t,n,i,a){const{factory:l,opaque:g,context:p,callback:m,responseHeaders:E}=this;const C=E==="raw"?h.parseRawHeaders(n):h.parseHeaders(n);if(t<200){if(this.onInfo){this.onInfo({statusCode:t,headers:C})}return}this.factory=null;let I;if(this.throwOnError&&t>=400){const i=E==="raw"?h.parseHeaders(n):C;const A=i["content-type"];I=new c;this.callback=null;this.runInAsyncScope(f,null,{callback:m,body:I,contentType:A,statusCode:t,statusMessage:a,headers:C})}else{if(l===null){return}I=this.runInAsyncScope(l,null,{statusCode:t,headers:C,opaque:g,context:p});if(!I||typeof I.write!=="function"||typeof I.end!=="function"||typeof I.on!=="function"){throw new d("expected Writable")}A(I,{readable:false},t=>{const{callback:n,res:i,opaque:a,trailers:A,abort:c}=this;this.res=null;if(t||!i.readable){h.destroy(i,t)}this.callback=null;this.runInAsyncScope(n,null,t||null,{opaque:a,trailers:A});if(t){c()}})}I.on("drain",i);this.res=I;const y=I.writableNeedDrain!==undefined?I.writableNeedDrain:I._writableState?.needDrain;return y!==true}onData(t){const{res:n}=this;return n?n.write(t):true}onComplete(t){const{res:n}=this;m(this);if(!n){return}this.trailers=h.parseHeaders(t);n.end()}onError(t){const{res:n,callback:i,opaque:a,body:A}=this;m(this);this.factory=null;if(n){this.res=null;h.destroy(n,t)}else if(i){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(i,null,t,{opaque:a})})}if(A){this.body=null;h.destroy(A,t)}}}function stream(t,n,i){if(i===undefined){return new Promise((i,a)=>{stream.call(this,t,n,(t,n)=>t?a(t):i(n))})}try{this.dispatch(t,new StreamHandler(t,n,i))}catch(n){if(typeof i!=="function"){throw n}const a=t?.opaque;queueMicrotask(()=>i(n,{opaque:a}))}}t.exports=stream},1882:(t,n,i)=>{const{InvalidArgumentError:a,SocketError:A}=i(8707);const{AsyncResource:c}=i(6698);const l=i(3440);const{addSignal:d,removeSignal:h}=i(158);const f=i(4589);class UpgradeHandler extends c{constructor(t,n){if(!t||typeof t!=="object"){throw new a("invalid opts")}if(typeof n!=="function"){throw new a("invalid callback")}const{signal:i,opaque:A,responseHeaders:c}=t;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=c||null;this.opaque=A||null;this.callback=n;this.abort=null;this.context=null;d(this,i)}onConnect(t,n){if(this.reason){t(this.reason);return}f(this.callback);this.abort=t;this.context=null}onHeaders(){throw new A("bad upgrade",null)}onUpgrade(t,n,i){f(t===101);const{callback:a,opaque:A,context:c}=this;h(this);this.callback=null;const d=this.responseHeaders==="raw"?l.parseRawHeaders(n):l.parseHeaders(n);this.runInAsyncScope(a,null,null,{headers:d,socket:i,opaque:A,context:c})}onError(t){const{callback:n,opaque:i}=this;h(this);if(n){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(n,null,t,{opaque:i})})}}}function upgrade(t,n){if(n===undefined){return new Promise((n,i)=>{upgrade.call(this,t,(t,a)=>t?i(t):n(a))})}try{const i=new UpgradeHandler(t,n);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},i)}catch(i){if(typeof n!=="function"){throw i}const a=t?.opaque;queueMicrotask(()=>n(i,{opaque:a}))}}t.exports=upgrade},6615:(t,n,i)=>{t.exports.request=i(4043);t.exports.stream=i(3560);t.exports.pipeline=i(6862);t.exports.upgrade=i(1882);t.exports.connect=i(2279)},9927:(t,n,i)=>{const a=i(4589);const{Readable:A}=i(7075);const{RequestAbortedError:c,NotSupportedError:l,InvalidArgumentError:d,AbortError:h}=i(8707);const f=i(3440);const{ReadableStreamFrom:g}=i(3440);const p=Symbol("kConsume");const m=Symbol("kReading");const E=Symbol("kBody");const C=Symbol("kAbort");const I=Symbol("kContentType");const y=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends A{constructor({resume:t,abort:n,contentType:i="",contentLength:a,highWaterMark:A=64*1024}){super({autoDestroy:true,read:t,highWaterMark:A});this._readableState.dataEmitted=false;this[C]=n;this[p]=null;this[E]=null;this[I]=i;this[y]=a;this[m]=false}destroy(t){if(!t&&!this._readableState.endEmitted){t=new c}if(t){this[C]()}return super.destroy(t)}_destroy(t,n){if(!this[m]){setImmediate(()=>{n(t)})}else{n(t)}}on(t,...n){if(t==="data"||t==="readable"){this[m]=true}return super.on(t,...n)}addListener(t,...n){return this.on(t,...n)}off(t,...n){const i=super.off(t,...n);if(t==="data"||t==="readable"){this[m]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return i}removeListener(t,...n){return this.off(t,...n)}push(t){if(this[p]&&t!==null){consumePush(this[p],t);return this[m]?super.push(t):true}return super.push(t)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new l}get bodyUsed(){return f.isDisturbed(this)}get body(){if(!this[E]){this[E]=g(this);if(this[p]){this[E].getReader();a(this[E].locked)}}return this[E]}async dump(t){let n=Number.isFinite(t?.limit)?t.limit:128*1024;const i=t?.signal;if(i!=null&&(typeof i!=="object"||!("aborted"in i))){throw new d("signal must be an AbortSignal")}i?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise((t,a)=>{if(this[y]>n){this.destroy(new h)}const onAbort=()=>{this.destroy(i.reason??new h)};i?.addEventListener("abort",onAbort);this.on("close",function(){i?.removeEventListener("abort",onAbort);if(i?.aborted){a(i.reason??new h)}else{t(null)}}).on("error",noop).on("data",function(t){n-=t.length;if(n<=0){this.destroy()}}).resume()})}}function isLocked(t){return t[E]&&t[E].locked===true||t[p]}function isUnusable(t){return f.isDisturbed(t)||isLocked(t)}async function consume(t,n){a(!t[p]);return new Promise((i,a)=>{if(isUnusable(t)){const n=t._readableState;if(n.destroyed&&n.closeEmitted===false){t.on("error",t=>{a(t)}).on("close",()=>{a(new TypeError("unusable"))})}else{a(n.errored??new TypeError("unusable"))}}else{queueMicrotask(()=>{t[p]={type:n,stream:t,resolve:i,reject:a,length:0,body:[]};t.on("error",function(t){consumeFinish(this[p],t)}).on("close",function(){if(this[p].body!==null){consumeFinish(this[p],new c)}});consumeStart(t[p])})}})}function consumeStart(t){if(t.body===null){return}const{_readableState:n}=t.stream;if(n.bufferIndex){const i=n.bufferIndex;const a=n.buffer.length;for(let A=i;A2&&i[0]===239&&i[1]===187&&i[2]===191?3:0;return i.utf8Slice(A,a)}function chunksConcat(t,n){if(t.length===0||n===0){return new Uint8Array(0)}if(t.length===1){return new Uint8Array(t[0])}const i=new Uint8Array(Buffer.allocUnsafeSlow(n).buffer);let a=0;for(let n=0;n{const a=i(4589);const{ResponseStatusCodeError:A}=i(8707);const{chunksDecode:c}=i(9927);const l=128*1024;async function getResolveErrorBodyCallback({callback:t,body:n,contentType:i,statusCode:d,statusMessage:h,headers:f}){a(n);let g=[];let p=0;try{for await(const t of n){g.push(t);p+=t.length;if(p>l){g=[];p=0;break}}}catch{g=[];p=0}const m=`Response status code ${d}${h?`: ${h}`:""}`;if(d===204||!i||!p){queueMicrotask(()=>t(new A(m,d,f)));return}const E=Error.stackTraceLimit;Error.stackTraceLimit=0;let C;try{if(isContentTypeApplicationJson(i)){C=JSON.parse(c(g,p))}else if(isContentTypeText(i)){C=c(g,p)}}catch{}finally{Error.stackTraceLimit=E}queueMicrotask(()=>t(new A(m,d,f,C)))}const isContentTypeApplicationJson=t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n";const isContentTypeText=t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t";t.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(t,n,i)=>{const a=i(7030);const A=i(4589);const c=i(3440);const{InvalidArgumentError:l,ConnectTimeoutError:d}=i(8707);const h=i(6603);function noop(){}let f;let g;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){g=class WeakSessionCache{constructor(t){this._maxCachedSessions=t;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry(t=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:t}=this._sessionCache.keys().next();this._sessionCache.delete(t)}this._sessionCache.set(t,n)}}}function buildConnector({allowH2:t,maxCachedSessions:n,socketPath:d,timeout:h,session:m,...E}){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new l("maxCachedSessions must be a positive integer or zero")}const C={path:d,...E};const I=new g(n==null?100:n);h=h==null?1e4:h;t=t!=null?t:false;return function connect({hostname:n,host:l,protocol:d,port:g,servername:E,localAddress:y,httpSocket:B},Q){let w;if(d==="https:"){if(!f){f=i(1692)}E=E||C.servername||c.getServerName(l)||null;const a=E||n;A(a);const d=m||I.get(a)||null;g=g||443;w=f.connect({highWaterMark:16384,...C,servername:E,session:d,localAddress:y,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:B,port:g,host:n});w.on("session",function(t){I.set(a,t)})}else{A(!B,"httpSocket can only be sent on TLS update");g=g||80;w=a.connect({highWaterMark:64*1024,...C,localAddress:y,port:g,host:n})}if(C.keepAlive==null||C.keepAlive){const t=C.keepAliveInitialDelay===undefined?6e4:C.keepAliveInitialDelay;w.setKeepAlive(true,t)}const S=p(new WeakRef(w),{timeout:h,hostname:n,port:g});w.setNoDelay(true).once(d==="https:"?"secureConnect":"connect",function(){queueMicrotask(S);if(Q){const t=Q;Q=null;t(null,this)}}).on("error",function(t){queueMicrotask(S);if(Q){const n=Q;Q=null;n(t)}});return w}}const p=process.platform==="win32"?(t,n)=>{if(!n.timeout){return noop}let i=null;let a=null;const A=h.setFastTimeout(()=>{i=setImmediate(()=>{a=setImmediate(()=>onConnectTimeout(t.deref(),n))})},n.timeout);return()=>{h.clearFastTimeout(A);clearImmediate(i);clearImmediate(a)}}:(t,n)=>{if(!n.timeout){return noop}let i=null;const a=h.setFastTimeout(()=>{i=setImmediate(()=>{onConnectTimeout(t.deref(),n)})},n.timeout);return()=>{h.clearFastTimeout(a);clearImmediate(i)}};function onConnectTimeout(t,n){if(t==null){return}let i="Connect Timeout Error";if(Array.isArray(t.autoSelectFamilyAttemptedAddresses)){i+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{i+=` (attempted address: ${n.hostname}:${n.port},`}i+=` timeout: ${n.timeout}ms)`;c.destroy(t,new d(i))}t.exports=buildConnector},735:t=>{const n={};const i=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let t=0;t{const a=i(3053);const A=i(7975);const c=A.debuglog("undici");const l=A.debuglog("fetch");const d=A.debuglog("websocket");let h=false;const f={beforeConnect:a.channel("undici:client:beforeConnect"),connected:a.channel("undici:client:connected"),connectError:a.channel("undici:client:connectError"),sendHeaders:a.channel("undici:client:sendHeaders"),create:a.channel("undici:request:create"),bodySent:a.channel("undici:request:bodySent"),headers:a.channel("undici:request:headers"),trailers:a.channel("undici:request:trailers"),error:a.channel("undici:request:error"),open:a.channel("undici:websocket:open"),close:a.channel("undici:websocket:close"),socketError:a.channel("undici:websocket:socket_error"),ping:a.channel("undici:websocket:ping"),pong:a.channel("undici:websocket:pong")};if(c.enabled||l.enabled){const t=l.enabled?l:c;a.channel("undici:client:beforeConnect").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:A,host:c}}=n;t("connecting to %s using %s%s",`${c}${A?`:${A}`:""}`,a,i)});a.channel("undici:client:connected").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:A,host:c}}=n;t("connected to %s using %s%s",`${c}${A?`:${A}`:""}`,a,i)});a.channel("undici:client:connectError").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:A,host:c},error:l}=n;t("connection to %s using %s%s errored - %s",`${c}${A?`:${A}`:""}`,a,i,l.message)});a.channel("undici:client:sendHeaders").subscribe(n=>{const{request:{method:i,path:a,origin:A}}=n;t("sending request to %s %s/%s",i,A,a)});a.channel("undici:request:headers").subscribe(n=>{const{request:{method:i,path:a,origin:A},response:{statusCode:c}}=n;t("received response to %s %s/%s - HTTP %d",i,A,a,c)});a.channel("undici:request:trailers").subscribe(n=>{const{request:{method:i,path:a,origin:A}}=n;t("trailers received from %s %s/%s",i,A,a)});a.channel("undici:request:error").subscribe(n=>{const{request:{method:i,path:a,origin:A},error:c}=n;t("request to %s %s/%s errored - %s",i,A,a,c.message)});h=true}if(d.enabled){if(!h){const t=c.enabled?c:d;a.channel("undici:client:beforeConnect").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:A,host:c}}=n;t("connecting to %s%s using %s%s",c,A?`:${A}`:"",a,i)});a.channel("undici:client:connected").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:A,host:c}}=n;t("connected to %s%s using %s%s",c,A?`:${A}`:"",a,i)});a.channel("undici:client:connectError").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:A,host:c},error:l}=n;t("connection to %s%s using %s%s errored - %s",c,A?`:${A}`:"",a,i,l.message)});a.channel("undici:client:sendHeaders").subscribe(n=>{const{request:{method:i,path:a,origin:A}}=n;t("sending request to %s %s/%s",i,A,a)})}a.channel("undici:websocket:open").subscribe(t=>{const{address:{address:n,port:i}}=t;d("connection opened %s%s",n,i?`:${i}`:"")});a.channel("undici:websocket:close").subscribe(t=>{const{websocket:n,code:i,reason:a}=t;d("closed connection to %s - %s %s",n.url,i,a)});a.channel("undici:websocket:socket_error").subscribe(t=>{d("connection errored - %s",t.message)});a.channel("undici:websocket:ping").subscribe(t=>{d("ping received")});a.channel("undici:websocket:pong").subscribe(t=>{d("pong received")})}t.exports={channels:f}},8707:t=>{const n=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(t){super(t);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](t){return t&&t[n]===true}[n]=true}const i=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(t){super(t);this.name="ConnectTimeoutError";this.message=t||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[i]===true}[i]=true}const a=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(t){super(t);this.name="HeadersTimeoutError";this.message=t||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[a]===true}[a]=true}const A=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(t){super(t);this.name="HeadersOverflowError";this.message=t||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](t){return t&&t[A]===true}[A]=true}const c=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(t){super(t);this.name="BodyTimeoutError";this.message=t||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[c]===true}[c]=true}const l=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(t,n,i,a){super(t);this.name="ResponseStatusCodeError";this.message=t||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=n;this.statusCode=n;this.headers=i}static[Symbol.hasInstance](t){return t&&t[l]===true}[l]=true}const d=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(t){super(t);this.name="InvalidArgumentError";this.message=t||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](t){return t&&t[d]===true}[d]=true}const h=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(t){super(t);this.name="InvalidReturnValueError";this.message=t||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](t){return t&&t[h]===true}[h]=true}const f=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(t){super(t);this.name="AbortError";this.message=t||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](t){return t&&t[f]===true}[f]=true}const g=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(t){super(t);this.name="AbortError";this.message=t||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](t){return t&&t[g]===true}[g]=true}const p=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(t){super(t);this.name="InformationalError";this.message=t||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](t){return t&&t[p]===true}[p]=true}const m=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(t){super(t);this.name="RequestContentLengthMismatchError";this.message=t||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](t){return t&&t[m]===true}[m]=true}const E=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(t){super(t);this.name="ResponseContentLengthMismatchError";this.message=t||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](t){return t&&t[E]===true}[E]=true}const C=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(t){super(t);this.name="ClientDestroyedError";this.message=t||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](t){return t&&t[C]===true}[C]=true}const I=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(t){super(t);this.name="ClientClosedError";this.message=t||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](t){return t&&t[I]===true}[I]=true}const y=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(t,n){super(t);this.name="SocketError";this.message=t||"Socket error";this.code="UND_ERR_SOCKET";this.socket=n}static[Symbol.hasInstance](t){return t&&t[y]===true}[y]=true}const B=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(t){super(t);this.name="NotSupportedError";this.message=t||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](t){return t&&t[B]===true}[B]=true}const Q=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(t){super(t);this.name="MissingUpstreamError";this.message=t||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](t){return t&&t[Q]===true}[Q]=true}const w=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(t,n,i){super(t);this.name="HTTPParserError";this.code=n?`HPE_${n}`:undefined;this.data=i?i.toString():undefined}static[Symbol.hasInstance](t){return t&&t[w]===true}[w]=true}const S=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(t){super(t);this.name="ResponseExceededMaxSizeError";this.message=t||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](t){return t&&t[S]===true}[S]=true}const b=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(t,n,{headers:i,data:a}){super(t);this.name="RequestRetryError";this.message=t||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=n;this.data=a;this.headers=i}static[Symbol.hasInstance](t){return t&&t[b]===true}[b]=true}const R=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(t,n,{headers:i,data:a}){super(t);this.name="ResponseError";this.message=t||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=n;this.data=a;this.headers=i}static[Symbol.hasInstance](t){return t&&t[R]===true}[R]=true}const v=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(t,n,i){super(n,{cause:t,...i??{}});this.name="SecureProxyConnectionError";this.message=n||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=t}static[Symbol.hasInstance](t){return t&&t[v]===true}[v]=true}const k=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(t){super(t);this.name="MessageSizeExceededError";this.message=t||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](t){return t&&t[k]===true}get[k](){return true}}t.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},4655:(t,n,i)=>{const{InvalidArgumentError:a,NotSupportedError:A}=i(8707);const c=i(4589);const{isValidHTTPToken:l,isValidHeaderValue:d,isStream:h,destroy:f,isBuffer:g,isFormDataLike:p,isIterable:m,isBlobLike:E,buildURL:C,validateHandler:I,getServerName:y,normalizedMethodRecords:B}=i(3440);const{channels:Q}=i(2414);const{headerNameLowerCasedRecord:w}=i(735);const S=/[^\u0021-\u00ff]/;const b=Symbol("handler");class Request{constructor(t,{path:n,method:i,body:A,headers:c,query:w,idempotent:R,blocking:v,upgrade:k,headersTimeout:D,bodyTimeout:T,reset:N,throwOnError:M,expectContinue:F,servername:x},U){if(typeof n!=="string"){throw new a("path must be a string")}else if(n[0]!=="/"&&!(n.startsWith("http://")||n.startsWith("https://"))&&i!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(S.test(n)){throw new a("invalid request path")}if(typeof i!=="string"){throw new a("method must be a string")}else if(B[i]===undefined&&!l(i)){throw new a("invalid request method")}if(k&&typeof k!=="string"){throw new a("upgrade must be a string")}if(k&&!d(k)){throw new a("invalid upgrade header")}if(D!=null&&(!Number.isFinite(D)||D<0)){throw new a("invalid headersTimeout")}if(T!=null&&(!Number.isFinite(T)||T<0)){throw new a("invalid bodyTimeout")}if(N!=null&&typeof N!=="boolean"){throw new a("invalid reset")}if(F!=null&&typeof F!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=D;this.bodyTimeout=T;this.throwOnError=M===true;this.method=i;this.abort=null;if(A==null){this.body=null}else if(h(A)){this.body=A;const t=this.body._readableState;if(!t||!t.autoDestroy){this.endHandler=function autoDestroy(){f(this)};this.body.on("end",this.endHandler)}this.errorHandler=t=>{if(this.abort){this.abort(t)}else{this.error=t}};this.body.on("error",this.errorHandler)}else if(g(A)){this.body=A.byteLength?A:null}else if(ArrayBuffer.isView(A)){this.body=A.buffer.byteLength?Buffer.from(A.buffer,A.byteOffset,A.byteLength):null}else if(A instanceof ArrayBuffer){this.body=A.byteLength?Buffer.from(A):null}else if(typeof A==="string"){this.body=A.length?Buffer.from(A):null}else if(p(A)||m(A)||E(A)){this.body=A}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=k||null;this.path=w?C(n,w):n;this.origin=t;this.idempotent=R==null?i==="HEAD"||i==="GET":R;this.blocking=v==null?false:v;this.reset=N==null?null:N;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=F!=null?F:false;if(Array.isArray(c)){if(c.length%2!==0){throw new a("headers array must be even")}for(let t=0;t{t.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},7752:(t,n,i)=>{const{wellknownHeaderNames:a,headerNameLowerCasedRecord:A}=i(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(t,n,i){if(i===undefined||i>=t.length){throw new TypeError("Unreachable")}const a=this.code=t.charCodeAt(i);if(a>127){throw new TypeError("key must be ascii string")}if(t.length!==++i){this.middle=new TstNode(t,n,i)}else{this.value=n}}add(t,n){const i=t.length;if(i===0){throw new TypeError("Unreachable")}let a=0;let A=this;while(true){const c=t.charCodeAt(a);if(c>127){throw new TypeError("key must be ascii string")}if(A.code===c){if(i===++a){A.value=n;break}else if(A.middle!==null){A=A.middle}else{A.middle=new TstNode(t,n,a);break}}else if(A.code=65){A|=32}while(a!==null){if(A===a.code){if(n===++i){return a}a=a.middle;break}a=a.code{const a=i(4589);const{kDestroyed:A,kBodyUsed:c,kListeners:l,kBody:d}=i(6443);const{IncomingMessage:h}=i(7067);const f=i(7075);const g=i(7030);const{Blob:p}=i(4573);const m=i(7975);const{stringify:E}=i(1792);const{EventEmitter:C}=i(8474);const{InvalidArgumentError:I}=i(8707);const{headerNameLowerCasedRecord:y}=i(735);const{tree:B}=i(7752);const[Q,w]=process.versions.node.split(".").map(t=>Number(t));class BodyAsyncIterable{constructor(t){this[d]=t;this[c]=false}async*[Symbol.asyncIterator](){a(!this[c],"disturbed");this[c]=true;yield*this[d]}}function wrapRequestBody(t){if(isStream(t)){if(bodyLength(t)===0){t.on("data",function(){a(false)})}if(typeof t.readableDidRead!=="boolean"){t[c]=false;C.prototype.on.call(t,"data",function(){this[c]=true})}return t}else if(t&&typeof t.pipeTo==="function"){return new BodyAsyncIterable(t)}else if(t&&typeof t!=="string"&&!ArrayBuffer.isView(t)&&isIterable(t)){return new BodyAsyncIterable(t)}else{return t}}function nop(){}function isStream(t){return t&&typeof t==="object"&&typeof t.pipe==="function"&&typeof t.on==="function"}function isBlobLike(t){if(t===null){return false}else if(t instanceof p){return true}else if(typeof t!=="object"){return false}else{const n=t[Symbol.toStringTag];return(n==="Blob"||n==="File")&&("stream"in t&&typeof t.stream==="function"||"arrayBuffer"in t&&typeof t.arrayBuffer==="function")}}function buildURL(t,n){if(t.includes("?")||t.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const i=E(n);if(i){t+="?"+i}return t}function isValidPort(t){const n=parseInt(t,10);return n===Number(t)&&n>=0&&n<=65535}function isHttpOrHttpsPrefixed(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}function parseURL(t){if(typeof t==="string"){t=new URL(t);if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new I("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return t}if(!t||typeof t!=="object"){throw new I("Invalid URL: The URL argument must be a non-null object.")}if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&isValidPort(t.port)===false){throw new I("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(t.path!=null&&typeof t.path!=="string"){throw new I("Invalid URL path: the path must be a string or null/undefined.")}if(t.pathname!=null&&typeof t.pathname!=="string"){throw new I("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(t.hostname!=null&&typeof t.hostname!=="string"){throw new I("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(t.origin!=null&&typeof t.origin!=="string"){throw new I("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new I("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const n=t.port!=null?t.port:t.protocol==="https:"?443:80;let i=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${n}`;let a=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;if(i[i.length-1]==="/"){i=i.slice(0,i.length-1)}if(a&&a[0]!=="/"){a=`/${a}`}return new URL(`${i}${a}`)}if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new I("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return t}function parseOrigin(t){t=parseURL(t);if(t.pathname!=="/"||t.search||t.hash){throw new I("invalid url")}return t}function getHostname(t){if(t[0]==="["){const n=t.indexOf("]");a(n!==-1);return t.substring(1,n)}const n=t.indexOf(":");if(n===-1)return t;return t.substring(0,n)}function getServerName(t){if(!t){return null}a(typeof t==="string");const n=getHostname(t);if(g.isIP(n)){return""}return n}function deepClone(t){return JSON.parse(JSON.stringify(t))}function isAsyncIterable(t){return!!(t!=null&&typeof t[Symbol.asyncIterator]==="function")}function isIterable(t){return!!(t!=null&&(typeof t[Symbol.iterator]==="function"||typeof t[Symbol.asyncIterator]==="function"))}function bodyLength(t){if(t==null){return 0}else if(isStream(t)){const n=t._readableState;return n&&n.objectMode===false&&n.ended===true&&Number.isFinite(n.length)?n.length:null}else if(isBlobLike(t)){return t.size!=null?t.size:null}else if(isBuffer(t)){return t.byteLength}return null}function isDestroyed(t){return t&&!!(t.destroyed||t[A]||f.isDestroyed?.(t))}function destroy(t,n){if(t==null||!isStream(t)||isDestroyed(t)){return}if(typeof t.destroy==="function"){if(Object.getPrototypeOf(t).constructor===h){t.socket=null}t.destroy(n)}else if(n){queueMicrotask(()=>{t.emit("error",n)})}if(t.destroyed!==true){t[A]=true}}const S=/timeout=(\d+)/;function parseKeepAliveTimeout(t){const n=t.toString().match(S);return n?parseInt(n[1],10)*1e3:null}function headerNameToString(t){return typeof t==="string"?y[t]??t.toLowerCase():B.lookup(t)??t.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(t){return B.lookup(t)??t.toString("latin1").toLowerCase()}function parseHeaders(t,n){if(n===undefined)n={};for(let i=0;it.toString("utf8")):A.toString("utf8")}}}if("content-length"in n&&"content-disposition"in n){n["content-disposition"]=Buffer.from(n["content-disposition"]).toString("latin1")}return n}function parseRawHeaders(t){const n=t.length;const i=new Array(n);let a=false;let A=-1;let c;let l;let d=0;for(let n=0;n{t.close();t.byobRequest?.respond(0)})}else{const n=Buffer.isBuffer(a)?a:Buffer.from(a);if(n.byteLength){t.enqueue(new Uint8Array(n))}}return t.desiredSize>0},async cancel(t){await n.return()},type:"bytes"})}function isFormDataLike(t){return t&&typeof t==="object"&&typeof t.append==="function"&&typeof t.delete==="function"&&typeof t.get==="function"&&typeof t.getAll==="function"&&typeof t.has==="function"&&typeof t.set==="function"&&t[Symbol.toStringTag]==="FormData"}function addAbortListener(t,n){if("addEventListener"in t){t.addEventListener("abort",n,{once:true});return()=>t.removeEventListener("abort",n)}t.addListener("abort",n);return()=>t.removeListener("abort",n)}const b=typeof String.prototype.toWellFormed==="function";const R=typeof String.prototype.isWellFormed==="function";function toUSVString(t){return b?`${t}`.toWellFormed():m.toUSVString(t)}function isUSVString(t){return R?`${t}`.isWellFormed():toUSVString(t)===`${t}`}function isTokenCharCode(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return t>=33&&t<=126}}function isValidHTTPToken(t){if(t.length===0){return false}for(let n=0;n{const{InvalidArgumentError:a}=i(8707);const{kClients:A,kRunning:c,kClose:l,kDestroy:d,kDispatch:h,kInterceptors:f}=i(6443);const g=i(1841);const p=i(628);const m=i(3701);const E=i(3440);const C=i(5092);const I=Symbol("onConnect");const y=Symbol("onDisconnect");const B=Symbol("onConnectionError");const Q=Symbol("maxRedirections");const w=Symbol("onDrain");const S=Symbol("factory");const b=Symbol("options");function defaultFactory(t,n){return n&&n.connections===1?new m(t,n):new p(t,n)}class Agent extends g{constructor({factory:t=defaultFactory,maxRedirections:n=0,connect:i,...c}={}){if(typeof t!=="function"){throw new a("factory must be a function.")}if(i!=null&&typeof i!=="function"&&typeof i!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(n)||n<0){throw new a("maxRedirections must be a positive number")}super(c);if(i&&typeof i!=="function"){i={...i}}this[f]=c.interceptors?.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[C({maxRedirections:n})];this[b]={...E.deepClone(c),connect:i};this[b].interceptors=c.interceptors?{...c.interceptors}:undefined;this[Q]=n;this[S]=t;this[A]=new Map;this[w]=(t,n)=>{this.emit("drain",t,[this,...n])};this[I]=(t,n)=>{this.emit("connect",t,[this,...n])};this[y]=(t,n,i)=>{this.emit("disconnect",t,[this,...n],i)};this[B]=(t,n,i)=>{this.emit("connectionError",t,[this,...n],i)}}get[c](){let t=0;for(const n of this[A].values()){t+=n[c]}return t}[h](t,n){let i;if(t.origin&&(typeof t.origin==="string"||t.origin instanceof URL)){i=String(t.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}let c=this[A].get(i);if(!c){c=this[S](t.origin,this[b]).on("drain",this[w]).on("connect",this[I]).on("disconnect",this[y]).on("connectionError",this[B]);this[A].set(i,c)}return c.dispatch(t,n)}async[l](){const t=[];for(const n of this[A].values()){t.push(n.close())}this[A].clear();await Promise.all(t)}async[d](t){const n=[];for(const i of this[A].values()){n.push(i.destroy(t))}this[A].clear();await Promise.all(n)}}t.exports=Agent},837:(t,n,i)=>{const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:A}=i(8707);const{PoolBase:c,kClients:l,kNeedDrain:d,kAddClient:h,kRemoveClient:f,kGetDispatcher:g}=i(2128);const p=i(628);const{kUrl:m,kInterceptors:E}=i(6443);const{parseOrigin:C}=i(3440);const I=Symbol("factory");const y=Symbol("options");const B=Symbol("kGreatestCommonDivisor");const Q=Symbol("kCurrentWeight");const w=Symbol("kIndex");const S=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const R=Symbol("kErrorPenalty");function getGreatestCommonDivisor(t,n){if(t===0)return n;while(n!==0){const i=n;n=t%n;t=i}return t}function defaultFactory(t,n){return new p(t,n)}class BalancedPool extends c{constructor(t=[],{factory:n=defaultFactory,...i}={}){super();this[y]=i;this[w]=-1;this[Q]=0;this[b]=this[y].maxWeightPerServer||100;this[R]=this[y].errorPenalty||15;if(!Array.isArray(t)){t=[t]}if(typeof n!=="function"){throw new A("factory must be a function.")}this[E]=i.interceptors?.BalancedPool&&Array.isArray(i.interceptors.BalancedPool)?i.interceptors.BalancedPool:[];this[I]=n;for(const n of t){this.addUpstream(n)}this._updateBalancedPoolStats()}addUpstream(t){const n=C(t).origin;if(this[l].find(t=>t[m].origin===n&&t.closed!==true&&t.destroyed!==true)){return this}const i=this[I](n,Object.assign({},this[y]));this[h](i);i.on("connect",()=>{i[S]=Math.min(this[b],i[S]+this[R])});i.on("connectionError",()=>{i[S]=Math.max(1,i[S]-this[R]);this._updateBalancedPoolStats()});i.on("disconnect",(...t)=>{const n=t[2];if(n&&n.code==="UND_ERR_SOCKET"){i[S]=Math.max(1,i[S]-this[R]);this._updateBalancedPoolStats()}});for(const t of this[l]){t[S]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let t=0;for(let n=0;nt[m].origin===n&&t.closed!==true&&t.destroyed!==true);if(i){this[f](i)}return this}get upstreams(){return this[l].filter(t=>t.closed!==true&&t.destroyed!==true).map(t=>t[m].origin)}[g](){if(this[l].length===0){throw new a}const t=this[l].find(t=>!t[d]&&t.closed!==true&&t.destroyed!==true);if(!t){return}const n=this[l].map(t=>t[d]).reduce((t,n)=>t&&n,true);if(n){return}let i=0;let A=this[l].findIndex(t=>!t[d]);while(i++this[l][A][S]&&!t[d]){A=this[w]}if(this[w]===0){this[Q]=this[Q]-this[B];if(this[Q]<=0){this[Q]=this[b]}}if(t[S]>=this[Q]&&!t[d]){return t}}this[Q]=this[l][A][S];this[w]=A;return this[l][A]}}t.exports=BalancedPool},637:(t,n,i)=>{const a=i(4589);const A=i(3440);const{channels:c}=i(2414);const l=i(6603);const{RequestContentLengthMismatchError:d,ResponseContentLengthMismatchError:h,RequestAbortedError:f,InvalidArgumentError:g,HeadersTimeoutError:p,HeadersOverflowError:m,SocketError:E,InformationalError:C,BodyTimeoutError:I,HTTPParserError:y,ResponseExceededMaxSizeError:B}=i(8707);const{kUrl:Q,kReset:w,kClient:S,kParser:b,kBlocking:R,kRunning:v,kPending:k,kSize:D,kWriting:T,kQueue:N,kNoRef:M,kKeepAliveDefaultTimeout:F,kHostHeader:x,kPendingIdx:U,kRunningIdx:P,kError:L,kPipelining:O,kSocket:H,kKeepAliveTimeoutValue:$,kMaxHeadersSize:G,kKeepAliveMaxTimeout:V,kKeepAliveTimeoutThreshold:Y,kHeadersTimeout:J,kBodyTimeout:W,kStrictContentLength:q,kMaxRequests:j,kCounter:z,kMaxResponseSize:K,kOnError:Z,kResume:X,kHTTPContext:ee}=i(6443);const te=i(2824);const re=Buffer.alloc(0);const ne=Buffer[Symbol.species];const se=A.addListener;const oe=A.removeAllListeners;const ie=Symbol("kIdleSocketValidation");const ae=Symbol("kIdleSocketValidationTimeout");const Ae=Symbol("kSocketUsed");let ce;async function lazyllhttp(){const t=process.env.JEST_WORKER_ID?i(3870):undefined;let n;try{n=await WebAssembly.compile(i(3434))}catch(a){n=await WebAssembly.compile(t||i(3870))}return await WebAssembly.instantiate(n,{env:{wasm_on_url:(t,n,i)=>0,wasm_on_status:(t,n,i)=>{a(de.ptr===t);const A=n-ge+he.byteOffset;return de.onStatus(new ne(he.buffer,A,i))||0},wasm_on_message_begin:t=>{a(de.ptr===t);return de.onMessageBegin()||0},wasm_on_header_field:(t,n,i)=>{a(de.ptr===t);const A=n-ge+he.byteOffset;return de.onHeaderField(new ne(he.buffer,A,i))||0},wasm_on_header_value:(t,n,i)=>{a(de.ptr===t);const A=n-ge+he.byteOffset;return de.onHeaderValue(new ne(he.buffer,A,i))||0},wasm_on_headers_complete:(t,n,i,A)=>{a(de.ptr===t);return de.onHeadersComplete(n,Boolean(i),Boolean(A))||0},wasm_on_body:(t,n,i)=>{a(de.ptr===t);const A=n-ge+he.byteOffset;return de.onBody(new ne(he.buffer,A,i))||0},wasm_on_message_complete:t=>{a(de.ptr===t);return de.onMessageComplete()||0}}})}let le=null;let ue=lazyllhttp();ue.catch();let de=null;let he=null;let fe=0;let ge=null;const pe=0;const me=1;const Ee=2|me;const Ce=4|me;const Ie=8|pe;class Parser{constructor(t,n,{exports:i}){a(Number.isFinite(t[G])&&t[G]>0);this.llhttp=i;this.ptr=this.llhttp.llhttp_alloc(te.TYPE.RESPONSE);this.client=t;this.socket=n;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=t[G];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=t[K]}setTimeout(t,n){if(t!==this.timeoutValue||n&me^this.timeoutType&me){if(this.timeout){l.clearTimeout(this.timeout);this.timeout=null}if(t){if(n&me){this.timeout=l.setFastTimeout(onParserTimeout,t,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,t,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=t}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=n}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(de==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===Ce);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||re);this.readMore()}readMore(){while(!this.paused&&this.ptr){const t=this.socket.read();if(t===null){break}this.execute(t)}}execute(t){a(this.ptr!=null);a(de==null);a(!this.paused);const{socket:n,llhttp:i}=this;if(t.length>fe){if(ge){i.free(ge)}fe=Math.ceil(t.length/4096)*4096;ge=i.malloc(fe)}new Uint8Array(i.memory.buffer,ge,fe).set(t);try{let a;try{he=t;de=this;a=i.llhttp_execute(this.ptr,ge,t.length)}catch(t){throw t}finally{de=null;he=null}const A=i.llhttp_get_error_pos(this.ptr)-ge;if(a!==te.ERROR.OK){const i=t.subarray(A);if(a===te.ERROR.PAUSED_UPGRADE){this.onUpgrade(i)}else if(a===te.ERROR.PAUSED){this.paused=true;n.unshift(i)}else{throw this.createError(a,i)}}}catch(t){A.destroy(n,t)}}finish(){a(de===null);a(this.ptr!=null);a(!this.paused);const{llhttp:t}=this;let n;try{de=this;n=t.llhttp_finish(this.ptr)}finally{de=null}if(n===te.ERROR.OK){return null}if(n===te.ERROR.PAUSED||n===te.ERROR.PAUSED_UPGRADE){this.paused=true;return null}return this.createError(n,re)}createError(t,n){const{llhttp:i,contentLength:a,bytesRead:A}=this;if(a&&A!==parseInt(a,10)){return new h}const c=i.llhttp_get_error_reason(this.ptr);let l="";if(c){const t=new Uint8Array(i.memory.buffer,c).indexOf(0);l="Response does not match the HTTP/1.1 protocol ("+Buffer.from(i.memory.buffer,c,t).toString()+")"}return new y(l,te.ERROR[t],n)}destroy(){a(this.ptr!=null);a(de==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&l.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(t){this.statusText=t.toString()}onMessageBegin(){const{socket:t,client:n}=this;if(t.destroyed){return-1}if(n[v]===0){A.destroy(t,new E("bad response",A.getSocketInfo(t)));return-1}const i=n[N][n[P]];if(!i){return-1}i.onResponseStarted()}onHeaderField(t){const n=this.headers.length;if((n&1)===0){this.headers.push(t)}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],t])}this.trackHeader(t.length)}onHeaderValue(t){let n=this.headers.length;if((n&1)===1){this.headers.push(t);n+=1}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],t])}const i=this.headers[n-2];if(i.length===10){const n=A.bufferToLowerCasedHeaderName(i);if(n==="keep-alive"){this.keepAlive+=t.toString()}else if(n==="connection"){this.connection+=t.toString()}}else if(i.length===14&&A.bufferToLowerCasedHeaderName(i)==="content-length"){this.contentLength+=t.toString()}this.trackHeader(t.length)}trackHeader(t){this.headersSize+=t;if(this.headersSize>=this.headersMaxSize){A.destroy(this.socket,new m)}}onUpgrade(t){const{upgrade:n,client:i,socket:c,headers:l,statusCode:d}=this;a(n);a(i[H]===c);a(!c.destroyed);a(!this.paused);a((l.length&1)===0);const h=i[N][i[P]];a(h);a(h.upgrade||h.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;c.unshift(t);c[b].destroy();c[b]=null;c[S]=null;c[L]=null;oe(c);i[H]=null;i[ee]=null;i[N][i[P]++]=null;i.emit("disconnect",i[Q],[i],new C("upgrade"));try{h.onUpgrade(d,l,c)}catch(t){A.destroy(c,t)}i[X]()}onHeadersComplete(t,n,i){const{client:c,socket:l,headers:d,statusText:h}=this;if(l.destroyed){return-1}if(c[v]===0){A.destroy(l,new E("bad response",A.getSocketInfo(l)));return-1}const f=c[N][c[P]];if(!f){return-1}a(!this.upgrade);a(this.statusCode<200);if(t===100){A.destroy(l,new E("bad response",A.getSocketInfo(l)));return-1}if(n&&!f.upgrade){A.destroy(l,new E("bad upgrade",A.getSocketInfo(l)));return-1}a(this.timeoutType===Ee);this.statusCode=t;this.shouldKeepAlive=i||f.method==="HEAD"&&!l[w]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const t=f.bodyTimeout!=null?f.bodyTimeout:c[W];this.setTimeout(t,Ce)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(f.method==="CONNECT"){a(c[v]===1);this.upgrade=true;return 2}if(n){a(c[v]===1);this.upgrade=true;return 2}a((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&c[O]){const t=this.keepAlive?A.parseKeepAliveTimeout(this.keepAlive):null;if(t!=null){const n=Math.min(t-c[Y],c[V]);if(n<=0){l[w]=true}else{c[$]=n}}else{c[$]=c[F]}}else{l[w]=true}const g=f.onHeaders(t,d,this.resume,h)===false;if(f.aborted){return-1}if(f.method==="HEAD"){return 1}if(t<200){return 1}if(l[R]){l[R]=false;c[X]()}return g?te.ERROR.PAUSED:0}onBody(t){const{client:n,socket:i,statusCode:c,maxResponseSize:l}=this;if(i.destroyed){return-1}const d=n[N][n[P]];a(d);a(this.timeoutType===Ce);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(c>=200);if(l>-1&&this.bytesRead+t.length>l){A.destroy(i,new B);return-1}this.bytesRead+=t.length;if(d.onData(t)===false){return te.ERROR.PAUSED}}onMessageComplete(){const{client:t,socket:n,statusCode:i,upgrade:c,headers:l,contentLength:d,bytesRead:f,shouldKeepAlive:g}=this;if(n.destroyed&&(!i||g)){return-1}if(c){return}a(i>=100);a((this.headers.length&1)===0);const p=t[N][t[P]];a(p);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(i<200){return}if(p.method!=="HEAD"&&d&&f!==parseInt(d,10)){A.destroy(n,new h);return-1}p.onComplete(l);t[N][t[P]++]=null;n[Ae]=true;if(n[T]){a(t[v]===0);A.destroy(n,new C("reset"));return te.ERROR.PAUSED}else if(!g){A.destroy(n,new C("reset"));return te.ERROR.PAUSED}else if(n[w]&&t[v]===0){A.destroy(n,new C("reset"));return te.ERROR.PAUSED}else if(t[O]==null||t[O]===1){setImmediate(()=>t[X]())}else{t[X]()}}}function onParserTimeout(t){const{socket:n,timeoutType:i,client:c,paused:l}=t.deref();if(i===Ee){if(!n[T]||n.writableNeedDrain||c[v]>1){a(!l,"cannot be paused while waiting for headers");A.destroy(n,new p)}}else if(i===Ce){if(!l){A.destroy(n,new I)}}else if(i===Ie){a(c[v]===0&&c[$]);A.destroy(n,new C("socket idle timeout"))}}async function connectH1(t,n){t[H]=n;if(!le){le=await ue;ue=null}n[M]=false;n[T]=false;n[w]=false;n[R]=false;n[ie]=0;n[ae]=null;n[Ae]=false;n[b]=new Parser(t,n,le);se(n,"error",function(t){a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const n=this[b];if(t.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){const t=n.finish();if(t){this[L]=t;this[S][Z](t)}return}this[L]=t;this[S][Z](t)});se(n,"readable",function(){const t=this[b];if(t){t.readMore()}});se(n,"end",function(){const t=this[b];if(t.statusCode&&!t.shouldKeepAlive){const n=t.finish();if(n){A.destroy(this,n)}return}A.destroy(this,new E("other side closed",A.getSocketInfo(this)))});se(n,"close",function(){const t=this[S];const n=this[b];clearIdleSocketValidation(this);if(n){if(!this[L]&&n.statusCode&&!n.shouldKeepAlive){this[L]=n.finish()||this[L]}this[b].destroy();this[b]=null}const i=this[L]||new E("closed",A.getSocketInfo(this));t[H]=null;t[ee]=null;if(t.destroyed){a(t[k]===0);const n=t[N].splice(t[P]);for(let a=0;a0&&i.code!=="UND_ERR_INFO"){const n=t[N][t[P]];t[N][t[P]++]=null;A.errorRequest(t,n,i)}t[U]=t[P];a(t[v]===0);t.emit("disconnect",t[Q],[t],i);t[X]()});let i=false;n.on("close",()=>{i=true});return{version:"h1",defaultPipelining:1,write(...n){return writeH1(t,...n)},resume(){resumeH1(t)},destroy(t,a){if(i){queueMicrotask(a)}else{n.destroy(t).on("close",a)}},get destroyed(){return n.destroyed},busy(i){if(n[T]||n[w]||n[R]||n[ie]===1){return true}if(i){if(t[v]>0&&!i.idempotent){return true}if(t[v]>0&&(i.upgrade||i.method==="CONNECT")){return true}if(t[v]>0&&A.bodyLength(i.body)!==0&&(A.isStream(i.body)||A.isAsyncIterable(i.body)||A.isFormDataLike(i.body))){return true}}return false}}}function clearIdleSocketValidation(t){if(t[ae]){clearTimeout(t[ae]);t[ae]=null}t[ie]=0}function scheduleIdleSocketValidation(t,n){n[ie]=1;n[ae]=setTimeout(()=>{n[ae]=null;n[ie]=2;if(t[H]===n&&!n.destroyed){t[X]()}},0);n[ae].unref?.()}function resumeH1(t){const n=t[H];if(n&&!n.destroyed){if(t[D]===0){if(!n[M]&&n.unref){n.unref();n[M]=true}}else if(n[M]&&n.ref){n.ref();n[M]=false}if(t[v]===0&&t[k]>0&&n[Ae]){if(n[ie]===0){scheduleIdleSocketValidation(t,n);n[b].readMore();if(n.destroyed){return}return}if(n[ie]===1){n[b].readMore();if(n.destroyed){return}return}}if(t[v]===0){n[b].readMore();if(n.destroyed){return}}if(t[D]===0){if(n[b].timeoutType!==Ie){n[b].setTimeout(t[$],Ie)}}else if(t[v]>0&&n[b].statusCode<200){if(n[b].timeoutType!==Ee){const i=t[N][t[P]];const a=i.headersTimeout!=null?i.headersTimeout:t[J];n[b].setTimeout(a,Ee)}}}}function shouldSendContentLength(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function writeH1(t,n){const{method:l,path:h,host:p,upgrade:m,blocking:E,reset:I}=n;let{body:y,headers:B,contentLength:Q}=n;const S=l==="PUT"||l==="POST"||l==="PATCH"||l==="QUERY"||l==="PROPFIND"||l==="PROPPATCH";if(A.isFormDataLike(y)){if(!ce){ce=i(4492).extractBody}const[t,a]=ce(y);if(n.contentType==null){B.push("content-type",a)}y=t.stream;Q=t.length}else if(A.isBlobLike(y)&&n.contentType==null){const i=y.type;if(i){const a=`${i}`;if(!A.isValidHeaderValue(a)){A.errorRequest(t,n,new g("invalid content-type header"));return false}B.push("content-type",a)}}if(y&&typeof y.read==="function"){y.read(0)}const b=A.bodyLength(y);Q=b??Q;if(Q===null){Q=n.contentLength}if(Q===0&&!S){Q=null}if(shouldSendContentLength(l)&&Q>0&&n.contentLength!==null&&n.contentLength!==Q){if(t[q]){A.errorRequest(t,n,new d);return false}process.emitWarning(new d)}const v=t[H];clearIdleSocketValidation(v);const abort=i=>{if(n.aborted||n.completed){return}A.errorRequest(t,n,i||new f);A.destroy(y);A.destroy(v,new C("aborted"))};try{n.onConnect(abort)}catch(i){A.errorRequest(t,n,i)}if(n.aborted){return false}if(l==="HEAD"){v[w]=true}if(m||l==="CONNECT"){v[w]=true}if(I!=null){v[w]=I}if(t[j]&&v[z]++>=t[j]){v[w]=true}if(E){v[R]=true}let k=`${l} ${h} HTTP/1.1\r\n`;if(typeof p==="string"){k+=`host: ${p}\r\n`}else{k+=t[x]}if(m){k+=`connection: upgrade\r\nupgrade: ${m}\r\n`}else if(t[O]&&!v[w]){k+="connection: keep-alive\r\n"}else{k+="connection: close\r\n"}if(Array.isArray(B)){for(let t=0;t{n.removeListener("error",onFinished)});if(!p){const t=new f;queueMicrotask(()=>onFinished(t))}};const onFinished=function(t){if(p){return}p=true;a(l.destroyed||l[T]&&i[v]<=1);l.off("drain",onDrain).off("error",onFinished);n.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!t){try{m.end()}catch(n){t=n}}m.destroy(t);if(t&&(t.code!=="UND_ERR_INFO"||t.message!=="reset")){A.destroy(n,t)}else{A.destroy(n)}};n.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(n.resume){n.resume()}l.on("drain",onDrain).on("error",onFinished);if(n.errorEmitted??n.errored){setImmediate(()=>onFinished(n.errored))}else if(n.endEmitted??n.readableEnded){setImmediate(()=>onFinished(null))}if(n.closeEmitted??n.closed){setImmediate(onClose)}}function writeBuffer(t,n,i,c,l,d,h,f){try{if(!n){if(d===0){l.write(`${h}content-length: 0\r\n\r\n`,"latin1")}else{a(d===null,"no body must not have content length");l.write(`${h}\r\n`,"latin1")}}else if(A.isBuffer(n)){a(d===n.byteLength,"buffer body must have content length");l.cork();l.write(`${h}content-length: ${d}\r\n\r\n`,"latin1");l.write(n);l.uncork();c.onBodySent(n);if(!f&&c.reset!==false){l[w]=true}}c.onRequestSent();i[X]()}catch(n){t(n)}}async function writeBlob(t,n,i,A,c,l,h,f){a(l===n.size,"blob body must have content length");try{if(l!=null&&l!==n.size){throw new d}const t=Buffer.from(await n.arrayBuffer());c.cork();c.write(`${h}content-length: ${l}\r\n\r\n`,"latin1");c.write(t);c.uncork();A.onBodySent(t);A.onRequestSent();if(!f&&A.reset!==false){c[w]=true}i[X]()}catch(n){t(n)}}async function writeIterable(t,n,i,A,c,l,d,h){a(l!==0||i[v]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const t=f;f=null;t()}}const waitForDrain=()=>new Promise((t,n)=>{a(f===null);if(c[L]){n(c[L])}else{f=t}});c.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({abort:t,socket:c,request:A,contentLength:l,client:i,expectsPayload:h,header:d});try{for await(const t of n){if(c[L]){throw c[L]}if(!g.write(t)){await waitForDrain()}}g.end()}catch(t){g.destroy(t)}finally{c.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:t,socket:n,request:i,contentLength:a,client:A,expectsPayload:c,header:l}){this.socket=n;this.request=i;this.contentLength=a;this.client=A;this.bytesWritten=0;this.expectsPayload=c;this.header=l;this.abort=t;n[T]=true}write(t){const{socket:n,request:i,contentLength:a,client:A,bytesWritten:c,expectsPayload:l,header:h}=this;if(n[L]){throw n[L]}if(n.destroyed){return false}const f=Buffer.byteLength(t);if(!f){return true}if(a!==null&&c+f>a){if(A[q]){throw new d}process.emitWarning(new d)}n.cork();if(c===0){if(!l&&i.reset!==false){n[w]=true}if(a===null){n.write(`${h}transfer-encoding: chunked\r\n`,"latin1")}else{n.write(`${h}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){n.write(`\r\n${f.toString(16)}\r\n`,"latin1")}this.bytesWritten+=f;const g=n.write(t);n.uncork();i.onBodySent(t);if(!g){if(n[b].timeout&&n[b].timeoutType===Ee){if(n[b].timeout.refresh){n[b].timeout.refresh()}}}return g}end(){const{socket:t,contentLength:n,client:i,bytesWritten:a,expectsPayload:A,header:c,request:l}=this;l.onRequestSent();t[T]=false;if(t[L]){throw t[L]}if(t.destroyed){return}if(a===0){if(A){t.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{t.write(`${c}\r\n`,"latin1")}}else if(n===null){t.write("\r\n0\r\n\r\n","latin1")}if(n!==null&&a!==n){if(i[q]){throw new d}else{process.emitWarning(new d)}}if(t[b].timeout&&t[b].timeoutType===Ee){if(t[b].timeout.refresh){t[b].timeout.refresh()}}i[X]()}destroy(t){const{socket:n,client:i,abort:A}=this;n[T]=false;if(t){a(i[v]<=1,"pipeline should only contain this request");A(t)}}}t.exports=connectH1},8788:(t,n,i)=>{const a=i(4589);const{pipeline:A}=i(7075);const c=i(3440);const{RequestContentLengthMismatchError:l,RequestAbortedError:d,SocketError:h,InformationalError:f}=i(8707);const{kUrl:g,kReset:p,kClient:m,kRunning:E,kPending:C,kQueue:I,kPendingIdx:y,kRunningIdx:B,kError:Q,kSocket:w,kStrictContentLength:S,kOnError:b,kMaxConcurrentStreams:R,kHTTP2Session:v,kResume:k,kSize:D,kHTTPContext:T}=i(6443);const N=Symbol("open streams");let M;let F=false;let x;try{x=i(2467)}catch{x={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:U,HTTP2_HEADER_METHOD:P,HTTP2_HEADER_PATH:L,HTTP2_HEADER_SCHEME:O,HTTP2_HEADER_CONTENT_LENGTH:H,HTTP2_HEADER_EXPECT:$,HTTP2_HEADER_STATUS:G}}=x;function parseH2Headers(t){const n=[];for(const[i,a]of Object.entries(t)){if(Array.isArray(a)){for(const t of a){n.push(Buffer.from(i),Buffer.from(t))}}else{n.push(Buffer.from(i),Buffer.from(a))}}return n}async function connectH2(t,n){t[w]=n;if(!F){F=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const i=x.connect(t[g],{createConnection:()=>n,peerMaxConcurrentStreams:t[R]});i[N]=0;i[m]=t;i[w]=n;c.addListener(i,"error",onHttp2SessionError);c.addListener(i,"frameError",onHttp2FrameError);c.addListener(i,"end",onHttp2SessionEnd);c.addListener(i,"goaway",onHTTP2GoAway);c.addListener(i,"close",function(){const{[m]:t}=this;const{[w]:n}=t;const i=this[w][Q]||this[Q]||new h("closed",c.getSocketInfo(n));t[v]=null;if(t.destroyed){a(t[C]===0);const n=t[I].splice(t[B]);for(let a=0;a{A=true});return{version:"h2",defaultPipelining:Infinity,write(...n){return writeH2(t,...n)},resume(){resumeH2(t)},destroy(t,i){if(A){queueMicrotask(i)}else{n.destroy(t).on("close",i)}},get destroyed(){return n.destroyed},busy(){return false}}}function resumeH2(t){const n=t[w];if(n?.destroyed===false){if(t[D]===0&&t[R]===0){n.unref();t[v].unref()}else{n.ref();t[v].ref()}}}function onHttp2SessionError(t){a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[w][Q]=t;this[m][b](t)}function onHttp2FrameError(t,n,i){if(i===0){const i=new f(`HTTP/2: "frameError" received - type ${t}, code ${n}`);this[w][Q]=i;this[m][b](i)}}function onHttp2SessionEnd(){const t=new h("other side closed",c.getSocketInfo(this[w]));this.destroy(t);c.destroy(this[w],t)}function onHTTP2GoAway(t){const n=this[Q]||new h(`HTTP/2: "GOAWAY" frame received with code ${t}`,c.getSocketInfo(this));const i=this[m];i[w]=null;i[T]=null;if(this[v]!=null){this[v].destroy(n);this[v]=null}c.destroy(this[w],n);if(i[B]{if(n.aborted||n.completed){return}i=i||new d;c.errorRequest(t,n,i);if(T!=null){c.destroy(T,i)}c.destroy(R,i);t[I][t[B]++]=null;t[k]()};try{n.onConnect(abort)}catch(i){c.errorRequest(t,n,i)}if(n.aborted){return false}if(h==="CONNECT"){A.ref();T=A.request(D,{endStream:false,signal:Q});if(T.id&&!T.pending){n.onUpgrade(null,null,T);++A[N];t[I][t[B]++]=null}else{T.once("ready",()=>{n.onUpgrade(null,null,T);++A[N];t[I][t[B]++]=null})}T.once("close",()=>{A[N]-=1;if(A[N]===0)A.unref()});return true}D[L]=p;D[O]="https";const V=h==="PUT"||h==="POST"||h==="PATCH";if(R&&typeof R.read==="function"){R.read(0)}let Y=c.bodyLength(R);if(c.isFormDataLike(R)){M??=i(4492).extractBody;const[t,n]=M(R);D["content-type"]=n;R=t.stream;Y=t.length}if(Y==null){Y=n.contentLength}if(Y===0||!V){Y=null}if(shouldSendContentLength(h)&&Y>0&&n.contentLength!=null&&n.contentLength!==Y){if(t[S]){c.errorRequest(t,n,new l);return false}process.emitWarning(new l)}if(Y!=null){a(R,"no body must not have content length");D[H]=`${Y}`}A.ref();const J=h==="GET"||h==="HEAD"||R===null;if(C){D[$]="100-continue";T=A.request(D,{endStream:J,signal:Q});T.once("continue",writeBodyH2)}else{T=A.request(D,{endStream:J,signal:Q});writeBodyH2()}++A[N];T.once("response",i=>{const{[G]:a,...A}=i;n.onResponseStarted();if(n.aborted){const i=new d;c.errorRequest(t,n,i);c.destroy(T,i);return}if(n.onHeaders(Number(a),parseH2Headers(A),T.resume.bind(T),"")===false){T.pause()}T.on("data",t=>{if(n.onData(t)===false){T.pause()}})});T.once("end",()=>{if(T.state?.state==null||T.state.state<6){n.onComplete([])}if(A[N]===0){A.unref()}abort(new f("HTTP/2: stream half-closed (remote)"));t[I][t[B]++]=null;t[y]=t[B];t[k]()});T.once("close",()=>{A[N]-=1;if(A[N]===0){A.unref()}});T.once("error",function(t){abort(t)});T.once("frameError",(t,n)=>{abort(new f(`HTTP/2: "frameError" received - type ${t}, code ${n}`))});return true;function writeBodyH2(){if(!R||Y===0){writeBuffer(abort,T,null,t,n,t[w],Y,V)}else if(c.isBuffer(R)){writeBuffer(abort,T,R,t,n,t[w],Y,V)}else if(c.isBlobLike(R)){if(typeof R.stream==="function"){writeIterable(abort,T,R.stream(),t,n,t[w],Y,V)}else{writeBlob(abort,T,R,t,n,t[w],Y,V)}}else if(c.isStream(R)){writeStream(abort,t[w],V,T,R,t,n,Y)}else if(c.isIterable(R)){writeIterable(abort,T,R,t,n,t[w],Y,V)}else{a(false)}}}function writeBuffer(t,n,i,A,l,d,h,f){try{if(i!=null&&c.isBuffer(i)){a(h===i.byteLength,"buffer body must have content length");n.cork();n.write(i);n.uncork();n.end();l.onBodySent(i)}if(!f){d[p]=true}l.onRequestSent();A[k]()}catch(n){t(n)}}function writeStream(t,n,i,l,d,h,f,g){a(g!==0||h[E]===0,"stream body cannot be pipelined");const m=A(d,l,a=>{if(a){c.destroy(m,a);t(a)}else{c.removeAllListeners(m);f.onRequestSent();if(!i){n[p]=true}h[k]()}});c.addListener(m,"data",onPipeData);function onPipeData(t){f.onBodySent(t)}}async function writeBlob(t,n,i,A,c,d,h,f){a(h===i.size,"blob body must have content length");try{if(h!=null&&h!==i.size){throw new l}const t=Buffer.from(await i.arrayBuffer());n.cork();n.write(t);n.uncork();n.end();c.onBodySent(t);c.onRequestSent();if(!f){d[p]=true}A[k]()}catch(n){t(n)}}async function writeIterable(t,n,i,A,c,l,d,h){a(d!==0||A[E]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const t=f;f=null;t()}}const waitForDrain=()=>new Promise((t,n)=>{a(f===null);if(l[Q]){n(l[Q])}else{f=t}});n.on("close",onDrain).on("drain",onDrain);try{for await(const t of i){if(l[Q]){throw l[Q]}const i=n.write(t);c.onBodySent(t);if(!i){await waitForDrain()}}n.end();c.onRequestSent();if(!h){l[p]=true}A[k]()}catch(n){t(n)}finally{n.off("close",onDrain).off("drain",onDrain)}}t.exports=connectH2},3701:(t,n,i)=>{const a=i(4589);const A=i(7030);const c=i(7067);const l=i(3440);const{channels:d}=i(2414);const h=i(4655);const f=i(1841);const{InvalidArgumentError:g,InformationalError:p,ClientDestroyedError:m}=i(8707);const E=i(9136);const{kUrl:C,kServerName:I,kClient:y,kBusy:B,kConnect:Q,kResuming:w,kRunning:S,kPending:b,kSize:R,kQueue:v,kConnected:k,kConnecting:D,kNeedDrain:T,kKeepAliveDefaultTimeout:N,kHostHeader:M,kPendingIdx:F,kRunningIdx:x,kError:U,kPipelining:P,kKeepAliveTimeoutValue:L,kMaxHeadersSize:O,kKeepAliveMaxTimeout:H,kKeepAliveTimeoutThreshold:$,kHeadersTimeout:G,kBodyTimeout:V,kStrictContentLength:Y,kConnector:J,kMaxRedirections:W,kMaxRequests:q,kCounter:j,kClose:z,kDestroy:K,kDispatch:Z,kInterceptors:X,kLocalAddress:ee,kMaxResponseSize:te,kOnError:re,kHTTPContext:ne,kMaxConcurrentStreams:se,kResume:oe}=i(6443);const ie=i(637);const ae=i(8788);let Ae=false;const ce=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(t){return t[P]??t[ne]?.defaultPipelining??1}class Client extends f{constructor(t,{interceptors:n,maxHeaderSize:i,headersTimeout:a,socketTimeout:d,requestTimeout:h,connectTimeout:f,bodyTimeout:p,idleTimeout:m,keepAlive:y,keepAliveTimeout:B,maxKeepAliveTimeout:Q,keepAliveMaxTimeout:S,keepAliveTimeoutThreshold:b,socketPath:R,pipelining:k,tls:D,strictContentLength:U,maxCachedSessions:j,maxRedirections:z,connect:K,maxRequestsPerClient:Z,localAddress:ie,maxResponseSize:ae,autoSelectFamily:ue,autoSelectFamilyAttemptTimeout:de,maxConcurrentStreams:he,allowH2:fe,webSocket:ge}={}){super({webSocket:ge});if(y!==undefined){throw new g("unsupported keepAlive, use pipelining=0 instead")}if(d!==undefined){throw new g("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(h!==undefined){throw new g("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(m!==undefined){throw new g("unsupported idleTimeout, use keepAliveTimeout instead")}if(Q!==undefined){throw new g("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(i!=null&&!Number.isFinite(i)){throw new g("invalid maxHeaderSize")}if(R!=null&&typeof R!=="string"){throw new g("invalid socketPath")}if(f!=null&&(!Number.isFinite(f)||f<0)){throw new g("invalid connectTimeout")}if(B!=null&&(!Number.isFinite(B)||B<=0)){throw new g("invalid keepAliveTimeout")}if(S!=null&&(!Number.isFinite(S)||S<=0)){throw new g("invalid keepAliveMaxTimeout")}if(b!=null&&!Number.isFinite(b)){throw new g("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new g("headersTimeout must be a positive integer or zero")}if(p!=null&&(!Number.isInteger(p)||p<0)){throw new g("bodyTimeout must be a positive integer or zero")}if(K!=null&&typeof K!=="function"&&typeof K!=="object"){throw new g("connect must be a function or an object")}if(z!=null&&(!Number.isInteger(z)||z<0)){throw new g("maxRedirections must be a positive number")}if(Z!=null&&(!Number.isInteger(Z)||Z<0)){throw new g("maxRequestsPerClient must be a positive number")}if(ie!=null&&(typeof ie!=="string"||A.isIP(ie)===0)){throw new g("localAddress must be valid string IP address")}if(ae!=null&&(!Number.isInteger(ae)||ae<-1)){throw new g("maxResponseSize must be a positive number")}if(de!=null&&(!Number.isInteger(de)||de<-1)){throw new g("autoSelectFamilyAttemptTimeout must be a positive number")}if(fe!=null&&typeof fe!=="boolean"){throw new g("allowH2 must be a valid boolean value")}if(he!=null&&(typeof he!=="number"||he<1)){throw new g("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof K!=="function"){K=E({...D,maxCachedSessions:j,allowH2:fe,socketPath:R,timeout:f,...ue?{autoSelectFamily:ue,autoSelectFamilyAttemptTimeout:de}:undefined,...K})}if(n?.Client&&Array.isArray(n.Client)){this[X]=n.Client;if(!Ae){Ae=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[X]=[le({maxRedirections:z})]}this[C]=l.parseOrigin(t);this[J]=K;this[P]=k!=null?k:1;this[O]=i||c.maxHeaderSize;this[N]=B==null?4e3:B;this[H]=S==null?6e5:S;this[$]=b==null?2e3:b;this[L]=this[N];this[I]=null;this[ee]=ie!=null?ie:null;this[w]=0;this[T]=0;this[M]=`host: ${this[C].hostname}${this[C].port?`:${this[C].port}`:""}\r\n`;this[V]=p!=null?p:3e5;this[G]=a!=null?a:3e5;this[Y]=U==null?true:U;this[W]=z;this[q]=Z;this[ce]=null;this[te]=ae>-1?ae:-1;this[se]=he!=null?he:100;this[ne]=null;this[v]=[];this[x]=0;this[F]=0;this[oe]=t=>resume(this,t);this[re]=t=>onError(this,t)}get pipelining(){return this[P]}set pipelining(t){this[P]=t;this[oe](true)}get[b](){return this[v].length-this[F]}get[S](){return this[F]-this[x]}get[R](){return this[v].length-this[x]}get[k](){return!!this[ne]&&!this[D]&&!this[ne].destroyed}get[B](){return Boolean(this[ne]?.busy(null)||this[R]>=(getPipelining(this)||1)||this[b]>0)}[Q](t){connect(this);this.once("connect",t)}[Z](t,n){const i=t.origin||this[C].origin;const a=new h(i,t,n);this[v].push(a);if(this[w]){}else if(l.bodyLength(a.body)==null&&l.isIterable(a.body)){this[w]=1;queueMicrotask(()=>resume(this))}else{this[oe](true)}if(this[w]&&this[T]!==2&&this[B]){this[T]=2}return this[T]<2}async[z](){return new Promise(t=>{if(this[R]){this[ce]=t}else{t(null)}})}async[K](t){return new Promise(n=>{const i=this[v].splice(this[F]);for(let n=0;n{if(this[ce]){this[ce]();this[ce]=null}n(null)};if(this[ne]){this[ne].destroy(t,callback);this[ne]=null}else{queueMicrotask(callback)}this[oe]()})}}const le=i(5092);function onError(t,n){if(t[S]===0&&n.code!=="UND_ERR_INFO"&&n.code!=="UND_ERR_SOCKET"){a(t[F]===t[x]);const i=t[v].splice(t[x]);for(let a=0;a{t[J]({host:n,hostname:i,protocol:c,port:h,servername:t[I],localAddress:t[ee]},(t,n)=>{if(t){A(t)}else{a(n)}})});if(t.destroyed){l.destroy(A.on("error",noop),new m);return}a(A);try{t[ne]=A.alpnProtocol==="h2"?await ae(t,A):await ie(t,A)}catch(t){A.destroy().on("error",noop);throw t}t[D]=false;A[j]=0;A[q]=t[q];A[y]=t;A[U]=null;if(d.connected.hasSubscribers){d.connected.publish({connectParams:{host:n,hostname:i,protocol:c,port:h,version:t[ne]?.version,servername:t[I],localAddress:t[ee]},connector:t[J],socket:A})}t.emit("connect",t[C],[t])}catch(A){if(t.destroyed){return}t[D]=false;if(d.connectError.hasSubscribers){d.connectError.publish({connectParams:{host:n,hostname:i,protocol:c,port:h,version:t[ne]?.version,servername:t[I],localAddress:t[ee]},connector:t[J],error:A})}if(A.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(t[S]===0);while(t[b]>0&&t[v][t[F]].servername===t[I]){const n=t[v][t[F]++];l.errorRequest(t,n,A)}}else{onError(t,A)}t.emit("connectionError",t[C],[t],A)}t[oe]()}function emitDrain(t){t[T]=0;t.emit("drain",t[C],[t])}function resume(t,n){if(t[w]===2){return}t[w]=2;_resume(t,n);t[w]=0;if(t[x]>256){t[v].splice(0,t[x]);t[F]-=t[x];t[x]=0}}function _resume(t,n){while(true){if(t.destroyed){a(t[b]===0);return}if(t[ce]&&!t[R]){t[ce]();t[ce]=null;return}if(t[ne]){t[ne].resume()}if(t[B]){t[T]=2}else if(t[T]===2){if(n){t[T]=1;queueMicrotask(()=>emitDrain(t))}else{emitDrain(t)}continue}if(t[b]===0){return}if(t[S]>=(getPipelining(t)||1)){return}const i=t[v][t[F]];if(t[C].protocol==="https:"&&t[I]!==i.servername){if(t[S]>0){return}t[I]=i.servername;t[ne]?.destroy(new p("servername changed"),()=>{t[ne]=null;resume(t)})}if(t[D]){return}if(!t[ne]){connect(t);return}if(t[ne].destroyed){return}if(t[ne].busy(i)){return}if(!i.aborted&&t[ne].write(i)){t[F]++}else{t[v].splice(t[F],1)}}}t.exports=Client},1841:(t,n,i)=>{const a=i(883);const{ClientDestroyedError:A,ClientClosedError:c,InvalidArgumentError:l}=i(8707);const{kDestroy:d,kClose:h,kClosed:f,kDestroyed:g,kDispatch:p,kInterceptors:m}=i(6443);const E=Symbol("onDestroyed");const C=Symbol("onClosed");const I=Symbol("Intercepted Dispatch");const y=Symbol("webSocketOptions");class DispatcherBase extends a{constructor(t){super();this[g]=false;this[E]=null;this[f]=false;this[C]=[];this[y]=t?.webSocket??{}}get webSocketOptions(){return{maxFragments:this[y].maxFragments??131072,maxPayloadSize:this[y].maxPayloadSize??128*1024*1024}}get destroyed(){return this[g]}get closed(){return this[f]}get interceptors(){return this[m]}set interceptors(t){if(t){for(let n=t.length-1;n>=0;n--){const t=this[m][n];if(typeof t!=="function"){throw new l("interceptor must be an function")}}}this[m]=t}close(t){if(t===undefined){return new Promise((t,n)=>{this.close((i,a)=>i?n(i):t(a))})}if(typeof t!=="function"){throw new l("invalid callback")}if(this[g]){queueMicrotask(()=>t(new A,null));return}if(this[f]){if(this[C]){this[C].push(t)}else{queueMicrotask(()=>t(null,null))}return}this[f]=true;this[C].push(t);const onClosed=()=>{const t=this[C];this[C]=null;for(let n=0;nthis.destroy()).then(()=>{queueMicrotask(onClosed)})}destroy(t,n){if(typeof t==="function"){n=t;t=null}if(n===undefined){return new Promise((n,i)=>{this.destroy(t,(t,a)=>t?i(t):n(a))})}if(typeof n!=="function"){throw new l("invalid callback")}if(this[g]){if(this[E]){this[E].push(n)}else{queueMicrotask(()=>n(null,null))}return}if(!t){t=new A}this[g]=true;this[E]=this[E]||[];this[E].push(n);const onDestroyed=()=>{const t=this[E];this[E]=null;for(let n=0;n{queueMicrotask(onDestroyed)})}[I](t,n){if(!this[m]||this[m].length===0){this[I]=this[p];return this[p](t,n)}let i=this[p].bind(this);for(let t=this[m].length-1;t>=0;t--){i=this[m][t](i)}this[I]=i;return i(t,n)}dispatch(t,n){if(!n||typeof n!=="object"){throw new l("handler must be an object")}try{if(!t||typeof t!=="object"){throw new l("opts must be an object.")}if(this[g]||this[E]){throw new A}if(this[f]){throw new c}return this[I](t,n)}catch(t){if(typeof n.onError!=="function"){throw new l("invalid onError method")}n.onError(t);return false}}}t.exports=DispatcherBase},883:(t,n,i)=>{const a=i(8474);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...t){const n=Array.isArray(t[0])?t[0]:t;let i=this.dispatch.bind(this);for(const t of n){if(t==null){continue}if(typeof t!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof t}`)}i=t(i);if(i==null||typeof i!=="function"||i.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,i)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(t,n){super();this.#e=t;this.#t=n}dispatch(...t){this.#t(...t)}close(...t){return this.#e.close(...t)}destroy(...t){return this.#e.destroy(...t)}}t.exports=Dispatcher},3137:(t,n,i)=>{const a=i(1841);const{kClose:A,kDestroy:c,kClosed:l,kDestroyed:d,kDispatch:h,kNoProxyAgent:f,kHttpProxyAgent:g,kHttpsProxyAgent:p}=i(6443);const m=i(6672);const E=i(7405);const C={"http:":80,"https:":443};let I=false;class EnvHttpProxyAgent extends a{#r=null;#n=null;#s=null;constructor(t={}){super();this.#s=t;if(!I){I=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:n,httpsProxy:i,noProxy:a,...A}=t;this[f]=new E(A);const c=n??process.env.http_proxy??process.env.HTTP_PROXY;if(c){this[g]=new m({...A,uri:c})}else{this[g]=this[f]}const l=i??process.env.https_proxy??process.env.HTTPS_PROXY;if(l){this[p]=new m({...A,uri:l})}else{this[p]=this[g]}this.#o()}[h](t,n){const i=new URL(t.origin);const a=this.#i(i);return a.dispatch(t,n)}async[A](){await this[f].close();if(!this[g][l]){await this[g].close()}if(!this[p][l]){await this[p].close()}}async[c](t){await this[f].destroy(t);if(!this[g][d]){await this[g].destroy(t)}if(!this[p][d]){await this[p].destroy(t)}}#i(t){let{protocol:n,host:i,port:a}=t;i=i.replace(/:\d*$/,"").toLowerCase();a=Number.parseInt(a,10)||C[n]||0;if(!this.#a(i,a)){return this[f]}if(n==="https:"){return this[p]}return this[g]}#a(t,n){if(this.#A){this.#o()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let i=0;i{const n=2048;const i=n-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(n);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&i)===this.bottom}push(t){this.list[this.top]=t;this.top=this.top+1&i}shift(){const t=this.list[this.bottom];if(t===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&i;return t}}t.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(t){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(t)}shift(){const t=this.tail;const n=t.shift();if(t.isEmpty()&&t.next!==null){this.tail=t.next}return n}}},2128:(t,n,i)=>{const a=i(1841);const A=i(4660);const{kConnected:c,kSize:l,kRunning:d,kPending:h,kQueued:f,kBusy:g,kFree:p,kUrl:m,kClose:E,kDestroy:C,kDispatch:I}=i(6443);const y=i(3246);const B=Symbol("clients");const Q=Symbol("needDrain");const w=Symbol("queue");const S=Symbol("closed resolve");const b=Symbol("onDrain");const R=Symbol("onConnect");const v=Symbol("onDisconnect");const k=Symbol("onConnectionError");const D=Symbol("get dispatcher");const T=Symbol("add client");const N=Symbol("remove client");const M=Symbol("stats");class PoolBase extends a{constructor(t){super(t);this[w]=new A;this[B]=[];this[f]=0;const n=this;this[b]=function onDrain(t,i){const a=n[w];let A=false;while(!A){const t=a.shift();if(!t){break}n[f]--;A=!this.dispatch(t.opts,t.handler)}this[Q]=A;if(!this[Q]&&n[Q]){n[Q]=false;n.emit("drain",t,[n,...i])}if(n[S]&&a.isEmpty()){Promise.all(n[B].map(t=>t.close())).then(n[S])}};this[R]=(t,i)=>{n.emit("connect",t,[n,...i])};this[v]=(t,i,a)=>{n.emit("disconnect",t,[n,...i],a)};this[k]=(t,i,a)=>{n.emit("connectionError",t,[n,...i],a)};this[M]=new y(this)}get[g](){return this[Q]}get[c](){return this[B].filter(t=>t[c]).length}get[p](){return this[B].filter(t=>t[c]&&!t[Q]).length}get[h](){let t=this[f];for(const{[h]:n}of this[B]){t+=n}return t}get[d](){let t=0;for(const{[d]:n}of this[B]){t+=n}return t}get[l](){let t=this[f];for(const{[l]:n}of this[B]){t+=n}return t}get stats(){return this[M]}async[E](){if(this[w].isEmpty()){await Promise.all(this[B].map(t=>t.close()))}else{await new Promise(t=>{this[S]=t})}}async[C](t){while(true){const n=this[w].shift();if(!n){break}n.handler.onError(t)}await Promise.all(this[B].map(n=>n.destroy(t)))}[I](t,n){const i=this[D]();if(!i){this[Q]=true;this[w].push({opts:t,handler:n});this[f]++}else if(!i.dispatch(t,n)){i[Q]=true;this[Q]=!this[D]()}return!this[Q]}[T](t){t.on("drain",this[b]).on("connect",this[R]).on("disconnect",this[v]).on("connectionError",this[k]);this[B].push(t);if(this[Q]){queueMicrotask(()=>{if(this[Q]){this[b](t[m],[this,t])}})}return this}[N](t){t.close(()=>{const n=this[B].indexOf(t);if(n!==-1){this[B].splice(n,1)}});this[Q]=this[B].some(t=>!t[Q]&&t.closed!==true&&t.destroyed!==true)}}t.exports={PoolBase:PoolBase,kClients:B,kNeedDrain:Q,kAddClient:T,kRemoveClient:N,kGetDispatcher:D}},3246:(t,n,i)=>{const{kFree:a,kConnected:A,kPending:c,kQueued:l,kRunning:d,kSize:h}=i(6443);const f=Symbol("pool");class PoolStats{constructor(t){this[f]=t}get connected(){return this[f][A]}get free(){return this[f][a]}get pending(){return this[f][c]}get queued(){return this[f][l]}get running(){return this[f][d]}get size(){return this[f][h]}}t.exports=PoolStats},628:(t,n,i)=>{const{PoolBase:a,kClients:A,kNeedDrain:c,kAddClient:l,kGetDispatcher:d}=i(2128);const h=i(3701);const{InvalidArgumentError:f}=i(8707);const g=i(3440);const{kUrl:p,kInterceptors:m}=i(6443);const E=i(9136);const C=Symbol("options");const I=Symbol("connections");const y=Symbol("factory");function defaultFactory(t,n){return new h(t,n)}class Pool extends a{constructor(t,{connections:n,factory:i=defaultFactory,connect:a,connectTimeout:c,tls:l,maxCachedSessions:d,socketPath:h,autoSelectFamily:B,autoSelectFamilyAttemptTimeout:Q,allowH2:w,...S}={}){if(n!=null&&(!Number.isFinite(n)||n<0)){throw new f("invalid connections")}if(typeof i!=="function"){throw new f("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new f("connect must be a function or an object")}if(typeof a!=="function"){a=E({...l,maxCachedSessions:d,allowH2:w,socketPath:h,timeout:c,...B?{autoSelectFamily:B,autoSelectFamilyAttemptTimeout:Q}:undefined,...a})}super(S);this[m]=S.interceptors?.Pool&&Array.isArray(S.interceptors.Pool)?S.interceptors.Pool:[];this[I]=n||null;this[p]=g.parseOrigin(t);this[C]={...g.deepClone(S),connect:a,allowH2:w};this[C].interceptors=S.interceptors?{...S.interceptors}:undefined;this[y]=i;this.on("connectionError",(t,n,i)=>{for(const t of n){const n=this[A].indexOf(t);if(n!==-1){this[A].splice(n,1)}}})}[d](){for(const t of this[A]){if(!t[c]){return t}}if(!this[I]||this[A].length{const{kProxy:a,kClose:A,kDestroy:c,kDispatch:l,kInterceptors:d}=i(6443);const{URL:h}=i(3136);const f=i(7405);const g=i(628);const p=i(1841);const{InvalidArgumentError:m,RequestAbortedError:E,SecureProxyConnectionError:C}=i(8707);const I=i(9136);const y=i(3701);const B=Symbol("proxy agent");const Q=Symbol("proxy client");const w=Symbol("proxy headers");const S=Symbol("request tls settings");const b=Symbol("proxy tls settings");const R=Symbol("connect endpoint function");const v=Symbol("tunnel proxy");function defaultProtocolPort(t){return t==="https:"?443:80}function defaultFactory(t,n){return new g(t,n)}const noop=()=>{};function defaultAgentFactory(t,n){if(n.connections===1){return new y(t,n)}return new g(t,n)}class Http1ProxyWrapper extends p{#l;constructor(t,{headers:n={},connect:i,factory:a}){super();if(!t){throw new m("Proxy URL is mandatory")}this[w]=n;if(a){this.#l=a(t,{connect:i})}else{this.#l=new y(t,{connect:i})}}[l](t,n){const i=n.onHeaders;n.onHeaders=function(t,a,A){if(t===407){if(typeof n.onError==="function"){n.onError(new m("Proxy Authentication Required (407)"))}return}if(i)i.call(this,t,a,A)};const{origin:a,path:A="/",headers:c={}}=t;t.path=a+A;if(!("host"in c)&&!("Host"in c)){const{host:t}=new h(a);c.host=t}t.headers={...this[w],...c};return this.#l[l](t,n)}async[A](){return this.#l.close()}async[c](t){return this.#l.destroy(t)}}class ProxyAgent extends p{constructor(t){super();if(!t||typeof t==="object"&&!(t instanceof h)&&!t.uri){throw new m("Proxy uri is mandatory")}const{clientFactory:n=defaultFactory}=t;if(typeof n!=="function"){throw new m("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:i=true}=t;const A=this.#u(t);const{href:c,origin:l,port:g,protocol:p,username:y,password:k,hostname:D}=A;this[a]={uri:c,protocol:p};this[d]=t.interceptors?.ProxyAgent&&Array.isArray(t.interceptors.ProxyAgent)?t.interceptors.ProxyAgent:[];this[S]=t.requestTls;this[b]=t.proxyTls;this[w]=t.headers||{};this[v]=i;if(t.auth&&t.token){throw new m("opts.auth cannot be used in combination with opts.token")}else if(t.auth){this[w]["proxy-authorization"]=`Basic ${t.auth}`}else if(t.token){this[w]["proxy-authorization"]=t.token}else if(y&&k){this[w]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(y)}:${decodeURIComponent(k)}`).toString("base64")}`}const T=I({...t.proxyTls});this[R]=I({...t.requestTls});const N=t.factory||defaultAgentFactory;const factory=(t,n)=>{const{protocol:i}=new h(t);if(!this[v]&&i==="http:"&&this[a].protocol==="http:"){return new Http1ProxyWrapper(this[a].uri,{headers:this[w],connect:T,factory:N})}return N(t,n)};this[Q]=n(A,{connect:T});this[B]=new f({...t,factory:factory,connect:async(t,n)=>{let i=t.host;if(!t.port){i+=`:${defaultProtocolPort(t.protocol)}`}try{const{socket:a,statusCode:A}=await this[Q].connect({origin:l,port:g,path:i,signal:t.signal,headers:{...this[w],host:t.host},servername:this[b]?.servername||D});if(A!==200){a.on("error",noop).destroy();n(new E(`Proxy response (${A}) !== 200 when HTTP Tunneling`))}if(t.protocol!=="https:"){n(null,a);return}let c;if(this[S]){c=this[S].servername}else{c=t.servername}this[R]({...t,servername:c,httpSocket:a},n)}catch(t){if(t.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(new C(t))}else{n(t)}}}})}dispatch(t,n){const i=buildHeaders(t.headers);throwIfProxyAuthIsSent(i);if(i&&!("host"in i)&&!("Host"in i)){const{host:n}=new h(t.origin);i.host=n}return this[B].dispatch({...t,headers:i},n)}#u(t){if(typeof t==="string"){return new h(t)}else if(t instanceof h){return t}else{return new h(t.uri)}}async[A](){await this[B].close();await this[Q].close()}async[c](){await this[B].destroy();await this[Q].destroy()}}function buildHeaders(t){if(Array.isArray(t)){const n={};for(let i=0;it.toLowerCase()==="proxy-authorization");if(n){throw new m("Proxy-Authorization should be sent in ProxyAgent constructor")}}t.exports=ProxyAgent},50:(t,n,i)=>{const a=i(883);const A=i(7816);class RetryAgent extends a{#d=null;#h=null;constructor(t,n={}){super(n);this.#d=t;this.#h=n}dispatch(t,n){const i=new A({...t,retryOptions:this.#h},{dispatch:this.#d.dispatch.bind(this.#d),handler:n});return this.#d.dispatch(t,i)}close(){return this.#d.close()}destroy(){return this.#d.destroy()}}t.exports=RetryAgent},2581:(t,n,i)=>{const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:A}=i(8707);const c=i(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new c)}function setGlobalDispatcher(t){if(!t||typeof t.dispatch!=="function"){throw new A("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:t,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}t.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:t=>{t.exports=class DecoratorHandler{#f;constructor(t){if(typeof t!=="object"||t===null){throw new TypeError("handler must be an object")}this.#f=t}onConnect(...t){return this.#f.onConnect?.(...t)}onError(...t){return this.#f.onError?.(...t)}onUpgrade(...t){return this.#f.onUpgrade?.(...t)}onResponseStarted(...t){return this.#f.onResponseStarted?.(...t)}onHeaders(...t){return this.#f.onHeaders?.(...t)}onData(...t){return this.#f.onData?.(...t)}onComplete(...t){return this.#f.onComplete?.(...t)}onBodySent(...t){return this.#f.onBodySent?.(...t)}}},8754:(t,n,i)=>{const a=i(3440);const{kBodyUsed:A}=i(6443);const c=i(4589);const{InvalidArgumentError:l}=i(8707);const d=i(8474);const h=[300,301,302,303,307,308];const f=Symbol("body");class BodyAsyncIterable{constructor(t){this[f]=t;this[A]=false}async*[Symbol.asyncIterator](){c(!this[A],"disturbed");this[A]=true;yield*this[f]}}class RedirectHandler{constructor(t,n,i,h){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new l("maxRedirections must be a positive number")}a.validateHandler(h,i.method,i.upgrade);this.dispatch=t;this.location=null;this.abort=null;this.opts={...i,maxRedirections:0};this.maxRedirections=n;this.handler=h;this.history=[];this.redirectionLimitReached=false;if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",function(){c(false)})}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[A]=false;d.prototype.on.call(this.opts.body,"data",function(){this[A]=true})}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(t){this.abort=t;this.handler.onConnect(t,{history:this.history})}onUpgrade(t,n,i){this.handler.onUpgrade(t,n,i)}onError(t){this.handler.onError(t)}onHeaders(t,n,i,A){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(t,n);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(t,n,i,A)}const{origin:c,pathname:l,search:d}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const h=d?`${l}${d}`:l;this.opts.headers=cleanRequestHeaders(this.opts.headers,t===303,this.opts.origin!==c);this.opts.path=h;this.opts.origin=c;this.opts.maxRedirections=0;this.opts.query=null;if(t===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(t){if(this.location){}else{return this.handler.onData(t)}}onComplete(t){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(t)}}onBodySent(t){if(this.handler.onBodySent){this.handler.onBodySent(t)}}}function parseLocation(t,n){if(h.indexOf(t)===-1){return null}for(let t=0;t{const a=i(4589);const{kRetryHandlerDefaultRetry:A}=i(6443);const{RequestRetryError:c}=i(8707);const{isDisturbed:l,parseHeaders:d,parseRangeHeader:h,wrapRequestBody:f}=i(3440);function calculateRetryAfterHeader(t){const n=Date.now();return new Date(t).getTime()-n}function validatePartialResponseContentLength(t,n,i,a){const A=t["content-length"];if(A==null){return null}if(!Number.isFinite(n.start)||!Number.isFinite(n.end)){return null}const l=Number(A);const d=n.end-n.start+1;if(!Number.isFinite(l)||l!==d){return new c("Content-Length mismatch",i,{headers:t,data:{count:a}})}return null}class RetryHandler{constructor(t,n){const{retryOptions:i,...a}=t;const{retry:c,maxRetries:l,maxTimeout:d,minTimeout:h,timeoutFactor:g,methods:p,errorCodes:m,retryAfter:E,statusCodes:C}=i??{};this.dispatch=n.dispatch;this.handler=n.handler;this.opts={...a,body:f(t.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:c??RetryHandler[A],retryAfter:E??true,maxTimeout:d??30*1e3,minTimeout:h??500,timeoutFactor:g??2,maxRetries:l??5,methods:p??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:C??[500,502,503,504,429],errorCodes:m??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect(t=>{this.aborted=true;if(this.abort){this.abort(t)}else{this.reason=t}})}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(t,n,i){if(this.handler.onUpgrade){this.handler.onUpgrade(t,n,i)}}onConnect(t){if(this.aborted){t(this.reason)}else{this.abort=t}}onBodySent(t){if(this.handler.onBodySent)return this.handler.onBodySent(t)}static[A](t,{state:n,opts:i},a){const{statusCode:A,code:c,headers:l}=t;const{method:d,retryOptions:h}=i;const{maxRetries:f,minTimeout:g,maxTimeout:p,timeoutFactor:m,statusCodes:E,errorCodes:C,methods:I}=h;const{counter:y}=n;if(c&&c!=="UND_ERR_REQ_RETRY"&&!C.includes(c)){a(t);return}if(Array.isArray(I)&&!I.includes(d)){a(t);return}if(A!=null&&Array.isArray(E)&&!E.includes(A)){a(t);return}if(y>f){a(t);return}let B=l?.["retry-after"];if(B){B=Number(B);B=Number.isNaN(B)?calculateRetryAfterHeader(B):B*1e3}const Q=B>0?Math.min(B,p):Math.min(g*m**(y-1),p);setTimeout(()=>a(null),Q)}onHeaders(t,n,i,A){const l=d(n);this.retryCount+=1;if(t>=300){if(this.retryOpts.statusCodes.includes(t)===false){return this.handler.onHeaders(t,n,i,A)}else{this.abort(new c("Request failed",t,{headers:l,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(t!==206&&(this.start>0||t!==200)){this.abort(new c("server does not support the range header and the payload was partially consumed",t,{headers:l,data:{count:this.retryCount}}));return false}const n=h(l["content-range"]);if(!n){this.abort(new c("Content-Range mismatch",t,{headers:l,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==l.etag){this.abort(new c("ETag mismatch",t,{headers:l,data:{count:this.retryCount}}));return false}const A=validatePartialResponseContentLength(l,n,t,this.retryCount);if(A!=null){this.abort(A);return false}const{start:d,size:f,end:g=f-1}=n;a(this.start===d,"content-range mismatch");a(this.end==null||this.end===g,"content-range mismatch");this.resume=i;return true}if(this.end==null){if(t===206){const c=h(l["content-range"]);if(c==null){return this.handler.onHeaders(t,n,i,A)}const d=validatePartialResponseContentLength(l,c,t,this.retryCount);if(d!=null){this.abort(d);return false}const{start:f,size:g,end:p=g-1}=c;a(f!=null&&Number.isFinite(f),"content-range mismatch");a(p!=null&&Number.isFinite(p),"invalid content-length");this.start=f;this.end=p}if(this.end==null){const t=l["content-length"];this.end=t!=null?Number(t)-1:null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=i;this.etag=l.etag!=null?l.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(t,n,i,A)}const f=new c("Request failed",t,{headers:l,data:{count:this.retryCount}});this.abort(f);return false}onData(t){this.start+=t.length;return this.handler.onData(t)}onComplete(t){this.retryCount=0;return this.handler.onComplete(t)}onError(t){if(this.aborted||l(this.opts.body)){return this.handler.onError(t)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(t,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(t){if(t!=null||this.aborted||l(this.opts.body)){return this.handler.onError(t)}if(this.start!==0){const t={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){t["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...t}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(t){this.handler.onError(t)}}}}t.exports=RetryHandler},379:(t,n,i)=>{const{isIP:a}=i(7030);const{lookup:A}=i(610);const c=i(8155);const{InvalidArgumentError:l,InformationalError:d}=i(8707);const h=Math.pow(2,31)-1;class DNSInstance{#g=0;#p=0;#m=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(t){this.#g=t.maxTTL;this.#p=t.maxItems;this.dualStack=t.dualStack;this.affinity=t.affinity;this.lookup=t.lookup??this.#E;this.pick=t.pick??this.#C}get full(){return this.#m.size===this.#p}runLookup(t,n,i){const a=this.#m.get(t.hostname);if(a==null&&this.full){i(null,t.origin);return}const A={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...n.dns,maxTTL:this.#g,maxItems:this.#p};if(a==null){this.lookup(t,A,(n,a)=>{if(n||a==null||a.length===0){i(n??new d("No DNS entries found"));return}this.setRecords(t,a);const c=this.#m.get(t.hostname);const l=this.pick(t,c,A.affinity);let h;if(typeof l.port==="number"){h=`:${l.port}`}else if(t.port!==""){h=`:${t.port}`}else{h=""}i(null,`${t.protocol}//${l.family===6?`[${l.address}]`:l.address}${h}`)})}else{const c=this.pick(t,a,A.affinity);if(c==null){this.#m.delete(t.hostname);this.runLookup(t,n,i);return}let l;if(typeof c.port==="number"){l=`:${c.port}`}else if(t.port!==""){l=`:${t.port}`}else{l=""}i(null,`${t.protocol}//${c.family===6?`[${c.address}]`:c.address}${l}`)}}#E(t,n,i){A(t.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},(t,n)=>{if(t){return i(t)}const a=new Map;for(const t of n){a.set(`${t.address}:${t.family}`,t)}i(null,a.values())})}#C(t,n,i){let a=null;const{records:A,offset:c}=n;let l;if(this.dualStack){if(i==null){if(c==null||c===h){n.offset=0;i=4}else{n.offset++;i=(n.offset&1)===1?6:4}}if(A[i]!=null&&A[i].ips.length>0){l=A[i]}else{l=A[i===4?6:4]}}else{l=A[i]}if(l==null||l.ips.length===0){return a}if(l.offset==null||l.offset===h){l.offset=0}else{l.offset++}const d=l.offset%l.ips.length;a=l.ips[d]??null;if(a==null){return a}if(Date.now()-a.timestamp>a.ttl){l.ips.splice(d,1);return this.pick(t,n,i)}return a}setRecords(t,n){const i=Date.now();const a={records:{4:null,6:null}};for(const t of n){t.timestamp=i;if(typeof t.ttl==="number"){t.ttl=Math.min(t.ttl,this.#g)}else{t.ttl=this.#g}const n=a.records[t.family]??{ips:[]};n.ips.push(t);a.records[t.family]=n}this.#m.set(t.hostname,a)}getHandler(t,n){return new DNSDispatchHandler(this,t,n)}}class DNSDispatchHandler extends c{#I=null;#s=null;#t=null;#f=null;#y=null;constructor(t,{origin:n,handler:i,dispatch:a},A){super(i);this.#y=n;this.#f=i;this.#s={...A};this.#I=t;this.#t=a}onError(t){switch(t.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#I.dualStack){this.#I.runLookup(this.#y,this.#s,(t,n)=>{if(t){return this.#f.onError(t)}const i={...this.#s,origin:n};this.#t(i,this)});return}this.#f.onError(t);return}case"ENOTFOUND":this.#I.deleteRecord(this.#y);default:this.#f.onError(t);break}}}t.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!=="number"||t?.maxTTL<0)){throw new l("Invalid maxTTL. Must be a positive number")}if(t?.maxItems!=null&&(typeof t?.maxItems!=="number"||t?.maxItems<1)){throw new l("Invalid maxItems. Must be a positive number and greater than zero")}if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6){throw new l("Invalid affinity. Must be either 4 or 6")}if(t?.dualStack!=null&&typeof t?.dualStack!=="boolean"){throw new l("Invalid dualStack. Must be a boolean")}if(t?.lookup!=null&&typeof t?.lookup!=="function"){throw new l("Invalid lookup. Must be a function")}if(t?.pick!=null&&typeof t?.pick!=="function"){throw new l("Invalid pick. Must be a function")}const n=t?.dualStack??true;let i;if(n){i=t?.affinity??null}else{i=t?.affinity??4}const A={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:n,affinity:i,maxItems:t?.maxItems??Infinity};const c=new DNSInstance(A);return t=>function dnsInterceptor(n,i){const A=n.origin.constructor===URL?n.origin:new URL(n.origin);if(a(A.hostname)!==0){return t(n,i)}c.runLookup(A,n,(a,l)=>{if(a){return i.onError(a)}let d=null;d={...n,servername:A.hostname,origin:l,headers:{host:A.hostname,...n.headers}};t(d,c.getHandler({origin:A,dispatch:t,handler:i},n))});return true}}},8060:(t,n,i)=>{const a=i(3440);const{InvalidArgumentError:A,RequestAbortedError:c}=i(8707);const l=i(8155);class DumpHandler extends l{#B=1024*1024;#Q=null;#w=false;#S=false;#b=0;#R=null;#f=null;constructor({maxSize:t},n){super(n);if(t!=null&&(!Number.isFinite(t)||t<1)){throw new A("maxSize must be a number greater than 0")}this.#B=t??this.#B;this.#f=n}onConnect(t){this.#Q=t;this.#f.onConnect(this.#v.bind(this))}#v(t){this.#S=true;this.#R=t}onHeaders(t,n,i,A){const l=a.parseHeaders(n);const d=l["content-length"];if(d!=null&&d>this.#B){throw new c(`Response size (${d}) larger than maxSize (${this.#B})`)}if(this.#S){return true}return this.#f.onHeaders(t,n,i,A)}onError(t){if(this.#w){return}t=this.#R??t;this.#f.onError(t)}onData(t){this.#b=this.#b+t.length;if(this.#b>=this.#B){this.#w=true;if(this.#S){this.#f.onError(this.#R)}else{this.#f.onComplete([])}}return true}onComplete(t){if(this.#w){return}if(this.#S){this.#f.onError(this.reason);return}this.#f.onComplete(t)}}function createDumpInterceptor({maxSize:t}={maxSize:1024*1024}){return n=>function Intercept(i,a){const{dumpMaxSize:A=t}=i;const c=new DumpHandler({maxSize:A},a);return n(i,c)}}t.exports=createDumpInterceptor},5092:(t,n,i)=>{const a=i(8754);function createRedirectInterceptor({maxRedirections:t}){return n=>function Intercept(i,A){const{maxRedirections:c=t}=i;if(!c){return n(i,A)}const l=new a(n,c,i,A);i={...i,maxRedirections:0};return n(i,l)}}t.exports=createRedirectInterceptor},1514:(t,n,i)=>{const a=i(8754);t.exports=t=>{const n=t?.maxRedirections;return t=>function redirectInterceptor(i,A){const{maxRedirections:c=n,...l}=i;if(!c){return t(i,A)}const d=new a(t,c,i,A);return t(l,d)}}},2026:(t,n,i)=>{const a=i(7816);t.exports=t=>n=>function retryInterceptor(i,A){return n(i,new a({...i,retryOptions:{...t,...i.retryOptions}},{handler:A,dispatch:n}))}},2824:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.SPECIAL_HEADERS=n.HEADER_STATE=n.MINOR=n.MAJOR=n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS=n.TOKEN=n.STRICT_TOKEN=n.HEX=n.URL_CHAR=n.STRICT_URL_CHAR=n.USERINFO_CHARS=n.MARK=n.ALPHANUM=n.NUM=n.HEX_MAP=n.NUM_MAP=n.ALPHA=n.FINISH=n.H_METHOD_MAP=n.METHOD_MAP=n.METHODS_RTSP=n.METHODS_ICE=n.METHODS_HTTP=n.METHODS=n.LENIENT_FLAGS=n.FLAGS=n.TYPE=n.ERROR=void 0;const a=i(172);var A;(function(t){t[t["OK"]=0]="OK";t[t["INTERNAL"]=1]="INTERNAL";t[t["STRICT"]=2]="STRICT";t[t["LF_EXPECTED"]=3]="LF_EXPECTED";t[t["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";t[t["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";t[t["INVALID_METHOD"]=6]="INVALID_METHOD";t[t["INVALID_URL"]=7]="INVALID_URL";t[t["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";t[t["INVALID_VERSION"]=9]="INVALID_VERSION";t[t["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";t[t["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";t[t["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";t[t["INVALID_STATUS"]=13]="INVALID_STATUS";t[t["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";t[t["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";t[t["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";t[t["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";t[t["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";t[t["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";t[t["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";t[t["PAUSED"]=21]="PAUSED";t[t["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";t[t["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";t[t["USER"]=24]="USER"})(A=n.ERROR||(n.ERROR={}));var c;(function(t){t[t["BOTH"]=0]="BOTH";t[t["REQUEST"]=1]="REQUEST";t[t["RESPONSE"]=2]="RESPONSE"})(c=n.TYPE||(n.TYPE={}));var l;(function(t){t[t["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";t[t["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";t[t["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";t[t["CHUNKED"]=8]="CHUNKED";t[t["UPGRADE"]=16]="UPGRADE";t[t["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";t[t["SKIPBODY"]=64]="SKIPBODY";t[t["TRAILING"]=128]="TRAILING";t[t["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(l=n.FLAGS||(n.FLAGS={}));var d;(function(t){t[t["HEADERS"]=1]="HEADERS";t[t["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";t[t["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(d=n.LENIENT_FLAGS||(n.LENIENT_FLAGS={}));var h;(function(t){t[t["DELETE"]=0]="DELETE";t[t["GET"]=1]="GET";t[t["HEAD"]=2]="HEAD";t[t["POST"]=3]="POST";t[t["PUT"]=4]="PUT";t[t["CONNECT"]=5]="CONNECT";t[t["OPTIONS"]=6]="OPTIONS";t[t["TRACE"]=7]="TRACE";t[t["COPY"]=8]="COPY";t[t["LOCK"]=9]="LOCK";t[t["MKCOL"]=10]="MKCOL";t[t["MOVE"]=11]="MOVE";t[t["PROPFIND"]=12]="PROPFIND";t[t["PROPPATCH"]=13]="PROPPATCH";t[t["SEARCH"]=14]="SEARCH";t[t["UNLOCK"]=15]="UNLOCK";t[t["BIND"]=16]="BIND";t[t["REBIND"]=17]="REBIND";t[t["UNBIND"]=18]="UNBIND";t[t["ACL"]=19]="ACL";t[t["REPORT"]=20]="REPORT";t[t["MKACTIVITY"]=21]="MKACTIVITY";t[t["CHECKOUT"]=22]="CHECKOUT";t[t["MERGE"]=23]="MERGE";t[t["M-SEARCH"]=24]="M-SEARCH";t[t["NOTIFY"]=25]="NOTIFY";t[t["SUBSCRIBE"]=26]="SUBSCRIBE";t[t["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";t[t["PATCH"]=28]="PATCH";t[t["PURGE"]=29]="PURGE";t[t["MKCALENDAR"]=30]="MKCALENDAR";t[t["LINK"]=31]="LINK";t[t["UNLINK"]=32]="UNLINK";t[t["SOURCE"]=33]="SOURCE";t[t["PRI"]=34]="PRI";t[t["DESCRIBE"]=35]="DESCRIBE";t[t["ANNOUNCE"]=36]="ANNOUNCE";t[t["SETUP"]=37]="SETUP";t[t["PLAY"]=38]="PLAY";t[t["PAUSE"]=39]="PAUSE";t[t["TEARDOWN"]=40]="TEARDOWN";t[t["GET_PARAMETER"]=41]="GET_PARAMETER";t[t["SET_PARAMETER"]=42]="SET_PARAMETER";t[t["REDIRECT"]=43]="REDIRECT";t[t["RECORD"]=44]="RECORD";t[t["FLUSH"]=45]="FLUSH"})(h=n.METHODS||(n.METHODS={}));n.METHODS_HTTP=[h.DELETE,h.GET,h.HEAD,h.POST,h.PUT,h.CONNECT,h.OPTIONS,h.TRACE,h.COPY,h.LOCK,h.MKCOL,h.MOVE,h.PROPFIND,h.PROPPATCH,h.SEARCH,h.UNLOCK,h.BIND,h.REBIND,h.UNBIND,h.ACL,h.REPORT,h.MKACTIVITY,h.CHECKOUT,h.MERGE,h["M-SEARCH"],h.NOTIFY,h.SUBSCRIBE,h.UNSUBSCRIBE,h.PATCH,h.PURGE,h.MKCALENDAR,h.LINK,h.UNLINK,h.PRI,h.SOURCE];n.METHODS_ICE=[h.SOURCE];n.METHODS_RTSP=[h.OPTIONS,h.DESCRIBE,h.ANNOUNCE,h.SETUP,h.PLAY,h.PAUSE,h.TEARDOWN,h.GET_PARAMETER,h.SET_PARAMETER,h.REDIRECT,h.RECORD,h.FLUSH,h.GET,h.POST];n.METHOD_MAP=a.enumToMap(h);n.H_METHOD_MAP={};Object.keys(n.METHOD_MAP).forEach(t=>{if(/^H/.test(t)){n.H_METHOD_MAP[t]=n.METHOD_MAP[t]}});var f;(function(t){t[t["SAFE"]=0]="SAFE";t[t["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";t[t["UNSAFE"]=2]="UNSAFE"})(f=n.FINISH||(n.FINISH={}));n.ALPHA=[];for(let t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++){n.ALPHA.push(String.fromCharCode(t));n.ALPHA.push(String.fromCharCode(t+32))}n.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};n.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};n.NUM=["0","1","2","3","4","5","6","7","8","9"];n.ALPHANUM=n.ALPHA.concat(n.NUM);n.MARK=["-","_",".","!","~","*","'","(",")"];n.USERINFO_CHARS=n.ALPHANUM.concat(n.MARK).concat(["%",";",":","&","=","+","$",","]);n.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(n.ALPHANUM);n.URL_CHAR=n.STRICT_URL_CHAR.concat(["\t","\f"]);for(let t=128;t<=255;t++){n.URL_CHAR.push(t)}n.HEX=n.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);n.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(n.ALPHANUM);n.TOKEN=n.STRICT_TOKEN.concat([" "]);n.HEADER_CHARS=["\t"];for(let t=32;t<=255;t++){if(t!==127){n.HEADER_CHARS.push(t)}}n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS.filter(t=>t!==44);n.MAJOR=n.NUM_MAP;n.MINOR=n.MAJOR;var g;(function(t){t[t["GENERAL"]=0]="GENERAL";t[t["CONNECTION"]=1]="CONNECTION";t[t["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";t[t["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";t[t["UPGRADE"]=4]="UPGRADE";t[t["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";t[t["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";t[t["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";t[t["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=n.HEADER_STATE||(n.HEADER_STATE={}));n.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},3870:(t,n,i)=>{const{Buffer:a}=i(4573);t.exports=a.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXR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gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQ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E2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQ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BigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTY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NASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIU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B+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.enumToMap=void 0;function enumToMap(t){const n={};Object.keys(t).forEach(i=>{const a=t[i];if(typeof a==="number"){n[i]=a}});return n}n.enumToMap=enumToMap},7501:(t,n,i)=>{const{kClients:a}=i(6443);const A=i(7405);const{kAgent:c,kMockAgentSet:l,kMockAgentGet:d,kDispatches:h,kIsMockActive:f,kNetConnect:g,kGetNetConnect:p,kOptions:m,kFactory:E}=i(1117);const C=i(7365);const I=i(4004);const{matchValue:y,buildMockOptions:B}=i(3397);const{InvalidArgumentError:Q,UndiciError:w}=i(8707);const S=i(883);const b=i(1529);const R=i(6142);class MockAgent extends S{constructor(t){super(t);this[g]=true;this[f]=true;if(t?.agent&&typeof t.agent.dispatch!=="function"){throw new Q("Argument opts.agent must implement Agent")}const n=t?.agent?t.agent:new A(t);this[c]=n;this[a]=n[a];this[m]=B(t)}get(t){let n=this[d](t);if(!n){n=this[E](t);this[l](t,n)}return n}dispatch(t,n){this.get(t.origin);return this[c].dispatch(t,n)}async close(){await this[c].close();this[a].clear()}deactivate(){this[f]=false}activate(){this[f]=true}enableNetConnect(t){if(typeof t==="string"||typeof t==="function"||t instanceof RegExp){if(Array.isArray(this[g])){this[g].push(t)}else{this[g]=[t]}}else if(typeof t==="undefined"){this[g]=true}else{throw new Q("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[f]}[l](t,n){this[a].set(t,n)}[E](t){const n=Object.assign({agent:this},this[m]);return this[m]&&this[m].connections===1?new C(t,n):new I(t,n)}[d](t){const n=this[a].get(t);if(n){return n}if(typeof t!=="string"){const n=this[E]("http://localhost:9999");this[l](t,n);return n}for(const[n,i]of Array.from(this[a])){if(i&&typeof n!=="string"&&y(n,t)){const n=this[E](t);this[l](t,n);n[h]=i[h];return n}}}[p](){return this[g]}pendingInterceptors(){const t=this[a];return Array.from(t.entries()).flatMap(([t,n])=>n[h].map(n=>({...n,origin:t}))).filter(({pending:t})=>t)}assertNoPendingInterceptors({pendingInterceptorsFormatter:t=new R}={}){const n=this.pendingInterceptors();if(n.length===0){return}const i=new b("interceptor","interceptors").pluralize(n.length);throw new w(`\n${i.count} ${i.noun} ${i.is} pending:\n\n${t.format(n)}\n`.trim())}}t.exports=MockAgent},7365:(t,n,i)=>{const{promisify:a}=i(7975);const A=i(3701);const{buildMockDispatch:c}=i(3397);const{kDispatches:l,kMockAgent:d,kClose:h,kOriginalClose:f,kOrigin:g,kOriginalDispatch:p,kConnected:m}=i(1117);const{MockInterceptor:E}=i(1511);const C=i(6443);const{InvalidArgumentError:I}=i(8707);class MockClient extends A{constructor(t,n){super(t,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new I("Argument opts.agent must implement Agent")}this[d]=n.agent;this[g]=t;this[l]=[];this[m]=1;this[p]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[h]}get[C.kConnected](){return this[m]}intercept(t){return new E(t,this[l])}async[h](){await a(this[f])();this[m]=0;this[d][C.kClients].delete(this[g])}}t.exports=MockClient},2429:(t,n,i)=>{const{UndiciError:a}=i(8707);const A=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends a{constructor(t){super(t);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=t||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](t){return t&&t[A]===true}[A]=true}t.exports={MockNotMatchedError:MockNotMatchedError}},1511:(t,n,i)=>{const{getResponseData:a,buildKey:A,addMockDispatch:c}=i(3397);const{kDispatches:l,kDispatchKey:d,kDefaultHeaders:h,kDefaultTrailers:f,kContentLength:g,kMockDispatch:p}=i(1117);const{InvalidArgumentError:m}=i(8707);const{buildURL:E}=i(3440);class MockScope{constructor(t){this[p]=t}delay(t){if(typeof t!=="number"||!Number.isInteger(t)||t<=0){throw new m("waitInMs must be a valid integer > 0")}this[p].delay=t;return this}persist(){this[p].persist=true;return this}times(t){if(typeof t!=="number"||!Number.isInteger(t)||t<=0){throw new m("repeatTimes must be a valid integer > 0")}this[p].times=t;return this}}class MockInterceptor{constructor(t,n){if(typeof t!=="object"){throw new m("opts must be an object")}if(typeof t.path==="undefined"){throw new m("opts.path must be defined")}if(typeof t.method==="undefined"){t.method="GET"}if(typeof t.path==="string"){if(t.query){t.path=E(t.path,t.query)}else{const n=new URL(t.path,"data://");t.path=n.pathname+n.search}}if(typeof t.method==="string"){t.method=t.method.toUpperCase()}this[d]=A(t);this[l]=n;this[h]={};this[f]={};this[g]=false}createMockScopeDispatchData({statusCode:t,data:n,responseOptions:i}){const A=a(n);const c=this[g]?{"content-length":A.length}:{};const l={...this[h],...c,...i.headers};const d={...this[f],...i.trailers};return{statusCode:t,data:n,headers:l,trailers:d}}validateReplyParameters(t){if(typeof t.statusCode==="undefined"){throw new m("statusCode must be defined")}if(typeof t.responseOptions!=="object"||t.responseOptions===null){throw new m("responseOptions must be an object")}}reply(t){if(typeof t==="function"){const wrappedDefaultsCallback=n=>{const i=t(n);if(typeof i!=="object"||i===null){throw new m("reply options callback must return an object")}const a={data:"",responseOptions:{},...i};this.validateReplyParameters(a);return{...this.createMockScopeDispatchData(a)}};const n=c(this[l],this[d],wrappedDefaultsCallback);return new MockScope(n)}const n={statusCode:t,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(n);const i=this.createMockScopeDispatchData(n);const a=c(this[l],this[d],i);return new MockScope(a)}replyWithError(t){if(typeof t==="undefined"){throw new m("error must be defined")}const n=c(this[l],this[d],{error:t});return new MockScope(n)}defaultReplyHeaders(t){if(typeof t==="undefined"){throw new m("headers must be defined")}this[h]=t;return this}defaultReplyTrailers(t){if(typeof t==="undefined"){throw new m("trailers must be defined")}this[f]=t;return this}replyContentLength(){this[g]=true;return this}}t.exports.MockInterceptor=MockInterceptor;t.exports.MockScope=MockScope},4004:(t,n,i)=>{const{promisify:a}=i(7975);const A=i(628);const{buildMockDispatch:c}=i(3397);const{kDispatches:l,kMockAgent:d,kClose:h,kOriginalClose:f,kOrigin:g,kOriginalDispatch:p,kConnected:m}=i(1117);const{MockInterceptor:E}=i(1511);const C=i(6443);const{InvalidArgumentError:I}=i(8707);class MockPool extends A{constructor(t,n){super(t,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new I("Argument opts.agent must implement Agent")}this[d]=n.agent;this[g]=t;this[l]=[];this[m]=1;this[p]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[h]}get[C.kConnected](){return this[m]}intercept(t){return new E(t,this[l])}async[h](){await a(this[f])();this[m]=0;this[d][C.kClients].delete(this[g])}}t.exports=MockPool},1117:t=>{t.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(t,n,i)=>{const{MockNotMatchedError:a}=i(2429);const{kDispatches:A,kMockAgent:c,kOriginalDispatch:l,kOrigin:d,kGetNetConnect:h}=i(1117);const{buildURL:f}=i(3440);const{STATUS_CODES:g}=i(7067);const{types:{isPromise:p}}=i(7975);function matchValue(t,n){if(typeof t==="string"){return t===n}if(t instanceof RegExp){return t.test(n)}if(typeof t==="function"){return t(n)===true}return false}function lowerCaseEntries(t){return Object.fromEntries(Object.entries(t).map(([t,n])=>[t.toLocaleLowerCase(),n]))}function getHeaderByName(t,n){if(Array.isArray(t)){for(let i=0;i!t).filter(({path:t})=>matchValue(safeUrl(t),A));if(c.length===0){throw new a(`Mock dispatch not matched for path '${A}'`)}c=c.filter(({method:t})=>matchValue(t,n.method));if(c.length===0){throw new a(`Mock dispatch not matched for method '${n.method}' on path '${A}'`)}c=c.filter(({body:t})=>typeof t!=="undefined"?matchValue(t,n.body):true);if(c.length===0){throw new a(`Mock dispatch not matched for body '${n.body}' on path '${A}'`)}c=c.filter(t=>matchHeaders(t,n.headers));if(c.length===0){const t=typeof n.headers==="object"?JSON.stringify(n.headers):n.headers;throw new a(`Mock dispatch not matched for headers '${t}' on path '${A}'`)}return c[0]}function addMockDispatch(t,n,i){const a={timesInvoked:0,times:1,persist:false,consumed:false};const A=typeof i==="function"?{callback:i}:{...i};const c={...a,...n,pending:true,data:{error:null,...A}};t.push(c);return c}function deleteMockDispatch(t,n){const i=t.findIndex(t=>{if(!t.consumed){return false}return matchKey(t,n)});if(i!==-1){t.splice(i,1)}}function buildKey(t){const{path:n,method:i,body:a,headers:A,query:c}=t;return{path:n,method:i,body:a,headers:A,query:c}}function generateKeyValues(t){const n=Object.keys(t);const i=[];for(let a=0;a=C;a.pending=E0){setTimeout(()=>{handleReply(this[A])},g)}else{handleReply(this[A])}function handleReply(a,A=l){const f=Array.isArray(t.headers)?buildHeadersFromArray(t.headers):t.headers;const g=typeof A==="function"?A({...t,headers:f}):A;if(p(g)){g.then(t=>handleReply(a,t));return}const m=getResponseData(g);const E=generateKeyValues(d);const C=generateKeyValues(h);n.onConnect?.(t=>n.onError(t),null);n.onHeaders?.(c,E,resume,getStatusText(c));n.onData?.(Buffer.from(m));n.onComplete?.(C);deleteMockDispatch(a,i)}function resume(){}return true}function buildMockDispatch(){const t=this[c];const n=this[d];const i=this[l];return function dispatch(A,c){if(t.isMockActive){try{mockDispatch.call(this,A,c)}catch(l){if(l instanceof a){const d=t[h]();if(d===false){throw new a(`${l.message}: subsequent request to origin ${n} was not allowed (net.connect disabled)`)}if(checkNetConnect(d,n)){i.call(this,A,c)}else{throw new a(`${l.message}: subsequent request to origin ${n} was not allowed (net.connect is not enabled for this origin)`)}}else{throw l}}}else{i.call(this,A,c)}}}function checkNetConnect(t,n){const i=new URL(n);if(t===true){return true}else if(Array.isArray(t)&&t.some(t=>matchValue(t,i.host))){return true}return false}function buildMockOptions(t){if(t){const{agent:n,...i}=t;return i}}t.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(t,n,i)=>{const{Transform:a}=i(7075);const{Console:A}=i(7540);const c=process.versions.icu?"✅":"Y ";const l=process.versions.icu?"❌":"N ";t.exports=class PendingInterceptorsFormatter{constructor({disableColors:t}={}){this.transform=new a({transform(t,n,i){i(null,t)}});this.logger=new A({stdout:this.transform,inspectOptions:{colors:!t&&!process.env.CI}})}format(t){const n=t.map(({method:t,path:n,data:{statusCode:i},persist:a,times:A,timesInvoked:d,origin:h})=>({Method:t,Origin:h,Path:n,"Status code":i,Persistent:a?c:l,Invocations:d,Remaining:a?Infinity:A-d}));this.logger.table(n);return this.transform.read().toString()}}},1529:t=>{const n={pronoun:"it",is:"is",was:"was",this:"this"};const i={pronoun:"they",is:"are",was:"were",this:"these"};t.exports=class Pluralizer{constructor(t,n){this.singular=t;this.plural=n}pluralize(t){const a=t===1;const A=a?n:i;const c=a?this.singular:this.plural;return{...A,count:t,noun:c}}}},6603:t=>{let n=0;const i=1e3;const a=(i>>1)-1;let A;const c=Symbol("kFastTimer");const l=[];const d=-2;const h=-1;const f=0;const g=1;function onTick(){n+=a;let t=0;let i=l.length;while(t=A._idleStart+A._idleTimeout){A._state=h;A._idleStart=-1;A._onTimeout(A._timerArg)}if(A._state===h){A._state=d;if(--i!==0){l[t]=l[i]}}else{++t}}l.length=i;if(l.length!==0){refreshTimeout()}}function refreshTimeout(){if(A){A.refresh()}else{clearTimeout(A);A=setTimeout(onTick,a);if(A.unref){A.unref()}}}class FastTimer{[c]=true;_state=d;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(t,n,i){this._onTimeout=t;this._idleTimeout=n;this._timerArg=i;this.refresh()}refresh(){if(this._state===d){l.push(this)}if(!A||l.length===1){refreshTimeout()}this._state=f}clear(){this._state=h;this._idleStart=-1}}t.exports={setTimeout(t,n,a){return n<=i?setTimeout(t,n,a):new FastTimer(t,n,a)},clearTimeout(t){if(t[c]){t.clear()}else{clearTimeout(t)}},setFastTimeout(t,n,i){return new FastTimer(t,n,i)},clearFastTimeout(t){t.clear()},now(){return n},tick(t=0){n+=t-i+1;onTick();onTick()},reset(){n=0;l.length=0;clearTimeout(A);A=null},kFastTimer:c}},9634:(t,n,i)=>{const{kConstruct:a}=i(109);const{urlEquals:A,getFieldValues:c}=i(6798);const{kEnumerableProperty:l,isDisturbed:d}=i(3440);const{webidl:h}=i(5893);const{Response:f,cloneResponse:g,fromInnerResponse:p}=i(9051);const{Request:m,fromInnerRequest:E}=i(9967);const{kState:C}=i(3627);const{fetching:I}=i(4398);const{urlIsHttpHttpsScheme:y,createDeferredPromise:B,readAllBytes:Q}=i(3168);const w=i(4589);class Cache{#k;constructor(){if(arguments[0]!==a){h.illegalConstructor()}h.util.markAsUncloneable(this);this.#k=arguments[1]}async match(t,n={}){h.brandCheck(this,Cache);const i="Cache.match";h.argumentLengthCheck(arguments,1,i);t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");const a=this.#D(t,n,1);if(a.length===0){return}return a[0]}async matchAll(t=undefined,n={}){h.brandCheck(this,Cache);const i="Cache.matchAll";if(t!==undefined)t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");return this.#D(t,n)}async add(t){h.brandCheck(this,Cache);const n="Cache.add";h.argumentLengthCheck(arguments,1,n);t=h.converters.RequestInfo(t,n,"request");const i=[t];const a=this.addAll(i);return await a}async addAll(t){h.brandCheck(this,Cache);const n="Cache.addAll";h.argumentLengthCheck(arguments,1,n);const i=[];const a=[];for(let i of t){if(i===undefined){throw h.errors.conversionFailed({prefix:n,argument:"Argument 1",types:["undefined is not allowed"]})}i=h.converters.RequestInfo(i);if(typeof i==="string"){continue}const t=i[C];if(!y(t.url)||t.method!=="GET"){throw h.errors.exception({header:n,message:"Expected http/s scheme when method is not GET."})}}const A=[];for(const l of t){const t=new m(l)[C];if(!y(t.url)){throw h.errors.exception({header:n,message:"Expected http/s scheme."})}t.initiator="fetch";t.destination="subresource";a.push(t);const d=B();A.push(I({request:t,processResponse(t){if(t.type==="error"||t.status===206||t.status<200||t.status>299){d.reject(h.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(t.headersList.contains("vary")){const n=c(t.headersList.get("vary"));for(const t of n){if(t==="*"){d.reject(h.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const t of A){t.abort()}return}}}},processResponseEndOfBody(t){if(t.aborted){d.reject(new DOMException("aborted","AbortError"));return}d.resolve(t)}}));i.push(d.promise)}const l=Promise.all(i);const d=await l;const f=[];let g=0;for(const t of d){const n={type:"put",request:a[g],response:t};f.push(n);g++}const p=B();let E=null;try{this.#T(f)}catch(t){E=t}queueMicrotask(()=>{if(E===null){p.resolve(undefined)}else{p.reject(E)}});return p.promise}async put(t,n){h.brandCheck(this,Cache);const i="Cache.put";h.argumentLengthCheck(arguments,2,i);t=h.converters.RequestInfo(t,i,"request");n=h.converters.Response(n,i,"response");let a=null;if(t instanceof m){a=t[C]}else{a=new m(t)[C]}if(!y(a.url)||a.method!=="GET"){throw h.errors.exception({header:i,message:"Expected an http/s scheme when method is not GET"})}const A=n[C];if(A.status===206){throw h.errors.exception({header:i,message:"Got 206 status"})}if(A.headersList.contains("vary")){const t=c(A.headersList.get("vary"));for(const n of t){if(n==="*"){throw h.errors.exception({header:i,message:"Got * vary field value"})}}}if(A.body&&(d(A.body.stream)||A.body.stream.locked)){throw h.errors.exception({header:i,message:"Response body is locked or disturbed"})}const l=g(A);const f=B();if(A.body!=null){const t=A.body.stream;const n=t.getReader();Q(n).then(f.resolve,f.reject)}else{f.resolve(undefined)}const p=[];const E={type:"put",request:a,response:l};p.push(E);const I=await f.promise;if(l.body!=null){l.body.source=I}const w=B();let S=null;try{this.#T(p)}catch(t){S=t}queueMicrotask(()=>{if(S===null){w.resolve()}else{w.reject(S)}});return w.promise}async delete(t,n={}){h.brandCheck(this,Cache);const i="Cache.delete";h.argumentLengthCheck(arguments,1,i);t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");let a=null;if(t instanceof m){a=t[C];if(a.method!=="GET"&&!n.ignoreMethod){return false}}else{w(typeof t==="string");a=new m(t)[C]}const A=[];const c={type:"delete",request:a,options:n};A.push(c);const l=B();let d=null;let f;try{f=this.#T(A)}catch(t){d=t}queueMicrotask(()=>{if(d===null){l.resolve(!!f?.length)}else{l.reject(d)}});return l.promise}async keys(t=undefined,n={}){h.brandCheck(this,Cache);const i="Cache.keys";if(t!==undefined)t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");let a=null;if(t!==undefined){if(t instanceof m){a=t[C];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof t==="string"){a=new m(t)[C]}}const A=B();const c=[];if(t===undefined){for(const t of this.#k){c.push(t[0])}}else{const t=this.#N(a,n);for(const n of t){c.push(n[0])}}queueMicrotask(()=>{const t=[];for(const n of c){const i=E(n,(new AbortController).signal,"immutable");t.push(i)}A.resolve(Object.freeze(t))});return A.promise}#T(t){const n=this.#k;const i=[...n];const a=[];const A=[];try{for(const i of t){if(i.type!=="delete"&&i.type!=="put"){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(i.type==="delete"&&i.response!=null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#N(i.request,i.options,a).length){throw new DOMException("???","InvalidStateError")}let t;if(i.type==="delete"){t=this.#N(i.request,i.options);if(t.length===0){return[]}for(const i of t){const t=n.indexOf(i);w(t!==-1);n.splice(t,1)}}else if(i.type==="put"){if(i.response==null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const A=i.request;if(!y(A.url)){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(A.method!=="GET"){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(i.options!=null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}t=this.#N(i.request);for(const i of t){const t=n.indexOf(i);w(t!==-1);n.splice(t,1)}n.push([i.request,i.response]);a.push([i.request,i.response])}A.push([i.request,i.response])}return A}catch(t){this.#k.length=0;this.#k=i;throw t}}#N(t,n,i){const a=[];const A=i??this.#k;for(const i of A){const[A,c]=i;if(this.#M(t,A,c,n)){a.push(i)}}return a}#M(t,n,i=null,a){const l=new URL(t.url);const d=new URL(n.url);if(a?.ignoreSearch){d.search="";l.search=""}if(!A(l,d,true)){return false}if(i==null||a?.ignoreVary||!i.headersList.contains("vary")){return true}const h=c(i.headersList.get("vary"));for(const i of h){if(i==="*"){return false}const a=n.headersList.get(i);const A=t.headersList.get(i);if(a!==A){return false}}return true}#D(t,n,i=Infinity){let a=null;if(t!==undefined){if(t instanceof m){a=t[C];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof t==="string"){a=new m(t)[C]}}const A=[];if(t===undefined){for(const t of this.#k){A.push(t[1])}}else{const t=this.#N(a,n);for(const n of t){A.push(n[1])}}const c=[];for(const t of A){const n=p(t,"immutable");c.push(n.clone());if(c.length>=i){break}}return Object.freeze(c)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:l,matchAll:l,add:l,addAll:l,put:l,delete:l,keys:l});const S=[{key:"ignoreSearch",converter:h.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:h.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:h.converters.boolean,defaultValue:()=>false}];h.converters.CacheQueryOptions=h.dictionaryConverter(S);h.converters.MultiCacheQueryOptions=h.dictionaryConverter([...S,{key:"cacheName",converter:h.converters.DOMString}]);h.converters.Response=h.interfaceConverter(f);h.converters["sequence"]=h.sequenceConverter(h.converters.RequestInfo);t.exports={Cache:Cache}},3245:(t,n,i)=>{const{kConstruct:a}=i(109);const{Cache:A}=i(9634);const{webidl:c}=i(5893);const{kEnumerableProperty:l}=i(3440);class CacheStorage{#F=new Map;constructor(){if(arguments[0]!==a){c.illegalConstructor()}c.util.markAsUncloneable(this)}async match(t,n={}){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,"CacheStorage.match");t=c.converters.RequestInfo(t);n=c.converters.MultiCacheQueryOptions(n);if(n.cacheName!=null){if(this.#F.has(n.cacheName)){const i=this.#F.get(n.cacheName);const c=new A(a,i);return await c.match(t,n)}}else{for(const i of this.#F.values()){const c=new A(a,i);const l=await c.match(t,n);if(l!==undefined){return l}}}}async has(t){c.brandCheck(this,CacheStorage);const n="CacheStorage.has";c.argumentLengthCheck(arguments,1,n);t=c.converters.DOMString(t,n,"cacheName");return this.#F.has(t)}async open(t){c.brandCheck(this,CacheStorage);const n="CacheStorage.open";c.argumentLengthCheck(arguments,1,n);t=c.converters.DOMString(t,n,"cacheName");if(this.#F.has(t)){const n=this.#F.get(t);return new A(a,n)}const i=[];this.#F.set(t,i);return new A(a,i)}async delete(t){c.brandCheck(this,CacheStorage);const n="CacheStorage.delete";c.argumentLengthCheck(arguments,1,n);t=c.converters.DOMString(t,n,"cacheName");return this.#F.delete(t)}async keys(){c.brandCheck(this,CacheStorage);const t=this.#F.keys();return[...t]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:l,has:l,open:l,delete:l,keys:l});t.exports={CacheStorage:CacheStorage}},109:(t,n,i)=>{t.exports={kConstruct:i(6443).kConstruct}},6798:(t,n,i)=>{const a=i(4589);const{URLSerializer:A}=i(1900);const{isValidHeaderName:c}=i(3168);function urlEquals(t,n,i=false){const a=A(t,i);const c=A(n,i);return a===c}function getFieldValues(t){a(t!==null);const n=[];for(let i of t.split(",")){i=i.trim();if(c(i)){n.push(i)}}return n}t.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:t=>{const n=1024;const i=4096;t.exports={maxAttributeValueSize:n,maxNameValuePairSize:i}},9061:(t,n,i)=>{const{parseSetCookie:a}=i(1978);const{stringify:A}=i(7797);const{webidl:c}=i(5893);const{Headers:l}=i(660);function getCookies(t){c.argumentLengthCheck(arguments,1,"getCookies");c.brandCheck(t,l,{strict:false});const n=t.get("cookie");const i={};if(!n){return i}for(const t of n.split(";")){const[n,...a]=t.split("=");i[n.trim()]=a.join("=")}return i}function deleteCookie(t,n,i){c.brandCheck(t,l,{strict:false});const a="deleteCookie";c.argumentLengthCheck(arguments,2,a);n=c.converters.DOMString(n,a,"name");i=c.converters.DeleteCookieAttributes(i);setCookie(t,{name:n,value:"",expires:new Date(0),...i})}function getSetCookies(t){c.argumentLengthCheck(arguments,1,"getSetCookies");c.brandCheck(t,l,{strict:false});const n=t.getSetCookie();if(!n){return[]}return n.map(t=>a(t))}function setCookie(t,n){c.argumentLengthCheck(arguments,2,"setCookie");c.brandCheck(t,l,{strict:false});n=c.converters.Cookie(n);const i=A(n);if(i){t.append("Set-Cookie",i)}}c.converters.DeleteCookieAttributes=c.dictionaryConverter([{converter:c.nullableConverter(c.converters.DOMString),key:"path",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.DOMString),key:"domain",defaultValue:()=>null}]);c.converters.Cookie=c.dictionaryConverter([{converter:c.converters.DOMString,key:"name"},{converter:c.converters.DOMString,key:"value"},{converter:c.nullableConverter(t=>{if(typeof t==="number"){return c.converters["unsigned long long"](t)}return new Date(t)}),key:"expires",defaultValue:()=>null},{converter:c.nullableConverter(c.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.DOMString),key:"path",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.boolean),key:"secure",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:c.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:c.sequenceConverter(c.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);t.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(t,n,i)=>{const{maxNameValuePairSize:a,maxAttributeValueSize:A}=i(1276);const{isCTLExcludingHtab:c}=i(7797);const{collectASequenceOfCodePointsFast:l}=i(1900);const d=i(4589);function parseSetCookie(t){if(c(t)){return null}let n="";let i="";let A="";let d="";if(t.includes(";")){const a={position:0};n=l(";",t,a);i=t.slice(a.position)}else{n=t}if(!n.includes("=")){d=n}else{const t={position:0};A=l("=",n,t);d=n.slice(t.position+1)}A=A.trim();d=d.trim();if(A.length+d.length>a){return null}return{name:A,value:d,...parseUnparsedAttributes(i)}}function parseUnparsedAttributes(t,n={}){if(t.length===0){return n}d(t[0]===";");t=t.slice(1);let i="";if(t.includes(";")){i=l(";",t,{position:0});t=t.slice(i.length)}else{i=t;t=""}let a="";let c="";if(i.includes("=")){const t={position:0};a=l("=",i,t);c=i.slice(t.position+1)}else{a=i}a=a.trim();c=c.trim();if(c.length>A){return parseUnparsedAttributes(t,n)}const h=a.toLowerCase();if(h==="expires"){const t=new Date(c);n.expires=t}else if(h==="max-age"){const i=c.charCodeAt(0);if((i<48||i>57)&&c[0]!=="-"){return parseUnparsedAttributes(t,n)}if(!/^\d+$/.test(c)){return parseUnparsedAttributes(t,n)}const a=Number(c);n.maxAge=a}else if(h==="domain"){let t=c;if(t[0]==="."){t=t.slice(1)}t=t.toLowerCase();n.domain=t}else if(h==="path"){let t="";if(c.length===0||c[0]!=="/"){t="/"}else{t=c}n.path=t}else if(h==="secure"){n.secure=true}else if(h==="httponly"){n.httpOnly=true}else if(h==="samesite"){const t=c.toLowerCase();if(t==="none"){n.sameSite="None"}else if(t==="strict"){n.sameSite="Strict"}else if(t==="lax"){n.sameSite="Lax"}}else{n.unparsed??=[];n.unparsed.push(`${a}=${c}`)}return parseUnparsedAttributes(t,n)}t.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:t=>{function isCTLExcludingHtab(t){for(let n=0;n=0&&i<=8||i>=10&&i<=31||i===127){return true}}return false}function validateCookieName(t){for(let n=0;n126||i===34||i===40||i===41||i===60||i===62||i===64||i===44||i===59||i===58||i===92||i===47||i===91||i===93||i===63||i===61||i===123||i===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(t){let n=t.length;let i=0;if(t[0]==='"'){if(n===1||t[n-1]!=='"'){throw new Error("Invalid cookie value")}--n;++i}while(i126||n===34||n===44||n===59||n===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(t){for(let n=0;n126||i===59){throw new Error("Invalid cookie path")}}}function isLetterOrDigit(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function validateCookieDomain(t){if(t===" "){return}if(t.length>255){throw new Error("Invalid cookie domain")}let n=0;for(let i=0;i63){throw new Error("Invalid cookie domain")}}if(n===0||t.charCodeAt(t.length-1)===45){throw new Error("Invalid cookie domain")}}const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const a=Array(61).fill(0).map((t,n)=>n.toString().padStart(2,"0"));function toIMFDate(t){if(typeof t==="number"){t=new Date(t)}return`${n[t.getUTCDay()]}, ${a[t.getUTCDate()]} ${i[t.getUTCMonth()]} ${t.getUTCFullYear()} ${a[t.getUTCHours()]}:${a[t.getUTCMinutes()]}:${a[t.getUTCSeconds()]} GMT`}function validateCookieMaxAge(t){if(t<0){throw new Error("Invalid cookie max-age")}}function stringify(t){if(t.name.length===0){return null}validateCookieName(t.name);validateCookieValue(t.value);const n=[`${t.name}=${t.value}`];if(t.name.startsWith("__Secure-")){t.secure=true}if(t.name.startsWith("__Host-")){t.secure=true;t.domain=null;t.path="/"}if(t.secure){n.push("Secure")}if(t.httpOnly){n.push("HttpOnly")}if(typeof t.maxAge==="number"){validateCookieMaxAge(t.maxAge);n.push(`Max-Age=${t.maxAge}`)}if(t.domain){validateCookieDomain(t.domain);n.push(`Domain=${t.domain}`)}if(t.path){validateCookiePath(t.path);n.push(`Path=${t.path}`)}if(t.expires&&t.expires.toString()!=="Invalid Date"){n.push(`Expires=${toIMFDate(t.expires)}`)}if(t.sameSite){n.push(`SameSite=${t.sameSite}`)}for(const i of t.unparsed){if(!i.includes("=")){throw new Error("Invalid unparsed")}const[t,...a]=i.split("=");const A=t.trim();const c=a.join("=");validateCookieName(A);validateCookieValue(c);n.push(`${A}=${c}`)}return n.join("; ")}t.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(t,n,i)=>{const{Transform:a}=i(7075);const{isASCIINumber:A,isValidLastEventId:c}=i(4811);const l=[239,187,191];const d=10;const h=13;const f=58;const g=32;class EventSourceStream extends a{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(t={}){t.readableObjectMode=true;super(t);this.state=t.eventSourceSettings||{};if(t.push){this.push=t.push}}_transform(t,n,i){if(t.length===0){i();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,t])}else{this.buffer=t}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===l[0]){i();return}this.checkBOM=false;i();return;case 2:if(this.buffer[0]===l[0]&&this.buffer[1]===l[1]){i();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===l[0]&&this.buffer[1]===l[1]&&this.buffer[2]===l[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;i();return}this.checkBOM=false;break;default:if(this.buffer[0]===l[0]&&this.buffer[1]===l[1]&&this.buffer[2]===l[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){n[a]=l}break}}processEvent(t){if(t.retry&&A(t.retry)){this.state.reconnectionTime=parseInt(t.retry,10)}if(t.id&&c(t.id)){this.state.lastEventId=t.id}if(t.data!==undefined){this.push({type:t.event||"message",options:{data:t.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}t.exports={EventSourceStream:EventSourceStream}},1238:(t,n,i)=>{const{pipeline:a}=i(7075);const{fetching:A}=i(4398);const{makeRequest:c}=i(9967);const{webidl:l}=i(5893);const{EventSourceStream:d}=i(4031);const{parseMIMEType:h}=i(1900);const{createFastMessageEvent:f}=i(5188);const{isNetworkError:g}=i(9051);const{delay:p}=i(4811);const{kEnumerableProperty:m}=i(3440);const{environmentSettingsObject:E}=i(3168);let C=false;const I=3e3;const y=0;const B=1;const Q=2;const w="anonymous";const S="use-credentials";class EventSource extends EventTarget{#x={open:null,error:null,message:null};#U=null;#P=false;#L=y;#_=null;#O=null;#e;#I;constructor(t,n={}){super();l.util.markAsUncloneable(this);const i="EventSource constructor";l.argumentLengthCheck(arguments,1,i);if(!C){C=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}t=l.converters.USVString(t,i,"url");n=l.converters.EventSourceInitDict(n,i,"eventSourceInitDict");this.#e=n.dispatcher;this.#I={lastEventId:"",reconnectionTime:I};const a=E;let A;try{A=new URL(t,a.settingsObject.baseUrl);this.#I.origin=A.origin}catch(t){throw new DOMException(t,"SyntaxError")}this.#U=A.href;let d=w;if(n.withCredentials){d=S;this.#P=true}const h={redirect:"follow",keepalive:true,mode:"cors",credentials:d==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};h.client=E.settingsObject;h.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];h.cache="no-store";h.initiator="other";h.urlList=[new URL(this.#U)];this.#_=c(h);this.#H()}get readyState(){return this.#L}get url(){return this.#U}get withCredentials(){return this.#P}#H(){if(this.#L===Q)return;this.#L=y;const t={request:this.#_,dispatcher:this.#e};const processEventSourceEndOfBody=t=>{if(g(t)){this.dispatchEvent(new Event("error"));this.close()}this.#$()};t.processResponseEndOfBody=processEventSourceEndOfBody;t.processResponse=t=>{if(g(t)){if(t.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#$();return}}const n=t.headersList.get("content-type",true);const i=n!==null?h(n):"failure";const A=i!=="failure"&&i.essence==="text/event-stream";if(t.status!==200||A===false){this.close();this.dispatchEvent(new Event("error"));return}this.#L=B;this.dispatchEvent(new Event("open"));this.#I.origin=t.urlList[t.urlList.length-1].origin;const c=new d({eventSourceSettings:this.#I,push:t=>{this.dispatchEvent(f(t.type,t.options))}});a(t.body.stream,c,t=>{if(t?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}})};this.#O=A(t)}async#$(){if(this.#L===Q)return;this.#L=y;this.dispatchEvent(new Event("error"));await p(this.#I.reconnectionTime);if(this.#L!==y)return;if(this.#I.lastEventId.length){this.#_.headersList.set("last-event-id",this.#I.lastEventId,true)}this.#H()}close(){l.brandCheck(this,EventSource);if(this.#L===Q)return;this.#L=Q;this.#O.abort();this.#_=null}get onopen(){return this.#x.open}set onopen(t){if(this.#x.open){this.removeEventListener("open",this.#x.open)}if(typeof t==="function"){this.#x.open=t;this.addEventListener("open",t)}else{this.#x.open=null}}get onmessage(){return this.#x.message}set onmessage(t){if(this.#x.message){this.removeEventListener("message",this.#x.message)}if(typeof t==="function"){this.#x.message=t;this.addEventListener("message",t)}else{this.#x.message=null}}get onerror(){return this.#x.error}set onerror(t){if(this.#x.error){this.removeEventListener("error",this.#x.error)}if(typeof t==="function"){this.#x.error=t;this.addEventListener("error",t)}else{this.#x.error=null}}}const b={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:y,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:B,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:Q,writable:false}};Object.defineProperties(EventSource,b);Object.defineProperties(EventSource.prototype,b);Object.defineProperties(EventSource.prototype,{close:m,onerror:m,onmessage:m,onopen:m,readyState:m,url:m,withCredentials:m});l.converters.EventSourceInitDict=l.dictionaryConverter([{key:"withCredentials",converter:l.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:l.converters.any}]);t.exports={EventSource:EventSource,defaultReconnectionTime:I}},4811:t=>{function isValidLastEventId(t){return t.indexOf("\0")===-1}function isASCIINumber(t){if(t.length===0)return false;for(let n=0;n57)return false}return true}function delay(t){return new Promise(n=>{setTimeout(n,t).unref()})}t.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(t,n,i)=>{const a=i(3440);const{ReadableStreamFrom:A,isBlobLike:c,isReadableStreamLike:l,readableStreamClose:d,createDeferredPromise:h,fullyReadBody:f,extractMimeType:g,utf8DecodeBytes:p}=i(3168);const{FormData:m}=i(5910);const{kState:E}=i(3627);const{webidl:C}=i(5893);const{Blob:I}=i(4573);const y=i(4589);const{isErrored:B,isDisturbed:Q}=i(7075);const{isArrayBuffer:w}=i(3429);const{serializeAMimeType:S}=i(1900);const{multipartFormDataParser:b}=i(116);let R;try{const t=i(7598);R=n=>t.randomInt(0,n)}catch{R=t=>Math.floor(Math.random(t))}const v=new TextEncoder;function noop(){}const k=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let D;if(k){D=new FinalizationRegistry(t=>{const n=t.deref();if(n&&!n.locked&&!Q(n)&&!B(n)){n.cancel("Response object has been garbage collected").catch(noop)}})}function extractBody(t,n=false){let i=null;if(t instanceof ReadableStream){i=t}else if(c(t)){i=t.stream()}else{i=new ReadableStream({async pull(t){const n=typeof f==="string"?v.encode(f):f;if(n.byteLength){t.enqueue(n)}queueMicrotask(()=>d(t))},start(){},type:"bytes"})}y(l(i));let h=null;let f=null;let g=null;let p=null;if(typeof t==="string"){f=t;p="text/plain;charset=UTF-8"}else if(t instanceof URLSearchParams){f=t.toString();p="application/x-www-form-urlencoded;charset=UTF-8"}else if(w(t)){f=new Uint8Array(t.slice())}else if(ArrayBuffer.isView(t)){f=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength))}else if(a.isFormDataLike(t)){const n=`----formdata-undici-0${`${R(1e11)}`.padStart(11,"0")}`;const i=`--${n}\r\nContent-Disposition: form-data` -/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=t=>t.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=t=>t.replace(/\r?\n|\r/g,"\r\n");const a=[];const A=new Uint8Array([13,10]);g=0;let c=false;for(const[n,l]of t){if(typeof l==="string"){const t=v.encode(i+`; name="${escape(normalizeLinefeeds(n))}"`+`\r\n\r\n${normalizeLinefeeds(l)}\r\n`);a.push(t);g+=t.byteLength}else{const t=v.encode(`${i}; name="${escape(normalizeLinefeeds(n))}"`+(l.name?`; filename="${escape(l.name)}"`:"")+"\r\n"+`Content-Type: ${l.type||"application/octet-stream"}\r\n\r\n`);a.push(t,l,A);if(typeof l.size==="number"){g+=t.byteLength+l.size+A.byteLength}else{c=true}}}const l=v.encode(`--${n}--\r\n`);a.push(l);g+=l.byteLength;if(c){g=null}f=t;h=async function*(){for(const t of a){if(t.stream){yield*t.stream()}else{yield t}}};p=`multipart/form-data; boundary=${n}`}else if(c(t)){f=t;g=t.size;if(t.type){p=t.type}}else if(typeof t[Symbol.asyncIterator]==="function"){if(n){throw new TypeError("keepalive")}if(a.isDisturbed(t)||t.locked){throw new TypeError("Response body object should not be disturbed or locked")}i=t instanceof ReadableStream?t:A(t)}if(typeof f==="string"||a.isBuffer(f)){g=Buffer.byteLength(f)}if(h!=null){let n;i=new ReadableStream({async start(){n=h(t)[Symbol.asyncIterator]()},async pull(t){const{value:a,done:A}=await n.next();if(A){queueMicrotask(()=>{t.close();t.byobRequest?.respond(0)})}else{if(!B(i)){const n=new Uint8Array(a);if(n.byteLength){t.enqueue(n)}}}return t.desiredSize>0},async cancel(t){await n.return()},type:"bytes"})}const m={stream:i,source:f,length:g};return[m,p]}function safelyExtractBody(t,n=false){if(t instanceof ReadableStream){y(!a.isDisturbed(t),"The body has already been consumed.");y(!t.locked,"The stream is locked.")}return extractBody(t,n)}function cloneBody(t,n){const[i,a]=n.stream.tee();n.stream=i;return{stream:a,length:n.length,source:n.source}}function throwIfAborted(t){if(t.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(t){const n={blob(){return consumeBody(this,t=>{let n=bodyMimeType(this);if(n===null){n=""}else if(n){n=S(n)}return new I([t],{type:n})},t)},arrayBuffer(){return consumeBody(this,t=>new Uint8Array(t).buffer,t)},text(){return consumeBody(this,p,t)},json(){return consumeBody(this,parseJSONFromBytes,t)},formData(){return consumeBody(this,t=>{const n=bodyMimeType(this);if(n!==null){switch(n.essence){case"multipart/form-data":{const i=b(t,n);if(i==="failure"){throw new TypeError("Failed to parse body as FormData.")}const a=new m;a[E]=i;return a}case"application/x-www-form-urlencoded":{const n=new URLSearchParams(t.toString());const i=new m;for(const[t,a]of n){i.append(t,a)}return i}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return consumeBody(this,t=>new Uint8Array(t),t)}};return n}function mixinBody(t){Object.assign(t.prototype,bodyMixinMethods(t))}async function consumeBody(t,n,i){C.brandCheck(t,i);if(bodyUnusable(t)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(t[E]);const a=h();const errorSteps=t=>a.reject(t);const successSteps=t=>{try{a.resolve(n(t))}catch(t){errorSteps(t)}};if(t[E].body==null){successSteps(Buffer.allocUnsafe(0));return a.promise}await f(t[E].body,successSteps,errorSteps);return a.promise}function bodyUnusable(t){const n=t[E].body;return n!=null&&(n.stream.locked||a.isDisturbed(n.stream))}function parseJSONFromBytes(t){return JSON.parse(p(t))}function bodyMimeType(t){const n=t[E].headersList;const i=g(n);if(i==="failure"){return null}return i}t.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:D,hasFinalizationRegistry:k,bodyUnusable:bodyUnusable}},4495:t=>{const n=["GET","HEAD","POST"];const i=new Set(n);const a=[101,204,205,304];const A=[301,302,303,307,308];const c=new Set(A);const l=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const d=new Set(l);const h=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const f=new Set(h);const g=["follow","manual","error"];const p=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(p);const E=["navigate","same-origin","no-cors","cors"];const C=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const y=["content-encoding","content-language","content-location","content-type","content-length"];const B=["half"];const Q=["CONNECT","TRACE","TRACK"];const w=new Set(Q);const S=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const b=new Set(S);t.exports={subresource:S,forbiddenMethods:Q,requestBodyHeader:y,referrerPolicy:h,requestRedirect:g,requestMode:E,requestCredentials:C,requestCache:I,redirectStatus:A,corsSafeListedMethods:n,nullBodyStatus:a,safeMethods:p,badPorts:l,requestDuplex:B,subresourceSet:b,badPortsSet:d,redirectStatusSet:c,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:w,referrerPolicySet:f}},1900:(t,n,i)=>{const a=i(4589);const A=new TextEncoder;const c=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const l=/[\u000A\u000D\u0009\u0020]/;const d=/[\u0009\u000A\u000C\u000D\u0020]/g;const h=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(t){a(t.protocol==="data:");let n=URLSerializer(t,true);n=n.slice(5);const i={position:0};let A=collectASequenceOfCodePointsFast(",",n,i);const c=A.length;A=removeASCIIWhitespace(A,true,true);if(i.position>=n.length){return"failure"}i.position++;const l=n.slice(c+1);let d=stringPercentDecode(l);if(/;(\u0020){0,}base64$/i.test(A)){const t=isomorphicDecode(d);d=forgivingBase64(t);if(d==="failure"){return"failure"}A=A.slice(0,-6);A=A.replace(/(\u0020)+$/,"");A=A.slice(0,-1)}if(A.startsWith(";")){A="text/plain"+A}let h=parseMIMEType(A);if(h==="failure"){h=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:h,body:d}}function URLSerializer(t,n=false){if(!n){return t.href}const i=t.href;const a=t.hash.length;const A=a===0?i:i.substring(0,i.length-a);if(!a&&i.endsWith("#")){return A.slice(0,-1)}return A}function collectASequenceOfCodePoints(t,n,i){let a="";while(i.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexByteToNumber(t){return t>=48&&t<=57?t-48:(t&223)-55}function percentDecode(t){const n=t.length;const i=new Uint8Array(n);let a=0;for(let A=0;At.length){return"failure"}n.position++;let a=collectASequenceOfCodePointsFast(";",t,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!c.test(a)){return"failure"}const A=i.toLowerCase();const d=a.toLowerCase();const f={type:A,subtype:d,parameters:new Map,essence:`${A}/${d}`};while(n.positionl.test(t),t,n);let i=collectASequenceOfCodePoints(t=>t!==";"&&t!=="=",t,n);i=i.toLowerCase();if(n.positiont.length){break}let a=null;if(t[n.position]==='"'){a=collectAnHTTPQuotedString(t,n,true);collectASequenceOfCodePointsFast(";",t,n)}else{a=collectASequenceOfCodePointsFast(";",t,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(i.length!==0&&c.test(i)&&(a.length===0||h.test(a))&&!f.parameters.has(i)){f.parameters.set(i,a)}}return f}function forgivingBase64(t){t=t.replace(d,"");let n=t.length;if(n%4===0){if(t.charCodeAt(n-1)===61){--n;if(t.charCodeAt(n-1)===61){--n}}}if(n%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(t.length===n?t:t.substring(0,n))){return"failure"}const i=Buffer.from(t,"base64");return new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}function collectAnHTTPQuotedString(t,n,i){const A=n.position;let c="";a(t[n.position]==='"');n.position++;while(true){c+=collectASequenceOfCodePoints(t=>t!=='"'&&t!=="\\",t,n);if(n.position>=t.length){break}const i=t[n.position];n.position++;if(i==="\\"){if(n.position>=t.length){c+="\\";break}c+=t[n.position];n.position++}else{a(i==='"');break}}if(i){return c}return t.slice(A,n.position)}function serializeAMimeType(t){a(t!=="failure");const{parameters:n,essence:i}=t;let A=i;for(let[t,i]of n.entries()){A+=";";A+=t;A+="=";if(!c.test(i)){i=i.replace(/(\\|")/g,"\\$1");i='"'+i;i+='"'}A+=i}return A}function isHTTPWhiteSpace(t){return t===13||t===10||t===9||t===32}function removeHTTPWhitespace(t,n=true,i=true){return removeChars(t,n,i,isHTTPWhiteSpace)}function isASCIIWhitespace(t){return t===13||t===10||t===9||t===12||t===32}function removeASCIIWhitespace(t,n=true,i=true){return removeChars(t,n,i,isASCIIWhitespace)}function removeChars(t,n,i,a){let A=0;let c=t.length-1;if(n){while(A0&&a(t.charCodeAt(c)))c--}return A===0&&c===t.length-1?t:t.slice(A,c+1)}function isomorphicDecode(t){const n=t.length;if((2<<15)-1>n){return String.fromCharCode.apply(null,t)}let i="";let a=0;let A=(2<<15)-1;while(an){A=n-a}i+=String.fromCharCode.apply(null,t.subarray(a,a+=A))}return i}function minimizeSupportedMimeType(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(t.subtype.endsWith("+json")){return"application/json"}if(t.subtype.endsWith("+xml")){return"application/xml"}return""}t.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:c,isomorphicDecode:isomorphicDecode}},6653:(t,n,i)=>{const{kConnected:a,kSize:A}=i(6443);class CompatWeakRef{constructor(t){this.value=t}deref(){return this.value[a]===0&&this.value[A]===0?undefined:this.value}}class CompatFinalizer{constructor(t){this.finalizer=t}register(t,n){if(t.on){t.on("disconnect",()=>{if(t[a]===0&&t[A]===0){this.finalizer(n)}})}}unregister(t){}}t.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(t,n,i)=>{const{Blob:a,File:A}=i(4573);const{kState:c}=i(3627);const{webidl:l}=i(5893);class FileLike{constructor(t,n,i={}){const a=n;const A=i.type;const l=i.lastModified??Date.now();this[c]={blobLike:t,name:a,type:A,lastModified:l}}stream(...t){l.brandCheck(this,FileLike);return this[c].blobLike.stream(...t)}arrayBuffer(...t){l.brandCheck(this,FileLike);return this[c].blobLike.arrayBuffer(...t)}slice(...t){l.brandCheck(this,FileLike);return this[c].blobLike.slice(...t)}text(...t){l.brandCheck(this,FileLike);return this[c].blobLike.text(...t)}get size(){l.brandCheck(this,FileLike);return this[c].blobLike.size}get type(){l.brandCheck(this,FileLike);return this[c].blobLike.type}get name(){l.brandCheck(this,FileLike);return this[c].name}get lastModified(){l.brandCheck(this,FileLike);return this[c].lastModified}get[Symbol.toStringTag](){return"File"}}l.converters.Blob=l.interfaceConverter(a);function isFileLike(t){return t instanceof A||t&&(typeof t.stream==="function"||typeof t.arrayBuffer==="function")&&t[Symbol.toStringTag]==="File"}t.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(t,n,i)=>{const{isUSVString:a,bufferToLowerCasedHeaderName:A}=i(3440);const{utf8DecodeBytes:c}=i(3168);const{HTTP_TOKEN_CODEPOINTS:l,isomorphicDecode:d}=i(1900);const{isFileLike:h}=i(7114);const{makeEntry:f}=i(5910);const g=i(4589);const{File:p}=i(4573);const m=globalThis.File??p;const E=Buffer.from('form-data; name="');const C=Buffer.from("; filename");const I=Buffer.from("--");const y=Buffer.from("--\r\n");function isAsciiString(t){for(let n=0;n70){return false}for(let i=0;i=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95)){return false}}return true}function multipartFormDataParser(t,n){g(n!=="failure"&&n.essence==="multipart/form-data");const i=n.parameters.get("boundary");if(i===undefined){return"failure"}const A=Buffer.from(`--${i}`,"utf8");const l=[];const d={position:0};while(t[d.position]===13&&t[d.position+1]===10){d.position+=2}let p=t.length;while(t[p-1]===10&&t[p-2]===13){p-=2}if(p!==t.length){t=t.subarray(0,p)}while(true){if(t.subarray(d.position,d.position+A.length).equals(A)){d.position+=A.length}else{return"failure"}if(d.position===t.length-2&&bufferStartsWith(t,I,d)||d.position===t.length-4&&bufferStartsWith(t,y,d)){return l}if(t[d.position]!==13||t[d.position+1]!==10){return"failure"}d.position+=2;const n=parseMultipartFormDataHeaders(t,d);if(n==="failure"){return"failure"}let{name:i,filename:p,contentType:E,encoding:C}=n;d.position+=2;let B;{const n=t.indexOf(A.subarray(2),d.position);if(n===-1){return"failure"}B=t.subarray(d.position,n-4);d.position+=B.length;if(C==="base64"){B=Buffer.from(B.toString(),"base64")}}if(t[d.position]!==13||t[d.position+1]!==10){return"failure"}else{d.position+=2}let Q;if(p!==null){E??="text/plain";if(!isAsciiString(E)){E=""}Q=new m([B],p,{type:E})}else{Q=c(Buffer.from(B))}g(a(i));g(typeof Q==="string"&&a(Q)||h(Q));l.push(f(i,Q,p))}}function parseMultipartFormDataHeaders(t,n){let i=null;let a=null;let c=null;let h=null;while(true){if(t[n.position]===13&&t[n.position+1]===10){if(i===null){return"failure"}return{name:i,filename:a,contentType:c,encoding:h}}let f=collectASequenceOfBytes(t=>t!==10&&t!==13&&t!==58,t,n);f=removeChars(f,true,true,t=>t===9||t===32);if(!l.test(f.toString())){return"failure"}if(t[n.position]!==58){return"failure"}n.position++;collectASequenceOfBytes(t=>t===32||t===9,t,n);switch(A(f)){case"content-disposition":{i=a=null;if(!bufferStartsWith(t,E,n)){return"failure"}n.position+=17;i=parseMultipartFormDataName(t,n);if(i===null){return"failure"}if(bufferStartsWith(t,C,n)){let i=n.position+C.length;if(t[i]===42){n.position+=1;i+=1}if(t[i]!==61||t[i+1]!==34){return"failure"}n.position+=12;a=parseMultipartFormDataName(t,n);if(a===null){return"failure"}}break}case"content-type":{let i=collectASequenceOfBytes(t=>t!==10&&t!==13,t,n);i=removeChars(i,false,true,t=>t===9||t===32);c=d(i);break}case"content-transfer-encoding":{let i=collectASequenceOfBytes(t=>t!==10&&t!==13,t,n);i=removeChars(i,false,true,t=>t===9||t===32);h=d(i);break}default:{collectASequenceOfBytes(t=>t!==10&&t!==13,t,n)}}if(t[n.position]!==13&&t[n.position+1]!==10){return"failure"}else{n.position+=2}}}function parseMultipartFormDataName(t,n){g(t[n.position-1]===34);let i=collectASequenceOfBytes(t=>t!==10&&t!==13&&t!==34,t,n);if(t[n.position]!==34){return null}else{n.position++}i=(new TextDecoder).decode(i).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return i}function collectASequenceOfBytes(t,n,i){let a=i.position;while(a0&&a(t[c]))c--}return A===0&&c===t.length-1?t:t.subarray(A,c+1)}function bufferStartsWith(t,n,i){if(t.length{const{isBlobLike:a,iteratorMixin:A}=i(3168);const{kState:c}=i(3627);const{kEnumerableProperty:l}=i(3440);const{FileLike:d,isFileLike:h}=i(7114);const{webidl:f}=i(5893);const{File:g}=i(4573);const p=i(7975);const m=globalThis.File??g;class FormData{constructor(t){f.util.markAsUncloneable(this);if(t!==undefined){throw f.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[c]=[]}append(t,n,i=undefined){f.brandCheck(this,FormData);const A="FormData.append";f.argumentLengthCheck(arguments,2,A);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}t=f.converters.USVString(t,A,"name");n=a(n)?f.converters.Blob(n,A,"value",{strict:false}):f.converters.USVString(n,A,"value");i=arguments.length===3?f.converters.USVString(i,A,"filename"):undefined;const l=makeEntry(t,n,i);this[c].push(l)}delete(t){f.brandCheck(this,FormData);const n="FormData.delete";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");this[c]=this[c].filter(n=>n.name!==t)}get(t){f.brandCheck(this,FormData);const n="FormData.get";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");const i=this[c].findIndex(n=>n.name===t);if(i===-1){return null}return this[c][i].value}getAll(t){f.brandCheck(this,FormData);const n="FormData.getAll";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");return this[c].filter(n=>n.name===t).map(t=>t.value)}has(t){f.brandCheck(this,FormData);const n="FormData.has";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");return this[c].findIndex(n=>n.name===t)!==-1}set(t,n,i=undefined){f.brandCheck(this,FormData);const A="FormData.set";f.argumentLengthCheck(arguments,2,A);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}t=f.converters.USVString(t,A,"name");n=a(n)?f.converters.Blob(n,A,"name",{strict:false}):f.converters.USVString(n,A,"name");i=arguments.length===3?f.converters.USVString(i,A,"name"):undefined;const l=makeEntry(t,n,i);const d=this[c].findIndex(n=>n.name===t);if(d!==-1){this[c]=[...this[c].slice(0,d),l,...this[c].slice(d+1).filter(n=>n.name!==t)]}else{this[c].push(l)}}[p.inspect.custom](t,n){const i=this[c].reduce((t,n)=>{if(t[n.name]){if(Array.isArray(t[n.name])){t[n.name].push(n.value)}else{t[n.name]=[t[n.name],n.value]}}else{t[n.name]=n.value}return t},{__proto__:null});n.depth??=t;n.colors??=true;const a=p.formatWithOptions(n,i);return`FormData ${a.slice(a.indexOf("]")+2)}`}}A("FormData",FormData,c,"name","value");Object.defineProperties(FormData.prototype,{append:l,delete:l,get:l,getAll:l,has:l,set:l,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(t,n,i){if(typeof n==="string"){}else{if(!h(n)){n=n instanceof Blob?new m([n],"blob",{type:n.type}):new d(n,"blob",{type:n.type})}if(i!==undefined){const t={type:n.type,lastModified:n.lastModified};n=n instanceof g?new m([n],i,t):new d(n,i,t)}}return{name:t,value:n}}t.exports={FormData:FormData,makeEntry:makeEntry}},1059:t=>{const n=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[n]}function setGlobalOrigin(t){if(t===undefined){Object.defineProperty(globalThis,n,{value:undefined,writable:true,enumerable:false,configurable:false});return}const i=new URL(t);if(i.protocol!=="http:"&&i.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${i.protocol}`)}Object.defineProperty(globalThis,n,{value:i,writable:true,enumerable:false,configurable:false})}t.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(t,n,i)=>{const{kConstruct:a}=i(6443);const{kEnumerableProperty:A}=i(3440);const{iteratorMixin:c,isValidHeaderName:l,isValidHeaderValue:d}=i(3168);const{webidl:h}=i(5893);const f=i(4589);const g=i(7975);const p=Symbol("headers map");const m=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(t){return t===10||t===13||t===9||t===32}function headerValueNormalize(t){let n=0;let i=t.length;while(i>n&&isHTTPWhiteSpaceCharCode(t.charCodeAt(i-1)))--i;while(i>n&&isHTTPWhiteSpaceCharCode(t.charCodeAt(n)))++n;return n===0&&i===t.length?t:t.substring(n,i)}function fill(t,n){if(Array.isArray(n)){for(let i=0;i>","record"]})}}function appendHeader(t,n,i){i=headerValueNormalize(i);if(!l(n)){throw h.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header name"})}else if(!d(i)){throw h.errors.invalidArgument({prefix:"Headers.append",value:i,type:"header value"})}if(E(t)==="immutable"){throw new TypeError("immutable")}return I(t).append(n,i,false)}function compareHeaderName(t,n){return t[0]>1);if(n[d][0]<=h[0]){l=d+1}else{c=d}}if(a!==d){A=a;while(A>l){n[A]=n[--A]}n[l]=h}}if(!i.next().done){throw new TypeError("Unreachable")}return n}else{let t=0;for(const{0:i,1:{value:a}}of this[p]){n[t++]=[i,a];f(a!==null)}return n.sort(compareHeaderName)}}}class Headers{#G;#V;constructor(t=undefined){h.util.markAsUncloneable(this);if(t===a){return}this.#V=new HeadersList;this.#G="none";if(t!==undefined){t=h.converters.HeadersInit(t,"Headers contructor","init");fill(this,t)}}append(t,n){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,"Headers.append");const i="Headers.append";t=h.converters.ByteString(t,i,"name");n=h.converters.ByteString(n,i,"value");return appendHeader(this,t,n)}delete(t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.delete");const n="Headers.delete";t=h.converters.ByteString(t,n,"name");if(!l(t)){throw h.errors.invalidArgument({prefix:"Headers.delete",value:t,type:"header name"})}if(this.#G==="immutable"){throw new TypeError("immutable")}if(!this.#V.contains(t,false)){return}this.#V.delete(t,false)}get(t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.get");const n="Headers.get";t=h.converters.ByteString(t,n,"name");if(!l(t)){throw h.errors.invalidArgument({prefix:n,value:t,type:"header name"})}return this.#V.get(t,false)}has(t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.has");const n="Headers.has";t=h.converters.ByteString(t,n,"name");if(!l(t)){throw h.errors.invalidArgument({prefix:n,value:t,type:"header name"})}return this.#V.contains(t,false)}set(t,n){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,"Headers.set");const i="Headers.set";t=h.converters.ByteString(t,i,"name");n=h.converters.ByteString(n,i,"value");n=headerValueNormalize(n);if(!l(t)){throw h.errors.invalidArgument({prefix:i,value:t,type:"header name"})}else if(!d(n)){throw h.errors.invalidArgument({prefix:i,value:n,type:"header value"})}if(this.#G==="immutable"){throw new TypeError("immutable")}this.#V.set(t,n,false)}getSetCookie(){h.brandCheck(this,Headers);const t=this.#V.cookies;if(t){return[...t]}return[]}get[m](){if(this.#V[m]){return this.#V[m]}const t=[];const n=this.#V.toSortedArray();const i=this.#V.cookies;if(i===null||i.length===1){return this.#V[m]=n}for(let a=0;a>"](t,n,i,a.bind(t))}return h.converters["record"](t,n,i)}throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};t.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:E,setHeadersGuard:C,setHeadersList:y,getHeadersList:I}},4398:(t,n,i)=>{const{makeNetworkError:a,makeAppropriateNetworkError:A,filterResponse:c,makeResponse:l,fromInnerResponse:d}=i(9051);const{HeadersList:h}=i(660);const{Request:f,cloneRequest:g}=i(9967);const p=i(8522);const{bytesMatch:m,makePolicyContainer:E,clonePolicyContainer:C,requestBadPort:I,TAOCheck:y,appendRequestOriginHeader:B,responseLocationURL:Q,requestCurrentURL:w,setRequestReferrerPolicyOnRedirect:S,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:R,appendFetchMetadata:v,corsCheck:k,crossOriginResourcePolicyCheck:D,determineRequestsReferrer:T,coarsenedSharedCurrentTime:N,createDeferredPromise:M,isBlobLike:F,sameOrigin:x,isCancelled:U,isAborted:P,isErrorLike:L,fullyReadBody:O,readableStreamClose:H,isomorphicEncode:$,urlIsLocal:G,urlIsHttpHttpsScheme:V,urlHasHttpsScheme:Y,clampAndCoarsenConnectionTimingInfo:J,simpleRangeHeaderValue:W,buildContentRange:q,createInflate:j,extractMimeType:z}=i(3168);const{kState:K,kDispatcher:Z}=i(3627);const X=i(4589);const{safelyExtractBody:ee,extractBody:te}=i(4492);const{redirectStatusSet:re,nullBodyStatus:ne,safeMethodsSet:se,requestBodyHeader:oe,subresourceSet:ie}=i(4495);const ae=i(8474);const{Readable:Ae,pipeline:ce,finished:le}=i(7075);const{addAbortListener:ue,isErrored:de,isReadable:he,bufferToLowerCasedHeaderName:fe}=i(3440);const{dataURLProcessor:ge,serializeAMimeType:pe,minimizeSupportedMimeType:me}=i(1900);const{getGlobalDispatcher:Ee}=i(2581);const{webidl:Ce}=i(5893);const{STATUS_CODES:Ie}=i(7067);const ye=["GET","HEAD"];const Be=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let Qe;class Fetch extends ae{constructor(t){super();this.dispatcher=t;this.connection=null;this.dump=false;this.state="ongoing"}terminate(t){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(t);this.emit("terminated",t)}abort(t){if(this.state!=="ongoing"){return}this.state="aborted";if(!t){t=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=t;this.connection?.destroy(t);this.emit("terminated",t)}}function handleFetchDone(t){finalizeAndReportTiming(t,"fetch")}function fetch(t,n=undefined){Ce.argumentLengthCheck(arguments,1,"globalThis.fetch");let i=M();let a;try{a=new f(t,n)}catch(t){i.reject(t);return i.promise}const A=a[K];if(a.signal.aborted){abortFetch(i,A,null,a.signal.reason);return i.promise}const c=A.client.globalObject;if(c?.constructor?.name==="ServiceWorkerGlobalScope"){A.serviceWorkers="none"}let l=null;let h=false;let g=null;ue(a.signal,()=>{h=true;X(g!=null);g.abort(a.signal.reason);const t=l?.deref();abortFetch(i,A,t,a.signal.reason)});const processResponse=t=>{if(h){return}if(t.aborted){abortFetch(i,A,l,g.serializedAbortReason);return}if(t.type==="error"){i.reject(new TypeError("fetch failed",{cause:t.error}));return}l=new WeakRef(d(t,"immutable"));i.resolve(l.deref());i=null};g=fetching({request:A,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:a[Z]});return i.promise}function finalizeAndReportTiming(t,n="other"){if(t.type==="error"&&t.aborted){return}if(!t.urlList?.length){return}const i=t.urlList[0];let a=t.timingInfo;let A=t.cacheState;if(!V(i)){return}if(a===null){return}if(!t.timingAllowPassed){a=R({startTime:a.startTime});A=""}a.endTime=N();t.timingInfo=a;we(a,i.href,n,globalThis,A)}const we=performance.markResourceTiming;function abortFetch(t,n,i,a){if(t){t.reject(a)}if(n.body!=null&&he(n.body?.stream)){n.body.stream.cancel(a).catch(t=>{if(t.code==="ERR_INVALID_STATE"){return}throw t})}if(i==null){return}const A=i[K];if(A.body!=null&&he(A.body?.stream)){A.body.stream.cancel(a).catch(t=>{if(t.code==="ERR_INVALID_STATE"){return}throw t})}}function fetching({request:t,processRequestBodyChunkLength:n,processRequestEndOfBody:i,processResponse:a,processResponseEndOfBody:A,processResponseConsumeBody:c,useParallelQueue:l=false,dispatcher:d=Ee()}){X(d);let h=null;let f=false;if(t.client!=null){h=t.client.globalObject;f=t.client.crossOriginIsolatedCapability}const g=N(f);const p=R({startTime:g});const m={controller:new Fetch(d),request:t,timingInfo:p,processRequestBodyChunkLength:n,processRequestEndOfBody:i,processResponse:a,processResponseConsumeBody:c,processResponseEndOfBody:A,taskDestination:h,crossOriginIsolatedCapability:f};X(!t.body||t.body.stream);if(t.window==="client"){t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"}if(t.origin==="client"){t.origin=t.client.origin}if(t.policyContainer==="client"){if(t.client!=null){t.policyContainer=C(t.client.policyContainer)}else{t.policyContainer=E()}}if(!t.headersList.contains("accept",true)){const n="*/*";t.headersList.append("accept",n,true)}if(!t.headersList.contains("accept-language",true)){t.headersList.append("accept-language","*",true)}if(t.priority===null){}if(ie.has(t.destination)){}mainFetch(m).catch(t=>{m.controller.terminate(t)});return m.controller}async function mainFetch(t,n=false){const i=t.request;let A=null;if(i.localURLsOnly&&!G(w(i))){A=a("local URLs only")}b(i);if(I(i)==="blocked"){A=a("bad port")}if(i.referrerPolicy===""){i.referrerPolicy=i.policyContainer.referrerPolicy}if(i.referrer!=="no-referrer"){i.referrer=T(i)}if(A===null){A=await(async()=>{const n=w(i);if(x(n,i.url)&&i.responseTainting==="basic"||n.protocol==="data:"||(i.mode==="navigate"||i.mode==="websocket")){i.responseTainting="basic";return await schemeFetch(t)}if(i.mode==="same-origin"){return a('request mode cannot be "same-origin"')}if(i.mode==="no-cors"){if(i.redirect!=="follow"){return a('redirect mode cannot be "follow" for "no-cors" request')}i.responseTainting="opaque";return await schemeFetch(t)}if(!V(w(i))){return a("URL scheme must be a HTTP(S) scheme")}i.responseTainting="cors";return await httpFetch(t)})()}if(n){return A}if(A.status!==0&&!A.internalResponse){if(i.responseTainting==="cors"){}if(i.responseTainting==="basic"){A=c(A,"basic")}else if(i.responseTainting==="cors"){A=c(A,"cors")}else if(i.responseTainting==="opaque"){A=c(A,"opaque")}else{X(false)}}let l=A.status===0?A:A.internalResponse;if(l.urlList.length===0){l.urlList.push(...i.urlList)}if(!i.timingAllowFailed){A.timingAllowPassed=true}if(A.type==="opaque"&&l.status===206&&l.rangeRequested&&!i.headers.contains("range",true)){A=l=a()}if(A.status!==0&&(i.method==="HEAD"||i.method==="CONNECT"||ne.includes(l.status))){l.body=null;t.controller.dump=true}if(i.integrity){const processBodyError=n=>fetchFinale(t,a(n));if(i.responseTainting==="opaque"||A.body==null){processBodyError(A.error);return}const processBody=n=>{if(!m(n,i.integrity)){processBodyError("integrity mismatch");return}A.body=ee(n)[0];fetchFinale(t,A)};await O(A.body,processBody,processBodyError)}else{fetchFinale(t,A)}}function schemeFetch(t){if(U(t)&&t.request.redirectCount===0){return Promise.resolve(A(t))}const{request:n}=t;const{protocol:c}=w(n);switch(c){case"about:":{return Promise.resolve(a("about scheme is not supported"))}case"blob:":{if(!Qe){Qe=i(4573).resolveObjectURL}const t=w(n);if(t.search.length!==0){return Promise.resolve(a("NetworkError when attempting to fetch resource."))}const A=Qe(t.toString());if(n.method!=="GET"||!F(A)){return Promise.resolve(a("invalid method"))}const c=l();const d=A.size;const h=$(`${d}`);const f=A.type;if(!n.headersList.contains("range",true)){const t=te(A);c.statusText="OK";c.body=t[0];c.headersList.set("content-length",h,true);c.headersList.set("content-type",f,true)}else{c.rangeRequested=true;const t=n.headersList.get("range",true);const i=W(t,true);if(i==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}let{rangeStartValue:l,rangeEndValue:h}=i;if(l===null){l=d-h;h=l+h-1}else{if(l>=d){return Promise.resolve(a("Range start is greater than the blob's size."))}if(h===null||h>=d){h=d-1}}const g=A.slice(l,h,f);const p=te(g);c.body=p[0];const m=$(`${g.size}`);const E=q(l,h,d);c.status=206;c.statusText="Partial Content";c.headersList.set("content-length",m,true);c.headersList.set("content-type",f,true);c.headersList.set("content-range",E,true)}return Promise.resolve(c)}case"data:":{const t=w(n);const i=ge(t);if(i==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}const A=pe(i.mimeType);return Promise.resolve(l({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:A}]],body:ee(i.body)[0]}))}case"file:":{return Promise.resolve(a("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(t).catch(t=>a(t))}default:{return Promise.resolve(a("unknown scheme"))}}}function finalizeResponse(t,n){t.request.done=true;if(t.processResponseDone!=null){queueMicrotask(()=>t.processResponseDone(n))}}function fetchFinale(t,n){let i=t.timingInfo;const processResponseEndOfBody=()=>{const a=Date.now();if(t.request.destination==="document"){t.controller.fullTimingInfo=i}t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:"){return}i.endTime=a;let A=n.cacheState;const c=n.bodyInfo;if(!n.timingAllowPassed){i=R(i);A=""}let l=0;if(t.request.mode!=="navigator"||!n.hasCrossOriginRedirects){l=n.status;const t=z(n.headersList);if(t!=="failure"){c.contentType=me(t)}}if(t.request.initiatorType!=null){we(i,t.request.url.href,t.request.initiatorType,globalThis,A,c,l)}};const processResponseEndOfBodyTask=()=>{t.request.done=true;if(t.processResponseEndOfBody!=null){queueMicrotask(()=>t.processResponseEndOfBody(n))}if(t.request.initiatorType!=null){t.controller.reportTimingSteps()}};queueMicrotask(()=>processResponseEndOfBodyTask())};if(t.processResponse!=null){queueMicrotask(()=>{t.processResponse(n);t.processResponse=null})}const a=n.type==="error"?n:n.internalResponse??n;if(a.body==null){processResponseEndOfBody()}else{le(a.body.stream,()=>{processResponseEndOfBody()})}}async function httpFetch(t){const n=t.request;let i=null;let A=null;const c=t.timingInfo;if(n.serviceWorkers==="all"){}if(i===null){if(n.redirect==="follow"){n.serviceWorkers="none"}A=i=await httpNetworkOrCacheFetch(t);if(n.responseTainting==="cors"&&k(n,i)==="failure"){return a("cors failure")}if(y(n,i)==="failure"){n.timingAllowFailed=true}}if((n.responseTainting==="opaque"||i.type==="opaque")&&D(n.origin,n.client,n.destination,A)==="blocked"){return a("blocked")}if(re.has(A.status)){if(n.redirect!=="manual"){t.controller.connection.destroy(undefined,false)}if(n.redirect==="error"){i=a("unexpected redirect")}else if(n.redirect==="manual"){i=A}else if(n.redirect==="follow"){i=await httpRedirectFetch(t,i)}else{X(false)}}i.timingInfo=c;return i}function httpRedirectFetch(t,n){const i=t.request;const A=n.internalResponse?n.internalResponse:n;let c;try{c=Q(A,w(i).hash);if(c==null){return n}}catch(t){return Promise.resolve(a(t))}if(!V(c)){return Promise.resolve(a("URL scheme must be a HTTP(S) scheme"))}if(i.redirectCount===20){return Promise.resolve(a("redirect count exceeded"))}i.redirectCount+=1;if(i.mode==="cors"&&(c.username||c.password)&&!x(i,c)){return Promise.resolve(a('cross origin not allowed for request mode "cors"'))}if(i.responseTainting==="cors"&&(c.username||c.password)){return Promise.resolve(a('URL cannot contain credentials for request mode "cors"'))}if(A.status!==303&&i.body!=null&&i.body.source==null){return Promise.resolve(a())}if([301,302].includes(A.status)&&i.method==="POST"||A.status===303&&!ye.includes(i.method)){i.method="GET";i.body=null;for(const t of oe){i.headersList.delete(t)}}if(!x(w(i),c)){i.headersList.delete("authorization",true);i.headersList.delete("proxy-authorization",true);i.headersList.delete("cookie",true);i.headersList.delete("host",true)}if(i.body!=null){X(i.body.source!=null);i.body=ee(i.body.source)[0]}const l=t.timingInfo;l.redirectEndTime=l.postRedirectStartTime=N(t.crossOriginIsolatedCapability);if(l.redirectStartTime===0){l.redirectStartTime=l.startTime}i.urlList.push(c);S(i,A);return mainFetch(t,true)}async function httpNetworkOrCacheFetch(t,n=false,i=false){const c=t.request;let l=null;let d=null;let h=null;const f=null;const p=false;if(c.window==="no-window"&&c.redirect==="error"){l=t;d=c}else{d=g(c);l={...t};l.request=d}const m=c.credentials==="include"||c.credentials==="same-origin"&&c.responseTainting==="basic";const E=d.body?d.body.length:null;let C=null;if(d.body==null&&["POST","PUT"].includes(d.method)){C="0"}if(E!=null){C=$(`${E}`)}if(C!=null){d.headersList.append("content-length",C,true)}if(E!=null&&d.keepalive){}if(d.referrer instanceof URL){d.headersList.append("referer",$(d.referrer.href),true)}B(d);v(d);if(!d.headersList.contains("user-agent",true)){d.headersList.append("user-agent",Be)}if(d.cache==="default"&&(d.headersList.contains("if-modified-since",true)||d.headersList.contains("if-none-match",true)||d.headersList.contains("if-unmodified-since",true)||d.headersList.contains("if-match",true)||d.headersList.contains("if-range",true))){d.cache="no-store"}if(d.cache==="no-cache"&&!d.preventNoCacheCacheControlHeaderModification&&!d.headersList.contains("cache-control",true)){d.headersList.append("cache-control","max-age=0",true)}if(d.cache==="no-store"||d.cache==="reload"){if(!d.headersList.contains("pragma",true)){d.headersList.append("pragma","no-cache",true)}if(!d.headersList.contains("cache-control",true)){d.headersList.append("cache-control","no-cache",true)}}if(d.headersList.contains("range",true)){d.headersList.append("accept-encoding","identity",true)}if(!d.headersList.contains("accept-encoding",true)){if(Y(w(d))){d.headersList.append("accept-encoding","br, gzip, deflate",true)}else{d.headersList.append("accept-encoding","gzip, deflate",true)}}d.headersList.delete("host",true);if(m){}if(f==null){d.cache="no-store"}if(d.cache!=="no-store"&&d.cache!=="reload"){}if(h==null){if(d.cache==="only-if-cached"){return a("only if cached")}const t=await httpNetworkFetch(l,m,i);if(!se.has(d.method)&&t.status>=200&&t.status<=399){}if(p&&t.status===304){}if(h==null){h=t}}h.urlList=[...d.urlList];if(d.headersList.contains("range",true)){h.rangeRequested=true}h.requestIncludesCredentials=m;if(h.status===407){if(c.window==="no-window"){return a()}if(U(t)){return A(t)}return a("proxy authentication required")}if(h.status===421&&!i&&(c.body==null||c.body.source!=null)){if(U(t)){return A(t)}t.controller.connection.destroy();h=await httpNetworkOrCacheFetch(t,n,true)}if(n){}return h}async function httpNetworkFetch(t,n=false,i=false){X(!t.controller.connection||t.controller.connection.destroyed);t.controller.connection={abort:null,destroyed:false,destroy(t,n=true){if(!this.destroyed){this.destroyed=true;if(n){this.abort?.(t??new DOMException("The operation was aborted.","AbortError"))}}}};const c=t.request;let d=null;const f=t.timingInfo;const g=null;if(g==null){c.cache="no-store"}const m=i?"yes":"no";if(c.mode==="websocket"){}else{}let E=null;if(c.body==null&&t.processRequestEndOfBody){queueMicrotask(()=>t.processRequestEndOfBody())}else if(c.body!=null){const processBodyChunk=async function*(n){if(U(t)){return}yield n;t.processRequestBodyChunkLength?.(n.byteLength)};const processEndOfBody=()=>{if(U(t)){return}if(t.processRequestEndOfBody){t.processRequestEndOfBody()}};const processBodyError=n=>{if(U(t)){return}if(n.name==="AbortError"){t.controller.abort()}else{t.controller.terminate(n)}};E=async function*(){try{for await(const t of c.body.stream){yield*processBodyChunk(t)}processEndOfBody()}catch(t){processBodyError(t)}}()}try{const{body:n,status:i,statusText:a,headersList:A,socket:c}=await dispatch({body:E});if(c){d=l({status:i,statusText:a,headersList:A,socket:c})}else{const c=n[Symbol.asyncIterator]();t.controller.next=()=>c.next();d=l({status:i,statusText:a,headersList:A})}}catch(n){if(n.name==="AbortError"){t.controller.connection.destroy();return A(t,n)}return a(n)}const pullAlgorithm=async()=>{await t.controller.resume()};const cancelAlgorithm=n=>{if(!U(t)){t.controller.abort(n)}};const C=new ReadableStream({async start(n){t.controller.controller=n},async pull(t){await pullAlgorithm(t)},async cancel(t){await cancelAlgorithm(t)},type:"bytes"});d.body={stream:C,source:null,length:null};t.controller.onAborted=onAborted;t.controller.on("terminated",onAborted);t.controller.resume=async()=>{while(true){let n;let i;try{const{done:i,value:a}=await t.controller.next();if(P(t)){break}n=i?undefined:a}catch(a){if(t.controller.ended&&!f.encodedBodySize){n=undefined}else{n=a;i=true}}if(n===undefined){H(t.controller.controller);finalizeResponse(t,d);return}f.decodedBodySize+=n?.byteLength??0;if(i){t.controller.terminate(n);return}const a=new Uint8Array(n);if(a.byteLength){t.controller.controller.enqueue(a)}if(de(C)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0){return}}};function onAborted(n){if(P(t)){d.aborted=true;if(he(C)){t.controller.controller.error(t.controller.serializedAbortReason)}}else{if(he(C)){t.controller.controller.error(new TypeError("terminated",{cause:L(n)?n:undefined}))}}t.controller.connection.destroy()}return d;function dispatch({body:n}){const i=w(c);const a=t.controller.dispatcher;return new Promise((A,l)=>a.dispatch({path:i.pathname+i.search,origin:i.origin,method:c.method,body:a.isMockActive?c.body&&(c.body.source||c.body.stream):n,headers:c.headersList.entries,maxRedirections:0,upgrade:c.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(n){const{connection:i}=t.controller;f.finalConnectionTimingInfo=J(undefined,f.postRedirectStartTime,t.crossOriginIsolatedCapability);if(i.destroyed){n(new DOMException("The operation was aborted.","AbortError"))}else{t.controller.on("terminated",n);this.abort=i.abort=n}f.finalNetworkRequestStartTime=N(t.crossOriginIsolatedCapability)},onResponseStarted(){f.finalNetworkResponseStartTime=N(t.crossOriginIsolatedCapability)},onHeaders(t,n,i,a){if(t<200){return}let d="";const f=new h;for(let t=0;ti){l(new Error(`too many content-encodings in response: ${n.length}, maximum allowed is ${i}`));return true}for(let t=n.length-1;t>=0;--t){const i=n[t].trim();if(i==="x-gzip"||i==="gzip"){g.push(p.createGunzip({flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH}))}else if(i==="deflate"){g.push(j({flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH}))}else if(i==="br"){g.push(p.createBrotliDecompress({flush:p.constants.BROTLI_OPERATION_FLUSH,finishFlush:p.constants.BROTLI_OPERATION_FLUSH}))}else{g.length=0;break}}}const E=this.onError.bind(this);A({status:t,statusText:a,headersList:f,body:g.length?ce(this.body,...g,t=>{if(t){this.onError(t)}}).on("error",E):this.body.on("error",E)});return true},onData(n){if(t.controller.dump){return}const i=n;f.encodedBodySize+=i.byteLength;return this.body.push(i)},onComplete(){if(this.abort){t.controller.off("terminated",this.abort)}if(t.controller.onAborted){t.controller.off("terminated",t.controller.onAborted)}t.controller.ended=true;this.body.push(null)},onError(n){if(this.abort){t.controller.off("terminated",this.abort)}this.body?.destroy(n);t.controller.terminate(n);l(n)},onUpgrade(t,n,i){if(t!==101){return}const a=new h;for(let t=0;t{const{extractBody:a,mixinBody:A,cloneBody:c,bodyUnusable:l}=i(4492);const{Headers:d,fill:h,HeadersList:f,setHeadersGuard:g,getHeadersGuard:p,setHeadersList:m,getHeadersList:E}=i(660);const{FinalizationRegistry:C}=i(6653)();const I=i(3440);const y=i(7975);const{isValidHTTPToken:B,sameOrigin:Q,environmentSettingsObject:w}=i(3168);const{forbiddenMethodsSet:S,corsSafeListedMethodsSet:b,referrerPolicy:R,requestRedirect:v,requestMode:k,requestCredentials:D,requestCache:T,requestDuplex:N}=i(4495);const{kEnumerableProperty:M,normalizedMethodRecordsBase:F,normalizedMethodRecords:x}=I;const{kHeaders:U,kSignal:P,kState:L,kDispatcher:O}=i(3627);const{webidl:H}=i(5893);const{URLSerializer:$}=i(1900);const{kConstruct:G}=i(6443);const V=i(4589);const{getMaxListeners:Y,setMaxListeners:J,getEventListeners:W,defaultMaxListeners:q}=i(8474);const j=Symbol("abortController");const z=new C(({signal:t,abort:n})=>{t.removeEventListener("abort",n)});const K=new WeakMap;function buildAbort(t){return abort;function abort(){const n=t.deref();if(n!==undefined){z.unregister(abort);this.removeEventListener("abort",abort);n.abort(this.reason);const t=K.get(n.signal);if(t!==undefined){if(t.size!==0){for(const n of t){const t=n.deref();if(t!==undefined){t.abort(this.reason)}}t.clear()}K.delete(n.signal)}}}}let Z=false;class Request{constructor(t,n={}){H.util.markAsUncloneable(this);if(t===G){return}const i="Request constructor";H.argumentLengthCheck(arguments,1,i);t=H.converters.RequestInfo(t,i,"input");n=H.converters.RequestInit(n,i,"init");let A=null;let c=null;const p=w.settingsObject.baseUrl;let C=null;if(typeof t==="string"){this[O]=n.dispatcher;let i;try{i=new URL(t,p)}catch(n){throw new TypeError("Failed to parse URL from "+t,{cause:n})}if(i.username||i.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+t)}A=makeRequest({urlList:[i]});c="cors"}else{this[O]=n.dispatcher||t[O];V(t instanceof Request);A=t[L];C=t[P]}const y=w.settingsObject.origin;let R="client";if(A.window?.constructor?.name==="EnvironmentSettingsObject"&&Q(A.window,y)){R=A.window}if(n.window!=null){throw new TypeError(`'window' option '${R}' must be null`)}if("window"in n){R="no-window"}A=makeRequest({method:A.method,headersList:A.headersList,unsafeRequest:A.unsafeRequest,client:w.settingsObject,window:R,priority:A.priority,origin:A.origin,referrer:A.referrer,referrerPolicy:A.referrerPolicy,mode:A.mode,credentials:A.credentials,cache:A.cache,redirect:A.redirect,integrity:A.integrity,keepalive:A.keepalive,reloadNavigation:A.reloadNavigation,historyNavigation:A.historyNavigation,urlList:[...A.urlList]});const v=Object.keys(n).length!==0;if(v){if(A.mode==="navigate"){A.mode="same-origin"}A.reloadNavigation=false;A.historyNavigation=false;A.origin="client";A.referrer="client";A.referrerPolicy="";A.url=A.urlList[A.urlList.length-1];A.urlList=[A.url]}if(n.referrer!==undefined){const t=n.referrer;if(t===""){A.referrer="no-referrer"}else{let n;try{n=new URL(t,p)}catch(n){throw new TypeError(`Referrer "${t}" is not a valid URL.`,{cause:n})}if(n.protocol==="about:"&&n.hostname==="client"||y&&!Q(n,w.settingsObject.baseUrl)){A.referrer="client"}else{A.referrer=n}}}if(n.referrerPolicy!==undefined){A.referrerPolicy=n.referrerPolicy}let k;if(n.mode!==undefined){k=n.mode}else{k=c}if(k==="navigate"){throw H.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(k!=null){A.mode=k}if(n.credentials!==undefined){A.credentials=n.credentials}if(n.cache!==undefined){A.cache=n.cache}if(A.cache==="only-if-cached"&&A.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(n.redirect!==undefined){A.redirect=n.redirect}if(n.integrity!=null){A.integrity=String(n.integrity)}if(n.keepalive!==undefined){A.keepalive=Boolean(n.keepalive)}if(n.method!==undefined){let t=n.method;const i=x[t];if(i!==undefined){A.method=i}else{if(!B(t)){throw new TypeError(`'${t}' is not a valid HTTP method.`)}const n=t.toUpperCase();if(S.has(n)){throw new TypeError(`'${t}' HTTP method is unsupported.`)}t=F[n]??t;A.method=t}if(!Z&&A.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});Z=true}}if(n.signal!==undefined){C=n.signal}this[L]=A;const D=new AbortController;this[P]=D.signal;if(C!=null){if(!C||typeof C.aborted!=="boolean"||typeof C.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(C.aborted){D.abort(C.reason)}else{this[j]=D;const t=new WeakRef(D);const n=buildAbort(t);try{if(typeof Y==="function"&&Y(C)===q){J(1500,C)}else if(W(C,"abort").length>=q){J(1500,C)}}catch{}I.addAbortListener(C,n);z.register(D,{signal:C,abort:n},n)}}this[U]=new d(G);m(this[U],A.headersList);g(this[U],"request");if(k==="no-cors"){if(!b.has(A.method)){throw new TypeError(`'${A.method} is unsupported in no-cors mode.`)}g(this[U],"request-no-cors")}if(v){const t=E(this[U]);const i=n.headers!==undefined?n.headers:new f(t);t.clear();if(i instanceof f){for(const{name:n,value:a}of i.rawValues()){t.append(n,a,false)}t.cookies=i.cookies}else{h(this[U],i)}}const T=t instanceof Request?t[L].body:null;if((n.body!=null||T!=null)&&(A.method==="GET"||A.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let N=null;if(n.body!=null){const[t,i]=a(n.body,A.keepalive);N=t;if(i&&!E(this[U]).contains("content-type",true)){this[U].append("content-type",i)}}const M=N??T;if(M!=null&&M.source==null){if(N!=null&&n.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(A.mode!=="same-origin"&&A.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}A.useCORSPreflightFlag=true}let $=M;if(N==null&&T!=null){if(l(t)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const n=new TransformStream;T.stream.pipeThrough(n);$={source:T.source,length:T.length,stream:n.readable}}this[L].body=$}get method(){H.brandCheck(this,Request);return this[L].method}get url(){H.brandCheck(this,Request);return $(this[L].url)}get headers(){H.brandCheck(this,Request);return this[U]}get destination(){H.brandCheck(this,Request);return this[L].destination}get referrer(){H.brandCheck(this,Request);if(this[L].referrer==="no-referrer"){return""}if(this[L].referrer==="client"){return"about:client"}return this[L].referrer.toString()}get referrerPolicy(){H.brandCheck(this,Request);return this[L].referrerPolicy}get mode(){H.brandCheck(this,Request);return this[L].mode}get credentials(){return this[L].credentials}get cache(){H.brandCheck(this,Request);return this[L].cache}get redirect(){H.brandCheck(this,Request);return this[L].redirect}get integrity(){H.brandCheck(this,Request);return this[L].integrity}get keepalive(){H.brandCheck(this,Request);return this[L].keepalive}get isReloadNavigation(){H.brandCheck(this,Request);return this[L].reloadNavigation}get isHistoryNavigation(){H.brandCheck(this,Request);return this[L].historyNavigation}get signal(){H.brandCheck(this,Request);return this[P]}get body(){H.brandCheck(this,Request);return this[L].body?this[L].body.stream:null}get bodyUsed(){H.brandCheck(this,Request);return!!this[L].body&&I.isDisturbed(this[L].body.stream)}get duplex(){H.brandCheck(this,Request);return"half"}clone(){H.brandCheck(this,Request);if(l(this)){throw new TypeError("unusable")}const t=cloneRequest(this[L]);const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{let t=K.get(this.signal);if(t===undefined){t=new Set;K.set(this.signal,t)}const i=new WeakRef(n);t.add(i);I.addAbortListener(n.signal,buildAbort(i))}return fromInnerRequest(t,n.signal,p(this[U]))}[y.inspect.custom](t,n){if(n.depth===null){n.depth=2}n.colors??=true;const i={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${y.formatWithOptions(n,i)}`}}A(Request);function makeRequest(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??false,unsafeRequest:t.unsafeRequest??false,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??false,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??false,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??false,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??false,historyNavigation:t.historyNavigation??false,userActivation:t.userActivation??false,taintedOrigin:t.taintedOrigin??false,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??false,done:t.done??false,timingAllowFailed:t.timingAllowFailed??false,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new f(t.headersList):new f}}function cloneRequest(t){const n=makeRequest({...t,body:null});if(t.body!=null){n.body=c(n,t.body)}return n}function fromInnerRequest(t,n,i){const a=new Request(G);a[L]=t;a[P]=n;a[U]=new d(G);m(a[U],t.headersList);g(a[U],i);return a}Object.defineProperties(Request.prototype,{method:M,url:M,headers:M,redirect:M,clone:M,signal:M,duplex:M,destination:M,body:M,bodyUsed:M,isHistoryNavigation:M,isReloadNavigation:M,keepalive:M,integrity:M,cache:M,credentials:M,attribute:M,referrerPolicy:M,referrer:M,mode:M,[Symbol.toStringTag]:{value:"Request",configurable:true}});H.converters.Request=H.interfaceConverter(Request);H.converters.RequestInfo=function(t,n,i){if(typeof t==="string"){return H.converters.USVString(t,n,i)}if(t instanceof Request){return H.converters.Request(t,n,i)}return H.converters.USVString(t,n,i)};H.converters.AbortSignal=H.interfaceConverter(AbortSignal);H.converters.RequestInit=H.dictionaryConverter([{key:"method",converter:H.converters.ByteString},{key:"headers",converter:H.converters.HeadersInit},{key:"body",converter:H.nullableConverter(H.converters.BodyInit)},{key:"referrer",converter:H.converters.USVString},{key:"referrerPolicy",converter:H.converters.DOMString,allowedValues:R},{key:"mode",converter:H.converters.DOMString,allowedValues:k},{key:"credentials",converter:H.converters.DOMString,allowedValues:D},{key:"cache",converter:H.converters.DOMString,allowedValues:T},{key:"redirect",converter:H.converters.DOMString,allowedValues:v},{key:"integrity",converter:H.converters.DOMString},{key:"keepalive",converter:H.converters.boolean},{key:"signal",converter:H.nullableConverter(t=>H.converters.AbortSignal(t,"RequestInit","signal",{strict:false}))},{key:"window",converter:H.converters.any},{key:"duplex",converter:H.converters.DOMString,allowedValues:N},{key:"dispatcher",converter:H.converters.any}]);t.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(t,n,i)=>{const{Headers:a,HeadersList:A,fill:c,getHeadersGuard:l,setHeadersGuard:d,setHeadersList:h}=i(660);const{extractBody:f,cloneBody:g,mixinBody:p,hasFinalizationRegistry:m,streamRegistry:E,bodyUnusable:C}=i(4492);const I=i(3440);const y=i(7975);const{kEnumerableProperty:B}=I;const{isValidReasonPhrase:Q,isCancelled:w,isAborted:S,isBlobLike:b,serializeJavascriptValueToJSONString:R,isErrorLike:v,isomorphicEncode:k,environmentSettingsObject:D}=i(3168);const{redirectStatusSet:T,nullBodyStatus:N}=i(4495);const{kState:M,kHeaders:F}=i(3627);const{webidl:x}=i(5893);const{FormData:U}=i(5910);const{URLSerializer:P}=i(1900);const{kConstruct:L}=i(6443);const O=i(4589);const{types:H}=i(7975);const $=new TextEncoder("utf-8");class Response{static error(){const t=fromInnerResponse(makeNetworkError(),"immutable");return t}static json(t,n={}){x.argumentLengthCheck(arguments,1,"Response.json");if(n!==null){n=x.converters.ResponseInit(n)}const i=$.encode(R(t));const a=f(i);const A=fromInnerResponse(makeResponse({}),"response");initializeResponse(A,n,{body:a[0],type:"application/json"});return A}static redirect(t,n=302){x.argumentLengthCheck(arguments,1,"Response.redirect");t=x.converters.USVString(t);n=x.converters["unsigned short"](n);let i;try{i=new URL(t,D.settingsObject.baseUrl)}catch(n){throw new TypeError(`Failed to parse URL from ${t}`,{cause:n})}if(!T.has(n)){throw new RangeError(`Invalid status code ${n}`)}const a=fromInnerResponse(makeResponse({}),"immutable");a[M].status=n;const A=k(P(i));a[M].headersList.append("location",A,true);return a}constructor(t=null,n={}){x.util.markAsUncloneable(this);if(t===L){return}if(t!==null){t=x.converters.BodyInit(t)}n=x.converters.ResponseInit(n);this[M]=makeResponse({});this[F]=new a(L);d(this[F],"response");h(this[F],this[M].headersList);let i=null;if(t!=null){const[n,a]=f(t);i={body:n,type:a}}initializeResponse(this,n,i)}get type(){x.brandCheck(this,Response);return this[M].type}get url(){x.brandCheck(this,Response);const t=this[M].urlList;const n=t[t.length-1]??null;if(n===null){return""}return P(n,true)}get redirected(){x.brandCheck(this,Response);return this[M].urlList.length>1}get status(){x.brandCheck(this,Response);return this[M].status}get ok(){x.brandCheck(this,Response);return this[M].status>=200&&this[M].status<=299}get statusText(){x.brandCheck(this,Response);return this[M].statusText}get headers(){x.brandCheck(this,Response);return this[F]}get body(){x.brandCheck(this,Response);return this[M].body?this[M].body.stream:null}get bodyUsed(){x.brandCheck(this,Response);return!!this[M].body&&I.isDisturbed(this[M].body.stream)}clone(){x.brandCheck(this,Response);if(C(this)){throw x.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const t=cloneResponse(this[M]);if(m&&this[M].body?.stream){E.register(this,new WeakRef(this[M].body.stream))}return fromInnerResponse(t,l(this[F]))}[y.inspect.custom](t,n){if(n.depth===null){n.depth=2}n.colors??=true;const i={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${y.formatWithOptions(n,i)}`}}p(Response);Object.defineProperties(Response.prototype,{type:B,url:B,status:B,ok:B,redirected:B,statusText:B,headers:B,clone:B,body:B,bodyUsed:B,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:B,redirect:B,error:B});function cloneResponse(t){if(t.internalResponse){return filterResponse(cloneResponse(t.internalResponse),t.type)}const n=makeResponse({...t,body:null});if(t.body!=null){n.body=g(n,t.body)}return n}function makeResponse(t){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new A(t?.headersList):new A,urlList:t?.urlList?[...t.urlList]:[]}}function makeNetworkError(t){const n=v(t);return makeResponse({type:"error",status:0,error:n?t:new Error(t?String(t):t),aborted:t&&t.name==="AbortError"})}function isNetworkError(t){return t.type==="error"&&t.status===0}function makeFilteredResponse(t,n){n={internalResponse:t,...n};return new Proxy(t,{get(t,i){return i in n?n[i]:t[i]},set(t,i,a){O(!(i in n));t[i]=a;return true}})}function filterResponse(t,n){if(n==="basic"){return makeFilteredResponse(t,{type:"basic",headersList:t.headersList})}else if(n==="cors"){return makeFilteredResponse(t,{type:"cors",headersList:t.headersList})}else if(n==="opaque"){return makeFilteredResponse(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(n==="opaqueredirect"){return makeFilteredResponse(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{O(false)}}function makeAppropriateNetworkError(t,n=null){O(w(t));return S(t)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:n})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:n}))}function initializeResponse(t,n,i){if(n.status!==null&&(n.status<200||n.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in n&&n.statusText!=null){if(!Q(String(n.statusText))){throw new TypeError("Invalid statusText")}}if("status"in n&&n.status!=null){t[M].status=n.status}if("statusText"in n&&n.statusText!=null){t[M].statusText=n.statusText}if("headers"in n&&n.headers!=null){c(t[F],n.headers)}if(i){if(N.includes(t.status)){throw x.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`})}t[M].body=i.body;if(i.type!=null&&!t[M].headersList.contains("content-type",true)){t[M].headersList.append("content-type",i.type,true)}}}function fromInnerResponse(t,n){const i=new Response(L);i[M]=t;i[F]=new a(L);h(i[F],t.headersList);d(i[F],n);if(m&&t.body?.stream){E.register(i,new WeakRef(t.body.stream))}return i}x.converters.ReadableStream=x.interfaceConverter(ReadableStream);x.converters.FormData=x.interfaceConverter(U);x.converters.URLSearchParams=x.interfaceConverter(URLSearchParams);x.converters.XMLHttpRequestBodyInit=function(t,n,i){if(typeof t==="string"){return x.converters.USVString(t,n,i)}if(b(t)){return x.converters.Blob(t,n,i,{strict:false})}if(ArrayBuffer.isView(t)||H.isArrayBuffer(t)){return x.converters.BufferSource(t,n,i)}if(I.isFormDataLike(t)){return x.converters.FormData(t,n,i,{strict:false})}if(t instanceof URLSearchParams){return x.converters.URLSearchParams(t,n,i)}return x.converters.DOMString(t,n,i)};x.converters.BodyInit=function(t,n,i){if(t instanceof ReadableStream){return x.converters.ReadableStream(t,n,i)}if(t?.[Symbol.asyncIterator]){return t}return x.converters.XMLHttpRequestBodyInit(t,n,i)};x.converters.ResponseInit=x.dictionaryConverter([{key:"status",converter:x.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:x.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:x.converters.HeadersInit}]);t.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:t=>{t.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(t,n,i)=>{const{Transform:a}=i(7075);const A=i(8522);const{redirectStatusSet:c,referrerPolicySet:l,badPortsSet:d}=i(4495);const{getGlobalOrigin:h}=i(1059);const{collectASequenceOfCodePoints:f,collectAnHTTPQuotedString:g,removeChars:p,parseMIMEType:m}=i(1900);const{performance:E}=i(643);const{isBlobLike:C,ReadableStreamFrom:I,isValidHTTPToken:y,normalizedMethodRecordsBase:B}=i(3440);const Q=i(4589);const{isUint8Array:w}=i(3429);const{webidl:S}=i(5893);let b=[];let R;try{R=i(7598);const t=["sha256","sha384","sha512"];b=R.getHashes().filter(n=>t.includes(n))}catch{}function responseURL(t){const n=t.urlList;const i=n.length;return i===0?null:n[i-1].toString()}function responseLocationURL(t,n){if(!c.has(t.status)){return null}let i=t.headersList.get("location",true);if(i!==null&&isValidHeaderValue(i)){if(!isValidEncodedURL(i)){i=normalizeBinaryStringToUtf8(i)}i=new URL(i,responseURL(t))}if(i&&!i.hash){i.hash=n}return i}function isValidEncodedURL(t){for(let n=0;n126||i<32){return false}}return true}function normalizeBinaryStringToUtf8(t){return Buffer.from(t,"binary").toString("utf8")}function requestCurrentURL(t){return t.urlList[t.urlList.length-1]}function requestBadPort(t){const n=requestCurrentURL(t);if(urlIsHttpHttpsScheme(n)&&d.has(n.port)){return"blocked"}return"allowed"}function isErrorLike(t){return t instanceof Error||(t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException")}function isValidReasonPhrase(t){for(let n=0;n=32&&i<=126||i>=128&&i<=255)){return false}}return true}const v=y;function isValidHeaderValue(t){return(t[0]==="\t"||t[0]===" "||t[t.length-1]==="\t"||t[t.length-1]===" "||t.includes("\n")||t.includes("\r")||t.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(t,n){const{headersList:i}=n;const a=(i.get("referrer-policy",true)??"").split(",");let A="";if(a.length>0){for(let t=a.length;t!==0;t--){const n=a[t-1].trim();if(l.has(n)){A=n;break}}}if(A!==""){t.referrerPolicy=A}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(t){let n=null;n=t.mode;t.headersList.set("sec-fetch-mode",n,true)}function appendRequestOriginHeader(t){let n=t.origin;if(n==="client"||n===undefined){return}if(t.responseTainting==="cors"||t.mode==="websocket"){t.headersList.append("origin",n,true)}else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":n=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(t.origin&&urlHasHttpsScheme(t.origin)&&!urlHasHttpsScheme(requestCurrentURL(t))){n=null}break;case"same-origin":if(!sameOrigin(t,requestCurrentURL(t))){n=null}break;default:}t.headersList.append("origin",n,true)}}function coarsenTime(t,n){return t}function clampAndCoarsenConnectionTimingInfo(t,n,i){if(!t?.startTime||t.startTime4096){a=A}const c=sameOrigin(t,a);const l=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(t.url);switch(n){case"origin":return A!=null?A:stripURLForReferrer(i,true);case"unsafe-url":return a;case"same-origin":return c?A:"no-referrer";case"origin-when-cross-origin":return c?a:A;case"strict-origin-when-cross-origin":{const n=requestCurrentURL(t);if(sameOrigin(a,n)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(n)){return"no-referrer"}return A}case"strict-origin":case"no-referrer-when-downgrade":default:return l?"no-referrer":A}}function stripURLForReferrer(t,n){Q(t instanceof URL);t=new URL(t);if(t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"){return"no-referrer"}t.username="";t.password="";t.hash="";if(n){t.pathname="";t.search=""}return t}function isURLPotentiallyTrustworthy(t){if(!(t instanceof URL)){return false}if(t.href==="about:blank"||t.href==="about:srcdoc"){return true}if(t.protocol==="data:")return true;if(t.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(t.origin);function isOriginPotentiallyTrustworthy(t){if(t==null||t==="null")return false;const n=new URL(t);if(n.protocol==="https:"||n.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||(n.hostname==="localhost"||n.hostname.includes("localhost."))||n.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(t,n){if(R===undefined){return true}const i=parseMetadata(n);if(i==="no metadata"){return true}if(i.length===0){return true}const a=getStrongestMetadata(i);const A=filterMetadataListByAlgorithm(i,a);for(const n of A){const i=n.algo;const a=n.hash;let A=R.createHash(i).update(t).digest("base64");if(A[A.length-1]==="="){if(A[A.length-2]==="="){A=A.slice(0,-2)}else{A=A.slice(0,-1)}}if(compareBase64Mixed(A,a)){return true}}return false}const k=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(t){const n=[];let i=true;for(const a of t.split(" ")){i=false;const t=k.exec(a);if(t===null||t.groups===undefined||t.groups.algo===undefined){continue}const A=t.groups.algo.toLowerCase();if(b.includes(A)){n.push(t.groups)}}if(i===true){return"no metadata"}return n}function getStrongestMetadata(t){let n=t[0].algo;if(n[3]==="5"){return n}for(let i=1;i{t=i;n=a});return{promise:i,resolve:t,reject:n}}function isAborted(t){return t.controller.state==="aborted"}function isCancelled(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function normalizeMethod(t){return B[t.toLowerCase()]??t}function serializeJavascriptValueToJSONString(t){const n=JSON.stringify(t);if(n===undefined){throw new TypeError("Value is not JSON serializable")}Q(typeof n==="string");return n}const D=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(t,n,i=0,a=1){class FastIterableIterator{#Y;#J;#W;constructor(t,n){this.#Y=t;this.#J=n;this.#W=0}next(){if(typeof this!=="object"||this===null||!(#Y in this)){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const A=this.#W;const c=this.#Y[n];const l=c.length;if(A>=l){return{value:undefined,done:true}}const{[i]:d,[a]:h}=c[A];this.#W=A+1;let f;switch(this.#J){case"key":f=d;break;case"value":f=h;break;case"key+value":f=[d,h];break}return{value:f,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,D);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${t} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(t,n){return new FastIterableIterator(t,n)}}function iteratorMixin(t,n,i,a=0,A=1){const c=createIterator(t,i,a,A);const l={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){S.brandCheck(this,n);return c(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){S.brandCheck(this,n);return c(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){S.brandCheck(this,n);return c(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(i,a=globalThis){S.brandCheck(this,n);S.argumentLengthCheck(arguments,1,`${t}.forEach`);if(typeof i!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`)}for(const{0:t,1:n}of c(this,"key+value")){i.call(a,n,t,this)}}}};return Object.defineProperties(n.prototype,{...l,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:l.entries.value}})}async function fullyReadBody(t,n,i){const a=n;const A=i;let c;try{c=t.stream.getReader()}catch(t){A(t);return}try{a(await readAllBytes(c))}catch(t){A(t)}}function isReadableStreamLike(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee==="function"}function readableStreamClose(t){try{t.close();t.byobRequest?.respond(0)}catch(t){if(!t.message.includes("Controller is already closed")&&!t.message.includes("ReadableStream is already closed")){throw t}}}const T=/[^\x00-\xFF]/;function isomorphicEncode(t){Q(!T.test(t));return t}async function readAllBytes(t){const n=[];let i=0;while(true){const{done:a,value:A}=await t.read();if(a){return Buffer.concat(n,i)}if(!w(A)){throw new TypeError("Received non-Uint8Array chunk")}n.push(A);i+=A.length}}function urlIsLocal(t){Q("protocol"in t);const n=t.protocol;return n==="about:"||n==="blob:"||n==="data:"}function urlHasHttpsScheme(t){return typeof t==="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}function urlIsHttpHttpsScheme(t){Q("protocol"in t);const n=t.protocol;return n==="http:"||n==="https:"}function simpleRangeHeaderValue(t,n){const i=t;if(!i.startsWith("bytes")){return"failure"}const a={position:5};if(n){f(t=>t==="\t"||t===" ",i,a)}if(i.charCodeAt(a.position)!==61){return"failure"}a.position++;if(n){f(t=>t==="\t"||t===" ",i,a)}const A=f(t=>{const n=t.charCodeAt(0);return n>=48&&n<=57},i,a);const c=A.length?Number(A):null;if(n){f(t=>t==="\t"||t===" ",i,a)}if(i.charCodeAt(a.position)!==45){return"failure"}a.position++;if(n){f(t=>t==="\t"||t===" ",i,a)}const l=f(t=>{const n=t.charCodeAt(0);return n>=48&&n<=57},i,a);const d=l.length?Number(l):null;if(a.positiond){return"failure"}return{rangeStartValue:c,rangeEndValue:d}}function buildContentRange(t,n,i){let a="bytes ";a+=isomorphicEncode(`${t}`);a+="-";a+=isomorphicEncode(`${n}`);a+="/";a+=isomorphicEncode(`${i}`);return a}class InflateStream extends a{#q;constructor(t){super();this.#q=t}_transform(t,n,i){if(!this._inflateStream){if(t.length===0){i();return}this._inflateStream=(t[0]&15)===8?A.createInflate(this.#q):A.createInflateRaw(this.#q);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",()=>this.push(null));this._inflateStream.on("error",t=>this.destroy(t))}this._inflateStream.write(t,n,i)}_final(t){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}t()}}function createInflate(t){return new InflateStream(t)}function extractMimeType(t){let n=null;let i=null;let a=null;const A=getDecodeSplit("content-type",t);if(A===null){return"failure"}for(const t of A){const A=m(t);if(A==="failure"||A.essence==="*/*"){continue}a=A;if(a.essence!==i){n=null;if(a.parameters.has("charset")){n=a.parameters.get("charset")}i=a.essence}else if(!a.parameters.has("charset")&&n!==null){a.parameters.set("charset",n)}}if(a==null){return"failure"}return a}function gettingDecodingSplitting(t){const n=t;const i={position:0};const a=[];let A="";while(i.positiont!=='"'&&t!==",",n,i);if(i.positiont===9||t===32);a.push(A);A=""}return a}function getDecodeSplit(t,n){const i=n.get(t,true);if(i===null){return null}return gettingDecodingSplitting(i)}const N=new TextDecoder;function utf8DecodeBytes(t){if(t.length===0){return""}if(t[0]===239&&t[1]===187&&t[2]===191){t=t.subarray(3)}const n=N.decode(t);return n}class EnvironmentSettingsObjectBase{get baseUrl(){return h()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const M=new EnvironmentSettingsObject;t.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:I,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:y,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:C,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:v,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:M}},5893:(t,n,i)=>{const{types:a,inspect:A}=i(7975);const{markAsUncloneable:c}=i(5919);const{toUSVString:l}=i(3440);const d={};d.converters={};d.util={};d.errors={};d.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};d.errors.conversionFailed=function(t){const n=t.types.length===1?"":" one of";const i=`${t.argument} could not be converted to`+`${n}: ${t.types.join(", ")}.`;return d.errors.exception({header:t.prefix,message:i})};d.errors.invalidArgument=function(t){return d.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};d.brandCheck=function(t,n,i){if(i?.strict!==false){if(!(t instanceof n)){const t=new TypeError("Illegal invocation");t.code="ERR_INVALID_THIS";throw t}}else{if(t?.[Symbol.toStringTag]!==n.prototype[Symbol.toStringTag]){const t=new TypeError("Illegal invocation");t.code="ERR_INVALID_THIS";throw t}}};d.argumentLengthCheck=function({length:t},n,i){if(t{});d.util.ConvertToInt=function(t,n,i,a){let A;let c;if(n===64){A=Math.pow(2,53)-1;if(i==="unsigned"){c=0}else{c=Math.pow(-2,53)+1}}else if(i==="unsigned"){c=0;A=Math.pow(2,n)-1}else{c=Math.pow(-2,n)-1;A=Math.pow(2,n-1)-1}let l=Number(t);if(l===0){l=0}if(a?.enforceRange===true){if(Number.isNaN(l)||l===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY){throw d.errors.exception({header:"Integer conversion",message:`Could not convert ${d.util.Stringify(t)} to an integer.`})}l=d.util.IntegerPart(l);if(lA){throw d.errors.exception({header:"Integer conversion",message:`Value must be between ${c}-${A}, got ${l}.`})}return l}if(!Number.isNaN(l)&&a?.clamp===true){l=Math.min(Math.max(l,c),A);if(Math.floor(l)%2===0){l=Math.floor(l)}else{l=Math.ceil(l)}return l}if(Number.isNaN(l)||l===0&&Object.is(0,l)||l===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY){return 0}l=d.util.IntegerPart(l);l=l%Math.pow(2,n);if(i==="signed"&&l>=Math.pow(2,n)-1){return l-Math.pow(2,n)}return l};d.util.IntegerPart=function(t){const n=Math.floor(Math.abs(t));if(t<0){return-1*n}return n};d.util.Stringify=function(t){const n=d.util.Type(t);switch(n){case"Symbol":return`Symbol(${t.description})`;case"Object":return A(t);case"String":return`"${t}"`;default:return`${t}`}};d.sequenceConverter=function(t){return(n,i,a,A)=>{if(d.util.Type(n)!=="Object"){throw d.errors.exception({header:i,message:`${a} (${d.util.Stringify(n)}) is not iterable.`})}const c=typeof A==="function"?A():n?.[Symbol.iterator]?.();const l=[];let h=0;if(c===undefined||typeof c.next!=="function"){throw d.errors.exception({header:i,message:`${a} is not iterable.`})}while(true){const{done:n,value:A}=c.next();if(n){break}l.push(t(A,i,`${a}[${h++}]`))}return l}};d.recordConverter=function(t,n){return(i,A,c)=>{if(d.util.Type(i)!=="Object"){throw d.errors.exception({header:A,message:`${c} ("${d.util.Type(i)}") is not an Object.`})}const l={};if(!a.isProxy(i)){const a=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const d of a){const a=t(d,A,c);const h=n(i[d],A,c);l[a]=h}return l}const h=Reflect.ownKeys(i);for(const a of h){const d=Reflect.getOwnPropertyDescriptor(i,a);if(d?.enumerable){const d=t(a,A,c);const h=n(i[a],A,c);l[d]=h}}return l}};d.interfaceConverter=function(t){return(n,i,a,A)=>{if(A?.strict!==false&&!(n instanceof t)){throw d.errors.exception({header:i,message:`Expected ${a} ("${d.util.Stringify(n)}") to be an instance of ${t.name}.`})}return n}};d.dictionaryConverter=function(t){return(n,i,a)=>{const A=d.util.Type(n);const c={};if(A==="Null"||A==="Undefined"){return c}else if(A!=="Object"){throw d.errors.exception({header:i,message:`Expected ${n} to be one of: Null, Undefined, Object.`})}for(const A of t){const{key:t,defaultValue:l,required:h,converter:f}=A;if(h===true){if(!Object.hasOwn(n,t)){throw d.errors.exception({header:i,message:`Missing required key "${t}".`})}}let g=n[t];const p=Object.hasOwn(A,"defaultValue");if(p&&g!==null){g??=l()}if(h||p||g!==undefined){g=f(g,i,`${a}.${t}`);if(A.allowedValues&&!A.allowedValues.includes(g)){throw d.errors.exception({header:i,message:`${g} is not an accepted type. Expected one of ${A.allowedValues.join(", ")}.`})}c[t]=g}}return c}};d.nullableConverter=function(t){return(n,i,a)=>{if(n===null){return n}return t(n,i,a)}};d.converters.DOMString=function(t,n,i,a){if(t===null&&a?.legacyNullToEmptyString){return""}if(typeof t==="symbol"){throw d.errors.exception({header:n,message:`${i} is a symbol, which cannot be converted to a DOMString.`})}return String(t)};d.converters.ByteString=function(t,n,i){const a=d.converters.DOMString(t,n,i);for(let t=0;t255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${t} has a value of ${a.charCodeAt(t)} which is greater than 255.`)}}return a};d.converters.USVString=l;d.converters.boolean=function(t){const n=Boolean(t);return n};d.converters.any=function(t){return t};d.converters["long long"]=function(t,n,i){const a=d.util.ConvertToInt(t,64,"signed",undefined,n,i);return a};d.converters["unsigned long long"]=function(t,n,i){const a=d.util.ConvertToInt(t,64,"unsigned",undefined,n,i);return a};d.converters["unsigned long"]=function(t,n,i){const a=d.util.ConvertToInt(t,32,"unsigned",undefined,n,i);return a};d.converters["unsigned short"]=function(t,n,i,a){const A=d.util.ConvertToInt(t,16,"unsigned",a,n,i);return A};d.converters.ArrayBuffer=function(t,n,i,A){if(d.util.Type(t)!=="Object"||!a.isAnyArrayBuffer(t)){throw d.errors.conversionFailed({prefix:n,argument:`${i} ("${d.util.Stringify(t)}")`,types:["ArrayBuffer"]})}if(A?.allowShared===false&&a.isSharedArrayBuffer(t)){throw d.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.resizable||t.growable){throw d.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};d.converters.TypedArray=function(t,n,i,A,c){if(d.util.Type(t)!=="Object"||!a.isTypedArray(t)||t.constructor.name!==n.name){throw d.errors.conversionFailed({prefix:i,argument:`${A} ("${d.util.Stringify(t)}")`,types:[n.name]})}if(c?.allowShared===false&&a.isSharedArrayBuffer(t.buffer)){throw d.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.buffer.resizable||t.buffer.growable){throw d.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};d.converters.DataView=function(t,n,i,A){if(d.util.Type(t)!=="Object"||!a.isDataView(t)){throw d.errors.exception({header:n,message:`${i} is not a DataView.`})}if(A?.allowShared===false&&a.isSharedArrayBuffer(t.buffer)){throw d.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.buffer.resizable||t.buffer.growable){throw d.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};d.converters.BufferSource=function(t,n,i,A){if(a.isAnyArrayBuffer(t)){return d.converters.ArrayBuffer(t,n,i,{...A,allowShared:false})}if(a.isTypedArray(t)){return d.converters.TypedArray(t,t.constructor,n,i,{...A,allowShared:false})}if(a.isDataView(t)){return d.converters.DataView(t,n,i,{...A,allowShared:false})}throw d.errors.conversionFailed({prefix:n,argument:`${i} ("${d.util.Stringify(t)}")`,types:["BufferSource"]})};d.converters["sequence"]=d.sequenceConverter(d.converters.ByteString);d.converters["sequence>"]=d.sequenceConverter(d.converters["sequence"]);d.converters["record"]=d.recordConverter(d.converters.ByteString,d.converters.ByteString);t.exports={webidl:d}},2607:t=>{function getEncoding(t){if(!t){return"failure"}switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}t.exports={getEncoding:getEncoding}},8355:(t,n,i)=>{const{staticPropertyDescriptors:a,readOperation:A,fireAProgressEvent:c}=i(3610);const{kState:l,kError:d,kResult:h,kEvents:f,kAborted:g}=i(961);const{webidl:p}=i(5893);const{kEnumerableProperty:m}=i(3440);class FileReader extends EventTarget{constructor(){super();this[l]="empty";this[h]=null;this[d]=null;this[f]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");t=p.converters.Blob(t,{strict:false});A(this,t,"ArrayBuffer")}readAsBinaryString(t){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");t=p.converters.Blob(t,{strict:false});A(this,t,"BinaryString")}readAsText(t,n=undefined){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsText");t=p.converters.Blob(t,{strict:false});if(n!==undefined){n=p.converters.DOMString(n,"FileReader.readAsText","encoding")}A(this,t,"Text",n)}readAsDataURL(t){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");t=p.converters.Blob(t,{strict:false});A(this,t,"DataURL")}abort(){if(this[l]==="empty"||this[l]==="done"){this[h]=null;return}if(this[l]==="loading"){this[l]="done";this[h]=null}this[g]=true;c("abort",this);if(this[l]!=="loading"){c("loadend",this)}}get readyState(){p.brandCheck(this,FileReader);switch(this[l]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){p.brandCheck(this,FileReader);return this[h]}get error(){p.brandCheck(this,FileReader);return this[d]}get onloadend(){p.brandCheck(this,FileReader);return this[f].loadend}set onloadend(t){p.brandCheck(this,FileReader);if(this[f].loadend){this.removeEventListener("loadend",this[f].loadend)}if(typeof t==="function"){this[f].loadend=t;this.addEventListener("loadend",t)}else{this[f].loadend=null}}get onerror(){p.brandCheck(this,FileReader);return this[f].error}set onerror(t){p.brandCheck(this,FileReader);if(this[f].error){this.removeEventListener("error",this[f].error)}if(typeof t==="function"){this[f].error=t;this.addEventListener("error",t)}else{this[f].error=null}}get onloadstart(){p.brandCheck(this,FileReader);return this[f].loadstart}set onloadstart(t){p.brandCheck(this,FileReader);if(this[f].loadstart){this.removeEventListener("loadstart",this[f].loadstart)}if(typeof t==="function"){this[f].loadstart=t;this.addEventListener("loadstart",t)}else{this[f].loadstart=null}}get onprogress(){p.brandCheck(this,FileReader);return this[f].progress}set onprogress(t){p.brandCheck(this,FileReader);if(this[f].progress){this.removeEventListener("progress",this[f].progress)}if(typeof t==="function"){this[f].progress=t;this.addEventListener("progress",t)}else{this[f].progress=null}}get onload(){p.brandCheck(this,FileReader);return this[f].load}set onload(t){p.brandCheck(this,FileReader);if(this[f].load){this.removeEventListener("load",this[f].load)}if(typeof t==="function"){this[f].load=t;this.addEventListener("load",t)}else{this[f].load=null}}get onabort(){p.brandCheck(this,FileReader);return this[f].abort}set onabort(t){p.brandCheck(this,FileReader);if(this[f].abort){this.removeEventListener("abort",this[f].abort)}if(typeof t==="function"){this[f].abort=t;this.addEventListener("abort",t)}else{this[f].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:m,readAsBinaryString:m,readAsText:m,readAsDataURL:m,abort:m,readyState:m,result:m,error:m,onloadstart:m,onprogress:m,onload:m,onabort:m,onerror:m,onloadend:m,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});t.exports={FileReader:FileReader}},8573:(t,n,i)=>{const{webidl:a}=i(5893);const A=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(t,n={}){t=a.converters.DOMString(t,"ProgressEvent constructor","type");n=a.converters.ProgressEventInit(n??{});super(t,n);this[A]={lengthComputable:n.lengthComputable,loaded:n.loaded,total:n.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[A].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[A].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[A].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}]);t.exports={ProgressEvent:ProgressEvent}},961:t=>{t.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(t,n,i)=>{const{kState:a,kError:A,kResult:c,kAborted:l,kLastProgressEventFired:d}=i(961);const{ProgressEvent:h}=i(8573);const{getEncoding:f}=i(2607);const{serializeAMimeType:g,parseMIMEType:p}=i(1900);const{types:m}=i(7975);const{StringDecoder:E}=i(3193);const{btoa:C}=i(4573);const I={enumerable:true,writable:false,configurable:false};function readOperation(t,n,i,h){if(t[a]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}t[a]="loading";t[c]=null;t[A]=null;const f=n.stream();const g=f.getReader();const p=[];let E=g.read();let C=true;(async()=>{while(!t[l]){try{const{done:f,value:I}=await E;if(C&&!t[l]){queueMicrotask(()=>{fireAProgressEvent("loadstart",t)})}C=false;if(!f&&m.isUint8Array(I)){p.push(I);if((t[d]===undefined||Date.now()-t[d]>=50)&&!t[l]){t[d]=Date.now();queueMicrotask(()=>{fireAProgressEvent("progress",t)})}E=g.read()}else if(f){queueMicrotask(()=>{t[a]="done";try{const a=packageData(p,i,n.type,h);if(t[l]){return}t[c]=a;fireAProgressEvent("load",t)}catch(n){t[A]=n;fireAProgressEvent("error",t)}if(t[a]!=="loading"){fireAProgressEvent("loadend",t)}});break}}catch(n){if(t[l]){return}queueMicrotask(()=>{t[a]="done";t[A]=n;fireAProgressEvent("error",t);if(t[a]!=="loading"){fireAProgressEvent("loadend",t)}});break}}})()}function fireAProgressEvent(t,n){const i=new h(t,{bubbles:false,cancelable:false});n.dispatchEvent(i)}function packageData(t,n,i,a){switch(n){case"DataURL":{let n="data:";const a=p(i||"application/octet-stream");if(a!=="failure"){n+=g(a)}n+=";base64,";const A=new E("latin1");for(const i of t){n+=C(A.write(i))}n+=C(A.end());return n}case"Text":{let n="failure";if(a){n=f(a)}if(n==="failure"&&i){const t=p(i);if(t!=="failure"){n=f(t.parameters.get("charset"))}}if(n==="failure"){n="UTF-8"}return decode(t,n)}case"ArrayBuffer":{const n=combineByteSequences(t);return n.buffer}case"BinaryString":{let n="";const i=new E("latin1");for(const a of t){n+=i.write(a)}n+=i.end();return n}}}function decode(t,n){const i=combineByteSequences(t);const a=BOMSniffing(i);let A=0;if(a!==null){n=a;A=a==="UTF-8"?3:2}const c=i.slice(A);return new TextDecoder(n).decode(c)}function BOMSniffing(t){const[n,i,a]=t;if(n===239&&i===187&&a===191){return"UTF-8"}else if(n===254&&i===255){return"UTF-16BE"}else if(n===255&&i===254){return"UTF-16LE"}return null}function combineByteSequences(t){const n=t.reduce((t,n)=>t+n.byteLength,0);let i=0;return t.reduce((t,n)=>{t.set(n,i);i+=n.byteLength;return t},new Uint8Array(n))}t.exports={staticPropertyDescriptors:I,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(t,n,i)=>{const{uid:a,states:A,sentCloseFrameState:c,emptyBuffer:l,opcodes:d}=i(736);const{kReadyState:h,kSentClose:f,kByteParser:g,kReceivedClose:p,kResponse:m}=i(1216);const{fireEvent:E,failWebsocketConnection:C,isClosing:I,isClosed:y,isEstablished:B,parseExtensions:Q}=i(8625);const{channels:w}=i(2414);const{CloseEvent:S}=i(5188);const{makeRequest:b}=i(9967);const{fetching:R}=i(4398);const{Headers:v,getHeadersList:k}=i(660);const{getDecodeSplit:D}=i(3168);const{WebsocketFrameSend:T}=i(3264);let N;try{N=i(7598)}catch{}function establishWebSocketConnection(t,n,i,A,c,l){const d=t;d.protocol=t.protocol==="ws:"?"http:":"https:";const h=b({urlList:[d],client:i,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(l.headers){const t=k(new v(l.headers));h.headersList=t}const f=N.randomBytes(16).toString("base64");h.headersList.append("sec-websocket-key",f);h.headersList.append("sec-websocket-version","13");for(const t of n){h.headersList.append("sec-websocket-protocol",t)}const g="permessage-deflate; client_max_window_bits";h.headersList.append("sec-websocket-extensions",g);const p=R({request:h,useParallelQueue:true,dispatcher:l.dispatcher,processResponse(t){if(t.type==="error"||t.status!==101){C(A,"Received network error or non-101 status code.");return}if(n.length!==0&&!t.headersList.get("Sec-WebSocket-Protocol")){C(A,"Server did not respond with sent protocols.");return}if(t.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){C(A,'Server did not set Upgrade header to "websocket".');return}if(t.headersList.get("Connection")?.toLowerCase()!=="upgrade"){C(A,'Server did not set Connection header to "upgrade".');return}const i=t.headersList.get("Sec-WebSocket-Accept");const l=N.createHash("sha1").update(f+a).digest("base64");if(i!==l){C(A,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const d=t.headersList.get("Sec-WebSocket-Extensions");let g;if(d!==null){g=Q(d);if(!g.has("permessage-deflate")){C(A,"Sec-WebSocket-Extensions header does not match.");return}}const p=t.headersList.get("Sec-WebSocket-Protocol");if(p!==null){const t=D("sec-websocket-protocol",h.headersList);if(!t.includes(p)){C(A,"Protocol was not set in the opening handshake.");return}}t.socket.on("data",onSocketData);t.socket.on("close",onSocketClose);t.socket.on("error",onSocketError);if(w.open.hasSubscribers){w.open.publish({address:t.socket.address(),protocol:p,extensions:d})}c(t,g)}});return p}function closeWebSocketConnection(t,n,i,a){if(I(t)||y(t)){}else if(!B(t)){C(t,"Connection was closed before it was established.");t[h]=A.CLOSING}else if(t[f]===c.NOT_SENT){t[f]=c.PROCESSING;const g=new T;if(n!==undefined&&i===undefined){g.frameData=Buffer.allocUnsafe(2);g.frameData.writeUInt16BE(n,0)}else if(n!==undefined&&i!==undefined){g.frameData=Buffer.allocUnsafe(2+a);g.frameData.writeUInt16BE(n,0);g.frameData.write(i,2,"utf-8")}else{g.frameData=l}const p=t[m].socket;p.write(g.createFrame(d.CLOSE));t[f]=c.SENT;t[h]=A.CLOSING}else{t[h]=A.CLOSING}}function onSocketData(t){if(!this.ws[g].write(t)){this.pause()}}function onSocketClose(){const{ws:t}=this;const{[m]:n}=t;n.socket.off("data",onSocketData);n.socket.off("close",onSocketClose);n.socket.off("error",onSocketError);const i=t[f]===c.SENT&&t[p];let a=1005;let l="";const d=t[g].closingInfo;if(d&&!d.error){a=d.code??1005;l=d.reason}else if(!t[p]){a=1006}t[h]=A.CLOSED;E("close",t,(t,n)=>new S(t,n),{wasClean:i,code:a,reason:l});if(w.close.hasSubscribers){w.close.publish({websocket:t,code:a,reason:l})}}function onSocketError(t){const{ws:n}=this;n[h]=A.CLOSING;if(w.socketError.hasSubscribers){w.socketError.publish(t)}this.destroy()}t.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:t=>{const n="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const i={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const A={NOT_SENT:0,PROCESSING:1,SENT:2};const c={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const l=2**16-1;const d={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const h=Buffer.allocUnsafe(0);const f={string:1,typedArray:2,arrayBuffer:3,blob:4};t.exports={uid:n,sentCloseFrameState:A,staticPropertyDescriptors:i,states:a,opcodes:c,maxUnsigned16Bit:l,parserStates:d,emptyBuffer:h,sendHints:f}},5188:(t,n,i)=>{const{webidl:a}=i(5893);const{kEnumerableProperty:A}=i(3440);const{kConstruct:c}=i(6443);const{MessagePort:l}=i(5919);class MessageEvent extends Event{#j;constructor(t,n={}){if(t===c){super(arguments[1],arguments[2]);a.util.markAsUncloneable(this);return}const i="MessageEvent constructor";a.argumentLengthCheck(arguments,1,i);t=a.converters.DOMString(t,i,"type");n=a.converters.MessageEventInit(n,i,"eventInitDict");super(t,n);this.#j=n;a.util.markAsUncloneable(this)}get data(){a.brandCheck(this,MessageEvent);return this.#j.data}get origin(){a.brandCheck(this,MessageEvent);return this.#j.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#j.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#j.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#j.ports)){Object.freeze(this.#j.ports)}return this.#j.ports}initMessageEvent(t,n=false,i=false,A=null,c="",l="",d=null,h=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(t,{bubbles:n,cancelable:i,data:A,origin:c,lastEventId:l,source:d,ports:h})}static createFastMessageEvent(t,n){const i=new MessageEvent(c,t,n);i.#j=n;i.#j.data??=null;i.#j.origin??="";i.#j.lastEventId??="";i.#j.source??=null;i.#j.ports??=[];return i}}const{createFastMessageEvent:d}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#j;constructor(t,n={}){const i="CloseEvent constructor";a.argumentLengthCheck(arguments,1,i);t=a.converters.DOMString(t,i,"type");n=a.converters.CloseEventInit(n);super(t,n);this.#j=n;a.util.markAsUncloneable(this)}get wasClean(){a.brandCheck(this,CloseEvent);return this.#j.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#j.code}get reason(){a.brandCheck(this,CloseEvent);return this.#j.reason}}class ErrorEvent extends Event{#j;constructor(t,n){const i="ErrorEvent constructor";a.argumentLengthCheck(arguments,1,i);super(t,n);a.util.markAsUncloneable(this);t=a.converters.DOMString(t,i,"type");n=a.converters.ErrorEventInit(n??{});this.#j=n}get message(){a.brandCheck(this,ErrorEvent);return this.#j.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#j.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#j.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#j.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#j.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:A,origin:A,lastEventId:A,source:A,ports:A,initMessageEvent:A});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:A,code:A,wasClean:A});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:A,filename:A,lineno:A,colno:A,error:A});a.converters.MessagePort=a.interfaceConverter(l);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const h=[{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}];a.converters.MessageEventInit=a.dictionaryConverter([...h,{key:"data",converter:a.converters.any,defaultValue:()=>null},{key:"origin",converter:a.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:()=>""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:a.converters["sequence"],defaultValue:()=>new Array(0)}]);a.converters.CloseEventInit=a.dictionaryConverter([...h,{key:"wasClean",converter:a.converters.boolean,defaultValue:()=>false},{key:"code",converter:a.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:a.converters.USVString,defaultValue:()=>""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...h,{key:"message",converter:a.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:a.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:a.converters.any}]);t.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:d}},3264:(t,n,i)=>{const{maxUnsigned16Bit:a}=i(736);const A=16386;let c;let l=null;let d=A;try{c=i(7598)}catch{c={randomFillSync:function randomFillSync(t,n,i){for(let n=0;na){l+=8;c=127}else if(A>125){l+=2;c=126}const d=Buffer.allocUnsafe(A+l);d[0]=d[1]=0;d[0]|=128;d[0]=(d[0]&240)+t; -/*! ws. MIT License. Einar Otto Stangvik */d[l-4]=i[0];d[l-3]=i[1];d[l-2]=i[2];d[l-1]=i[3];d[1]=c;if(c===126){d.writeUInt16BE(A,2)}else if(c===127){d[2]=d[3]=0;d.writeUIntBE(A,4,6)}d[1]|=128;for(let t=0;t{const{createInflateRaw:a,Z_DEFAULT_WINDOWBITS:A}=i(8522);const{isValidClientWindowBits:c}=i(8625);const{MessageSizeExceededError:l}=i(8707);const d=Buffer.from([0,0,255,255]);const h=Symbol("kBuffer");const f=Symbol("kLength");class PerMessageDeflate{#z;#h={};#K=0;constructor(t,n){this.#h.serverNoContextTakeover=t.has("server_no_context_takeover");this.#h.serverMaxWindowBits=t.get("server_max_window_bits");this.#K=n.maxPayloadSize}decompress(t,n,i){if(!this.#z){let t=A;if(this.#h.serverMaxWindowBits){if(!c(this.#h.serverMaxWindowBits)){i(new Error("Invalid server_max_window_bits"));return}t=Number.parseInt(this.#h.serverMaxWindowBits)}try{this.#z=a({windowBits:t})}catch(t){i(t);return}this.#z[h]=[];this.#z[f]=0;this.#z.on("data",t=>{this.#z[f]+=t.length;if(this.#K>0&&this.#z[f]>this.#K){i(new l);this.#z.removeAllListeners();this.#z=null;return}this.#z[h].push(t)});this.#z.on("error",t=>{this.#z=null;i(t)})}this.#z.write(t);if(n){this.#z.write(d)}this.#z.flush(()=>{if(!this.#z){return}const t=Buffer.concat(this.#z[h],this.#z[f]);this.#z[h].length=0;this.#z[f]=0;i(null,t)})}}t.exports={PerMessageDeflate:PerMessageDeflate}},1652:(t,n,i)=>{const{Writable:a}=i(7075);const A=i(4589);const{parserStates:c,opcodes:l,states:d,emptyBuffer:h,sentCloseFrameState:f}=i(736);const{kReadyState:g,kSentClose:p,kResponse:m,kReceivedClose:E}=i(1216);const{channels:C}=i(2414);const{isValidStatusCode:I,isValidOpcode:y,failWebsocketConnection:B,websocketMessageReceived:Q,utf8Decode:w,isControlFrame:S,isTextBinaryFrame:b,isContinuationFrame:R}=i(8625);const{WebsocketFrameSend:v}=i(3264);const{closeWebSocketConnection:k}=i(6897);const{PerMessageDeflate:D}=i(9469);const{MessageSizeExceededError:T}=i(8707);function failWebsocketConnectionWithCode(t,n,i){k(t,n,i,Buffer.byteLength(i));B(t,i)}class ByteParser extends a{#Z=[];#X=0;#ee=0;#te=false;#I=c.INFO;#re={};#ne=[];#se;#oe;#K;constructor(t,n,i={}){super();this.ws=t;this.#se=n==null?new Map:n;this.#oe=i.maxFragments??0;this.#K=i.maxPayloadSize??0;if(this.#se.has("permessage-deflate")){this.#se.set("permessage-deflate",new D(n,i))}}_write(t,n,i){this.#Z.push(t);this.#ee+=t.length;this.#te=true;this.run(i)}#ie(){if(this.#K>0&&!S(this.#re.opcode)&&this.#re.payloadLength+this.#X>this.#K){failWebsocketConnectionWithCode(this.ws,1009,"Payload size exceeds maximum allowed size");return false}return true}run(t){while(this.#te){if(this.#I===c.INFO){if(this.#ee<2){return t()}const n=this.consume(2);const i=(n[0]&128)!==0;const a=n[0]&15;const A=(n[1]&128)===128;const d=!i&&a!==l.CONTINUATION;const h=n[1]&127;const f=n[0]&64;const g=n[0]&32;const p=n[0]&16;if(!y(a)){B(this.ws,"Invalid opcode received");return t()}if(A){B(this.ws,"Frame cannot be masked");return t()}if(f!==0&&!this.#se.has("permessage-deflate")){B(this.ws,"Expected RSV1 to be clear.");return}if(g!==0||p!==0){B(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(d&&!b(a)){B(this.ws,"Invalid frame type was fragmented.");return}if(b(a)&&this.#ne.length>0){B(this.ws,"Expected continuation frame");return}if(this.#re.fragmented&&d){B(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((h>125||d)&&S(a)){B(this.ws,"Control frame either too large or fragmented");return}if(R(a)&&this.#ne.length===0&&!this.#re.compressed){B(this.ws,"Unexpected continuation frame");return}if(h<=125){this.#re.payloadLength=h;this.#I=c.READ_DATA;if(!this.#ie()){return}}else if(h===126){this.#I=c.PAYLOADLENGTH_16}else if(h===127){this.#I=c.PAYLOADLENGTH_64}if(b(a)){this.#re.binaryType=a;this.#re.compressed=f!==0}this.#re.opcode=a;this.#re.masked=A;this.#re.fin=i;this.#re.fragmented=d}else if(this.#I===c.PAYLOADLENGTH_16){if(this.#ee<2){return t()}const n=this.consume(2);this.#re.payloadLength=n.readUInt16BE(0);this.#I=c.READ_DATA;if(!this.#ie()){return}}else if(this.#I===c.PAYLOADLENGTH_64){if(this.#ee<8){return t()}const n=this.consume(8);const i=n.readUInt32BE(0);const a=n.readUInt32BE(4);if(i!==0||a>2**31-1){B(this.ws,"Received payload length > 2^31 bytes.");return}this.#re.payloadLength=a;this.#I=c.READ_DATA;if(!this.#ie()){return}}else if(this.#I===c.READ_DATA){if(this.#ee0&&this.#X>this.#K){failWebsocketConnectionWithCode(this.ws,1009,(new T).message);return}if(!this.#re.fragmented&&this.#re.fin){Q(this.ws,this.#re.binaryType,this.consumeFragments())}this.#I=c.INFO}else{this.#se.get("permessage-deflate").decompress(n,this.#re.fin,(n,i)=>{if(n){const t=n instanceof T?1009:1007;failWebsocketConnectionWithCode(this.ws,t,n.message);return}if(!this.writeFragments(i)){return}if(this.#K>0&&this.#X>this.#K){failWebsocketConnectionWithCode(this.ws,1009,(new T).message);return}if(!this.#re.fin){this.#I=c.INFO;this.#te=true;this.run(t);return}Q(this.ws,this.#re.binaryType,this.consumeFragments());this.#te=true;this.#I=c.INFO;this.run(t)});this.#te=false;break}}}}}consume(t){if(t>this.#ee){throw new Error("Called consume() before buffers satiated.")}else if(t===0){return h}if(this.#Z[0].length===t){this.#ee-=this.#Z[0].length;return this.#Z.shift()}const n=Buffer.allocUnsafe(t);let i=0;while(i!==t){const a=this.#Z[0];const{length:A}=a;if(A+i===t){n.set(this.#Z.shift(),i);break}else if(A+i>t){n.set(a.subarray(0,t-i),i);this.#Z[0]=a.subarray(t-i);break}else{n.set(this.#Z.shift(),i);i+=a.length}}this.#ee-=t;return n}writeFragments(t){if(this.#oe>0&&this.#ne.length===this.#oe){failWebsocketConnectionWithCode(this.ws,1008,"Too many message fragments");return false}this.#X+=t.length;this.#ne.push(t);return true}consumeFragments(){const t=this.#ne;if(t.length===1){this.#X=0;return t.shift()}const n=Buffer.concat(t,this.#X);this.#ne=[];this.#X=0;return n}parseCloseBody(t){A(t.length!==1);let n;if(t.length>=2){n=t.readUInt16BE(0)}if(n!==undefined&&!I(n)){return{code:1002,reason:"Invalid status code",error:true}}let i=t.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}try{i=w(i)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:n,reason:i,error:false}}parseControlFrame(t){const{opcode:n,payloadLength:i}=this.#re;if(n===l.CLOSE){if(i===1){B(this.ws,"Received close frame with a 1-byte body.");return false}this.#re.closeInfo=this.parseCloseBody(t);if(this.#re.closeInfo.error){const{code:t,reason:n}=this.#re.closeInfo;k(this.ws,t,n,n.length);B(this.ws,n);return false}if(this.ws[p]!==f.SENT){let t=h;if(this.#re.closeInfo.code){t=Buffer.allocUnsafe(2);t.writeUInt16BE(this.#re.closeInfo.code,0)}const n=new v(t);this.ws[m].socket.write(n.createFrame(l.CLOSE),t=>{if(!t){this.ws[p]=f.SENT}})}this.ws[g]=d.CLOSING;this.ws[E]=true;return false}else if(n===l.PING){if(!this.ws[E]){const n=new v(t);this.ws[m].socket.write(n.createFrame(l.PONG));if(C.ping.hasSubscribers){C.ping.publish({payload:t})}}}else if(n===l.PONG){if(C.pong.hasSubscribers){C.pong.publish({payload:t})}}return true}get closingInfo(){return this.#re.closeInfo}}t.exports={ByteParser:ByteParser}},3900:(t,n,i)=>{const{WebsocketFrameSend:a}=i(3264);const{opcodes:A,sendHints:c}=i(736);const l=i(4660);const d=Buffer[Symbol.species];class SendQueue{#ae=new l;#Ae=false;#ce;constructor(t){this.#ce=t}add(t,n,i){if(i!==c.blob){const a=createFrame(t,i);if(!this.#Ae){this.#ce.write(a,n)}else{const t={promise:null,callback:n,frame:a};this.#ae.push(t)}return}const a={promise:t.arrayBuffer().then(t=>{a.promise=null;a.frame=createFrame(t,i)}),callback:n,frame:null};this.#ae.push(a);if(!this.#Ae){this.#le()}}async#le(){this.#Ae=true;const t=this.#ae;while(!t.isEmpty()){const n=t.shift();if(n.promise!==null){await n.promise}this.#ce.write(n.frame,n.callback);n.callback=n.frame=null}this.#Ae=false}}function createFrame(t,n){return new a(toBuffer(t,n)).createFrame(n===c.string?A.TEXT:A.BINARY)}function toBuffer(t,n){switch(n){case c.string:return Buffer.from(t);case c.arrayBuffer:case c.blob:return new d(t);case c.typedArray:return new d(t.buffer,t.byteOffset,t.byteLength)}}t.exports={SendQueue:SendQueue}},1216:t=>{t.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(t,n,i)=>{const{kReadyState:a,kController:A,kResponse:c,kBinaryType:l,kWebSocketURL:d}=i(1216);const{states:h,opcodes:f}=i(736);const{ErrorEvent:g,createFastMessageEvent:p}=i(5188);const{isUtf8:m}=i(4573);const{collectASequenceOfCodePointsFast:E,removeHTTPWhitespace:C}=i(1900);function isConnecting(t){return t[a]===h.CONNECTING}function isEstablished(t){return t[a]===h.OPEN}function isClosing(t){return t[a]===h.CLOSING}function isClosed(t){return t[a]===h.CLOSED}function fireEvent(t,n,i=(t,n)=>new Event(t,n),a={}){const A=i(t,a);n.dispatchEvent(A)}function websocketMessageReceived(t,n,i){if(t[a]!==h.OPEN){return}let A;if(n===f.TEXT){try{A=B(i)}catch{failWebsocketConnection(t,"Received invalid UTF-8 in text frame.");return}}else if(n===f.BINARY){if(t[l]==="blob"){A=new Blob([i])}else{A=toArrayBuffer(i)}}fireEvent("message",t,p,{origin:t[d].origin,data:A})}function toArrayBuffer(t){if(t.byteLength===t.buffer.byteLength){return t.buffer}return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function isValidSubprotocol(t){if(t.length===0){return false}for(let n=0;n126||i===34||i===40||i===41||i===44||i===47||i===58||i===59||i===60||i===61||i===62||i===63||i===64||i===91||i===92||i===93||i===123||i===125){return false}}return true}function isValidStatusCode(t){if(t>=1e3&&t<1015){return t!==1004&&t!==1005&&t!==1006}return t>=3e3&&t<=4999}function failWebsocketConnection(t,n){const{[A]:i,[c]:a}=t;i.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(n){fireEvent("error",t,(t,n)=>new g(t,n),{error:new Error(n),message:n})}}function isControlFrame(t){return t===f.CLOSE||t===f.PING||t===f.PONG}function isContinuationFrame(t){return t===f.CONTINUATION}function isTextBinaryFrame(t){return t===f.TEXT||t===f.BINARY}function isValidOpcode(t){return isTextBinaryFrame(t)||isContinuationFrame(t)||isControlFrame(t)}function parseExtensions(t){const n={position:0};const i=new Map;while(n.position57){return false}}const n=Number.parseInt(t,10);return n>=8&&n<=15}const I=typeof process.versions.icu==="string";const y=I?new TextDecoder("utf-8",{fatal:true}):undefined;const B=I?y.decode.bind(y):function(t){if(m(t)){return t.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};t.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:B,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(t,n,i)=>{const{webidl:a}=i(5893);const{URLSerializer:A}=i(1900);const{environmentSettingsObject:c}=i(3168);const{staticPropertyDescriptors:l,states:d,sentCloseFrameState:h,sendHints:f}=i(736);const{kWebSocketURL:g,kReadyState:p,kController:m,kBinaryType:E,kResponse:C,kSentClose:I,kByteParser:y}=i(1216);const{isConnecting:B,isEstablished:Q,isClosing:w,isValidSubprotocol:S,fireEvent:b}=i(8625);const{establishWebSocketConnection:R,closeWebSocketConnection:v}=i(6897);const{ByteParser:k}=i(1652);const{kEnumerableProperty:D,isBlobLike:T}=i(3440);const{getGlobalDispatcher:N}=i(2581);const{types:M}=i(7975);const{ErrorEvent:F,CloseEvent:x}=i(5188);const{SendQueue:U}=i(3900);class WebSocket extends EventTarget{#x={open:null,error:null,close:null,message:null};#ue=0;#de="";#se="";#he;constructor(t,n=[]){super();a.util.markAsUncloneable(this);const i="WebSocket constructor";a.argumentLengthCheck(arguments,1,i);const A=a.converters["DOMString or sequence or WebSocketInit"](n,i,"options");t=a.converters.USVString(t,i,"url");n=A.protocols;const l=c.settingsObject.baseUrl;let d;try{d=new URL(t,l)}catch(t){throw new DOMException(t,"SyntaxError")}if(d.protocol==="http:"){d.protocol="ws:"}else if(d.protocol==="https:"){d.protocol="wss:"}if(d.protocol!=="ws:"&&d.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${d.protocol}`,"SyntaxError")}if(d.hash||d.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof n==="string"){n=[n]}if(n.length!==new Set(n.map(t=>t.toLowerCase())).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(n.length>0&&!n.every(t=>S(t))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[g]=new URL(d.href);const f=c.settingsObject;this[m]=R(d,n,f,this,(t,n)=>this.#fe(t,n),A);this[p]=WebSocket.CONNECTING;this[I]=h.NOT_SENT;this[E]="blob"}close(t=undefined,n=undefined){a.brandCheck(this,WebSocket);const i="WebSocket.close";if(t!==undefined){t=a.converters["unsigned short"](t,i,"code",{clamp:true})}if(n!==undefined){n=a.converters.USVString(n,i,"reason")}if(t!==undefined){if(t!==1e3&&(t<3e3||t>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let A=0;if(n!==undefined){A=Buffer.byteLength(n);if(A>123){throw new DOMException(`Reason must be less than 123 bytes; received ${A}`,"SyntaxError")}}v(this,t,n,A)}send(t){a.brandCheck(this,WebSocket);const n="WebSocket.send";a.argumentLengthCheck(arguments,1,n);t=a.converters.WebSocketSendData(t,n,"data");if(B(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!Q(this)||w(this)){return}if(typeof t==="string"){const n=Buffer.byteLength(t);this.#ue+=n;this.#he.add(t,()=>{this.#ue-=n},f.string)}else if(M.isArrayBuffer(t)){this.#ue+=t.byteLength;this.#he.add(t,()=>{this.#ue-=t.byteLength},f.arrayBuffer)}else if(ArrayBuffer.isView(t)){this.#ue+=t.byteLength;this.#he.add(t,()=>{this.#ue-=t.byteLength},f.typedArray)}else if(T(t)){this.#ue+=t.size;this.#he.add(t,()=>{this.#ue-=t.size},f.blob)}}get readyState(){a.brandCheck(this,WebSocket);return this[p]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#ue}get url(){a.brandCheck(this,WebSocket);return A(this[g])}get extensions(){a.brandCheck(this,WebSocket);return this.#se}get protocol(){a.brandCheck(this,WebSocket);return this.#de}get onopen(){a.brandCheck(this,WebSocket);return this.#x.open}set onopen(t){a.brandCheck(this,WebSocket);if(this.#x.open){this.removeEventListener("open",this.#x.open)}if(typeof t==="function"){this.#x.open=t;this.addEventListener("open",t)}else{this.#x.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#x.error}set onerror(t){a.brandCheck(this,WebSocket);if(this.#x.error){this.removeEventListener("error",this.#x.error)}if(typeof t==="function"){this.#x.error=t;this.addEventListener("error",t)}else{this.#x.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#x.close}set onclose(t){a.brandCheck(this,WebSocket);if(this.#x.close){this.removeEventListener("close",this.#x.close)}if(typeof t==="function"){this.#x.close=t;this.addEventListener("close",t)}else{this.#x.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#x.message}set onmessage(t){a.brandCheck(this,WebSocket);if(this.#x.message){this.removeEventListener("message",this.#x.message)}if(typeof t==="function"){this.#x.message=t;this.addEventListener("message",t)}else{this.#x.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[E]}set binaryType(t){a.brandCheck(this,WebSocket);if(t!=="blob"&&t!=="arraybuffer"){this[E]="blob"}else{this[E]=t}}#fe(t,n){this[C]=t;const i=this[m]?.dispatcher?.webSocketOptions;const a=i?.maxFragments;const A=i?.maxPayloadSize;const c=new k(this,n,{maxFragments:a,maxPayloadSize:A});c.on("drain",onParserDrain);c.on("error",onParserError.bind(this));t.socket.ws=this;this[y]=c;this.#he=new U(t.socket);this[p]=d.OPEN;const l=t.headersList.get("sec-websocket-extensions");if(l!==null){this.#se=l}const h=t.headersList.get("sec-websocket-protocol");if(h!==null){this.#de=h}b("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=d.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=d.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=d.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=d.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:l,OPEN:l,CLOSING:l,CLOSED:l,url:D,readyState:D,bufferedAmount:D,onopen:D,onerror:D,onclose:D,close:D,onmessage:D,binaryType:D,send:D,extensions:D,protocol:D,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:l,OPEN:l,CLOSING:l,CLOSED:l});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(t,n,i){if(a.util.Type(t)==="Object"&&Symbol.iterator in t){return a.converters["sequence"](t)}return a.converters.DOMString(t,n,i)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:a.converters.any,defaultValue:()=>N()},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(t){if(a.util.Type(t)==="Object"&&!(Symbol.iterator in t)){return a.converters.WebSocketInit(t)}return{protocols:a.converters["DOMString or sequence"](t)}};a.converters.WebSocketSendData=function(t){if(a.util.Type(t)==="Object"){if(T(t)){return a.converters.Blob(t,{strict:false})}if(ArrayBuffer.isView(t)||M.isArrayBuffer(t)){return a.converters.BufferSource(t)}}return a.converters.USVString(t)};function onParserDrain(){this.ws[C].socket.resume()}function onParserError(t){let n;let i;if(t instanceof x){n=t.reason;i=t.code}else{n=t.message}b("error",this,()=>new F("error",{error:t,message:n}));v(this,i)}t.exports={WebSocket:WebSocket}},2613:n=>{n.exports=t(import.meta.url)("assert")},4434:n=>{n.exports=t(import.meta.url)("events")},8611:n=>{n.exports=t(import.meta.url)("http")},5692:n=>{n.exports=t(import.meta.url)("https")},9278:n=>{n.exports=t(import.meta.url)("net")},4589:n=>{n.exports=t(import.meta.url)("node:assert")},6698:n=>{n.exports=t(import.meta.url)("node:async_hooks")},4573:n=>{n.exports=t(import.meta.url)("node:buffer")},1421:n=>{n.exports=t(import.meta.url)("node:child_process")},7540:n=>{n.exports=t(import.meta.url)("node:console")},7598:n=>{n.exports=t(import.meta.url)("node:crypto")},3053:n=>{n.exports=t(import.meta.url)("node:diagnostics_channel")},610:n=>{n.exports=t(import.meta.url)("node:dns")},8474:n=>{n.exports=t(import.meta.url)("node:events")},3024:n=>{n.exports=t(import.meta.url)("node:fs")},1455:n=>{n.exports=t(import.meta.url)("node:fs/promises")},7067:n=>{n.exports=t(import.meta.url)("node:http")},2467:n=>{n.exports=t(import.meta.url)("node:http2")},4708:n=>{n.exports=t(import.meta.url)("node:https")},7030:n=>{n.exports=t(import.meta.url)("node:net")},8161:n=>{n.exports=t(import.meta.url)("node:os")},6760:n=>{n.exports=t(import.meta.url)("node:path")},3916:n=>{n.exports=t(import.meta.url)("node:path/posix")},643:n=>{n.exports=t(import.meta.url)("node:perf_hooks")},1708:n=>{n.exports=t(import.meta.url)("node:process")},1792:n=>{n.exports=t(import.meta.url)("node:querystring")},7075:n=>{n.exports=t(import.meta.url)("node:stream")},1692:n=>{n.exports=t(import.meta.url)("node:tls")},3136:n=>{n.exports=t(import.meta.url)("node:url")},7975:n=>{n.exports=t(import.meta.url)("node:util")},3429:n=>{n.exports=t(import.meta.url)("node:util/types")},5919:n=>{n.exports=t(import.meta.url)("node:worker_threads")},8522:n=>{n.exports=t(import.meta.url)("node:zlib")},3193:n=>{n.exports=t(import.meta.url)("string_decoder")},4756:n=>{n.exports=t(import.meta.url)("tls")},9023:n=>{n.exports=t(import.meta.url)("util")},4352:(t,n,i)=>{const{normalizeIPv6:a,removeDotSegments:A,recomposeAuthority:c,normalizePercentEncoding:l,normalizePathEncoding:d,escapePreservingEscapes:h,reescapeHostDelimiters:f,isIPv4:g,nonSimpleDomain:p}=i(5077);const{SCHEMES:m,getSchemeHandler:E}=i(5300);function normalize(t,n){if(typeof t==="string"){t=normalizeString(t,n)}else if(typeof t==="object"){t=parse(serialize(t,n),n)}return t}function resolve(t,n,i){const a=i?Object.assign({scheme:"null"},i):{scheme:"null"};const A=resolveComponent(parse(t,a),parse(n,a),a,true);a.skipEscape=true;return serialize(A,a)}function resolveComponent(t,n,i,a){const c={};if(!a){t=parse(serialize(t,i),i);n=parse(serialize(n,i),i)}i=i||{};if(!i.tolerant&&n.scheme){c.scheme=n.scheme;c.userinfo=n.userinfo;c.host=n.host;c.port=n.port;c.path=A(n.path||"");c.query=n.query}else{if(n.userinfo!==undefined||n.host!==undefined||n.port!==undefined){c.userinfo=n.userinfo;c.host=n.host;c.port=n.port;c.path=A(n.path||"");c.query=n.query}else{if(!n.path){c.path=t.path;if(n.query!==undefined){c.query=n.query}else{c.query=t.query}}else{if(n.path[0]==="/"){c.path=A(n.path)}else{if((t.userinfo!==undefined||t.host!==undefined||t.port!==undefined)&&!t.path){c.path="/"+n.path}else if(!t.path){c.path=n.path}else{c.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+n.path}c.path=A(c.path)}c.query=n.query}c.userinfo=t.userinfo;c.host=t.host;c.port=t.port}c.scheme=t.scheme}c.fragment=n.fragment;return c}function equal(t,n,i){const a=normalizeComparableURI(t,i);const A=normalizeComparableURI(n,i);return a!==undefined&&A!==undefined&&a.toLowerCase()===A.toLowerCase()}function serialize(t,n){const i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""};const a=Object.assign({},n);const d=[];const f=E(a.scheme||i.scheme);if(f&&f.serialize)f.serialize(i,a);if(i.path!==undefined){if(!a.skipEscape){i.path=h(i.path);if(i.scheme!==undefined){i.path=i.path.split("%3A").join(":")}}else{i.path=l(i.path)}}if(a.reference!=="suffix"&&i.scheme){d.push(i.scheme,":")}const g=c(i);if(g!==undefined){if(a.reference!=="suffix"){d.push("//")}d.push(g);if(i.path&&i.path[0]!=="/"){d.push("/")}}if(i.path!==undefined){let t=i.path;if(!a.absolutePath&&(!f||!f.absolutePath)){t=A(t)}if(g===undefined&&t[0]==="/"&&t[1]==="/"){t="/%2F"+t.slice(2)}d.push(t)}if(i.query!==undefined){d.push("?",i.query)}if(i.fragment!==undefined){d.push("#",i.fragment)}return d.join("")}const C=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;const I=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/;function getParseError(t,n){if(n[2]!==undefined&&t.path&&t.path[0]!=="/"){return'URI path must start with "/" when authority is present.'}if(typeof t.port==="number"&&(t.port<0||t.port>65535)){return"URI port is malformed."}return undefined}function parseWithStatus(t,n){const i=Object.assign({},n);const A={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};let c=false;let l=false;if(i.reference==="suffix"){if(i.scheme){t=i.scheme+":"+t}else{t="//"+t}}const h=t.match(I);if(h!==null&&h[1].indexOf("\\")!==-1){A.error="URI authority must not contain a literal backslash.";c=true}const m=t.match(C);if(m){A.scheme=m[1];A.userinfo=m[3];A.host=m[4];A.port=parseInt(m[5],10);A.path=m[6]||"";A.query=m[7];A.fragment=m[8];if(isNaN(A.port)){A.port=m[5]}const n=getParseError(A,m);if(n!==undefined){A.error=A.error||n;c=true}if(A.host){const t=g(A.host);if(t===false){const t=a(A.host);A.host=t.host.toLowerCase();l=t.isIPV6}else{l=true}}if(A.scheme===undefined&&A.userinfo===undefined&&A.host===undefined&&A.port===undefined&&A.query===undefined&&!A.path){A.reference="same-document"}else if(A.scheme===undefined){A.reference="relative"}else if(A.fragment===undefined){A.reference="absolute"}else{A.reference="uri"}if(i.reference&&i.reference!=="suffix"&&i.reference!==A.reference){A.error=A.error||"URI is not a "+i.reference+" reference."}const h=E(i.scheme||A.scheme);if(!i.unicodeSupport&&(!h||!h.unicodeSupport)){if(A.host&&(i.domainHost||h&&h.domainHost)&&l===false&&p(A.host)){try{A.host=new URL("http://"+A.host).hostname}catch(t){A.error=A.error||"Host's domain name can not be converted to ASCII: "+t}}}if(!h||h&&!h.skipNormalize){if(t.indexOf("%")!==-1){if(A.scheme!==undefined){A.scheme=unescape(A.scheme)}if(A.host!==undefined){A.host=f(unescape(A.host),l)}}if(A.path){A.path=d(A.path)}if(A.fragment){try{A.fragment=encodeURI(decodeURIComponent(A.fragment))}catch{A.error=A.error||"URI malformed"}}}if(h&&h.parse){h.parse(A,i)}}else{A.error=A.error||"URI can not be parsed."}return{parsed:A,malformedAuthorityOrPort:c}}function parse(t,n){return parseWithStatus(t,n).parsed}function normalizeString(t,n){return normalizeStringWithStatus(t,n).normalized}function normalizeStringWithStatus(t,n){const{parsed:i,malformedAuthorityOrPort:a}=parseWithStatus(t,n);return{normalized:a?t:serialize(i,n),malformedAuthorityOrPort:a}}function normalizeComparableURI(t,n){if(typeof t==="string"){const{normalized:i,malformedAuthorityOrPort:a}=normalizeStringWithStatus(t,n);return a?undefined:i}if(typeof t==="object"){return serialize(t,n)}}const y={SCHEMES:m,normalize:normalize,resolve:resolve,resolveComponent:resolveComponent,equal:equal,serialize:serialize,parse:parse};t.exports=y;t.exports["default"]=y;t.exports.fastUri=y},5300:(t,n,i)=>{const{isUUID:a}=i(5077);const A=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;const c=["http","https","ws","wss","urn","urn:uuid"];function isValidSchemeName(t){return c.indexOf(t)!==-1}function wsIsSecure(t){if(t.secure===true){return true}else if(t.secure===false){return false}else if(t.scheme){return t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S")}else{return false}}function httpParse(t){if(!t.host){t.error=t.error||"HTTP URIs must have a host."}return t}function httpSerialize(t){const n=String(t.scheme).toLowerCase()==="https";if(t.port===(n?443:80)||t.port===""){t.port=undefined}if(!t.path){t.path="/"}return t}function wsParse(t){t.secure=wsIsSecure(t);t.resourceName=(t.path||"/")+(t.query?"?"+t.query:"");t.path=undefined;t.query=undefined;return t}function wsSerialize(t){if(t.port===(wsIsSecure(t)?443:80)||t.port===""){t.port=undefined}if(typeof t.secure==="boolean"){t.scheme=t.secure?"wss":"ws";t.secure=undefined}if(t.resourceName){const[n,i]=t.resourceName.split("?");t.path=n&&n!=="/"?n:undefined;t.query=i;t.resourceName=undefined}t.fragment=undefined;return t}function urnParse(t,n){if(!t.path){t.error="URN can not be parsed";return t}const i=t.path.match(A);if(i){const a=n.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase();t.nss=i[2];const A=`${a}:${n.nid||t.nid}`;const c=getSchemeHandler(A);t.path=undefined;if(c){t=c.parse(t,n)}}else{t.error=t.error||"URN can not be parsed."}return t}function urnSerialize(t,n){if(t.nid===undefined){throw new Error("URN without nid cannot be serialized")}const i=n.scheme||t.scheme||"urn";const a=t.nid.toLowerCase();const A=`${i}:${n.nid||a}`;const c=getSchemeHandler(A);if(c){t=c.serialize(t,n)}const l=t;const d=t.nss;l.path=`${a||n.nid}:${d}`;n.skipEscape=true;return l}function urnuuidParse(t,n){const i=t;i.uuid=i.nss;i.nss=undefined;if(!n.tolerant&&(!i.uuid||!a(i.uuid))){i.error=i.error||"UUID is not valid."}return i}function urnuuidSerialize(t){const n=t;n.nss=(t.uuid||"").toLowerCase();return n}const l={scheme:"http",domainHost:true,parse:httpParse,serialize:httpSerialize};const d={scheme:"https",domainHost:l.domainHost,parse:httpParse,serialize:httpSerialize};const h={scheme:"ws",domainHost:true,parse:wsParse,serialize:wsSerialize};const f={scheme:"wss",domainHost:h.domainHost,parse:h.parse,serialize:h.serialize};const g={scheme:"urn",parse:urnParse,serialize:urnSerialize,skipNormalize:true};const p={scheme:"urn:uuid",parse:urnuuidParse,serialize:urnuuidSerialize,skipNormalize:true};const m={http:l,https:d,ws:h,wss:f,urn:g,"urn:uuid":p};Object.setPrototypeOf(m,null);function getSchemeHandler(t){return t&&(m[t]||m[t.toLowerCase()])||undefined}t.exports={wsIsSecure:wsIsSecure,SCHEMES:m,isValidSchemeName:isValidSchemeName,getSchemeHandler:getSchemeHandler}},5077:t=>{const n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);const i=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);const a=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);const A=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);const c=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function stringArrayToHexStripped(t){let n="";let i=0;let a=0;for(a=0;a=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)){return""}n+=t[a];break}for(a+=1;a=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)){return""}n+=t[a]}return n}const l=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function consumeIsZone(t){t.length=0;return true}function consumeHextets(t,n,i){if(t.length){const a=stringArrayToHexStripped(t);if(a!==""){n.push(a)}else{i.error=true;return false}t.length=0}return true}function getIPV6(t){let n=0;const i={error:false,address:"",zone:""};const a=[];const A=[];let c=false;let l=false;let d=consumeHextets;for(let h=0;h7){i.error=true;break}if(h>0&&t[h-1]===":"){c=true}a.push(":");continue}else if(f==="%"){if(!d(A,a,i)){break}d=consumeIsZone}else{A.push(f);continue}}if(A.length){if(d===consumeIsZone){i.zone=A.join("")}else if(l){a.push(A.join(""))}else{a.push(stringArrayToHexStripped(A))}}i.address=a.join("");return i}function normalizeIPv6(t){if(findToken(t,":")<2){return{host:t,isIPV6:false}}const n=getIPV6(t);if(!n.error){let t=n.address;let i=n.address;if(n.zone){t+="%"+n.zone;i+="%25"+n.zone}return{host:t,isIPV6:true,escapedHost:i}}else{return{host:t,isIPV6:false}}}function findToken(t,n){let i=0;for(let a=0;ad[t])}function normalizePercentEncoding(t,n=false){if(t.indexOf("%")===-1){return t}let i="";for(let c=0;c{const hasContext=()=>{const{env:{GITHUB_ACTIONS:t}}=process;return!!t};const getContext=()=>{if(!hasContext()){throw new Error("GitHub context unavailable")}const{env:{GITHUB_REPOSITORY:t,GITHUB_WORKFLOW_REF:n,GITHUB_RUN_ID:i,GITHUB_RUN_ATTEMPT:a,GITHUB_HEAD_REF:A,GITHUB_REF:c,GITHUB_SHA:l}}=process;const[d,h]=t.split("/");const[f]=n.split("@");const g=new RegExp(`^${d}/${h}/.github/workflows/`);const p=A||c;return{github:{organization:d,repository:h,workflow:f.replace(g,""),runId:parseInt(i,10),runAttempt:parseInt(a,10)},git:{branch:p.replace(/^refs\/heads\//i,""),sha:l}}};t.exports={getContext:getContext,hasContext:hasContext}},8253:t=>{const flatten=t=>{const n={};for(const i in t){if(!Object.prototype.hasOwnProperty.call(t,i)){continue}if(typeof t[i]==="object"&&!Array.isArray(t[i])){const a=flatten(t[i]);for(const t in a){if(!Object.prototype.hasOwnProperty.call(a,t)){continue}const A=`${i}${t.charAt(0).toUpperCase()}${t.substring(1)}`;n[A]=a[t]}}else{n[i]=t[i]}}return n};const omit=(t,n)=>{const i={...t};for(const t of n){delete i[t]}return i};t.exports={flatten:flatten,omit:omit}},8758:(t,n,i)=>{const a=i(1121);const{flatten:A,omit:c}=i(8253);const l=i(3024);const{makeRelativeFilePath:d}=i(8123);const{resolve:h}=i(6760);const{formatErrorAjv:f,validateReportV1Ajv:g,validateReportV2Ajv:p,validateReportV3Ajv:m,validateReportV1ContextAjv:E,validateReportV2ContextAjv:C,validateReportV3ContextAjv:I,latestReportVersion:y}=a;const getReportVersion=t=>{const{reportVersion:n,version:i}=t;const a=n??i;switch(a){case null:case undefined:throw new Error("Unable to determine report version");default:return a}};const validateReport=(t,n="report")=>{const i=getReportVersion(t);let a;switch(i){case 1:if(!g(t)){a=g.errors}break;case 2:if(!p(t)){a=p.errors}break;case 3:if(!m(t)){a=m.errors}break;default:throw new Error(`Unknown report version '${i}'`)}if(a&&a.length!==0){throw new Error(f(a,{dataVar:n}))}};const injectReportV1Context=(t,n,i)=>{const{summary:a}=t;if(!a){throw new Error("Report is missing needed property 'summary'")}if(i||!E(a)){t.summary={...a,...A(n)}}return t};const injectReportV2Context=(t,n,i)=>{const{summary:a}=t;if(!a){throw new Error("Report is missing needed property 'summary'")}if(i||!C(a)){t.summary={...a,...n}}return t};const injectReportV3Context=(t,n,i)=>{const{summary:a}=t;if(!a){throw new Error("Report is missing needed property 'summary'")}if(i||!I(a)){t.summary={...a,...n}}return t};const injectReportContext=(t,n,i)=>{const a=getReportVersion(t);switch(a){case 1:return injectReportV1Context(t,n,i);case 2:return injectReportV2Context(t,n,i);case 3:return injectReportV3Context(t,n,i);default:throw new Error(`Unknown report version '${a}'`)}};const injectReportV1LmsInfo=(t,n)=>{const{summary:i}=t;if(!i){throw new Error("Report is missing needed property 'summary'")}const{buildNumber:a,instanceUrl:A}=n;if(a){if(!i.lmsBuildNumber){i.lmsBuildNumber=a}else{throw new Error("LMS build number already present")}}if(A){if(!i.lmsInstanceUrl){i.lmsInstanceUrl=A}else{throw new Error("LMS instance URL already present")}}t.summary=i;return t};const injectReportV2LmsInfo=(t,n)=>{const{summary:i}=t;if(!i){throw new Error("Report is missing needed property 'summary'")}i.lms=i.lms??{};const{buildNumber:a,instanceUrl:A}=n;if(a){if(!i.lms.buildNumber){i.lms.buildNumber=a}else{throw new Error("LMS build number already present")}}if(A){if(!i.lms.instanceUrl){i.lms.instanceUrl=A}else{throw new Error("LMS instance URL already present")}}t.summary=i;return t};const injectReportV3LmsInfo=(t,n)=>{const{summary:i}=t;if(!i){throw new Error("Report is missing needed property 'summary'")}i.lms=i.lms??{};const{buildNumber:a,instanceUrl:A}=n;if(a){if(!i.lms.buildNumber){i.lms.buildNumber=a}else{throw new Error("LMS build number already present")}}if(A){if(!i.lms.instanceUrl){i.lms.instanceUrl=A}else{throw new Error("LMS instance URL already present")}}t.summary=i;return t};const injectReportLmsInfo=(t,n)=>{const i=getReportVersion(t);switch(i){case 1:return injectReportV1LmsInfo(t,n);case 2:return injectReportV2LmsInfo(t,n);case 3:return injectReportV3LmsInfo(t,n);default:throw new Error(`Unknown report version '${i}'`)}};const upgradeReportV1ToV2=t=>{const{reportId:n,summary:i,details:a}=t;const{githubOrganization:A,githubRepository:l,githubWorkflow:d,githubRunId:h,githubRunAttempt:f,gitBranch:g,gitSha:p,totalDuration:m,countPassed:E,countFailed:C,countSkipped:I,countFlaky:y,lmsBuildNumber:B,lmsInstanceUrl:Q}=i;const w=c(i,["githubOrganization","githubRepository","githubWorkflow","githubRunId","githubRunAttempt","gitBranch","gitSha","totalDuration","countPassed","countFailed","countSkipped","countFlaky","lmsBuildNumber","lmsInstanceUrl"]);const S={...w,github:{organization:A,repository:l,workflow:d,runId:h,runAttempt:f},git:{branch:g,sha:p},count:{passed:E,failed:C,skipped:I,flaky:y},duration:{total:m}};if(B){S.lms=S.lms??{};S.lms.buildNumber=B}if(Q){S.lms=S.lms??{};S.lms.instanceUrl=Q}return{id:n,version:2,summary:S,details:a.map(t=>{const{location:n,duration:i,totalDuration:a}=t;const A=c(t,["totalDuration"]);return{...A,location:{file:n},duration:{total:a,final:i}}})}};const upgradeReportV2ToV3=t=>({...t,version:y,details:t.details.map(t=>{const{tool:n,experience:i,type:a,timeout:A,...c}=t;const l={...c};if(n!=null||a!=null){l.taxonomy={};if(n!=null){l.taxonomy.tool=n}if(a!=null){l.taxonomy.type=a}}if(A!=null){l.configuration={timeout:A}}return l})});const cleanReportV3=t=>({...t,details:t.details.map(t=>{const{config:n,tool:i,experience:a,type:A,...c}=t;const l={...c};if(n!=null&&l.configuration==null){l.configuration=n}if(l.taxonomy==null&&(i!=null||A!=null)){l.taxonomy={};if(i!=null){l.taxonomy.tool=i}if(A!=null){l.taxonomy.type=A}}return l})});const upgradeReportToV2=t=>{const n=getReportVersion(t);switch(n){case 1:return upgradeReportV1ToV2(t);case 2:case 3:return t;default:throw new Error(`Unknown report version: ${n}`)}};const upgradeReport=t=>{const n=getReportVersion(t);switch(n){case 1:return upgradeReportV2ToV3(upgradeReportV1ToV2(t));case 2:return upgradeReportV2ToV3(t);case 3:return cleanReportV3(t);default:throw new Error(`Unknown report version: ${n}`)}};class Report{#ge;#pe;#me;constructor(t,{context:n,lmsInfo:i,overrideContext:a=false}={}){let A;try{t=h(t);const n=l.readFileSync(t,"utf8");A=JSON.parse(n)}catch{throw new Error(`Unable to read/parse report at path ${t}`)}if(n){A=injectReportContext(A,n,a)}if(i){A=injectReportLmsInfo(A,i)}const c=getReportVersion(A);if(c===3){A=cleanReportV3(A)}validateReport(A,`report (v${c})`);this.#me=c;if(c<2){A=upgradeReportToV2(A);validateReport(A,`report (v${getReportVersion(A)})`)}if(getReportVersion(A)y){throw new Error(`Unsupported report version specified: ${c}`)}this.#ge=A;this.#pe=d(t)}getPath(){return this.#pe}getId(){return this.#ge.id}getVersionOriginal(){return this.#me}getVersion(){return this.#ge.version}getContext(){const{summary:{github:t,git:n}}=this.#ge;return{github:t,git:n}}toJSON(){return this.#ge}}t.exports={Report:Report}},1121:(t,n,i)=>{const a=i(878);const A=i(2815);const c=i(3966);const l=i(1763);const d=new a({verbose:true,strict:true,allErrors:true});c(d);A(d,["date-time","uri","uuid"]);d.addSchema(i(7428));d.addSchema(i(4993));d.addSchema(i(8189));d.addSchema(i(3760));d.addSchema(l);d.addSchema({$schema:"https://json-schema.org/draft/2019-09/schema",$id:"/test-reporting/schemas/report/v1/context/loose.json",$ref:"/test-reporting/schemas/report/v1/context.json",type:"object",unevaluatedProperties:true});d.addSchema({$schema:"https://json-schema.org/draft/2019-09/schema",$id:"/test-reporting/schemas/report/v2/context/loose.json",$ref:"/test-reporting/schemas/report/v2/context.json",type:"object",unevaluatedProperties:true});d.addSchema({$schema:"https://json-schema.org/draft/2019-09/schema",$id:"/test-reporting/schemas/report/v3/context/loose.json",$ref:"/test-reporting/schemas/report/v3/context.json",type:"object",unevaluatedProperties:true});const h=d.getSchema("/test-reporting/schemas/report-configuration/v1.json");const f=d.getSchema("/test-reporting/schemas/report-configuration/v2.json");const g=d.getSchema("/test-reporting/schemas/report/v1/context/loose.json");const p=d.getSchema("/test-reporting/schemas/report/v2/context/loose.json");const m=d.getSchema("/test-reporting/schemas/report/v3/context/loose.json");const E=d.getSchema("/test-reporting/schemas/report/v1.json");const C=d.getSchema("/test-reporting/schemas/report/v2.json");const I=d.getSchema("/test-reporting/schemas/report/v3.json");const decodeInstancePathAjv=(t="")=>{if(!t){return""}return t.replace(/\//g,".").replace(/~1/g,"/").replace(/~0/g,"~")};const formatErrorAjv=(t,n={})=>{const{dataVar:i="data"}=n;const a=[...new Set((t??[]).map(({instancePath:t,message:n})=>{const a=decodeInstancePathAjv(t);return`[${i}]${a}: ${n}`}))];return a.sort().reverse().join("\n")};const{properties:y}=l;const{version:{const:B}}=y;const{details:{items:{properties:{browser:{enum:Q}}}}}=y;t.exports={formatErrorAjv:formatErrorAjv,validateReportConfigurationV1Ajv:h,validateReportConfigurationV2Ajv:f,validateReportV1ContextAjv:g,validateReportV2ContextAjv:p,validateReportV3ContextAjv:m,validateReportV1Ajv:E,validateReportV2Ajv:C,validateReportV3Ajv:I,latestReportVersion:B,latestSupportedBrowsers:Q}},8123:(t,n,i)=>{const a=i(8161);const{relative:A,sep:c}=i(6760);const{join:l}=i(3916);const{fileURLToPath:d}=i(3136);const h=Date;const getNow=()=>new h;const getNowISOString=()=>(new h).toISOString();const getOperatingSystemType=()=>{switch(a.type()){case"Linux":return"linux";case"Darwin":return"macos";case"Windows_NT":return"windows";default:throw new Error("Unknown operating system")}};const makeRelativeFilePath=t=>{if(t.startsWith("file:")){t=d(t)}const n=A(process.cwd(),t);const i=n.split(c);return l(...i)};t.exports={getNow:getNow,getNowISOString:getNowISOString,getOperatingSystemType:getOperatingSystemType,makeRelativeFilePath:makeRelativeFilePath}},3837:t=>{t.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},4908:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/applicator":true},"$recursiveAnchor":true,"title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"additionalItems":{"$recursiveRef":"#"},"unevaluatedItems":{"$recursiveRef":"#"},"items":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"#/$defs/schemaArray"}]},"contains":{"$recursiveRef":"#"},"additionalProperties":{"$recursiveRef":"#"},"unevaluatedProperties":{"$recursiveRef":"#"},"properties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$recursiveRef":"#"}},"propertyNames":{"$recursiveRef":"#"},"if":{"$recursiveRef":"#"},"then":{"$recursiveRef":"#"},"else":{"$recursiveRef":"#"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$recursiveRef":"#"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$recursiveRef":"#"}}}}')},958:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/content","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"contentSchema":{"$recursiveRef":"#"}}}')},58:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/core","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true},"$recursiveAnchor":true,"title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"type":"string","format":"uri"},"$anchor":{"type":"string","pattern":"^[A-Za-z][-A-Za-z0-9.:_]*$"},"$ref":{"type":"string","format":"uri-reference"},"$recursiveRef":{"type":"string","format":"uri-reference"},"$recursiveAnchor":{"type":"boolean","default":false},"$vocabulary":{"type":"object","propertyNames":{"type":"string","format":"uri"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}}}}')},6534:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/format","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/format":true},"$recursiveAnchor":true,"title":"Format vocabulary meta-schema","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},711:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/meta-data":true},"$recursiveAnchor":true,"title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},8030:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/validation","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/validation":true},"$recursiveAnchor":true,"title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}},"const":true,"enum":{"type":"array","items":true},"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},8138:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/schema","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true,"https://json-schema.org/draft/2019-09/vocab/applicator":true,"https://json-schema.org/draft/2019-09/vocab/validation":true,"https://json-schema.org/draft/2019-09/vocab/meta-data":true,"https://json-schema.org/draft/2019-09/vocab/format":false,"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format"},{"$ref":"meta/content"}],"type":["object","boolean"],"properties":{"definitions":{"$comment":"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.","type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"dependencies":{"$comment":"\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"","type":"object","additionalProperties":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"meta/validation#/$defs/stringArray"}]}}}}')},2079:t=>{t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},7428:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report-configuration/v1.json","$ref":"#/$defs/taxonomyObject","type":"object","unevaluatedProperties":false,"errorMessage":{"type":"should be an object","unevaluatedProperties":"should only include supported report configuration properties"},"properties":{"ignorePatterns":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of ignore patterns","minItems":"should contain at least one ignore pattern","uniqueItems":"should not contain duplicate ignore patterns"},"items":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"overrides":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of override objects","minItems":"should contain at least one override","uniqueItems":"should not contain duplicate overrides"},"items":{"type":"object","unevaluatedProperties":false,"minProperties":2,"$ref":"#/$defs/taxonomyObject","errorMessage":{"type":"should be an object","minProperties":"should include pattern and at least one taxonomy override","required":{"pattern":"should include pattern and at least one taxonomy override"},"unevaluatedProperties":"should only include supported override properties"},"properties":{"pattern":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"required":["pattern"]}}},"allOf":[{"errorMessage":{"if":"should include type in each override when top-level type is null"},"if":{"properties":{"type":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"type":{"$ref":"#/$defs/taxonomyObject/properties/type"}},"errorMessage":{"required":{"type":"should include type in each override when top-level type is null"}},"required":["type"]}}}}},{"errorMessage":{"if":"should include tool in each override when top-level tool is null"},"if":{"properties":{"tool":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"tool":{"$ref":"#/$defs/taxonomyObject/properties/tool"}},"errorMessage":{"required":{"tool":"should include tool in each override when top-level tool is null"}},"required":["tool"]}}}}},{"errorMessage":{"if":"should include experience in each override when top-level experience is null"},"if":{"properties":{"experience":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"experience":{"$ref":"#/$defs/taxonomyObject/properties/experience"}},"errorMessage":{"required":{"experience":"should include experience in each override when top-level experience is null"}},"required":["experience"]}}}}},{"errorMessage":{"if":"should include overrides when all taxonomy properties are null"},"if":{"properties":{"type":{"const":null},"tool":{"const":null},"experience":{"const":null}}},"then":{"errorMessage":{"required":{"overrides":"should include overrides when all taxonomy properties are null"}},"required":["overrides"]}}],"$defs":{"nonEmptyUnpaddedString":{"type":"string","minLength":1,"pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report-configuration/v2.json","$ref":"#/$defs/taxonomyObject","type":"object","unevaluatedProperties":false,"errorMessage":{"type":"should be an object","unevaluatedProperties":"should only include supported report configuration properties"},"properties":{"ignorePatterns":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of ignore patterns","minItems":"should contain at least one ignore pattern","uniqueItems":"should not contain duplicate ignore patterns"},"items":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"overrides":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of override objects","minItems":"should contain at least one override","uniqueItems":"should not contain duplicate overrides"},"items":{"type":"object","unevaluatedProperties":false,"minProperties":2,"$ref":"#/$defs/taxonomyObject","errorMessage":{"type":"should be an object","minProperties":"should include pattern and at least one taxonomy override","required":{"pattern":"should include pattern and at least one taxonomy override"},"unevaluatedProperties":"should only include supported override properties"},"properties":{"pattern":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"required":["pattern"]}}},"allOf":[{"errorMessage":{"if":"should include type in each override when top-level type is null"},"if":{"properties":{"type":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"type":{"$ref":"#/$defs/taxonomyObject/properties/type"}},"errorMessage":{"required":{"type":"should include type in each override when top-level type is null"}},"required":["type"]}}}}},{"errorMessage":{"if":"should include tool in each override when top-level tool is null"},"if":{"properties":{"tool":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"tool":{"$ref":"#/$defs/taxonomyObject/properties/tool"}},"errorMessage":{"required":{"tool":"should include tool in each override when top-level tool is null"}},"required":["tool"]}}}}},{"errorMessage":{"if":"should include overrides when all taxonomy properties are null"},"if":{"properties":{"type":{"const":null},"tool":{"const":null}}},"then":{"errorMessage":{"required":{"overrides":"should include overrides when all taxonomy properties are null"}},"required":["overrides"]}}],"$defs":{"nonEmptyUnpaddedString":{"type":"string","minLength":1,"pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v1.json","type":"object","unevaluatedProperties":false,"properties":{"reportId":{"type":"string","format":"uuid"},"reportVersion":{"type":"integer","const":1},"summary":{"$ref":"#/$defs/context","type":"object","unevaluatedProperties":false,"properties":{"framework":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"lmsBuildNumber":{"type":"string","pattern":"^([0-9]{2}\\\\.){2}[0-9]{1,2}\\\\.[0-9]{5}$","errorMessage":{"pattern":"should be a valid LMS build number (XX.XX.XX.XXXXX)"}},"lmsInstanceUrl":{"type":"string","format":"uri"},"operatingSystem":{"type":"string","enum":["windows","linux","mac"]},"started":{"type":"string","format":"date-time"},"totalDuration":{"type":"integer","minimum":0},"status":{"type":"string","enum":["passed","failed"]},"countPassed":{"type":"integer","minimum":0},"countFailed":{"type":"integer","minimum":0},"countSkipped":{"type":"integer","minimum":0},"countFlaky":{"type":"integer","minimum":0}},"required":["operatingSystem","framework","started","totalDuration","status","countPassed","countFailed","countSkipped","countFlaky"]},"details":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","unevaluatedProperties":false,"properties":{"name":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"location":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"tool":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"experience":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"type":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"started":{"type":"string","format":"date-time"},"duration":{"type":"integer","minimum":0},"totalDuration":{"type":"integer","minimum":0},"status":{"type":"string","enum":["passed","failed","skipped"]},"browser":{"type":"string","enum":["chromium","chrome","firefox","webkit","safari","edge"]},"retries":{"type":"integer","minimum":0}},"required":["name","location","started","duration","totalDuration","status","retries"]}}},"required":["reportId","reportVersion","summary","details"],"$defs":{"nonEmptyUnpaddedString":{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v1/non-empty-unpadded-string.json","type":"string","minLength":1,"pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v2.json","type":"object","unevaluatedProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","const":2},"summary":{"$ref":"#/$defs/context","type":"object","unevaluatedProperties":false,"properties":{"framework":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"lms":{"type":"object","unevaluatedProperties":false,"properties":{"buildNumber":{"type":"string","pattern":"^([0-9]{2}\\\\.){2}[0-9]{1,2}\\\\.[0-9]{5}$","errorMessage":{"pattern":"should be a valid LMS build number (XX.XX.XX.XXXXX)"}},"instanceUrl":{"type":"string","format":"uri"}}},"operatingSystem":{"type":"string","enum":["windows","linux","mac"]},"started":{"type":"string","format":"date-time"},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"total":{"type":"integer","minimum":0}},"required":["total"]},"status":{"type":"string","enum":["passed","failed"]},"count":{"type":"object","unevaluatedProperties":false,"properties":{"passed":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0},"flaky":{"type":"integer","minimum":0}},"required":["passed","failed","skipped","flaky"]}},"required":["operatingSystem","framework","started","duration","status","count"]},"details":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","unevaluatedProperties":false,"properties":{"name":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"location":{"type":"object","unevaluatedProperties":false,"properties":{"file":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"line":{"type":"integer","minimum":0},"column":{"type":"integer","minimum":0}},"required":["file"]},"tool":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"experience":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"type":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"started":{"type":"string","format":"date-time"},"timeout":{"type":"integer","minimum":0},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"final":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["final","total"]},"status":{"type":"string","enum":["passed","failed","skipped"]},"browser":{"type":"string","enum":["chromium","chrome","firefox","webkit","safari","edge"]},"retries":{"type":"integer","minimum":0}},"required":["name","location","started","duration","status","retries"]}}},"required":["id","version","summary","details"],"$defs":{"nonEmptyUnpaddedString":{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v2/non-empty-unpadded-string.json","type":"string","pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v3.json","type":"object","unevaluatedProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","const":3},"summary":{"$ref":"#/$defs/context","type":"object","unevaluatedProperties":false,"properties":{"framework":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"lms":{"type":"object","unevaluatedProperties":false,"properties":{"buildNumber":{"type":"string","pattern":"^([0-9]{2}\\\\.){2}[0-9]{1,2}\\\\.[0-9]{5}$","errorMessage":{"pattern":"should be a valid LMS build number (XX.XX.XX.XXXXX)"}},"instanceUrl":{"type":"string","format":"uri"}}},"operatingSystem":{"type":"string","enum":["windows","linux","mac"]},"started":{"type":"string","format":"date-time"},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"total":{"type":"integer","minimum":0}},"required":["total"]},"status":{"type":"string","enum":["passed","failed"]},"count":{"type":"object","unevaluatedProperties":false,"properties":{"passed":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0},"flaky":{"type":"integer","minimum":0}},"required":["passed","failed","skipped","flaky"]}},"required":["operatingSystem","framework","started","duration","status","count"]},"details":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","unevaluatedProperties":false,"properties":{"name":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"location":{"type":"object","unevaluatedProperties":false,"properties":{"file":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"line":{"type":"integer","minimum":0},"column":{"type":"integer","minimum":0}}},"taxonomy":{"type":"object","unevaluatedProperties":false,"properties":{"tool":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"type":{"$ref":"#/$defs/nonEmptyUnpaddedString"}}},"started":{"type":"string","format":"date-time"},"configuration":{"type":"object","unevaluatedProperties":false,"properties":{"timeout":{"type":"integer","minimum":0}}},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"final":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["final","total"]},"status":{"type":"string","enum":["passed","failed","skipped"]},"browser":{"type":"string","enum":["chromium","chrome","firefox","webkit","safari","edge"]},"retries":{"type":"integer","minimum":0},"github":{"type":"object","unevaluatedProperties":false,"properties":{"codeowners":{"type":"array","items":{"$ref":"#/$defs/githubCodeownerString"},"minItems":1}}}},"required":["name","started","duration","status","retries"]}}},"required":["id","version","summary","details"],"$defs":{"nonEmptyUnpaddedString":{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v3/non-empty-unpadded-string.json","type":"string","pattern":"^(?!\\\\s).+(?{var t=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;var n;__nccwpck_require__.t=function(i,a){if(a&1)i=this(i);if(a&8)return i;if(typeof i==="object"&&i){if(a&4&&i.__esModule)return i;if(a&16&&typeof i.then==="function")return i}var A=Object.create(null);__nccwpck_require__.r(A);var c={};n=n||[null,t({}),t([]),t(t)];for(var l=a&2&&i;typeof l=="object"&&!~n.indexOf(l);l=t(l)){Object.getOwnPropertyNames(l).forEach(t=>c[t]=()=>i[t])}c["default"]=()=>i;__nccwpck_require__.d(A,c);return A}})();(()=>{__nccwpck_require__.d=(t,n)=>{for(var i in n){if(__nccwpck_require__.o(n,i)&&!__nccwpck_require__.o(t,i)){Object.defineProperty(t,i,{enumerable:true,get:n[i]})}}}})();(()=>{__nccwpck_require__.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n)})();(()=>{__nccwpck_require__.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var a={};const A=t(import.meta.url)("os");function utils_toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}function utils_toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}function command_issueCommand(t,n,i){const a=new Command(t,n,i);process.stdout.write(a.toString()+A.EOL)}function command_issue(t,n=""){command_issueCommand(t,{},n)}const c="::";class Command{constructor(t,n,i){if(!t){t="missing.command"}this.command=t;this.properties=n;this.message=i}toString(){let t=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let n=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const a=this.properties[i];if(a){if(n){n=false}else{t+=","}t+=`${i}=${escapeProperty(a)}`}}}}t+=`${c}${escapeData(this.message)}`;return t}}function escapeData(t){return utils_toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return utils_toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}const l=t(import.meta.url)("crypto");const d=t(import.meta.url)("fs");function file_command_issueFileCommand(t,n){const i=process.env[`GITHUB_${t}`];if(!i){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!fs.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}fs.appendFileSync(i,`${toCommandValue(n)}${os.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(t,n){const i=`ghadelimiter_${crypto.randomUUID()}`;const a=toCommandValue(n);if(t.includes(i)){throw new Error(`Unexpected input: name should not contain the delimiter "${i}"`)}if(a.includes(i)){throw new Error(`Unexpected input: value should not contain the delimiter "${i}"`)}return`${t}<<${i}${os.EOL}${a}${os.EOL}${i}`}const h=t(import.meta.url)("path");var f=__nccwpck_require__(8611);var g=__nccwpck_require__(5692);function getProxyUrl(t){const n=t.protocol==="https:";if(checkBypass(t)){return undefined}const i=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(i){try{return new DecodedURL(i)}catch(t){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new DecodedURL(`http://${i}`)}}else{return undefined}}function checkBypass(t){if(!t.hostname){return false}const n=t.hostname;if(isLoopbackAddress(n)){return true}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(t.port){a=Number(t.port)}else if(t.protocol==="http:"){a=80}else if(t.protocol==="https:"){a=443}const A=[t.hostname.toUpperCase()];if(typeof a==="number"){A.push(`${A[0]}:${a}`)}for(const t of i.split(",").map(t=>t.trim().toUpperCase()).filter(t=>t)){if(t==="*"||A.some(n=>n===t||n.endsWith(`.${t}`)||t.startsWith(".")&&n.endsWith(`${t}`))){return true}}return false}function isLoopbackAddress(t){const n=t.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(t,n){super(t,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var p=__nccwpck_require__(770);var m=__nccwpck_require__(6752);var E=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};var C;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(C||(C={}));var I;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(I||(I={}));var y;(function(t){t["ApplicationJson"]="application/json"})(y||(y={}));function lib_getProxyUrl(t){const n=pm.getProxyUrl(new URL(t));return n?n.href:""}const B=[C.MovedPermanently,C.ResourceMoved,C.SeeOther,C.TemporaryRedirect,C.PermanentRedirect];const Q=[C.BadGateway,C.ServiceUnavailable,C.GatewayTimeout];const w=null&&["OPTIONS","GET","DELETE","HEAD"];const S=10;const b=5;class HttpClientError extends Error{constructor(t,n){super(t);this.name="HttpClientError";this.statusCode=n;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(t){this.message=t}readBody(){return E(this,void 0,void 0,function*(){return new Promise(t=>E(this,void 0,void 0,function*(){let n=Buffer.alloc(0);this.message.on("data",t=>{n=Buffer.concat([n,t])});this.message.on("end",()=>{t(n.toString())})}))})}readBodyBuffer(){return E(this,void 0,void 0,function*(){return new Promise(t=>E(this,void 0,void 0,function*(){const n=[];this.message.on("data",t=>{n.push(t)});this.message.on("end",()=>{t(Buffer.concat(n))})}))})}}function isHttps(t){const n=new URL(t);return n.protocol==="https:"}class lib_HttpClient{constructor(t,n,i){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=this._getUserAgentWithOrchestrationId(t);this.handlers=n||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(t,n){return E(this,void 0,void 0,function*(){return this.request("OPTIONS",t,null,n||{})})}get(t,n){return E(this,void 0,void 0,function*(){return this.request("GET",t,null,n||{})})}del(t,n){return E(this,void 0,void 0,function*(){return this.request("DELETE",t,null,n||{})})}post(t,n,i){return E(this,void 0,void 0,function*(){return this.request("POST",t,n,i||{})})}patch(t,n,i){return E(this,void 0,void 0,function*(){return this.request("PATCH",t,n,i||{})})}put(t,n,i){return E(this,void 0,void 0,function*(){return this.request("PUT",t,n,i||{})})}head(t,n){return E(this,void 0,void 0,function*(){return this.request("HEAD",t,null,n||{})})}sendStream(t,n,i,a){return E(this,void 0,void 0,function*(){return this.request(t,n,i,a)})}getJson(t){return E(this,arguments,void 0,function*(t,n={}){n[I.Accept]=this._getExistingOrDefaultHeader(n,I.Accept,y.ApplicationJson);const i=yield this.get(t,n);return this._processResponse(i,this.requestOptions)})}postJson(t,n){return E(this,arguments,void 0,function*(t,n,i={}){const a=JSON.stringify(n,null,2);i[I.Accept]=this._getExistingOrDefaultHeader(i,I.Accept,y.ApplicationJson);i[I.ContentType]=this._getExistingOrDefaultContentTypeHeader(i,y.ApplicationJson);const A=yield this.post(t,a,i);return this._processResponse(A,this.requestOptions)})}putJson(t,n){return E(this,arguments,void 0,function*(t,n,i={}){const a=JSON.stringify(n,null,2);i[I.Accept]=this._getExistingOrDefaultHeader(i,I.Accept,y.ApplicationJson);i[I.ContentType]=this._getExistingOrDefaultContentTypeHeader(i,y.ApplicationJson);const A=yield this.put(t,a,i);return this._processResponse(A,this.requestOptions)})}patchJson(t,n){return E(this,arguments,void 0,function*(t,n,i={}){const a=JSON.stringify(n,null,2);i[I.Accept]=this._getExistingOrDefaultHeader(i,I.Accept,y.ApplicationJson);i[I.ContentType]=this._getExistingOrDefaultContentTypeHeader(i,y.ApplicationJson);const A=yield this.patch(t,a,i);return this._processResponse(A,this.requestOptions)})}request(t,n,i,a){return E(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(n);let c=this._prepareRequest(t,A,a);const l=this._allowRetries&&w.includes(t)?this._maxRetries+1:1;let d=0;let h;do{h=yield this.requestRaw(c,i);if(h&&h.message&&h.message.statusCode===C.Unauthorized){let t;for(const n of this.handlers){if(n.canHandleAuthentication(h)){t=n;break}}if(t){return t.handleAuthentication(this,c,i)}else{return h}}let n=this._maxRedirects;while(h.message.statusCode&&B.includes(h.message.statusCode)&&this._allowRedirects&&n>0){const l=h.message.headers["location"];if(!l){break}const d=new URL(l);if(A.protocol==="https:"&&A.protocol!==d.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 h.readBody();if(d.hostname!==A.hostname){for(const t in a){if(t.toLowerCase()==="authorization"){delete a[t]}}}c=this._prepareRequest(t,d,a);h=yield this.requestRaw(c,i);n--}if(!h.message.statusCode||!Q.includes(h.message.statusCode)){return h}d+=1;if(d{function callbackForResult(t,n){if(t){a(t)}else if(!n){a(new Error("Unknown error"))}else{i(n)}}this.requestRawWithCallback(t,n,callbackForResult)})})}requestRawWithCallback(t,n,i){if(typeof n==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let a=false;function handleResult(t,n){if(!a){a=true;i(t,n)}}const A=t.httpModule.request(t.options,t=>{const n=new HttpClientResponse(t);handleResult(undefined,n)});let c;A.on("socket",t=>{c=t});A.setTimeout(this._socketTimeout||3*6e4,()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))});A.on("error",function(t){handleResult(t)});if(n&&typeof n==="string"){A.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",function(){A.end()});n.pipe(A)}else{A.end()}}getAgent(t){const n=new URL(t);return this._getAgent(n)}getAgentDispatcher(t){const n=new URL(t);const i=pm.getProxyUrl(n);const a=i&&i.hostname;if(!a){return}return this._getProxyAgentDispatcher(n,i)}_prepareRequest(t,n,i){const a={};a.parsedUrl=n;const A=a.parsedUrl.protocol==="https:";a.httpModule=A?https:http;const c=A?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=t;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(a.options)}}return a}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,n,i){let a;if(this.requestOptions&&this.requestOptions.headers){const t=lowercaseKeys(this.requestOptions.headers)[n];if(t){a=typeof t==="number"?t.toString():t}}const A=t[n];if(A!==undefined){return typeof A==="number"?A.toString():A}if(a!==undefined){return a}return i}_getExistingOrDefaultContentTypeHeader(t,n){let i;if(this.requestOptions&&this.requestOptions.headers){const t=lowercaseKeys(this.requestOptions.headers)[I.ContentType];if(t){if(typeof t==="number"){i=String(t)}else if(Array.isArray(t)){i=t.join(", ")}else{i=t}}}const a=t[I.ContentType];if(a!==undefined){if(typeof a==="number"){return String(a)}else if(Array.isArray(a)){return a.join(", ")}else{return a}}if(i!==undefined){return i}return n}_getAgent(t){let n;const i=pm.getProxyUrl(t);const a=i&&i.hostname;if(this._keepAlive&&a){n=this._proxyAgent}if(!a){n=this._agent}if(n){return n}const A=t.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||http.globalAgent.maxSockets}if(i&&i.hostname){const t={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`}),{host:i.hostname,port:i.port})};let a;const l=i.protocol==="https:";if(A){a=l?tunnel.httpsOverHttps:tunnel.httpsOverHttp}else{a=l?tunnel.httpOverHttps:tunnel.httpOverHttp}n=a(t);this._proxyAgent=n}if(!n){const t={keepAlive:this._keepAlive,maxSockets:c};n=A?new https.Agent(t):new http.Agent(t);this._agent=n}if(A&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(t,n){let i;if(this._keepAlive){i=this._proxyAgentDispatcher}if(i){return i}const a=t.protocol==="https:";i=new ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=i;if(a&&this._ignoreSslError){i.options=Object.assign(i.options.requestTls||{},{rejectUnauthorized:false})}return i}_getUserAgentWithOrchestrationId(t){const n=t||"actions/http-client";const i=process.env["ACTIONS_ORCHESTRATION_ID"];if(i){const t=i.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${t}`}return n}_performExponentialBackoff(t){return E(this,void 0,void 0,function*(){t=Math.min(S,t);const n=b*Math.pow(2,t);return new Promise(t=>setTimeout(()=>t(),n))})}_processResponse(t,n){return E(this,void 0,void 0,function*(){return new Promise((i,a)=>E(this,void 0,void 0,function*(){const A=t.message.statusCode||0;const c={statusCode:A,result:null,headers:{}};if(A===C.NotFound){i(c)}function dateTimeDeserializer(t,n){if(typeof n==="string"){const t=new Date(n);if(!isNaN(t.valueOf())){return t}}return n}let l;let d;try{d=yield t.readBody();if(d&&d.length>0){if(n&&n.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}c.result=l}c.headers=t.message.headers}catch(t){}if(A>299){let t;if(l&&l.message){t=l.message}else if(d&&d.length>0){t=d}else{t=`Failed request: (${A})`}const n=new HttpClientError(t,A);n.result=c.result;a(n)}else{i(c)}}))})}}const lowercaseKeys=t=>Object.keys(t).reduce((n,i)=>(n[i.toLowerCase()]=t[i],n),{});var R=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};class BasicCredentialHandler{constructor(t,n){this.username=t;this.password=n}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return R(this,void 0,void 0,function*(){throw new Error("not implemented")})}}class auth_BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return R(this,void 0,void 0,function*(){throw new Error("not implemented")})}}class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return R(this,void 0,void 0,function*(){throw new Error("not implemented")})}}var v=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};class oidc_utils_OidcClient{static createHttpClient(t=true,n=10){const i={allowRetries:t,maxRetries:n};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],i)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){return v(this,void 0,void 0,function*(){var n;const i=oidc_utils_OidcClient.createHttpClient();const a=yield i.getJson(t).catch(t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.message}`)});const A=(n=a.result)===null||n===void 0?void 0:n.value;if(!A){throw new Error("Response json body do not have ID Token field")}return A})}static getIDToken(t){return v(this,void 0,void 0,function*(){try{let n=oidc_utils_OidcClient.getIDTokenUrl();if(t){const i=encodeURIComponent(t);n=`${n}&audience=${i}`}debug(`ID token url is ${n}`);const i=yield oidc_utils_OidcClient.getCall(n);setSecret(i);return i}catch(t){throw new Error(`Error message: ${t.message}`)}})}}var k=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const{access:D,appendFile:T,writeFile:N}=d.promises;const M="GITHUB_STEP_SUMMARY";const F="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return k(this,void 0,void 0,function*(){if(this._filePath){return this._filePath}const t=process.env[M];if(!t){throw new Error(`Unable to find environment variable for $${M}. Check if your runtime environment supports job summaries.`)}try{yield D(t,d.constants.R_OK|d.constants.W_OK)}catch(n){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}this._filePath=t;return this._filePath})}wrap(t,n,i={}){const a=Object.entries(i).map(([t,n])=>` ${t}="${n}"`).join("");if(!n){return`<${t}${a}>`}return`<${t}${a}>${n}`}write(t){return k(this,void 0,void 0,function*(){const n=!!(t===null||t===void 0?void 0:t.overwrite);const i=yield this.filePath();const a=n?N:T;yield a(i,this._buffer,{encoding:"utf8"});return this.emptyBuffer()})}clear(){return k(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(t,n=false){this._buffer+=t;return n?this.addEOL():this}addEOL(){return this.addRaw(A.EOL)}addCodeBlock(t,n){const i=Object.assign({},n&&{lang:n});const a=this.wrap("pre",this.wrap("code",t),i);return this.addRaw(a).addEOL()}addList(t,n=false){const i=n?"ol":"ul";const a=t.map(t=>this.wrap("li",t)).join("");const A=this.wrap(i,a);return this.addRaw(A).addEOL()}addTable(t){const n=t.map(t=>{const n=t.map(t=>{if(typeof t==="string"){return this.wrap("td",t)}const{header:n,data:i,colspan:a,rowspan:A}=t;const c=n?"th":"td";const l=Object.assign(Object.assign({},a&&{colspan:a}),A&&{rowspan:A});return this.wrap(c,i,l)}).join("");return this.wrap("tr",n)}).join("");const i=this.wrap("table",n);return this.addRaw(i).addEOL()}addDetails(t,n){const i=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(i).addEOL()}addImage(t,n,i){const{width:a,height:A}=i||{};const c=Object.assign(Object.assign({},a&&{width:a}),A&&{height:A});const l=this.wrap("img",null,Object.assign({src:t,alt:n},c));return this.addRaw(l).addEOL()}addHeading(t,n){const i=`h${n}`;const a=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1";const A=this.wrap(a,t);return this.addRaw(A).addEOL()}addSeparator(){const t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){const t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,n){const i=Object.assign({},n&&{cite:n});const a=this.wrap("blockquote",t,i);return this.addRaw(a).addEOL()}addLink(t,n){const i=this.wrap("a",t,{href:n});return this.addRaw(i).addEOL()}}const x=new Summary;const U=null&&x;const P=x;function toPosixPath(t){return t.replace(/[\\]/g,"/")}function toWin32Path(t){return t.replace(/[/]/g,"\\")}function toPlatformPath(t){return t.replace(/[/\\]/g,path.sep)}var L=__nccwpck_require__(3193);var O=__nccwpck_require__(4434);const H=t(import.meta.url)("child_process");var $=__nccwpck_require__(2613);var G=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const{chmod:V,copyFile:Y,lstat:J,mkdir:W,open:q,readdir:j,rename:z,rm:K,rmdir:Z,stat:X,symlink:ee,unlink:te}=d.promises;const re=process.platform==="win32";function readlink(t){return G(this,void 0,void 0,function*(){const n=yield fs.promises.readlink(t);if(re&&!n.endsWith("\\")){return`${n}\\`}return n})}const ne=268435456;const se=d.constants.O_RDONLY;function exists(t){return G(this,void 0,void 0,function*(){try{yield X(t)}catch(t){if(t.code==="ENOENT"){return false}throw t}return true})}function isDirectory(t){return G(this,arguments,void 0,function*(t,n=false){const i=n?yield X(t):yield J(t);return i.isDirectory()})}function isRooted(t){t=normalizeSeparators(t);if(!t){throw new Error('isRooted() parameter "p" cannot be empty')}if(re){return t.startsWith("\\")||/^[A-Z]:/i.test(t)}return t.startsWith("/")}function tryGetExecutablePath(t,n){return G(this,void 0,void 0,function*(){let i=undefined;try{i=yield X(t)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}}if(i&&i.isFile()){if(re){const i=h.extname(t).toUpperCase();if(n.some(t=>t.toUpperCase()===i)){return t}}else{if(isUnixExecutable(i)){return t}}}const a=t;for(const A of n){t=a+A;i=undefined;try{i=yield X(t)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}}if(i&&i.isFile()){if(re){try{const n=h.dirname(t);const i=h.basename(t).toUpperCase();for(const a of yield j(n)){if(i===a.toUpperCase()){t=h.join(n,a);break}}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else{if(isUnixExecutable(i)){return t}}}}return""})}function normalizeSeparators(t){t=t||"";if(re){t=t.replace(/\//g,"\\");return t.replace(/\\\\+/g,"\\")}return t.replace(/\/\/+/g,"/")}function isUnixExecutable(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==undefined&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==undefined&&t.uid===process.getuid()}function getCmdPath(){var t;return(t=process.env["COMSPEC"])!==null&&t!==void 0?t:`cmd.exe`}var oe=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};function cp(t,n){return oe(this,arguments,void 0,function*(t,n,i={}){const{force:a,recursive:A,copySourceDirectory:c}=readCopyOptions(i);const l=(yield ioUtil.exists(n))?yield ioUtil.stat(n):null;if(l&&l.isFile()&&!a){return}const d=l&&l.isDirectory()&&c?path.join(n,path.basename(t)):n;if(!(yield ioUtil.exists(t))){throw new Error(`no such file or directory: ${t}`)}const h=yield ioUtil.stat(t);if(h.isDirectory()){if(!A){throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(t,d,0,a)}}else{if(path.relative(t,d)===""){throw new Error(`'${d}' and '${t}' are the same file`)}yield io_copyFile(t,d,a)}})}function mv(t,n){return oe(this,arguments,void 0,function*(t,n,i={}){if(yield ioUtil.exists(n)){let a=true;if(yield ioUtil.isDirectory(n)){n=path.join(n,path.basename(t));a=yield ioUtil.exists(n)}if(a){if(i.force==null||i.force){yield rmRF(n)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(n));yield ioUtil.rename(t,n)})}function rmRF(t){return oe(this,void 0,void 0,function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(t)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(t,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(t){throw new Error(`File was unable to be removed ${t}`)}})}function mkdirP(t){return oe(this,void 0,void 0,function*(){ok(t,"a path argument must be provided");yield ioUtil.mkdir(t,{recursive:true})})}function which(t,n){return oe(this,void 0,void 0,function*(){if(!t){throw new Error("parameter 'tool' is required")}if(n){const n=yield which(t,false);if(!n){if(re){throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return n}const i=yield findInPath(t);if(i&&i.length>0){return i[0]}return""})}function findInPath(t){return oe(this,void 0,void 0,function*(){if(!t){throw new Error("parameter 'tool' is required")}const n=[];if(re&&process.env["PATHEXT"]){for(const t of process.env["PATHEXT"].split(h.delimiter)){if(t){n.push(t)}}}if(isRooted(t)){const i=yield tryGetExecutablePath(t,n);if(i){return[i]}return[]}if(t.includes(h.sep)){return[]}const i=[];if(process.env.PATH){for(const t of process.env.PATH.split(h.delimiter)){if(t){i.push(t)}}}const a=[];for(const A of i){const i=yield tryGetExecutablePath(h.join(A,t),n);if(i){a.push(i)}}return a})}function readCopyOptions(t){const n=t.force==null?true:t.force;const i=Boolean(t.recursive);const a=t.copySourceDirectory==null?true:Boolean(t.copySourceDirectory);return{force:n,recursive:i,copySourceDirectory:a}}function cpDirRecursive(t,n,i,a){return oe(this,void 0,void 0,function*(){if(i>=255)return;i++;yield mkdirP(n);const A=yield ioUtil.readdir(t);for(const c of A){const A=`${t}/${c}`;const l=`${n}/${c}`;const d=yield ioUtil.lstat(A);if(d.isDirectory()){yield cpDirRecursive(A,l,i,a)}else{yield io_copyFile(A,l,a)}}yield ioUtil.chmod(n,(yield ioUtil.stat(t)).mode)})}function io_copyFile(t,n,i){return oe(this,void 0,void 0,function*(){if((yield ioUtil.lstat(t)).isSymbolicLink()){try{yield ioUtil.lstat(n);yield ioUtil.unlink(n)}catch(t){if(t.code==="EPERM"){yield ioUtil.chmod(n,"0666");yield ioUtil.unlink(n)}}const i=yield ioUtil.readlink(t);yield ioUtil.symlink(i,n,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(n))||i){yield ioUtil.copyFile(t,n)}})}const ie=t(import.meta.url)("timers");var ae=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const Ae=process.platform==="win32";class ToolRunner extends O.EventEmitter{constructor(t,n,i){super();if(!t){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=t;this.args=n||[];this.options=i||{}}_debug(t){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(t)}}_getCommandString(t,n){const i=this._getSpawnFileName();const a=this._getSpawnArgs(t);let A=n?"":"[command]";if(Ae){if(this._isCmdFile()){A+=i;for(const t of a){A+=` ${t}`}}else if(t.windowsVerbatimArguments){A+=`"${i}"`;for(const t of a){A+=` ${t}`}}else{A+=this._windowsQuoteCmdArg(i);for(const t of a){A+=` ${this._windowsQuoteCmdArg(t)}`}}}else{A+=i;for(const t of a){A+=` ${t}`}}return A}_processLineBuffer(t,n,i){try{let a=n+t.toString();let c=a.indexOf(A.EOL);while(c>-1){const t=a.substring(0,c);i(t);a=a.substring(c+A.EOL.length);c=a.indexOf(A.EOL)}return a}catch(t){this._debug(`error processing line. Failed with error ${t}`);return""}}_getSpawnFileName(){if(Ae){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(t){if(Ae){if(this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){n+=" ";n+=t.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}n+='"';return[n]}}return this.args}_endsWith(t,n){return t.endsWith(n)}_isCmdFile(){const t=this.toolPath.toUpperCase();return this._endsWith(t,".CMD")||this._endsWith(t,".BAT")}_windowsQuoteCmdArg(t){if(!this._isCmdFile()){return this._uvQuoteCmdArg(t)}if(!t){return'""'}const n=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const a of t){if(n.some(t=>t===a)){i=true;break}}if(!i){return t}let a='"';let A=true;for(let n=t.length;n>0;n--){a+=t[n-1];if(A&&t[n-1]==="\\"){a+="\\"}else if(t[n-1]==='"'){A=true;a+='"'}else{A=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(t){if(!t){return'""'}if(!t.includes(" ")&&!t.includes("\t")&&!t.includes('"')){return t}if(!t.includes('"')&&!t.includes("\\")){return`"${t}"`}let n='"';let i=true;for(let a=t.length;a>0;a--){n+=t[a-1];if(i&&t[a-1]==="\\"){n+="\\"}else if(t[a-1]==='"'){i=true;n+="\\"}else{i=false}}n+='"';return n.split("").reverse().join("")}_cloneExecOptions(t){t=t||{};const n={cwd:t.cwd||process.cwd(),env:t.env||process.env,silent:t.silent||false,windowsVerbatimArguments:t.windowsVerbatimArguments||false,failOnStdErr:t.failOnStdErr||false,ignoreReturnCode:t.ignoreReturnCode||false,delay:t.delay||1e4};n.outStream=t.outStream||process.stdout;n.errStream=t.errStream||process.stderr;return n}_getSpawnOptions(t,n){t=t||{};const i={};i.cwd=t.cwd;i.env=t.env;i["windowsVerbatimArguments"]=t.windowsVerbatimArguments||this._isCmdFile();if(t.windowsVerbatimArguments){i.argv0=`"${n}"`}return i}exec(){return ae(this,void 0,void 0,function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||Ae&&this.toolPath.includes("\\"))){this.toolPath=h.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise((t,n)=>ae(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const t of this.args){this._debug(` ${t}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+A.EOL)}const a=new ExecState(i,this.toolPath);a.on("debug",t=>{this._debug(t)});if(this.options.cwd&&!(yield exists(this.options.cwd))){return n(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const c=this._getSpawnFileName();const l=H.spawn(c,this._getSpawnArgs(i),this._getSpawnOptions(this.options,c));let d="";if(l.stdout){l.stdout.on("data",t=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(t)}if(!i.silent&&i.outStream){i.outStream.write(t)}d=this._processLineBuffer(t,d,t=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(t)}})})}let h="";if(l.stderr){l.stderr.on("data",t=>{a.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(t)}if(!i.silent&&i.errStream&&i.outStream){const n=i.failOnStdErr?i.errStream:i.outStream;n.write(t)}h=this._processLineBuffer(t,h,t=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(t)}})})}l.on("error",t=>{a.processError=t.message;a.processExited=true;a.processClosed=true;a.CheckComplete()});l.on("exit",t=>{a.processExitCode=t;a.processExited=true;this._debug(`Exit code ${t} received from tool '${this.toolPath}'`);a.CheckComplete()});l.on("close",t=>{a.processExitCode=t;a.processExited=true;a.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);a.CheckComplete()});a.on("done",(i,a)=>{if(d.length>0){this.emit("stdline",d)}if(h.length>0){this.emit("errline",h)}l.removeAllListeners();if(i){n(i)}else{t(a)}});if(this.options.input){if(!l.stdin){throw new Error("child process missing stdin")}l.stdin.end(this.options.input)}}))})}}function argStringToArray(t){const n=[];let i=false;let a=false;let A="";function append(t){if(a&&t!=='"'){A+="\\"}A+=t;a=false}for(let c=0;c0){n.push(A);A=""}continue}append(l)}if(A.length>0){n.push(A.trim())}return n}class ExecState extends O.EventEmitter{constructor(t,n){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!n){throw new Error("toolPath must not be empty")}this.options=t;this.toolPath=n;if(t.delay){this.delay=t.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,ie.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(t){this.emit("debug",t)}_setResult(){let t;if(this.processExited){if(this.processError){t=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){t=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){t=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",t,this.processExitCode)}static HandleTimeout(t){if(t.done){return}if(!t.processClosed&&t.processExited){const n=`The STDIO streams did not close within ${t.delay/1e3} seconds of the exit event from process '${t.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;t._debug(n)}t._setResult()}}var ce=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};function exec_exec(t,n,i){return ce(this,void 0,void 0,function*(){const a=tr.argStringToArray(t);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const A=a[0];n=a.slice(1).concat(n||[]);const c=new tr.ToolRunner(A,n,i);return c.exec()})}function getExecOutput(t,n,i){return ce(this,void 0,void 0,function*(){var a,A;let c="";let l="";const d=new StringDecoder("utf8");const h=new StringDecoder("utf8");const f=(a=i===null||i===void 0?void 0:i.listeners)===null||a===void 0?void 0:a.stdout;const g=(A=i===null||i===void 0?void 0:i.listeners)===null||A===void 0?void 0:A.stderr;const stdErrListener=t=>{l+=h.write(t);if(g){g(t)}};const stdOutListener=t=>{c+=d.write(t);if(f){f(t)}};const p=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const m=yield exec_exec(t,n,Object.assign(Object.assign({},i),{listeners:p}));c+=d.end();l+=h.end();return{exitCode:m,stdout:c,stderr:l}})}var le=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const getWindowsInfo=()=>le(void 0,void 0,void 0,function*(){const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:n}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:n.trim(),version:t.trim()}});const getMacOsInfo=()=>le(void 0,void 0,void 0,function*(){var t,n,i,a;const{stdout:A}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const c=(n=(t=A.match(/ProductVersion:\s*(.+)/))===null||t===void 0?void 0:t[1])!==null&&n!==void 0?n:"";const l=(a=(i=A.match(/ProductName:\s*(.+)/))===null||i===void 0?void 0:i[1])!==null&&a!==void 0?a:"";return{name:l,version:c}});const getLinuxInfo=()=>le(void 0,void 0,void 0,function*(){const{stdout:t}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[n,i]=t.trim().split("\n");return{name:n,version:i}});const ue=A.platform();const de=A.arch();const he=ue==="win32";const fe=ue==="darwin";const ge=ue==="linux";function getDetails(){return le(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he?getWindowsInfo():fe?getMacOsInfo():getLinuxInfo()),{platform:ue,arch:de,isWindows:he,isMacOS:fe,isLinux:ge})})}var pe=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,A){function fulfilled(t){try{step(a.next(t))}catch(t){A(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){A(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};var me;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(me||(me={}));function exportVariable(t,n){const i=toCommandValue(n);process.env[t]=i;const a=process.env["GITHUB_ENV"]||"";if(a){return issueFileCommand("ENV",prepareKeyValueMessage(t,n))}issueCommand("set-env",{name:t},i)}function core_setSecret(t){issueCommand("add-mask",{},t)}function addPath(t){const n=process.env["GITHUB_PATH"]||"";if(n){issueFileCommand("PATH",t)}else{issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${path.delimiter}${process.env["PATH"]}`}function getInput(t,n){const i=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!i){throw new Error(`Input required and not supplied: ${t}`)}if(n&&n.trimWhitespace===false){return i}return i.trim()}function getMultilineInput(t,n){const i=getInput(t,n).split("\n").filter(t=>t!=="");if(n&&n.trimWhitespace===false){return i}return i.map(t=>t.trim())}function getBooleanInput(t,n){const i=["true","True","TRUE"];const a=["false","False","FALSE"];const A=getInput(t,n);if(i.includes(A))return true;if(a.includes(A))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(t,n){const i=process.env["GITHUB_OUTPUT"]||"";if(i){return issueFileCommand("OUTPUT",prepareKeyValueMessage(t,n))}process.stdout.write(os.EOL);issueCommand("set-output",{name:t},toCommandValue(n))}function setCommandEcho(t){issue("echo",t?"on":"off")}function setFailed(t){process.exitCode=me.Failure;error(t)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(t){issueCommand("debug",{},t)}function error(t,n={}){command_issueCommand("error",utils_toCommandProperties(n),t instanceof Error?t.toString():t)}function warning(t,n={}){command_issueCommand("warning",utils_toCommandProperties(n),t instanceof Error?t.toString():t)}function notice(t,n={}){issueCommand("notice",toCommandProperties(n),t instanceof Error?t.toString():t)}function info(t){process.stdout.write(t+A.EOL)}function startGroup(t){command_issue("group",t)}function endGroup(){command_issue("endgroup")}function group(t,n){return pe(this,void 0,void 0,function*(){startGroup(t);let i;try{i=yield n()}finally{endGroup()}return i})}function saveState(t,n){const i=process.env["GITHUB_STATE"]||"";if(i){return issueFileCommand("STATE",prepareKeyValueMessage(t,n))}issueCommand("save-state",{name:t},toCommandValue(n))}function getState(t){return process.env[`STATE_${t}`]||""}function getIDToken(t){return pe(this,void 0,void 0,function*(){return yield OidcClient.getIDToken(t)})}var Ee=__nccwpck_require__(7605);const Ce=t(import.meta.url)("fs/promises");const Ie="https://test-reporting.d2l.dev";const ye=["main","master"];const makeLogger=()=>({startGroup:startGroup,endGroup:endGroup,info:info,warning:warning,error:error});const getStringInput=(t,{required:n=true,lowerCase:i=false}={})=>{const a=getInput(t,{required:n});if(a===""&&n){throw new Error(`Input '${t}' must be a non-empty string`)}return i?a.toLowerCase():a};const getContext=t=>{t.startGroup("Gather GitHub context");let n;try{n=(0,Ee.getContext)()}catch{throw new Error("Unable to gather github context")}const{github:i,git:a}=n;const{organization:A,repository:c,workflow:l,runId:d,runAttempt:h}=i;const{branch:f,sha:g}=a;t.info(`GitHub organization: ${A}`);t.info(`GitHub repository: ${c}`);t.info(`GitHub workflow: ${l}`);t.info(`GitHub run ID: ${d}`);t.info(`GitHub run attempt: ${h}`);t.info(`Git branch: ${f}`);t.info(`Git SHA: ${g}`);t.endGroup();return n};const getInputs=async t=>{t.startGroup("Gather GitHub inputs");t.info("Gather credentials");const n=getStringInput("aws-access-key-id");const i=getStringInput("aws-secret-access-key");const a=getStringInput("aws-session-token");const A=getStringInput("role-to-assume");t.info("Determine report path");const c=(0,h.resolve)(getStringInput("report-path"));try{await Ce.access(c)}catch{throw new Error("Report path must exists")}t.info(`Report path: ${c}`);t.info("Determine LMS information");let l=getStringInput("lms-build-number",{required:false});let d=getStringInput("lms-instance-url",{required:false});if(l!==""){t.info(`LMS build number: ${l}`)}else{l=undefined}if(d!==""){t.info(`LMS instance URL: ${d}`)}else{d=undefined}t.info("Determine inject context mode");const f=getStringInput("inject-github-context",{lowerCase:true});if(!["auto","force","off"].includes(f)){throw new Error("Inject context mode invalid")}t.info(`Inject context mode: ${f}`);const g=getBooleanInput("post-summary",{required:true});t.info(`Post summary: ${g}`);const p=getBooleanInput("dry-run",{required:true});t.info(`Dry run: ${p}`);const m=getBooleanInput("debug",{required:true});t.info(`Debug: ${m}`);t.endGroup();return{awsAccessKeyId:n,awsSecretAccessKey:i,awsSessionToken:a,roleToAssume:A,reportPath:c,lmsBuildNumber:l,lmsInstanceUrl:d,injectGitHubContext:f,postSummary:g,dryRun:p,debug:m}};const updateSummary=(t,n,i)=>{t.startGroup("Update GitHub Actions summary");const{postSummary:a}=i;if(!a){t.info("Skip GitHub Action summary update");t.endGroup();return}P.addHeading("Test Reporting",2);P.addRaw("The overview of data submitted can be found ");const A=new URL("analytics/metrics",Ie);const{searchParams:c}=A;const{github:{organization:l,repository:d,branch:h}}=n;const f=!ye.includes(h);c.set("var-githubOrganizations",l);c.set("var-githubRepositories",d);if(f){c.set("var-branchType","All")}P.addLink("here",A.toString());P.addEOL();P.addRaw("A more detailed view of data submitted can be found ");const g=new URL("analytics/drill-down",Ie);const{searchParams:p}=g;p.set("var-githubOrganizations",l);p.set("var-githubRepositories",d);if(f){p.set("var-branchType","All")}P.addLink("here",g.toString());P.addEOL();const{debug:m,dryRun:E}=i;if(m){t.info("Generated summary\n");t.info(`${P.stringify()}\n`)}if(E){t.info("Dry run, skipping GitHub Action summary update");t.endGroup();return}P.write();t.endGroup()};var Be=__nccwpck_require__(1695);var Qe=__nccwpck_require__(4316);var we=__nccwpck_require__(3024);var Se=__nccwpck_require__(8758);const be="us-east-1";const Re="test_reporting";const ve="https://github.com/Brightspace/repo-settings/blob/main/docs/test-reporting.md#analytics";const{BIGINT:ke,VARCHAR:De,MULTI:Te}=Qe.Q3;const{MILLISECONDS:Ne}=Qe.yr;const Me=new WeakMap;const captureExperience=(t,n)=>{const i=JSON.parse(we.readFileSync(n,"utf8"));const a=i.version??i.reportVersion;if(a!==1&&a!==2){return}const A=new Map;for(const t of i.details){const{name:n,location:i,experience:a}=t;if(!a){continue}const c=typeof i==="string"?i:i.file;A.set(`${n}|${c}`,a)}if(A.size>0){Me.set(t,A)}};const applyExperienceDimensions=(t,n)=>{const i=Me.get(t);if(!i){return}Me.delete(t);for(const t of n){for(const n of t.Records){const t=n.Dimensions.find(t=>t.Name==="name")?.Value;const a=n.Dimensions.find(t=>t.Name==="location_file")?.Value;const A=i.get(`${t}|${a}`);if(A){n.Dimensions.push({Name:"experience",Value:A})}}}};const makeSummaryWriteRequest=t=>{const{id:n,version:i,summary:a}=t;const{github:{organization:A,repository:c,workflow:l,runId:d,runAttempt:h},git:{branch:f,sha:g},operatingSystem:p,framework:m,started:E,duration:{total:C},status:I,count:{passed:y,failed:B,skipped:Q,flaky:w},lms:S}=a;const b=[{Name:"report_id",Value:n},{Name:"github_organization",Value:A},{Name:"github_repository",Value:c},{Name:"github_workflow",Value:l},{Name:"github_run_id",Value:d.toString()},{Name:"github_run_attempt",Value:h.toString()},{Name:"git_branch",Value:f},{Name:"git_sha",Value:g},{Name:"operating_system",Value:p},{Name:"framework",Value:m}];if(S){const{buildNumber:t,instanceUrl:n}=S;if(t){b.push({Name:"lms_build_number",Value:t})}if(n){b.push({Name:"lms_instance_url",Value:n})}}return{DatabaseName:Re,TableName:"summary",Records:[{Version:1,Time:Date.parse(E).toString(),TimeUnit:Ne,MeasureName:`report_v${i}_bc`,MeasureValueType:Te,MeasureValues:[{Name:"duration_total",Value:C.toString(),Type:ke},{Name:"status",Value:I,Type:De},{Name:"count_passed",Value:y.toString(),Type:ke},{Name:"count_failed",Value:B.toString(),Type:ke},{Name:"count_skipped",Value:Q.toString(),Type:ke},{Name:"count_flaky",Value:w.toString(),Type:ke}],Dimensions:b}]}};const makeDetailRecord=t=>{const{name:n,started:i,location:a,retries:A,config:c,configuration:l,github:d,duration:{total:h,final:f},status:g,browser:p,taxonomy:m}=t;const{file:E,line:C,column:I}=a;const{timeout:y}=l??c??{};const{codeowners:B}=d??{};const{type:Q,tool:w}=m??{};const S=[{Name:"duration_final",Value:f.toString(),Type:ke},{Name:"duration_total",Value:h.toString(),Type:ke},{Name:"retries",Value:A.toString(),Type:ke},{Name:"status",Value:g,Type:De}];const b=[{Name:"name",Value:n},{Name:"location_file",Value:E}];if(y){b.push({Name:"timeout",Value:y.toString()});S.push({Name:"configuration_timeout",Value:y.toString(),Type:ke})}if(C){b.push({Name:"location_line",Value:C.toString()})}if(I){b.push({Name:"location_column",Value:I.toString()})}if(p){b.push({Name:"browser",Value:p})}if(Q){b.push({Name:"type",Value:Q});b.push({Name:"taxonomy_type",Value:Q})}if(w){b.push({Name:"tool",Value:w});b.push({Name:"taxonomy_tool",Value:w})}if(B){b.push({Name:"github_codeowners",Value:B.join(",")})}return{Time:Date.parse(i).toString(),TimeUnit:Ne,MeasureValues:S,Dimensions:b}};const makeDetailWriteRequests=t=>{const{id:n,version:i,details:a}=t;const A=100;const c=Array.from({length:Math.ceil(a.length/A)},(t,c)=>{const l=a.slice(c*A,c*A+A).map(makeDetailRecord);return{DatabaseName:Re,TableName:"details",Records:l,CommonAttributes:{Version:1,MeasureName:`report_v${i}_bc`,MeasureValueType:Te,Dimensions:[{Name:"report_id",Value:n,Type:De}]}}});return c};const assumeRole=async(t,n,i,a,A,c,l)=>{const d=new Be.iM({region:n,credentials:i});const h=new Be.QL({RoleArn:a,RoleSessionName:A,DurationSeconds:c,Tags:l});let f;try{f=await d.send(h)}catch(n){const{name:i,message:a,$metadata:A={}}=n;const{httpStatusCode:c="[unknown]",requestId:l="[unknown]"}=A;t.error(`AWS ${i} (HTTP ${c}, request ${l}): ${a}`);if(i==="AccessDenied"){t.info(`Hint: Possibly missing repo-settings set-up. See ${ve} for details`)}throw new Error("Unable to assume required role")}const{AccessKeyId:g,SecretAccessKey:p,SessionToken:m}=f.Credentials;return{accessKeyId:g,secretAccessKey:p,sessionToken:m}};const writeTimestream=async(t,n,i,a,A)=>{const{debug:c}=n;const l=new Qe.Go({credentials:a,region:i});for(const[n,i]of A.entries()){try{t.info(`Sending batch ${n+1} of ${A.length} (${i.Records.length} records)`);if(c){t.info(`${JSON.stringify(i,null,2)}\n`)}const a=new Qe.Nj(i);await l.send(a)}catch(a){const{name:c,message:l,$metadata:d={},RejectedRecords:h}=a;const{httpStatusCode:f="[unknown]",requestId:g="[unknown]"}=d;t.error(`AWS ${c} on batch ${n+1}/${A.length} (HTTP ${f}, request ${g}): ${l}`);if(Array.isArray(h)){for(const n of h){const a=JSON.stringify(i.Records[n.RecordIndex]);t.error(`Rejected record ${n.RecordIndex} (${n.Reason}): ${a}`)}}throw new Error("Unable to submit write requests")}}};const finalize=(t,n,i)=>{t.startGroup("Finalize test report");const{reportPath:a,injectGitHubContext:A,lmsBuildNumber:c,lmsInstanceUrl:l,debug:d}=i;const h={};if(c){h.buildNumber=c}if(l){h.instanceUrl=l}let f={lmsInfo:h,upgradeToLatest:true};if(A==="force"){t.info("Forcefully inject GitHub context");f={...f,context:n,overrideContext:true}}else if(A==="auto"){t.info("Allow injection of GitHub context");f={...f,context:n}}else{t.info("Not injecting GitHub context")}const g=new Se.Report(a,f);captureExperience(g,a);if(Me.has(g)){t.info("Captured experience dimension from source report for backwards compatibility");if(d){const n=Me.get(g);t.info(`Experience map (${n.size} entries)\n`);t.info(`${JSON.stringify(Object.fromEntries(n),null,2)}\n`)}}if(d){t.info("Loaded report\n");t.info(`${JSON.stringify(g,null,2)}\n`)}t.info(`Report ID: ${g.getId()}`);const p=g.getVersionOriginal();const m=g.getVersion();if(p!==m){t.info(`Report Version: ${m} (Upgrade from ${p})`)}else{t.info(`Report Version: ${m}`)}t.endGroup();return g};const report_submit=async(t,n,i,a)=>{t.startGroup("Submit report");t.info("Generate summary write request");let A=a.toJSON();const c=makeSummaryWriteRequest(A);t.info("Generate detail write requests");const l=makeDetailWriteRequests(A);A=null;if(Me.has(a)){t.info("Restoring experience dimension onto detail records")}applyExperienceDimensions(a,l);t.info("Merge write requests");const d=[c,...l];t.info("Assume required role");const{github:{organization:h,repository:f}}=n;const{awsAccessKeyId:g,awsSecretAccessKey:p,awsSessionToken:m,roleToAssume:E}=i;const C=await assumeRole(t,be,{accessKeyId:g,secretAccessKey:p,sessionToken:m},E,`test-reporting-${(new Date).getTime()}`,3600,[{Key:"Org",Value:h},{Key:"Repo",Value:f}]);const{dryRun:I}=i;if(I){t.info("Dry run, skipping records submit");return}t.info("Executing write requests");await writeTimestream(t,i,be,C,d);t.endGroup()};(async()=>{const t=makeLogger();try{const n=getContext(t);const i=await getInputs(t);const a=finalize(t,n,i);const A=a.getContext();await report_submit(t,n,i,a);updateSummary(t,A,i)}catch({message:n}){setFailed(n);t.endGroup()}})(); \ No newline at end of file + deps: ${i}}`};const l={keyword:"dependencies",type:"object",schemaType:"object",error:n.error,code(t){const[n,i]=splitDependencies(t);validatePropertyDeps(t,n);validateSchemaDeps(t,i)}};function splitDependencies({schema:t}){const n={};const i={};for(const a in t){if(a==="__proto__")continue;const c=Array.isArray(t[a])?n:i;c[a]=t[a]}return[n,i]}function validatePropertyDeps(t,n=t.schema){const{gen:i,data:c,it:l}=t;if(Object.keys(n).length===0)return;const d=i.let("missing");for(const h in n){const f=n[h];if(f.length===0)continue;const g=(0,A.propertyInData)(i,c,h,l.opts.ownProperties);t.setParams({property:h,depsCount:f.length,deps:f.join(", ")});if(l.allErrors){i.if(g,()=>{for(const n of f){(0,A.checkReportMissingProp)(t,n)}})}else{i.if((0,a._)`${g} && (${(0,A.checkMissingProp)(t,f,d)})`);(0,A.reportMissingProp)(t,d);i.else()}}}n.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(t,n=t.schema){const{gen:i,data:a,keyword:l,it:d}=t;const h=i.name("valid");for(const f in n){if((0,c.alwaysValidSchema)(d,n[f]))continue;i.if((0,A.propertyInData)(i,a,f,d.opts.ownProperties),()=>{const n=t.subschema({keyword:l,schemaProp:f},h);t.mergeValidEvaluated(n,h)},()=>i.var(h,true));t.ok(h)}}n.validateSchemaDeps=validateSchemaDeps;n["default"]=l},3818:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5826);const c={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,a.validateSchemaDeps)(t)};n["default"]=c},8584:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A={message:({params:t})=>(0,a.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,a._)`{failingKeyword: ${t.ifClause}}`};const l={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:A,code(t){const{gen:n,parentSchema:i,it:A}=t;if(i.then===undefined&&i.else===undefined){(0,c.checkStrictMode)(A,'"if" without "then" and "else" is ignored')}const l=hasSchema(A,"then");const d=hasSchema(A,"else");if(!l&&!d)return;const h=n.let("valid",true);const f=n.name("_valid");validateIf();t.reset();if(l&&d){const i=n.let("ifClause");t.setParams({ifClause:i});n.if(f,validateClause("then",i),validateClause("else",i))}else if(l){n.if(f,validateClause("then"))}else{n.if((0,a.not)(f),validateClause("else"))}t.pass(h,()=>t.error(true));function validateIf(){const n=t.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},f);t.mergeEvaluated(n)}function validateClause(i,c){return()=>{const A=t.subschema({keyword:i},f);n.assign(h,f);t.mergeValidEvaluated(A,h);if(c)n.assign(c,(0,a._)`${i}`);else t.setParams({ifClause:i})}}}};function hasSchema(t,n){const i=t.schema[n];return i!==undefined&&!(0,c.alwaysValidSchema)(t,i)}n["default"]=l},8775:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(3448);const c=i(6467);const A=i(5791);const l=i(2959);const d=i(6182);const h=i(5826);const f=i(1372);const g=i(2431);const p=i(8778);const m=i(664);const E=i(8350);const C=i(9380);const I=i(2490);const y=i(9205);const B=i(8584);const Q=i(6829);function getApplicator(t=false){const n=[E.default,C.default,I.default,y.default,B.default,Q.default,f.default,g.default,h.default,p.default,m.default];if(t)n.push(c.default,l.default);else n.push(a.default,A.default);n.push(d.default);return n}n["default"]=getApplicator},5791:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateTuple=void 0;const a=i(1436);const c=i(4464);const A=i(8484);const l={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:n,it:i}=t;if(Array.isArray(n))return validateTuple(t,"additionalItems",n);i.items=true;if((0,c.alwaysValidSchema)(i,n))return;t.ok((0,A.validateArray)(t))}};function validateTuple(t,n,i=t.schema){const{gen:A,parentSchema:l,data:d,keyword:h,it:f}=t;checkStrictTuple(l);if(f.opts.unevaluated&&i.length&&f.items!==true){f.items=c.mergeEvaluated.items(A,i.length,f.items)}const g=A.name("valid");const p=A.const("len",(0,a._)`${d}.length`);i.forEach((n,i)=>{if((0,c.alwaysValidSchema)(f,n))return;A.if((0,a._)`${p} > ${i}`,()=>t.subschema({keyword:h,schemaProp:i,dataProp:i},g));t.ok(g)});function checkStrictTuple(t){const{opts:a,errSchemaPath:A}=f;const l=i.length;const d=l===t.minItems&&(l===t.maxItems||t[n]===false);if(a.strictTuples&&!d){const t=`"${h}" is ${l}-tuple, but minItems or maxItems/${n} are not specified or different at path "${A}"`;(0,c.checkStrictMode)(f,t,a.strictTuples)}}}n.validateTuple=validateTuple;n["default"]=l},2959:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A=i(8484);const l=i(3448);const d={message:({params:{len:t}})=>(0,a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,a._)`{limit: ${t}}`};const h={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:d,code(t){const{schema:n,parentSchema:i,it:a}=t;const{prefixItems:d}=i;a.items=true;if((0,c.alwaysValidSchema)(a,n))return;if(d)(0,l.validateAdditionalItems)(t,d);else t.ok((0,A.validateArray)(t))}};n["default"]=h},8350:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const c={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(t){const{gen:n,schema:i,it:c}=t;if((0,a.alwaysValidSchema)(c,i)){t.fail();return}const A=n.name("valid");t.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},A);t.failResult(A,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};n["default"]=c},2490:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,a._)`{passingSchemas: ${t.passing}}`};const l={keyword:"oneOf",schemaType:"array",trackErrors:true,error:A,code(t){const{gen:n,schema:i,parentSchema:A,it:l}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(l.opts.discriminator&&A.discriminator)return;const d=i;const h=n.let("valid",false);const f=n.let("passing",null);const g=n.name("_valid");t.setParams({passing:f});n.block(validateOneOf);t.result(h,()=>t.reset(),()=>t.error(true));function validateOneOf(){d.forEach((i,A)=>{let d;if((0,c.alwaysValidSchema)(l,i)){n.var(g,true)}else{d=t.subschema({keyword:"oneOf",schemaProp:A,compositeRule:true},g)}if(A>0){n.if((0,a._)`${g} && ${h}`).assign(h,false).assign(f,(0,a._)`[${f}, ${A}]`).else()}n.if(g,()=>{n.assign(h,true);n.assign(f,A);if(d)t.mergeEvaluated(d,a.Name)})})}}};n["default"]=l},664:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const c=i(1436);const A=i(4464);const l=i(4464);const d={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:n,schema:i,data:d,parentSchema:h,it:f}=t;const{opts:g}=f;const p=(0,a.allSchemaProperties)(i);const m=p.filter(t=>(0,A.alwaysValidSchema)(f,i[t]));if(p.length===0||m.length===p.length&&(!f.opts.unevaluated||f.props===true)){return}const E=g.strictSchema&&!g.allowMatchingProperties&&h.properties;const C=n.name("valid");if(f.props!==true&&!(f.props instanceof c.Name)){f.props=(0,l.evaluatedPropsToName)(n,f.props)}const{props:I}=f;validatePatternProperties();function validatePatternProperties(){for(const t of p){if(E)checkMatchingProperties(t);if(f.allErrors){validateProperties(t)}else{n.var(C,true);validateProperties(t);n.if(C)}}}function checkMatchingProperties(t){for(const n in E){if(new RegExp(t).test(n)){(0,A.checkStrictMode)(f,`property ${n} matches pattern ${t} (use allowMatchingProperties)`)}}}function validateProperties(i){n.forIn("key",d,A=>{n.if((0,c._)`${(0,a.usePattern)(t,i)}.test(${A})`,()=>{const a=m.includes(i);if(!a){t.subschema({keyword:"patternProperties",schemaProp:i,dataProp:A,dataPropType:l.Type.Str},C)}if(f.opts.unevaluated&&I!==true){n.assign((0,c._)`${I}[${A}]`,true)}else if(!a&&!f.allErrors){n.if((0,c.not)(C),()=>n.break())}})})}}};n["default"]=d},6467:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5791);const c={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,a.validateTuple)(t,"items")};n["default"]=c},8778:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(7881);const c=i(8484);const A=i(4464);const l=i(2431);const d={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:n,schema:i,parentSchema:d,data:h,it:f}=t;if(f.opts.removeAdditional==="all"&&d.additionalProperties===undefined){l.default.code(new a.KeywordCxt(f,l.default,"additionalProperties"))}const g=(0,c.allSchemaProperties)(i);for(const t of g){f.definedProperties.add(t)}if(f.opts.unevaluated&&g.length&&f.props!==true){f.props=A.mergeEvaluated.props(n,(0,A.toHash)(g),f.props)}const p=g.filter(t=>!(0,A.alwaysValidSchema)(f,i[t]));if(p.length===0)return;const m=n.name("valid");for(const i of p){if(hasDefault(i)){applyPropertySchema(i)}else{n.if((0,c.propertyInData)(n,h,i,f.opts.ownProperties));applyPropertySchema(i);if(!f.allErrors)n.else().var(m,true);n.endIf()}t.it.definedProperties.add(i);t.ok(m)}function hasDefault(t){return f.opts.useDefaults&&!f.compositeRule&&i[t].default!==undefined}function applyPropertySchema(n){t.subschema({keyword:"properties",schemaProp:n,dataProp:n},m)}}};n["default"]=d},1372:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A={message:"property name must be valid",params:({params:t})=>(0,a._)`{propertyName: ${t.propertyName}}`};const l={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:A,code(t){const{gen:n,schema:i,data:A,it:l}=t;if((0,c.alwaysValidSchema)(l,i))return;const d=n.name("valid");n.forIn("key",A,i=>{t.setParams({propertyName:i});t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:true},d);n.if((0,a.not)(d),()=>{t.error(true);if(!l.allErrors)n.break()})});t.ok(d)}};n["default"]=l},6829:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const c={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:i}){if(n.if===undefined)(0,a.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};n["default"]=c},8484:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.validateUnion=n.validateArray=n.usePattern=n.callValidateCode=n.schemaProperties=n.allSchemaProperties=n.noPropertyInData=n.propertyInData=n.isOwnProperty=n.hasPropFunc=n.reportMissingProp=n.checkMissingProp=n.checkReportMissingProp=void 0;const a=i(1436);const c=i(4464);const A=i(630);const l=i(4464);function checkReportMissingProp(t,n){const{gen:i,data:c,it:A}=t;i.if(noPropertyInData(i,c,n,A.opts.ownProperties),()=>{t.setParams({missingProperty:(0,a._)`${n}`},true);t.error()})}n.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:t,data:n,it:{opts:i}},c,A){return(0,a.or)(...c.map(c=>(0,a.and)(noPropertyInData(t,n,c,i.ownProperties),(0,a._)`${A} = ${c}`)))}n.checkMissingProp=checkMissingProp;function reportMissingProp(t,n){t.setParams({missingProperty:n},true);t.error()}n.reportMissingProp=reportMissingProp;function hasPropFunc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,a._)`Object.prototype.hasOwnProperty`})}n.hasPropFunc=hasPropFunc;function isOwnProperty(t,n,i){return(0,a._)`${hasPropFunc(t)}.call(${n}, ${i})`}n.isOwnProperty=isOwnProperty;function propertyInData(t,n,i,c){const A=(0,a._)`${n}${(0,a.getProperty)(i)} !== undefined`;return c?(0,a._)`${A} && ${isOwnProperty(t,n,i)}`:A}n.propertyInData=propertyInData;function noPropertyInData(t,n,i,c){const A=(0,a._)`${n}${(0,a.getProperty)(i)} === undefined`;return c?(0,a.or)(A,(0,a.not)(isOwnProperty(t,n,i))):A}n.noPropertyInData=noPropertyInData;function allSchemaProperties(t){return t?Object.keys(t).filter(t=>t!=="__proto__"):[]}n.allSchemaProperties=allSchemaProperties;function schemaProperties(t,n){return allSchemaProperties(n).filter(i=>!(0,c.alwaysValidSchema)(t,n[i]))}n.schemaProperties=schemaProperties;function callValidateCode({schemaCode:t,data:n,it:{gen:i,topSchemaRef:c,schemaPath:l,errorPath:d},it:h},f,g,p){const m=p?(0,a._)`${t}, ${n}, ${c}${l}`:n;const E=[[A.default.instancePath,(0,a.strConcat)(A.default.instancePath,d)],[A.default.parentData,h.parentData],[A.default.parentDataProperty,h.parentDataProperty],[A.default.rootData,A.default.rootData]];if(h.opts.dynamicRef)E.push([A.default.dynamicAnchors,A.default.dynamicAnchors]);const C=(0,a._)`${m}, ${i.object(...E)}`;return g!==a.nil?(0,a._)`${f}.call(${g}, ${C})`:(0,a._)`${f}(${C})`}n.callValidateCode=callValidateCode;const d=(0,a._)`new RegExp`;function usePattern({gen:t,it:{opts:n}},i){const c=n.unicodeRegExp?"u":"";const{regExp:A}=n.code;const h=A(i,c);return t.scopeValue("pattern",{key:h.toString(),ref:h,code:(0,a._)`${A.code==="new RegExp"?d:(0,l.useFunc)(t,A)}(${i}, ${c})`})}n.usePattern=usePattern;function validateArray(t){const{gen:n,data:i,keyword:A,it:l}=t;const d=n.name("valid");if(l.allErrors){const t=n.let("valid",true);validateItems(()=>n.assign(t,false));return t}n.var(d,true);validateItems(()=>n.break());return d;function validateItems(l){const h=n.const("len",(0,a._)`${i}.length`);n.forRange("i",0,h,i=>{t.subschema({keyword:A,dataProp:i,dataPropType:c.Type.Num},d);n.if((0,a.not)(d),l)})}}n.validateArray=validateArray;function validateUnion(t){const{gen:n,schema:i,keyword:A,it:l}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const d=i.some(t=>(0,c.alwaysValidSchema)(l,t));if(d&&!l.opts.unevaluated)return;const h=n.let("valid",false);const f=n.name("_valid");n.block(()=>i.forEach((i,c)=>{const l=t.subschema({keyword:A,schemaProp:c,compositeRule:true},f);n.assign(h,(0,a._)`${h} || ${f}`);const d=t.mergeValidEvaluated(l,f);if(!d)n.if((0,a.not)(h))}));t.result(h,()=>t.reset(),()=>t.error(true))}n.validateUnion=validateUnion},9872:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});const i={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};n["default"]=i},7397:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(9872);const c=i(2996);const A=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a.default,c.default];n["default"]=A},2996:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.callRef=n.getValidate=void 0;const a=i(3162);const c=i(8484);const A=i(1436);const l=i(630);const d=i(2718);const h=i(4464);const f={keyword:"$ref",schemaType:"string",code(t){const{gen:n,schema:i,it:c}=t;const{baseId:l,schemaEnv:h,validateName:f,opts:g,self:p}=c;const{root:m}=h;if((i==="#"||i==="#/")&&l===m.baseId)return callRootRef();const E=d.resolveRef.call(p,m,l,i);if(E===undefined)throw new a.default(c.opts.uriResolver,l,i);if(E instanceof d.SchemaEnv)return callValidate(E);return inlineRefSchema(E);function callRootRef(){if(h===m)return callRef(t,f,h,h.$async);const i=n.scopeValue("root",{ref:m});return callRef(t,(0,A._)`${i}.validate`,m,m.$async)}function callValidate(n){const i=getValidate(t,n);callRef(t,i,n,n.$async)}function inlineRefSchema(a){const c=n.scopeValue("schema",g.code.source===true?{ref:a,code:(0,A.stringify)(a)}:{ref:a});const l=n.name("valid");const d=t.subschema({schema:a,dataTypes:[],schemaPath:A.nil,topSchemaRef:c,errSchemaPath:i},l);t.mergeEvaluated(d);t.ok(l)}}};function getValidate(t,n){const{gen:i}=t;return n.validate?i.scopeValue("validate",{ref:n.validate}):(0,A._)`${i.scopeValue("wrapper",{ref:n})}.validate`}n.getValidate=getValidate;function callRef(t,n,i,a){const{gen:d,it:f}=t;const{allErrors:g,schemaEnv:p,opts:m}=f;const E=m.passContext?l.default.this:A.nil;if(a)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!p.$async)throw new Error("async schema referenced by sync schema");const i=d.let("valid");d.try(()=>{d.code((0,A._)`await ${(0,c.callValidateCode)(t,n,E)}`);addEvaluatedFrom(n);if(!g)d.assign(i,true)},t=>{d.if((0,A._)`!(${t} instanceof ${f.ValidationError})`,()=>d.throw(t));addErrorsFrom(t);if(!g)d.assign(i,false)});t.ok(i)}function callSyncRef(){t.result((0,c.callValidateCode)(t,n,E),()=>addEvaluatedFrom(n),()=>addErrorsFrom(n))}function addErrorsFrom(t){const n=(0,A._)`${t}.errors`;d.assign(l.default.vErrors,(0,A._)`${l.default.vErrors} === null ? ${n} : ${l.default.vErrors}.concat(${n})`);d.assign(l.default.errors,(0,A._)`${l.default.vErrors}.length`)}function addEvaluatedFrom(t){var n;if(!f.opts.unevaluated)return;const a=(n=i===null||i===void 0?void 0:i.validate)===null||n===void 0?void 0:n.evaluated;if(f.props!==true){if(a&&!a.dynamicProps){if(a.props!==undefined){f.props=h.mergeEvaluated.props(d,a.props,f.props)}}else{const n=d.var("props",(0,A._)`${t}.evaluated.props`);f.props=h.mergeEvaluated.props(d,n,f.props,A.Name)}}if(f.items!==true){if(a&&!a.dynamicItems){if(a.items!==undefined){f.items=h.mergeEvaluated.items(d,a.items,f.items)}}else{const n=d.var("items",(0,A._)`${t}.evaluated.items`);f.items=h.mergeEvaluated.items(d,n,f.items,A.Name)}}}}n.callRef=callRef;n["default"]=f},8886:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(7115);const A=i(2718);const l=i(3162);const d=i(4464);const h={message:({params:{discrError:t,tagName:n}})=>t===c.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:t,tag:n,tagName:i}})=>(0,a._)`{error: ${t}, tag: ${i}, tagValue: ${n}}`};const f={keyword:"discriminator",type:"object",schemaType:"object",error:h,code(t){const{gen:n,data:i,schema:h,parentSchema:f,it:g}=t;const{oneOf:p}=f;if(!g.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const m=h.propertyName;if(typeof m!="string")throw new Error("discriminator: requires propertyName");if(h.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const E=n.let("valid",false);const C=n.const("tag",(0,a._)`${i}${(0,a.getProperty)(m)}`);n.if((0,a._)`typeof ${C} == "string"`,()=>validateMapping(),()=>t.error(false,{discrError:c.DiscrError.Tag,tag:C,tagName:m}));t.ok(E);function validateMapping(){const i=getMapping();n.if(false);for(const t in i){n.elseIf((0,a._)`${C} === ${t}`);n.assign(E,applyTagSchema(i[t]))}n.else();t.error(false,{discrError:c.DiscrError.Mapping,tag:C,tagName:m});n.endIf()}function applyTagSchema(i){const c=n.name("valid");const A=t.subschema({keyword:"oneOf",schemaProp:i},c);t.mergeEvaluated(A,a.Name);return c}function getMapping(){var t;const n={};const i=hasRequired(f);let a=true;for(let n=0;n{Object.defineProperty(n,"__esModule",{value:true});n.DiscrError=void 0;var i;(function(t){t["Tag"]="tag";t["Mapping"]="mapping"})(i||(n.DiscrError=i={}))},9941:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(7397);const c=i(5481);const A=i(8775);const l=i(2601);const d=i(6620);const h=[a.default,c.default,(0,A.default)(),l.default,d.metadataVocabulary,d.contentVocabulary];n["default"]=h},8639:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.dynamicAnchor=void 0;const a=i(1436);const c=i(630);const A=i(2718);const l=i(2996);const d={keyword:"$dynamicAnchor",schemaType:"string",code:t=>dynamicAnchor(t,t.schema)};function dynamicAnchor(t,n){const{gen:i,it:A}=t;A.schemaEnv.root.dynamicAnchors[n]=true;const l=(0,a._)`${c.default.dynamicAnchors}${(0,a.getProperty)(n)}`;const d=A.errSchemaPath==="#"?A.validateName:_getValidate(t);i.if((0,a._)`!${l}`,()=>i.assign(l,d))}n.dynamicAnchor=dynamicAnchor;function _getValidate(t){const{schemaEnv:n,schema:i,self:a}=t.it;const{root:c,baseId:d,localRefs:h,meta:f}=n.root;const{schemaId:g}=a.opts;const p=new A.SchemaEnv({schema:i,schemaId:g,root:c,baseId:d,localRefs:h,meta:f});A.compileSchema.call(a,p);return(0,l.getValidate)(t,p)}n["default"]=d},5065:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.dynamicRef=void 0;const a=i(1436);const c=i(630);const A=i(2996);const l={keyword:"$dynamicRef",schemaType:"string",code:t=>dynamicRef(t,t.schema)};function dynamicRef(t,n){const{gen:i,keyword:l,it:d}=t;if(n[0]!=="#")throw new Error(`"${l}" only supports hash fragment reference`);const h=n.slice(1);if(d.allErrors){_dynamicRef()}else{const n=i.let("valid",false);_dynamicRef(n);t.ok(n)}function _dynamicRef(t){if(d.schemaEnv.root.dynamicAnchors[h]){const n=i.let("_v",(0,a._)`${c.default.dynamicAnchors}${(0,a.getProperty)(h)}`);i.if(n,_callRef(n,t),_callRef(d.validateName,t))}else{_callRef(d.validateName,t)()}}function _callRef(n,a){return a?()=>i.block(()=>{(0,A.callRef)(t,n);i.let(a,true)}):()=>(0,A.callRef)(t,n)}}n.dynamicRef=dynamicRef;n["default"]=l},9923:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8639);const c=i(5065);const A=i(9982);const l=i(1794);const d=[a.default,c.default,A.default,l.default];n["default"]=d},9982:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8639);const c=i(4464);const A={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){if(t.schema)(0,a.dynamicAnchor)(t,"");else(0,c.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};n["default"]=A},1794:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5065);const c={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,a.dynamicRef)(t,t.schema)};n["default"]=c},6402:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c={message:({schemaCode:t})=>(0,a.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,a._)`{format: ${t}}`};const A={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:c,code(t,n){const{gen:i,data:c,$data:A,schema:l,schemaCode:d,it:h}=t;const{opts:f,errSchemaPath:g,schemaEnv:p,self:m}=h;if(!f.validateFormats)return;if(A)validate$DataFormat();else validateFormat();function validate$DataFormat(){const A=i.scopeValue("formats",{ref:m.formats,code:f.code.formats});const l=i.const("fDef",(0,a._)`${A}[${d}]`);const h=i.let("fType");const g=i.let("format");i.if((0,a._)`typeof ${l} == "object" && !(${l} instanceof RegExp)`,()=>i.assign(h,(0,a._)`${l}.type || "string"`).assign(g,(0,a._)`${l}.validate`),()=>i.assign(h,(0,a._)`"string"`).assign(g,l));t.fail$data((0,a.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(f.strictSchema===false)return a.nil;return(0,a._)`${d} && !${g}`}function invalidFmt(){const t=p.$async?(0,a._)`(${l}.async ? await ${g}(${c}) : ${g}(${c}))`:(0,a._)`${g}(${c})`;const i=(0,a._)`(typeof ${g} == "function" ? ${t} : ${g}.test(${c}))`;return(0,a._)`${g} && ${g} !== true && ${h} === ${n} && !${i}`}}function validateFormat(){const A=m.formats[l];if(!A){unknownFormat();return}if(A===true)return;const[d,h,E]=getFormat(A);if(d===n)t.pass(validCondition());function unknownFormat(){if(f.strictSchema===false){m.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${l}" ignored in schema at path "${g}"`}}function getFormat(t){const n=t instanceof RegExp?(0,a.regexpCode)(t):f.code.formats?(0,a._)`${f.code.formats}${(0,a.getProperty)(l)}`:undefined;const c=i.scopeValue("formats",{key:l,ref:t,code:n});if(typeof t=="object"&&!(t instanceof RegExp)){return[t.type||"string",t.validate,(0,a._)`${c}.validate`]}return["string",t,c]}function validCondition(){if(typeof A=="object"&&!(A instanceof RegExp)&&A.async){if(!p.$async)throw new Error("async format in sync schema");return(0,a._)`await ${E}(${c})`}return typeof h=="function"?(0,a._)`${E}(${c})`:(0,a._)`${E}.test(${c})`}}}};n["default"]=A},2601:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(6402);const c=[a.default];n["default"]=c},6620:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.contentVocabulary=n.metadataVocabulary=void 0;n.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];n.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7844:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5881);const c=i(3818);const A=i(3907);const l=[a.default,c.default,A.default];n["default"]=l},2010:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(6855);const c=i(4144);const A=[a.default,c.default];n["default"]=A},4144:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A={message:({params:{len:t}})=>(0,a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,a._)`{limit: ${t}}`};const l={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:A,code(t){const{gen:n,schema:i,data:A,it:l}=t;const d=l.items||0;if(d===true)return;const h=n.const("len",(0,a._)`${A}.length`);if(i===false){t.setParams({len:d});t.fail((0,a._)`${h} > ${d}`)}else if(typeof i=="object"&&!(0,c.alwaysValidSchema)(l,i)){const i=n.var("valid",(0,a._)`${h} <= ${d}`);n.if((0,a.not)(i),()=>validateItems(i,d));t.ok(i)}l.items=true;function validateItems(i,A){n.forRange("i",A,h,A=>{t.subschema({keyword:"unevaluatedItems",dataProp:A,dataPropType:c.Type.Num},i);if(!l.allErrors)n.if((0,a.not)(i),()=>n.break())})}}};n["default"]=l},6855:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A=i(630);const l={message:"must NOT have unevaluated properties",params:({params:t})=>(0,a._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`};const d={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:l,code(t){const{gen:n,schema:i,data:l,errsCount:d,it:h}=t;if(!d)throw new Error("ajv implementation error");const{allErrors:f,props:g}=h;if(g instanceof a.Name){n.if((0,a._)`${g} !== true`,()=>n.forIn("key",l,t=>n.if(unevaluatedDynamic(g,t),()=>unevaluatedPropCode(t))))}else if(g!==true){n.forIn("key",l,t=>g===undefined?unevaluatedPropCode(t):n.if(unevaluatedStatic(g,t),()=>unevaluatedPropCode(t)))}h.props=true;t.ok((0,a._)`${d} === ${A.default.errors}`);function unevaluatedPropCode(A){if(i===false){t.setParams({unevaluatedProperty:A});t.error();if(!f)n.break();return}if(!(0,c.alwaysValidSchema)(h,i)){const i=n.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:A,dataPropType:c.Type.Str},i);if(!f)n.if((0,a.not)(i),()=>n.break())}}function unevaluatedDynamic(t,n){return(0,a._)`!${t} || !${t}[${n}]`}function unevaluatedStatic(t,n){const i=[];for(const c in t){if(t[c]===true)i.push((0,a._)`${n} !== ${c}`)}return(0,a.and)(...i)}}};n["default"]=d},8026:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A=i(4951);const l={message:"must be equal to constant",params:({schemaCode:t})=>(0,a._)`{allowedValue: ${t}}`};const d={keyword:"const",$data:true,error:l,code(t){const{gen:n,data:i,$data:l,schemaCode:d,schema:h}=t;if(l||h&&typeof h=="object"){t.fail$data((0,a._)`!${(0,c.useFunc)(n,A.default)}(${i}, ${d})`)}else{t.fail((0,a._)`${h} !== ${i}`)}}};n["default"]=d},5881:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(5826);const c={keyword:"dependentRequired",type:"object",schemaType:"object",error:a.error,code:t=>(0,a.validatePropertyDeps)(t)};n["default"]=c},3200:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A=i(4951);const l={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,a._)`{allowedValues: ${t}}`};const d={keyword:"enum",schemaType:"array",$data:true,error:l,code(t){const{gen:n,data:i,$data:l,schema:d,schemaCode:h,it:f}=t;if(!l&&d.length===0)throw new Error("enum must have non-empty array");const g=d.length>=f.opts.loopEnum;let p;const getEql=()=>p!==null&&p!==void 0?p:p=(0,c.useFunc)(n,A.default);let m;if(g||l){m=n.let("valid");t.block$data(m,loopEnum)}else{if(!Array.isArray(d))throw new Error("ajv implementation error");const t=n.const("vSchema",h);m=(0,a.or)(...d.map((n,i)=>equalCode(t,i)))}t.pass(m);function loopEnum(){n.assign(m,false);n.forOf("v",h,t=>n.if((0,a._)`${getEql()}(${i}, ${t})`,()=>n.assign(m,true).break()))}function equalCode(t,n){const c=d[n];return typeof c==="object"&&c!==null?(0,a._)`${getEql()}(${i}, ${t}[${n}])`:(0,a._)`${i} === ${c}`}}};n["default"]=d},5481:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(3723);const c=i(8132);const A=i(6962);const l=i(6023);const d=i(895);const h=i(4504);const f=i(6296);const g=i(5132);const p=i(8026);const m=i(3200);const E=[a.default,c.default,A.default,l.default,d.default,h.default,f.default,g.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,m.default];n["default"]=E},3907:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(4464);const c={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:n,it:i}){if(n.contains===undefined){(0,a.checkStrictMode)(i,`"${t}" without "contains" is ignored`)}}};n["default"]=c},6296:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c={message({keyword:t,schemaCode:n}){const i=t==="maxItems"?"more":"fewer";return(0,a.str)`must NOT have ${i} than ${n} items`},params:({schemaCode:t})=>(0,a._)`{limit: ${t}}`};const A={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:c,code(t){const{keyword:n,data:i,schemaCode:c}=t;const A=n==="maxItems"?a.operators.GT:a.operators.LT;t.fail$data((0,a._)`${i}.length ${A} ${c}`)}};n["default"]=A},6962:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=i(4464);const A=i(6214);const l={message({keyword:t,schemaCode:n}){const i=t==="maxLength"?"more":"fewer";return(0,a.str)`must NOT have ${i} than ${n} characters`},params:({schemaCode:t})=>(0,a._)`{limit: ${t}}`};const d={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:l,code(t){const{keyword:n,data:i,schemaCode:l,it:d}=t;const h=n==="maxLength"?a.operators.GT:a.operators.LT;const f=d.opts.unicode===false?(0,a._)`${i}.length`:(0,a._)`${(0,c.useFunc)(t.gen,A.default)}(${i})`;t.fail$data((0,a._)`${f} ${h} ${l}`)}};n["default"]=d},3723:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c=a.operators;const A={maximum:{okStr:"<=",ok:c.LTE,fail:c.GT},minimum:{okStr:">=",ok:c.GTE,fail:c.LT},exclusiveMaximum:{okStr:"<",ok:c.LT,fail:c.GTE},exclusiveMinimum:{okStr:">",ok:c.GT,fail:c.LTE}};const l={message:({keyword:t,schemaCode:n})=>(0,a.str)`must be ${A[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>(0,a._)`{comparison: ${A[t].okStr}, limit: ${n}}`};const d={keyword:Object.keys(A),type:"number",schemaType:"number",$data:true,error:l,code(t){const{keyword:n,data:i,schemaCode:c}=t;t.fail$data((0,a._)`${i} ${A[n].fail} ${c} || isNaN(${i})`)}};n["default"]=d},895:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c={message({keyword:t,schemaCode:n}){const i=t==="maxProperties"?"more":"fewer";return(0,a.str)`must NOT have ${i} than ${n} properties`},params:({schemaCode:t})=>(0,a._)`{limit: ${t}}`};const A={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:c,code(t){const{keyword:n,data:i,schemaCode:c}=t;const A=n==="maxProperties"?a.operators.GT:a.operators.LT;t.fail$data((0,a._)`Object.keys(${i}).length ${A} ${c}`)}};n["default"]=A},8132:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(1436);const c={message:({schemaCode:t})=>(0,a.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,a._)`{multipleOf: ${t}}`};const A={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:c,code(t){const{gen:n,data:i,schemaCode:c,it:A}=t;const l=A.opts.multipleOfPrecision;const d=n.let("res");const h=l?(0,a._)`Math.abs(Math.round(${d}) - ${d}) > 1e-${l}`:(0,a._)`${d} !== parseInt(${d})`;t.fail$data((0,a._)`(${c} === 0 || (${d} = ${i}/${c}, ${h}))`)}};n["default"]=A},6023:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const c=i(4464);const A=i(1436);const l={message:({schemaCode:t})=>(0,A.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,A._)`{pattern: ${t}}`};const d={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:l,code(t){const{gen:n,data:i,$data:l,schema:d,schemaCode:h,it:f}=t;const g=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:a}=f.opts.code;const l=a.code==="new RegExp"?(0,A._)`new RegExp`:(0,c.useFunc)(n,a);const d=n.let("valid");n.try(()=>n.assign(d,(0,A._)`${l}(${h}, ${g}).test(${i})`),()=>n.assign(d,false));t.fail$data((0,A._)`!${d}`)}else{const n=(0,a.usePattern)(t,d);t.fail$data((0,A._)`!${n}.test(${i})`)}}};n["default"]=d},4504:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(8484);const c=i(1436);const A=i(4464);const l={message:({params:{missingProperty:t}})=>(0,c.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,c._)`{missingProperty: ${t}}`};const d={keyword:"required",type:"object",schemaType:"array",$data:true,error:l,code(t){const{gen:n,schema:i,schemaCode:l,data:d,$data:h,it:f}=t;const{opts:g}=f;if(!h&&i.length===0)return;const p=i.length>=g.loopRequired;if(f.allErrors)allErrorsMode();else exitOnErrorMode();if(g.strictRequired){const n=t.parentSchema.properties;const{definedProperties:a}=t.it;for(const t of i){if((n===null||n===void 0?void 0:n[t])===undefined&&!a.has(t)){const n=f.schemaEnv.baseId+f.errSchemaPath;const i=`required property "${t}" is not defined at "${n}" (strictRequired)`;(0,A.checkStrictMode)(f,i,f.opts.strictRequired)}}}function allErrorsMode(){if(p||h){t.block$data(c.nil,loopAllRequired)}else{for(const n of i){(0,a.checkReportMissingProp)(t,n)}}}function exitOnErrorMode(){const c=n.let("missing");if(p||h){const i=n.let("valid",true);t.block$data(i,()=>loopUntilMissing(c,i));t.ok(i)}else{n.if((0,a.checkMissingProp)(t,i,c));(0,a.reportMissingProp)(t,c);n.else()}}function loopAllRequired(){n.forOf("prop",l,i=>{t.setParams({missingProperty:i});n.if((0,a.noPropertyInData)(n,d,i,g.ownProperties),()=>t.error())})}function loopUntilMissing(i,A){t.setParams({missingProperty:i});n.forOf(i,l,()=>{n.assign(A,(0,a.propertyInData)(n,d,i,g.ownProperties));n.if((0,c.not)(A),()=>{t.error();n.break()})},c.nil)}}};n["default"]=d},5132:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});const a=i(6685);const c=i(1436);const A=i(4464);const l=i(4951);const d={message:({params:{i:t,j:n}})=>(0,c.str)`must NOT have duplicate items (items ## ${n} and ${t} are identical)`,params:({params:{i:t,j:n}})=>(0,c._)`{i: ${t}, j: ${n}}`};const h={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:d,code(t){const{gen:n,data:i,$data:d,schema:h,parentSchema:f,schemaCode:g,it:p}=t;if(!d&&!h)return;const m=n.let("valid");const E=f.items?(0,a.getSchemaTypes)(f.items):[];t.block$data(m,validateUniqueItems,(0,c._)`${g} === false`);t.ok(m);function validateUniqueItems(){const a=n.let("i",(0,c._)`${i}.length`);const A=n.let("j");t.setParams({i:a,j:A});n.assign(m,true);n.if((0,c._)`${a} > 1`,()=>(canOptimize()?loopN:loopN2)(a,A))}function canOptimize(){return E.length>0&&!E.some(t=>t==="object"||t==="array")}function loopN(A,l){const d=n.name("item");const h=(0,a.checkDataTypes)(E,d,p.opts.strictNumbers,a.DataType.Wrong);const f=n.const("indices",(0,c._)`{}`);n.for((0,c._)`;${A}--;`,()=>{n.let(d,(0,c._)`${i}[${A}]`);n.if(h,(0,c._)`continue`);if(E.length>1)n.if((0,c._)`typeof ${d} == "string"`,(0,c._)`${d} += "_"`);n.if((0,c._)`typeof ${f}[${d}] == "number"`,()=>{n.assign(l,(0,c._)`${f}[${d}]`);t.error();n.assign(m,false).break()}).code((0,c._)`${f}[${d}] = ${A}`)})}function loopN2(a,d){const h=(0,A.useFunc)(n,l.default);const f=n.name("outer");n.label(f).for((0,c._)`;${a}--;`,()=>n.for((0,c._)`${d} = ${a}; ${d}--;`,()=>n.if((0,c._)`${h}(${i}[${a}], ${i}[${d}])`,()=>{t.error();n.assign(m,false).break(f)})))}}};n["default"]=h},9449:function(t){!function(n,i){true?t.exports=i():0}(this,function(){return function(t){var n={};function r(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=n,r.d=function(t,n,i){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)r.d(i,a,function(n){return t[n]}.bind(null,a));return i},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=90)}({17:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a=i(18),c=function(){function e(){}return e.getFirstMatch=function(t,n){var i=n.match(t);return i&&i.length>0&&i[1]||""},e.getSecondMatch=function(t,n){var i=n.match(t);return i&&i.length>1&&i[2]||""},e.matchAndReturnConst=function(t,n,i){if(t.test(n))return i},e.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(t){var n=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});n.push(0);var i=n[0],a=n[1];if(10===i)switch(a){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(t){var n=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(n.push(0),!(1===n[0]&&n[1]<5))return 1===n[0]&&n[1]<6?"Cupcake":1===n[0]&&n[1]>=6?"Donut":2===n[0]&&n[1]<2?"Eclair":2===n[0]&&2===n[1]?"Froyo":2===n[0]&&n[1]>2?"Gingerbread":3===n[0]?"Honeycomb":4===n[0]&&n[1]<1?"Ice Cream Sandwich":4===n[0]&&n[1]<4?"Jelly Bean":4===n[0]&&n[1]>=4?"KitKat":5===n[0]?"Lollipop":6===n[0]?"Marshmallow":7===n[0]?"Nougat":8===n[0]?"Oreo":9===n[0]?"Pie":void 0},e.getVersionPrecision=function(t){return t.split(".").length},e.compareVersions=function(t,n,i){void 0===i&&(i=!1);var a=e.getVersionPrecision(t),c=e.getVersionPrecision(n),A=Math.max(a,c),l=0,d=e.map([t,n],function(t){var n=A-e.getVersionPrecision(t),i=t+new Array(n+1).join(".0");return e.map(i.split("."),function(t){return new Array(20-t.length).join("0")+t}).reverse()});for(i&&(l=A-Math.min(a,c)),A-=1;A>=l;){if(d[0][A]>d[1][A])return 1;if(d[0][A]===d[1][A]){if(A===l)return 0;A-=1}else if(d[0][A]1?c-1:0),l=1;l0){var l=Object.keys(i),h=d.default.find(l,function(t){return n.isOS(t)});if(h){var f=this.satisfies(i[h]);if(void 0!==f)return f}var g=d.default.find(l,function(t){return n.isPlatform(t)});if(g){var p=this.satisfies(i[g]);if(void 0!==p)return p}}if(A>0){var m=Object.keys(c),E=d.default.find(m,function(t){return n.isBrowser(t,!0)});if(void 0!==E)return this.compareVersion(c[E])}},t.isBrowser=function(t,n){void 0===n&&(n=!1);var i=this.getBrowserName().toLowerCase(),a=t.toLowerCase(),c=d.default.getBrowserTypeByAlias(a);return n&&c&&(a=c.toLowerCase()),a===i},t.compareVersion=function(t){var n=[0],i=t,a=!1,c=this.getBrowserVersion();if("string"==typeof c)return">"===t[0]||"<"===t[0]?(i=t.substr(1),"="===t[1]?(a=!0,i=t.substr(2)):n=[],">"===t[0]?n.push(1):n.push(-1)):"="===t[0]?i=t.substr(1):"~"===t[0]&&(a=!0,i=t.substr(1)),n.indexOf(d.default.compareVersions(c,i,a))>-1},t.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},t.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},t.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},t.is=function(t,n){return void 0===n&&(n=!1),this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)},t.some=function(t){var n=this;return void 0===t&&(t=[]),t.some(function(t){return n.is(t)})},e}();n.default=h,t.exports=n.default},92:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,c=(a=i(17))&&a.__esModule?a:{default:a};var A=/version\/(\d+(\.?_?\d+)+)/i,l=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},i=c.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},i=c.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},i=c.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},i=c.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},i=c.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},i=c.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},i=c.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},i=c.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},i=c.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},i=c.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},i=c.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},i=c.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},i=c.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},i=c.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},i=c.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},i=c.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},i=c.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},i=c.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},i=c.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},i=c.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},i=c.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},i=c.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},i=c.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},i=c.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},i=c.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},i=c.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},i=c.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},i=c.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},i=c.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},i=c.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},i=c.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},i=c.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},i=c.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},i=c.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},i=c.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return i&&(n.version=i),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},i=c.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},i=c.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},i=c.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},i=c.default.getFirstMatch(A,t)||c.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},i=c.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},i=c.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},i=c.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},i=c.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},i=c.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},i=c.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},i=c.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),a=c.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),A=c.default.getFirstMatch(/se ([\d.]+)x/i,t),l=i||a||A;return l&&(n.version=l),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},i=c.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return!!t.hasBrand("DuckDuckGo")||t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var i={name:"DuckDuckGo"};if(n){var a=n.getBrandVersion("DuckDuckGo");if(a)return i.version=a,i}var A=c.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return A&&(i.version=A),i}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var i={name:"Brave"};if(n){var a=n.getBrandVersion("Brave");if(a)return i.version=a,i}return i}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},i=c.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},i=c.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},i=c.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n={name:"Android Browser"},i=c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},i=c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},i=c.default.getFirstMatch(A,t);return i&&(n.version=i),n}},{test:[/.*/i],describe:function(t){var n=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:c.default.getFirstMatch(n,t),version:c.default.getSecondMatch(n,t)}}}];n.default=l,t.exports=n.default},93:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,c=(a=i(17))&&a.__esModule?a:{default:a},A=i(18);var l=[{test:[/Roku\/DVP/],describe:function(t){var n=c.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:A.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=c.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:A.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=c.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),i=c.default.getWindowsVersionName(n);return{name:A.OS_MAP.Windows,version:n,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:A.OS_MAP.iOS},i=c.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return i&&(n.version=i),n}},{test:[/macintosh/i],describe:function(t){var n=c.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),i=c.default.getMacOSVersionName(n),a={name:A.OS_MAP.MacOS,version:n};return i&&(a.versionName=i),a}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=c.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:A.OS_MAP.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=c.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:A.OS_MAP.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n=c.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),i=c.default.getAndroidVersionName(n),a={name:A.OS_MAP.Android,version:n};return i&&(a.versionName=i),a}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=c.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),i={name:A.OS_MAP.WebOS};return n&&n.length&&(i.version=n),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=c.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||c.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||c.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:A.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=c.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:A.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=c.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:A.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:A.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:A.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=c.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:A.OS_MAP.PlayStation4,version:n}}}];n.default=l,t.exports=n.default},94:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,c=(a=i(17))&&a.__esModule?a:{default:a},A=i(18);var l=[{test:[/googlebot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:A.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=c.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",i={type:A.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(i.model=n),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:A.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:A.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:A.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:A.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:A.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:A.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),i=t.test(/like (ipod|iphone)/i);return n&&!i},describe:function(t){var n=c.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:A.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:A.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=c.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),i={type:A.PLATFORMS_MAP.mobile,vendor:"Nokia"};return n&&(i.model=n),i}},{test:[/[^-]mobi/i],describe:function(){return{type:A.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:A.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&n>=3},describe:function(){return{type:A.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:A.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:A.PLATFORMS_MAP.tv}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:A.PLATFORMS_MAP.tv}}}];n.default=l,t.exports=n.default},95:function(t,n,i){"use strict";n.__esModule=!0,n.default=void 0;var a,c=(a=i(17))&&a.__esModule?a:{default:a},A=i(18);var l=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:A.ENGINE_MAP.Blink};var n=c.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:A.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:A.ENGINE_MAP.Trident},i=c.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:A.ENGINE_MAP.Presto},i=c.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=t.test(/gecko/i),i=t.test(/like gecko/i);return n&&!i},describe:function(t){var n={name:A.ENGINE_MAP.Gecko},i=c.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:A.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:A.ENGINE_MAP.WebKit},i=c.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}}];n.default=l,t.exports=n.default}})})},3430:t=>{t.exports=function equal(t,n){if(t===n)return true;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return false;var i,a,c;if(Array.isArray(t)){i=t.length;if(i!=n.length)return false;for(a=i;a--!==0;)if(!equal(t[a],n[a]))return false;return true}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();c=Object.keys(t);i=c.length;if(i!==Object.keys(n).length)return false;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,c[a]))return false;for(a=i;a--!==0;){var A=c[a];if(!equal(t[A],n[A]))return false}return true}return t!==t&&n!==n}},1167:t=>{var n=t.exports=function(t,n,i){if(typeof n=="function"){i=n;n={}}i=n.cb||i;var a=typeof i=="function"?i:i.pre||function(){};var c=i.post||function(){};_traverse(n,a,c,t,"",t)};n.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};n.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};n.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};n.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(t,i,a,c,A,l,d,h,f,g){if(c&&typeof c=="object"&&!Array.isArray(c)){i(c,A,l,d,h,f,g);for(var p in c){var m=c[p];if(Array.isArray(m)){if(p in n.arrayKeywords){for(var E=0;E{var a=i(1571),c=i(8095),A=i(4909),l=i(177);function LRUCache(t,n,i){if(arguments.length<2){i=t;t=null;n=null}this.capacity=i;if(typeof this.capacity!=="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var a=A.getPointerArray(i);this.forward=new a(i);this.backward=new a(i);this.K=typeof t==="function"?new t(i):new Array(i);this.V=typeof n==="function"?new n(i):new Array(i);this.size=0;this.head=0;this.tail=0;this.items={}}LRUCache.prototype.clear=function(){this.size=0;this.head=0;this.tail=0;this.items={}};LRUCache.prototype.splayOnTop=function(t){var n=this.head;if(this.head===t)return this;var i=this.backward[t],a=this.forward[t];if(this.tail===t){this.tail=i}else{this.backward[a]=i}this.forward[i]=a;this.backward[n]=t;this.head=t;this.forward[t]=n;return this};LRUCache.prototype.set=function(t,n){var i=this.items[t];if(typeof i!=="undefined"){this.splayOnTop(i);this.V[i]=n;return}if(this.size1?n:this;var i=0,a=this.size;var c=this.head,A=this.K,l=this.V,d=this.forward;while(i=n)return{done:true};var a=c[i];t++;if(t=n)return{done:true};var a=c[i];t++;if(t=n)return{done:true};var a=c[i],d=A[i];t++;if(t{var a=i(8095);var c=i(4909);function isArrayLike(t){return Array.isArray(t)||c.isTypedArray(t)}function guessLength(t){if(typeof t.length==="number")return t.length;if(typeof t.size==="number")return t.size;return}function toArray(t){var n=guessLength(t);var i=typeof n==="number"?new Array(n):[];var c=0;a(t,function(t){i[c++]=t});return i}function toArrayWithIndices(t){var n=guessLength(t);var i=typeof n==="number"?c.getPointerArray(n):Array;var A=typeof n==="number"?new Array(n):[];var l=typeof n==="number"?new i(n):[];var d=0;a(t,function(t){A[d]=t;l[d]=d++});return[A,l]}n.isArrayLike=isArrayLike;n.guessLength=guessLength;n.toArray=toArray;n.toArrayWithIndices=toArrayWithIndices},4909:(t,n)=>{var i=Math.pow(2,8)-1,a=Math.pow(2,16)-1,c=Math.pow(2,32)-1;var A=Math.pow(2,7)-1,l=Math.pow(2,15)-1,d=Math.pow(2,31)-1;n.getPointerArray=function(t){var n=t-1;if(n<=i)return Uint8Array;if(n<=a)return Uint16Array;if(n<=c)return Uint32Array;return Float64Array};n.getSignedPointerArray=function(t){var n=t-1;if(n<=A)return Int8Array;if(n<=l)return Int16Array;if(n<=d)return Int32Array;return Float64Array};n.getNumberType=function(t){if(t===(t|0)){if(Math.sign(t)===-1){if(t<=127&&t>=-128)return Int8Array;if(t<=32767&&t>=-32768)return Int16Array;return Int32Array}else{if(t<=255)return Uint8Array;if(t<=65535)return Uint16Array;return Uint32Array}}return Float64Array};var h={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};n.getMinimalRepresentation=function(t,i){var a=null,c=0,A,l,d,f,g;for(f=0,g=t.length;fc){c=A;a=l}}return a};n.isTypedArray=function(t){return typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView(t)};n.concat=function(){var t=0,n,i,a;for(n=0,a=arguments.length;n{var n=typeof ArrayBuffer!=="undefined",i=typeof Symbol!=="undefined";function forEach(t,a){var c,A,l,d,h;if(!t)throw new Error("obliterator/forEach: invalid iterable.");if(typeof a!=="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(t)||n&&ArrayBuffer.isView(t)||typeof t==="string"||t.toString()==="[object Arguments]"){for(l=0,d=t.length;l{function Iterator(t){Object.defineProperty(this,"_next",{writable:false,enumerable:false,value:t});this.done=false}Iterator.prototype.next=function(){if(this.done)return{done:true};var t=this._next();if(t.done)this.done=true;return t};if(typeof Symbol!=="undefined")Iterator.prototype[Symbol.iterator]=function(){return this};Iterator.of=function(){var t=arguments,n=t.length,i=0;return new Iterator(function(){if(i>=n)return{done:true};return{done:false,value:t[i++]}})};Iterator.empty=function(){var t=new Iterator(null);t.done=true;return t};Iterator.is=function(t){if(t instanceof Iterator)return true;return typeof t==="object"&&t!==null&&typeof t.next==="function"};t.exports=Iterator},770:(t,n,i)=>{i(218)},218:(t,n,i)=>{var a;var c=i(9278);var A=i(4756);var l=i(8611);var d=i(5692);var h=i(4434);var f=i(2613);var g=i(9023);a=httpOverHttp;a=httpsOverHttp;a=httpOverHttps;a=httpsOverHttps;function httpOverHttp(t){var n=new TunnelingAgent(t);n.request=l.request;return n}function httpsOverHttp(t){var n=new TunnelingAgent(t);n.request=l.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function httpOverHttps(t){var n=new TunnelingAgent(t);n.request=d.request;return n}function httpsOverHttps(t){var n=new TunnelingAgent(t);n.request=d.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function TunnelingAgent(t){var n=this;n.options=t||{};n.proxyOptions=n.options.proxy||{};n.maxSockets=n.options.maxSockets||l.Agent.defaultMaxSockets;n.requests=[];n.sockets=[];n.on("free",function onFree(t,i,a,c){var A=toOptions(i,a,c);for(var l=0,d=n.requests.length;l=this.maxSockets){c.requests.push(A);return}c.createSocket(A,function(n){n.on("free",onFree);n.on("close",onCloseOrRemove);n.on("agentRemove",onCloseOrRemove);t.onSocket(n);function onFree(){c.emit("free",n,A)}function onCloseOrRemove(t){c.removeSocket(n);n.removeListener("free",onFree);n.removeListener("close",onCloseOrRemove);n.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(t,n){var i=this;var a={};i.sockets.push(a);var c=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:false,headers:{host:t.host+":"+t.port}});if(t.localAddress){c.localAddress=t.localAddress}if(c.proxyAuth){c.headers=c.headers||{};c.headers["Proxy-Authorization"]="Basic "+new Buffer(c.proxyAuth).toString("base64")}p("making CONNECT request");var A=i.request(c);A.useChunkedEncodingByDefault=false;A.once("response",onResponse);A.once("upgrade",onUpgrade);A.once("connect",onConnect);A.once("error",onError);A.end();function onResponse(t){t.upgrade=true}function onUpgrade(t,n,i){process.nextTick(function(){onConnect(t,n,i)})}function onConnect(c,l,d){A.removeAllListeners();l.removeAllListeners();if(c.statusCode!==200){p("tunneling socket could not be established, statusCode=%d",c.statusCode);l.destroy();var h=new Error("tunneling socket could not be established, "+"statusCode="+c.statusCode);h.code="ECONNRESET";t.request.emit("error",h);i.removeSocket(a);return}if(d.length>0){p("got illegal response body from proxy");l.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET";t.request.emit("error",h);i.removeSocket(a);return}p("tunneling connection has established");i.sockets[i.sockets.indexOf(a)]=l;return n(l)}function onError(n){A.removeAllListeners();p("tunneling socket could not be established, cause=%s\n",n.message,n.stack);var c=new Error("tunneling socket could not be established, "+"cause="+n.message);c.code="ECONNRESET";t.request.emit("error",c);i.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(t){var n=this.sockets.indexOf(t);if(n===-1){return}this.sockets.splice(n,1);var i=this.requests.shift();if(i){this.createSocket(i,function(t){i.request.onSocket(t)})}};function createSecureSocket(t,n){var i=this;TunnelingAgent.prototype.createSocket.call(i,t,function(a){var c=t.request.getHeader("host");var l=mergeOptions({},i.options,{socket:a,servername:c?c.replace(/:.*$/,""):t.host});var d=A.connect(0,l);i.sockets[i.sockets.indexOf(a)]=d;n(d)})}function toOptions(t,n,i){if(typeof t==="string"){return{host:t,port:n,localAddress:i}}return t}function mergeOptions(t){for(var n=1,i=arguments.length;n{var a;const c=i(3701);const A=i(883);const l=i(628);const d=i(837);const h=i(7405);const f=i(6672);const g=i(3137);const p=i(50);const m=i(8707);const E=i(3440);const{InvalidArgumentError:C}=m;const I=i(6615);const y=i(9136);const B=i(7365);const Q=i(7501);const w=i(4004);const S=i(2429);const b=i(7816);const{getGlobalDispatcher:R,setGlobalDispatcher:v}=i(2581);const k=i(8155);const D=i(8754);const T=i(5092);Object.assign(A.prototype,I);a=A;a=c;a=l;a=d;a=h;a=f;a=g;a=p;a=b;a=k;a=D;a=T;a={redirect:i(1514),retry:i(2026),dump:i(8060),dns:i(379)};a=y;a=m;a={parseHeaders:E.parseHeaders,headerNameToString:E.headerNameToString};function makeDispatcher(t){return(n,i,a)=>{if(typeof i==="function"){a=i;i=null}if(!n||typeof n!=="string"&&typeof n!=="object"&&!(n instanceof URL)){throw new C("invalid url")}if(i!=null&&typeof i!=="object"){throw new C("invalid opts")}if(i&&i.path!=null){if(typeof i.path!=="string"){throw new C("invalid opts.path")}let t=i.path;if(!i.path.startsWith("/")){t=`/${t}`}n=new URL(E.parseOrigin(n).origin+t)}else{if(!i){i=typeof n==="object"?n:{}}n=E.parseURL(n)}const{agent:c,dispatcher:A=R()}=i;if(c){throw new C("unsupported opts.agent. Did you mean opts.client?")}return t.call(A,{...i,origin:n.origin,path:n.search?`${n.pathname}${n.search}`:n.pathname,method:i.method||(i.body?"PUT":"GET")},a)}}a=v;a=R;const N=i(4398).fetch;a=async function fetch(t,n=undefined){try{return await N(t,n)}catch(t){if(t&&typeof t==="object"){Error.captureStackTrace(t)}throw t}};i(660).Headers;i(9051).Response;i(9967).Request;i(5910).FormData;a=globalThis.File??i(4573).File;i(8355).FileReader;const{setGlobalOrigin:M,getGlobalOrigin:F}=i(1059);a=M;a=F;const{CacheStorage:x}=i(3245);const{kConstruct:U}=i(109);a=new x(U);const{deleteCookie:P,getCookies:L,getSetCookies:O,setCookie:H}=i(9061);a=P;a=L;a=O;a=H;const{parseMIMEType:$,serializeAMimeType:V}=i(1900);a=$;a=V;const{CloseEvent:G,ErrorEvent:Y,MessageEvent:J}=i(5188);i(3726).WebSocket;a=G;a=Y;a=J;a=makeDispatcher(I.request);a=makeDispatcher(I.stream);a=makeDispatcher(I.pipeline);a=makeDispatcher(I.connect);a=makeDispatcher(I.upgrade);a=B;a=w;a=Q;a=S;const{EventSource:W}=i(1238);a=W},158:(t,n,i)=>{const{addAbortListener:a}=i(3440);const{RequestAbortedError:c}=i(8707);const A=Symbol("kListener");const l=Symbol("kSignal");function abort(t){if(t.abort){t.abort(t[l]?.reason)}else{t.reason=t[l]?.reason??new c}removeSignal(t)}function addSignal(t,n){t.reason=null;t[l]=null;t[A]=null;if(!n){return}if(n.aborted){abort(t);return}t[l]=n;t[A]=()=>{abort(t)};a(t[l],t[A])}function removeSignal(t){if(!t[l]){return}if("removeEventListener"in t[l]){t[l].removeEventListener("abort",t[A])}else{t[l].removeListener("abort",t[A])}t[l]=null;t[A]=null}t.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(t,n,i)=>{const a=i(4589);const{AsyncResource:c}=i(6698);const{InvalidArgumentError:A,SocketError:l}=i(8707);const d=i(3440);const{addSignal:h,removeSignal:f}=i(158);class ConnectHandler extends c{constructor(t,n){if(!t||typeof t!=="object"){throw new A("invalid opts")}if(typeof n!=="function"){throw new A("invalid callback")}const{signal:i,opaque:a,responseHeaders:c}=t;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=c||null;this.callback=n;this.abort=null;h(this,i)}onConnect(t,n){if(this.reason){t(this.reason);return}a(this.callback);this.abort=t;this.context=n}onHeaders(){throw new l("bad connect",null)}onUpgrade(t,n,i){const{callback:a,opaque:c,context:A}=this;f(this);this.callback=null;let l=n;if(l!=null){l=this.responseHeaders==="raw"?d.parseRawHeaders(n):d.parseHeaders(n)}this.runInAsyncScope(a,null,null,{statusCode:t,headers:l,socket:i,opaque:c,context:A})}onError(t){const{callback:n,opaque:i}=this;f(this);if(n){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(n,null,t,{opaque:i})})}}}function connect(t,n){if(n===undefined){return new Promise((n,i)=>{connect.call(this,t,(t,a)=>t?i(t):n(a))})}try{const i=new ConnectHandler(t,n);this.dispatch({...t,method:"CONNECT"},i)}catch(i){if(typeof n!=="function"){throw i}const a=t?.opaque;queueMicrotask(()=>n(i,{opaque:a}))}}t.exports=connect},6862:(t,n,i)=>{const{Readable:a,Duplex:c,PassThrough:A}=i(7075);const{InvalidArgumentError:l,InvalidReturnValueError:d,RequestAbortedError:h}=i(8707);const f=i(3440);const{AsyncResource:g}=i(6698);const{addSignal:p,removeSignal:m}=i(158);const E=i(4589);const C=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[C]=null}_read(){const{[C]:t}=this;if(t){this[C]=null;t()}}_destroy(t,n){this._read();n(t)}}class PipelineResponse extends a{constructor(t){super({autoDestroy:true});this[C]=t}_read(){this[C]()}_destroy(t,n){if(!t&&!this._readableState.endEmitted){t=new h}n(t)}}class PipelineHandler extends g{constructor(t,n){if(!t||typeof t!=="object"){throw new l("invalid opts")}if(typeof n!=="function"){throw new l("invalid handler")}const{signal:i,method:a,opaque:A,onInfo:d,responseHeaders:g}=t;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new l("invalid method")}if(d&&typeof d!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=A||null;this.responseHeaders=g||null;this.handler=n;this.abort=null;this.context=null;this.onInfo=d||null;this.req=(new PipelineRequest).on("error",f.nop);this.ret=new c({readableObjectMode:t.objectMode,autoDestroy:true,read:()=>{const{body:t}=this;if(t?.resume){t.resume()}},write:(t,n,i)=>{const{req:a}=this;if(a.push(t,n)||a._readableState.destroyed){i()}else{a[C]=i}},destroy:(t,n)=>{const{body:i,req:a,res:c,ret:A,abort:l}=this;if(!t&&!A._readableState.endEmitted){t=new h}if(l&&t){l()}f.destroy(i,t);f.destroy(a,t);f.destroy(c,t);m(this);n(t)}}).on("prefinish",()=>{const{req:t}=this;t.push(null)});this.res=null;p(this,i)}onConnect(t,n){const{ret:i,res:a}=this;if(this.reason){t(this.reason);return}E(!a,"pipeline cannot be retried");E(!i.destroyed);this.abort=t;this.context=n}onHeaders(t,n,i){const{opaque:a,handler:c,context:A}=this;if(t<200){if(this.onInfo){const i=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);this.onInfo({statusCode:t,headers:i})}return}this.res=new PipelineResponse(i);let l;try{this.handler=null;const i=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);l=this.runInAsyncScope(c,null,{statusCode:t,headers:i,opaque:a,body:this.res,context:A})}catch(t){this.res.on("error",f.nop);throw t}if(!l||typeof l.on!=="function"){throw new d("expected Readable")}l.on("data",t=>{const{ret:n,body:i}=this;if(!n.push(t)&&i.pause){i.pause()}}).on("error",t=>{const{ret:n}=this;f.destroy(n,t)}).on("end",()=>{const{ret:t}=this;t.push(null)}).on("close",()=>{const{ret:t}=this;if(!t._readableState.ended){f.destroy(t,new h)}});this.body=l}onData(t){const{res:n}=this;return n.push(t)}onComplete(t){const{res:n}=this;n.push(null)}onError(t){const{ret:n}=this;this.handler=null;f.destroy(n,t)}}function pipeline(t,n){try{const i=new PipelineHandler(t,n);this.dispatch({...t,body:i.req},i);return i.ret}catch(t){return(new A).destroy(t)}}t.exports=pipeline},4043:(t,n,i)=>{const a=i(4589);const{Readable:c}=i(9927);const{InvalidArgumentError:A,RequestAbortedError:l}=i(8707);const d=i(3440);const{getResolveErrorBodyCallback:h}=i(7655);const{AsyncResource:f}=i(6698);class RequestHandler extends f{constructor(t,n){if(!t||typeof t!=="object"){throw new A("invalid opts")}const{signal:i,method:a,opaque:c,body:h,onInfo:f,responseHeaders:g,throwOnError:p,highWaterMark:m}=t;try{if(typeof n!=="function"){throw new A("invalid callback")}if(m&&(typeof m!=="number"||m<0)){throw new A("invalid highWaterMark")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new A("invalid method")}if(f&&typeof f!=="function"){throw new A("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(t){if(d.isStream(h)){d.destroy(h.on("error",d.nop),t)}throw t}this.method=a;this.responseHeaders=g||null;this.opaque=c||null;this.callback=n;this.res=null;this.abort=null;this.body=h;this.trailers={};this.context=null;this.onInfo=f||null;this.throwOnError=p;this.highWaterMark=m;this.signal=i;this.reason=null;this.removeAbortListener=null;if(d.isStream(h)){h.on("error",t=>{this.onError(t)})}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new l}else{this.removeAbortListener=d.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new l;if(this.res){d.destroy(this.res.on("error",d.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}})}}}onConnect(t,n){if(this.reason){t(this.reason);return}a(this.callback);this.abort=t;this.context=n}onHeaders(t,n,i,a){const{callback:A,opaque:l,abort:f,context:g,responseHeaders:p,highWaterMark:m}=this;const E=p==="raw"?d.parseRawHeaders(n):d.parseHeaders(n);if(t<200){if(this.onInfo){this.onInfo({statusCode:t,headers:E})}return}const C=p==="raw"?d.parseHeaders(n):E;const I=C["content-type"];const y=C["content-length"];const B=new c({resume:i,abort:f,contentType:I,contentLength:this.method!=="HEAD"&&y?Number(y):null,highWaterMark:m});if(this.removeAbortListener){B.on("close",this.removeAbortListener)}this.callback=null;this.res=B;if(A!==null){if(this.throwOnError&&t>=400){this.runInAsyncScope(h,null,{callback:A,body:B,contentType:I,statusCode:t,statusMessage:a,headers:E})}else{this.runInAsyncScope(A,null,null,{statusCode:t,headers:E,trailers:this.trailers,opaque:l,body:B,context:g})}}}onData(t){return this.res.push(t)}onComplete(t){d.parseHeaders(t,this.trailers);this.res.push(null)}onError(t){const{res:n,callback:i,body:a,opaque:c}=this;if(i){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(i,null,t,{opaque:c})})}if(n){this.res=null;queueMicrotask(()=>{d.destroy(n,t)})}if(a){this.body=null;d.destroy(a,t)}if(this.removeAbortListener){n?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(t,n){if(n===undefined){return new Promise((n,i)=>{request.call(this,t,(t,a)=>t?i(t):n(a))})}try{this.dispatch(t,new RequestHandler(t,n))}catch(i){if(typeof n!=="function"){throw i}const a=t?.opaque;queueMicrotask(()=>n(i,{opaque:a}))}}t.exports=request;t.exports.RequestHandler=RequestHandler},3560:(t,n,i)=>{const a=i(4589);const{finished:c,PassThrough:A}=i(7075);const{InvalidArgumentError:l,InvalidReturnValueError:d}=i(8707);const h=i(3440);const{getResolveErrorBodyCallback:f}=i(7655);const{AsyncResource:g}=i(6698);const{addSignal:p,removeSignal:m}=i(158);class StreamHandler extends g{constructor(t,n,i){if(!t||typeof t!=="object"){throw new l("invalid opts")}const{signal:a,method:c,opaque:A,body:d,onInfo:f,responseHeaders:g,throwOnError:m}=t;try{if(typeof i!=="function"){throw new l("invalid callback")}if(typeof n!=="function"){throw new l("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(c==="CONNECT"){throw new l("invalid method")}if(f&&typeof f!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_STREAM")}catch(t){if(h.isStream(d)){h.destroy(d.on("error",h.nop),t)}throw t}this.responseHeaders=g||null;this.opaque=A||null;this.factory=n;this.callback=i;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=d;this.onInfo=f||null;this.throwOnError=m||false;if(h.isStream(d)){d.on("error",t=>{this.onError(t)})}p(this,a)}onConnect(t,n){if(this.reason){t(this.reason);return}a(this.callback);this.abort=t;this.context=n}onHeaders(t,n,i,a){const{factory:l,opaque:g,context:p,callback:m,responseHeaders:E}=this;const C=E==="raw"?h.parseRawHeaders(n):h.parseHeaders(n);if(t<200){if(this.onInfo){this.onInfo({statusCode:t,headers:C})}return}this.factory=null;let I;if(this.throwOnError&&t>=400){const i=E==="raw"?h.parseHeaders(n):C;const c=i["content-type"];I=new A;this.callback=null;this.runInAsyncScope(f,null,{callback:m,body:I,contentType:c,statusCode:t,statusMessage:a,headers:C})}else{if(l===null){return}I=this.runInAsyncScope(l,null,{statusCode:t,headers:C,opaque:g,context:p});if(!I||typeof I.write!=="function"||typeof I.end!=="function"||typeof I.on!=="function"){throw new d("expected Writable")}c(I,{readable:false},t=>{const{callback:n,res:i,opaque:a,trailers:c,abort:A}=this;this.res=null;if(t||!i.readable){h.destroy(i,t)}this.callback=null;this.runInAsyncScope(n,null,t||null,{opaque:a,trailers:c});if(t){A()}})}I.on("drain",i);this.res=I;const y=I.writableNeedDrain!==undefined?I.writableNeedDrain:I._writableState?.needDrain;return y!==true}onData(t){const{res:n}=this;return n?n.write(t):true}onComplete(t){const{res:n}=this;m(this);if(!n){return}this.trailers=h.parseHeaders(t);n.end()}onError(t){const{res:n,callback:i,opaque:a,body:c}=this;m(this);this.factory=null;if(n){this.res=null;h.destroy(n,t)}else if(i){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(i,null,t,{opaque:a})})}if(c){this.body=null;h.destroy(c,t)}}}function stream(t,n,i){if(i===undefined){return new Promise((i,a)=>{stream.call(this,t,n,(t,n)=>t?a(t):i(n))})}try{this.dispatch(t,new StreamHandler(t,n,i))}catch(n){if(typeof i!=="function"){throw n}const a=t?.opaque;queueMicrotask(()=>i(n,{opaque:a}))}}t.exports=stream},1882:(t,n,i)=>{const{InvalidArgumentError:a,SocketError:c}=i(8707);const{AsyncResource:A}=i(6698);const l=i(3440);const{addSignal:d,removeSignal:h}=i(158);const f=i(4589);class UpgradeHandler extends A{constructor(t,n){if(!t||typeof t!=="object"){throw new a("invalid opts")}if(typeof n!=="function"){throw new a("invalid callback")}const{signal:i,opaque:c,responseHeaders:A}=t;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=A||null;this.opaque=c||null;this.callback=n;this.abort=null;this.context=null;d(this,i)}onConnect(t,n){if(this.reason){t(this.reason);return}f(this.callback);this.abort=t;this.context=null}onHeaders(){throw new c("bad upgrade",null)}onUpgrade(t,n,i){f(t===101);const{callback:a,opaque:c,context:A}=this;h(this);this.callback=null;const d=this.responseHeaders==="raw"?l.parseRawHeaders(n):l.parseHeaders(n);this.runInAsyncScope(a,null,null,{headers:d,socket:i,opaque:c,context:A})}onError(t){const{callback:n,opaque:i}=this;h(this);if(n){this.callback=null;queueMicrotask(()=>{this.runInAsyncScope(n,null,t,{opaque:i})})}}}function upgrade(t,n){if(n===undefined){return new Promise((n,i)=>{upgrade.call(this,t,(t,a)=>t?i(t):n(a))})}try{const i=new UpgradeHandler(t,n);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},i)}catch(i){if(typeof n!=="function"){throw i}const a=t?.opaque;queueMicrotask(()=>n(i,{opaque:a}))}}t.exports=upgrade},6615:(t,n,i)=>{t.exports.request=i(4043);t.exports.stream=i(3560);t.exports.pipeline=i(6862);t.exports.upgrade=i(1882);t.exports.connect=i(2279)},9927:(t,n,i)=>{const a=i(4589);const{Readable:c}=i(7075);const{RequestAbortedError:A,NotSupportedError:l,InvalidArgumentError:d,AbortError:h}=i(8707);const f=i(3440);const{ReadableStreamFrom:g}=i(3440);const p=Symbol("kConsume");const m=Symbol("kReading");const E=Symbol("kBody");const C=Symbol("kAbort");const I=Symbol("kContentType");const y=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends c{constructor({resume:t,abort:n,contentType:i="",contentLength:a,highWaterMark:c=64*1024}){super({autoDestroy:true,read:t,highWaterMark:c});this._readableState.dataEmitted=false;this[C]=n;this[p]=null;this[E]=null;this[I]=i;this[y]=a;this[m]=false}destroy(t){if(!t&&!this._readableState.endEmitted){t=new A}if(t){this[C]()}return super.destroy(t)}_destroy(t,n){if(!this[m]){setImmediate(()=>{n(t)})}else{n(t)}}on(t,...n){if(t==="data"||t==="readable"){this[m]=true}return super.on(t,...n)}addListener(t,...n){return this.on(t,...n)}off(t,...n){const i=super.off(t,...n);if(t==="data"||t==="readable"){this[m]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return i}removeListener(t,...n){return this.off(t,...n)}push(t){if(this[p]&&t!==null){consumePush(this[p],t);return this[m]?super.push(t):true}return super.push(t)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new l}get bodyUsed(){return f.isDisturbed(this)}get body(){if(!this[E]){this[E]=g(this);if(this[p]){this[E].getReader();a(this[E].locked)}}return this[E]}async dump(t){let n=Number.isFinite(t?.limit)?t.limit:128*1024;const i=t?.signal;if(i!=null&&(typeof i!=="object"||!("aborted"in i))){throw new d("signal must be an AbortSignal")}i?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise((t,a)=>{if(this[y]>n){this.destroy(new h)}const onAbort=()=>{this.destroy(i.reason??new h)};i?.addEventListener("abort",onAbort);this.on("close",function(){i?.removeEventListener("abort",onAbort);if(i?.aborted){a(i.reason??new h)}else{t(null)}}).on("error",noop).on("data",function(t){n-=t.length;if(n<=0){this.destroy()}}).resume()})}}function isLocked(t){return t[E]&&t[E].locked===true||t[p]}function isUnusable(t){return f.isDisturbed(t)||isLocked(t)}async function consume(t,n){a(!t[p]);return new Promise((i,a)=>{if(isUnusable(t)){const n=t._readableState;if(n.destroyed&&n.closeEmitted===false){t.on("error",t=>{a(t)}).on("close",()=>{a(new TypeError("unusable"))})}else{a(n.errored??new TypeError("unusable"))}}else{queueMicrotask(()=>{t[p]={type:n,stream:t,resolve:i,reject:a,length:0,body:[]};t.on("error",function(t){consumeFinish(this[p],t)}).on("close",function(){if(this[p].body!==null){consumeFinish(this[p],new A)}});consumeStart(t[p])})}})}function consumeStart(t){if(t.body===null){return}const{_readableState:n}=t.stream;if(n.bufferIndex){const i=n.bufferIndex;const a=n.buffer.length;for(let c=i;c2&&i[0]===239&&i[1]===187&&i[2]===191?3:0;return i.utf8Slice(c,a)}function chunksConcat(t,n){if(t.length===0||n===0){return new Uint8Array(0)}if(t.length===1){return new Uint8Array(t[0])}const i=new Uint8Array(Buffer.allocUnsafeSlow(n).buffer);let a=0;for(let n=0;n{const a=i(4589);const{ResponseStatusCodeError:c}=i(8707);const{chunksDecode:A}=i(9927);const l=128*1024;async function getResolveErrorBodyCallback({callback:t,body:n,contentType:i,statusCode:d,statusMessage:h,headers:f}){a(n);let g=[];let p=0;try{for await(const t of n){g.push(t);p+=t.length;if(p>l){g=[];p=0;break}}}catch{g=[];p=0}const m=`Response status code ${d}${h?`: ${h}`:""}`;if(d===204||!i||!p){queueMicrotask(()=>t(new c(m,d,f)));return}const E=Error.stackTraceLimit;Error.stackTraceLimit=0;let C;try{if(isContentTypeApplicationJson(i)){C=JSON.parse(A(g,p))}else if(isContentTypeText(i)){C=A(g,p)}}catch{}finally{Error.stackTraceLimit=E}queueMicrotask(()=>t(new c(m,d,f,C)))}const isContentTypeApplicationJson=t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n";const isContentTypeText=t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t";t.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(t,n,i)=>{const a=i(7030);const c=i(4589);const A=i(3440);const{InvalidArgumentError:l,ConnectTimeoutError:d}=i(8707);const h=i(6603);function noop(){}let f;let g;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){g=class WeakSessionCache{constructor(t){this._maxCachedSessions=t;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry(t=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:t}=this._sessionCache.keys().next();this._sessionCache.delete(t)}this._sessionCache.set(t,n)}}}function buildConnector({allowH2:t,maxCachedSessions:n,socketPath:d,timeout:h,session:m,...E}){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new l("maxCachedSessions must be a positive integer or zero")}const C={path:d,...E};const I=new g(n==null?100:n);h=h==null?1e4:h;t=t!=null?t:false;return function connect({hostname:n,host:l,protocol:d,port:g,servername:E,localAddress:y,httpSocket:B},Q){let w;if(d==="https:"){if(!f){f=i(1692)}E=E||C.servername||A.getServerName(l)||null;const a=E||n;c(a);const d=m||I.get(a)||null;g=g||443;w=f.connect({highWaterMark:16384,...C,servername:E,session:d,localAddress:y,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:B,port:g,host:n});w.on("session",function(t){I.set(a,t)})}else{c(!B,"httpSocket can only be sent on TLS update");g=g||80;w=a.connect({highWaterMark:64*1024,...C,localAddress:y,port:g,host:n})}if(C.keepAlive==null||C.keepAlive){const t=C.keepAliveInitialDelay===undefined?6e4:C.keepAliveInitialDelay;w.setKeepAlive(true,t)}const S=p(new WeakRef(w),{timeout:h,hostname:n,port:g});w.setNoDelay(true).once(d==="https:"?"secureConnect":"connect",function(){queueMicrotask(S);if(Q){const t=Q;Q=null;t(null,this)}}).on("error",function(t){queueMicrotask(S);if(Q){const n=Q;Q=null;n(t)}});return w}}const p=process.platform==="win32"?(t,n)=>{if(!n.timeout){return noop}let i=null;let a=null;const c=h.setFastTimeout(()=>{i=setImmediate(()=>{a=setImmediate(()=>onConnectTimeout(t.deref(),n))})},n.timeout);return()=>{h.clearFastTimeout(c);clearImmediate(i);clearImmediate(a)}}:(t,n)=>{if(!n.timeout){return noop}let i=null;const a=h.setFastTimeout(()=>{i=setImmediate(()=>{onConnectTimeout(t.deref(),n)})},n.timeout);return()=>{h.clearFastTimeout(a);clearImmediate(i)}};function onConnectTimeout(t,n){if(t==null){return}let i="Connect Timeout Error";if(Array.isArray(t.autoSelectFamilyAttemptedAddresses)){i+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{i+=` (attempted address: ${n.hostname}:${n.port},`}i+=` timeout: ${n.timeout}ms)`;A.destroy(t,new d(i))}t.exports=buildConnector},735:t=>{const n={};const i=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let t=0;t{const a=i(3053);const c=i(7975);const A=c.debuglog("undici");const l=c.debuglog("fetch");const d=c.debuglog("websocket");let h=false;const f={beforeConnect:a.channel("undici:client:beforeConnect"),connected:a.channel("undici:client:connected"),connectError:a.channel("undici:client:connectError"),sendHeaders:a.channel("undici:client:sendHeaders"),create:a.channel("undici:request:create"),bodySent:a.channel("undici:request:bodySent"),headers:a.channel("undici:request:headers"),trailers:a.channel("undici:request:trailers"),error:a.channel("undici:request:error"),open:a.channel("undici:websocket:open"),close:a.channel("undici:websocket:close"),socketError:a.channel("undici:websocket:socket_error"),ping:a.channel("undici:websocket:ping"),pong:a.channel("undici:websocket:pong")};if(A.enabled||l.enabled){const t=l.enabled?l:A;a.channel("undici:client:beforeConnect").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:c,host:A}}=n;t("connecting to %s using %s%s",`${A}${c?`:${c}`:""}`,a,i)});a.channel("undici:client:connected").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:c,host:A}}=n;t("connected to %s using %s%s",`${A}${c?`:${c}`:""}`,a,i)});a.channel("undici:client:connectError").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:c,host:A},error:l}=n;t("connection to %s using %s%s errored - %s",`${A}${c?`:${c}`:""}`,a,i,l.message)});a.channel("undici:client:sendHeaders").subscribe(n=>{const{request:{method:i,path:a,origin:c}}=n;t("sending request to %s %s/%s",i,c,a)});a.channel("undici:request:headers").subscribe(n=>{const{request:{method:i,path:a,origin:c},response:{statusCode:A}}=n;t("received response to %s %s/%s - HTTP %d",i,c,a,A)});a.channel("undici:request:trailers").subscribe(n=>{const{request:{method:i,path:a,origin:c}}=n;t("trailers received from %s %s/%s",i,c,a)});a.channel("undici:request:error").subscribe(n=>{const{request:{method:i,path:a,origin:c},error:A}=n;t("request to %s %s/%s errored - %s",i,c,a,A.message)});h=true}if(d.enabled){if(!h){const t=A.enabled?A:d;a.channel("undici:client:beforeConnect").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:c,host:A}}=n;t("connecting to %s%s using %s%s",A,c?`:${c}`:"",a,i)});a.channel("undici:client:connected").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:c,host:A}}=n;t("connected to %s%s using %s%s",A,c?`:${c}`:"",a,i)});a.channel("undici:client:connectError").subscribe(n=>{const{connectParams:{version:i,protocol:a,port:c,host:A},error:l}=n;t("connection to %s%s using %s%s errored - %s",A,c?`:${c}`:"",a,i,l.message)});a.channel("undici:client:sendHeaders").subscribe(n=>{const{request:{method:i,path:a,origin:c}}=n;t("sending request to %s %s/%s",i,c,a)})}a.channel("undici:websocket:open").subscribe(t=>{const{address:{address:n,port:i}}=t;d("connection opened %s%s",n,i?`:${i}`:"")});a.channel("undici:websocket:close").subscribe(t=>{const{websocket:n,code:i,reason:a}=t;d("closed connection to %s - %s %s",n.url,i,a)});a.channel("undici:websocket:socket_error").subscribe(t=>{d("connection errored - %s",t.message)});a.channel("undici:websocket:ping").subscribe(t=>{d("ping received")});a.channel("undici:websocket:pong").subscribe(t=>{d("pong received")})}t.exports={channels:f}},8707:t=>{const n=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(t){super(t);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](t){return t&&t[n]===true}[n]=true}const i=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(t){super(t);this.name="ConnectTimeoutError";this.message=t||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[i]===true}[i]=true}const a=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(t){super(t);this.name="HeadersTimeoutError";this.message=t||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[a]===true}[a]=true}const c=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(t){super(t);this.name="HeadersOverflowError";this.message=t||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](t){return t&&t[c]===true}[c]=true}const A=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(t){super(t);this.name="BodyTimeoutError";this.message=t||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](t){return t&&t[A]===true}[A]=true}const l=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(t,n,i,a){super(t);this.name="ResponseStatusCodeError";this.message=t||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=n;this.statusCode=n;this.headers=i}static[Symbol.hasInstance](t){return t&&t[l]===true}[l]=true}const d=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(t){super(t);this.name="InvalidArgumentError";this.message=t||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](t){return t&&t[d]===true}[d]=true}const h=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(t){super(t);this.name="InvalidReturnValueError";this.message=t||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](t){return t&&t[h]===true}[h]=true}const f=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(t){super(t);this.name="AbortError";this.message=t||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](t){return t&&t[f]===true}[f]=true}const g=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(t){super(t);this.name="AbortError";this.message=t||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](t){return t&&t[g]===true}[g]=true}const p=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(t){super(t);this.name="InformationalError";this.message=t||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](t){return t&&t[p]===true}[p]=true}const m=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(t){super(t);this.name="RequestContentLengthMismatchError";this.message=t||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](t){return t&&t[m]===true}[m]=true}const E=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(t){super(t);this.name="ResponseContentLengthMismatchError";this.message=t||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](t){return t&&t[E]===true}[E]=true}const C=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(t){super(t);this.name="ClientDestroyedError";this.message=t||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](t){return t&&t[C]===true}[C]=true}const I=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(t){super(t);this.name="ClientClosedError";this.message=t||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](t){return t&&t[I]===true}[I]=true}const y=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(t,n){super(t);this.name="SocketError";this.message=t||"Socket error";this.code="UND_ERR_SOCKET";this.socket=n}static[Symbol.hasInstance](t){return t&&t[y]===true}[y]=true}const B=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(t){super(t);this.name="NotSupportedError";this.message=t||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](t){return t&&t[B]===true}[B]=true}const Q=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(t){super(t);this.name="MissingUpstreamError";this.message=t||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](t){return t&&t[Q]===true}[Q]=true}const w=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(t,n,i){super(t);this.name="HTTPParserError";this.code=n?`HPE_${n}`:undefined;this.data=i?i.toString():undefined}static[Symbol.hasInstance](t){return t&&t[w]===true}[w]=true}const S=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(t){super(t);this.name="ResponseExceededMaxSizeError";this.message=t||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](t){return t&&t[S]===true}[S]=true}const b=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(t,n,{headers:i,data:a}){super(t);this.name="RequestRetryError";this.message=t||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=n;this.data=a;this.headers=i}static[Symbol.hasInstance](t){return t&&t[b]===true}[b]=true}const R=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(t,n,{headers:i,data:a}){super(t);this.name="ResponseError";this.message=t||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=n;this.data=a;this.headers=i}static[Symbol.hasInstance](t){return t&&t[R]===true}[R]=true}const v=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(t,n,i){super(n,{cause:t,...i??{}});this.name="SecureProxyConnectionError";this.message=n||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=t}static[Symbol.hasInstance](t){return t&&t[v]===true}[v]=true}const k=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(t){super(t);this.name="MessageSizeExceededError";this.message=t||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](t){return t&&t[k]===true}get[k](){return true}}t.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},4655:(t,n,i)=>{const{InvalidArgumentError:a,NotSupportedError:c}=i(8707);const A=i(4589);const{isValidHTTPToken:l,isValidHeaderValue:d,isStream:h,destroy:f,isBuffer:g,isFormDataLike:p,isIterable:m,isBlobLike:E,buildURL:C,validateHandler:I,getServerName:y,normalizedMethodRecords:B}=i(3440);const{channels:Q}=i(2414);const{headerNameLowerCasedRecord:w}=i(735);const S=/[^\u0021-\u00ff]/;const b=Symbol("handler");class Request{constructor(t,{path:n,method:i,body:c,headers:A,query:w,idempotent:R,blocking:v,upgrade:k,headersTimeout:D,bodyTimeout:T,reset:N,throwOnError:M,expectContinue:F,servername:x},U){if(typeof n!=="string"){throw new a("path must be a string")}else if(n[0]!=="/"&&!(n.startsWith("http://")||n.startsWith("https://"))&&i!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(S.test(n)){throw new a("invalid request path")}if(typeof i!=="string"){throw new a("method must be a string")}else if(B[i]===undefined&&!l(i)){throw new a("invalid request method")}if(k&&typeof k!=="string"){throw new a("upgrade must be a string")}if(k&&!d(k)){throw new a("invalid upgrade header")}if(D!=null&&(!Number.isFinite(D)||D<0)){throw new a("invalid headersTimeout")}if(T!=null&&(!Number.isFinite(T)||T<0)){throw new a("invalid bodyTimeout")}if(N!=null&&typeof N!=="boolean"){throw new a("invalid reset")}if(F!=null&&typeof F!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=D;this.bodyTimeout=T;this.throwOnError=M===true;this.method=i;this.abort=null;if(c==null){this.body=null}else if(h(c)){this.body=c;const t=this.body._readableState;if(!t||!t.autoDestroy){this.endHandler=function autoDestroy(){f(this)};this.body.on("end",this.endHandler)}this.errorHandler=t=>{if(this.abort){this.abort(t)}else{this.error=t}};this.body.on("error",this.errorHandler)}else if(g(c)){this.body=c.byteLength?c:null}else if(ArrayBuffer.isView(c)){this.body=c.buffer.byteLength?Buffer.from(c.buffer,c.byteOffset,c.byteLength):null}else if(c instanceof ArrayBuffer){this.body=c.byteLength?Buffer.from(c):null}else if(typeof c==="string"){this.body=c.length?Buffer.from(c):null}else if(p(c)||m(c)||E(c)){this.body=c}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=k||null;this.path=w?C(n,w):n;this.origin=t;this.idempotent=R==null?i==="HEAD"||i==="GET":R;this.blocking=v==null?false:v;this.reset=N==null?null:N;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=F!=null?F:false;if(Array.isArray(A)){if(A.length%2!==0){throw new a("headers array must be even")}for(let t=0;t{t.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},7752:(t,n,i)=>{const{wellknownHeaderNames:a,headerNameLowerCasedRecord:c}=i(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(t,n,i){if(i===undefined||i>=t.length){throw new TypeError("Unreachable")}const a=this.code=t.charCodeAt(i);if(a>127){throw new TypeError("key must be ascii string")}if(t.length!==++i){this.middle=new TstNode(t,n,i)}else{this.value=n}}add(t,n){const i=t.length;if(i===0){throw new TypeError("Unreachable")}let a=0;let c=this;while(true){const A=t.charCodeAt(a);if(A>127){throw new TypeError("key must be ascii string")}if(c.code===A){if(i===++a){c.value=n;break}else if(c.middle!==null){c=c.middle}else{c.middle=new TstNode(t,n,a);break}}else if(c.code=65){c|=32}while(a!==null){if(c===a.code){if(n===++i){return a}a=a.middle;break}a=a.code{const a=i(4589);const{kDestroyed:c,kBodyUsed:A,kListeners:l,kBody:d}=i(6443);const{IncomingMessage:h}=i(7067);const f=i(7075);const g=i(7030);const{Blob:p}=i(4573);const m=i(7975);const{stringify:E}=i(1792);const{EventEmitter:C}=i(8474);const{InvalidArgumentError:I}=i(8707);const{headerNameLowerCasedRecord:y}=i(735);const{tree:B}=i(7752);const[Q,w]=process.versions.node.split(".").map(t=>Number(t));class BodyAsyncIterable{constructor(t){this[d]=t;this[A]=false}async*[Symbol.asyncIterator](){a(!this[A],"disturbed");this[A]=true;yield*this[d]}}function wrapRequestBody(t){if(isStream(t)){if(bodyLength(t)===0){t.on("data",function(){a(false)})}if(typeof t.readableDidRead!=="boolean"){t[A]=false;C.prototype.on.call(t,"data",function(){this[A]=true})}return t}else if(t&&typeof t.pipeTo==="function"){return new BodyAsyncIterable(t)}else if(t&&typeof t!=="string"&&!ArrayBuffer.isView(t)&&isIterable(t)){return new BodyAsyncIterable(t)}else{return t}}function nop(){}function isStream(t){return t&&typeof t==="object"&&typeof t.pipe==="function"&&typeof t.on==="function"}function isBlobLike(t){if(t===null){return false}else if(t instanceof p){return true}else if(typeof t!=="object"){return false}else{const n=t[Symbol.toStringTag];return(n==="Blob"||n==="File")&&("stream"in t&&typeof t.stream==="function"||"arrayBuffer"in t&&typeof t.arrayBuffer==="function")}}function buildURL(t,n){if(t.includes("?")||t.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const i=E(n);if(i){t+="?"+i}return t}function isValidPort(t){const n=parseInt(t,10);return n===Number(t)&&n>=0&&n<=65535}function isHttpOrHttpsPrefixed(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}function parseURL(t){if(typeof t==="string"){t=new URL(t);if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new I("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return t}if(!t||typeof t!=="object"){throw new I("Invalid URL: The URL argument must be a non-null object.")}if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&isValidPort(t.port)===false){throw new I("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(t.path!=null&&typeof t.path!=="string"){throw new I("Invalid URL path: the path must be a string or null/undefined.")}if(t.pathname!=null&&typeof t.pathname!=="string"){throw new I("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(t.hostname!=null&&typeof t.hostname!=="string"){throw new I("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(t.origin!=null&&typeof t.origin!=="string"){throw new I("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new I("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const n=t.port!=null?t.port:t.protocol==="https:"?443:80;let i=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${n}`;let a=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;if(i[i.length-1]==="/"){i=i.slice(0,i.length-1)}if(a&&a[0]!=="/"){a=`/${a}`}return new URL(`${i}${a}`)}if(!isHttpOrHttpsPrefixed(t.origin||t.protocol)){throw new I("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return t}function parseOrigin(t){t=parseURL(t);if(t.pathname!=="/"||t.search||t.hash){throw new I("invalid url")}return t}function getHostname(t){if(t[0]==="["){const n=t.indexOf("]");a(n!==-1);return t.substring(1,n)}const n=t.indexOf(":");if(n===-1)return t;return t.substring(0,n)}function getServerName(t){if(!t){return null}a(typeof t==="string");const n=getHostname(t);if(g.isIP(n)){return""}return n}function deepClone(t){return JSON.parse(JSON.stringify(t))}function isAsyncIterable(t){return!!(t!=null&&typeof t[Symbol.asyncIterator]==="function")}function isIterable(t){return!!(t!=null&&(typeof t[Symbol.iterator]==="function"||typeof t[Symbol.asyncIterator]==="function"))}function bodyLength(t){if(t==null){return 0}else if(isStream(t)){const n=t._readableState;return n&&n.objectMode===false&&n.ended===true&&Number.isFinite(n.length)?n.length:null}else if(isBlobLike(t)){return t.size!=null?t.size:null}else if(isBuffer(t)){return t.byteLength}return null}function isDestroyed(t){return t&&!!(t.destroyed||t[c]||f.isDestroyed?.(t))}function destroy(t,n){if(t==null||!isStream(t)||isDestroyed(t)){return}if(typeof t.destroy==="function"){if(Object.getPrototypeOf(t).constructor===h){t.socket=null}t.destroy(n)}else if(n){queueMicrotask(()=>{t.emit("error",n)})}if(t.destroyed!==true){t[c]=true}}const S=/timeout=(\d+)/;function parseKeepAliveTimeout(t){const n=t.toString().match(S);return n?parseInt(n[1],10)*1e3:null}function headerNameToString(t){return typeof t==="string"?y[t]??t.toLowerCase():B.lookup(t)??t.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(t){return B.lookup(t)??t.toString("latin1").toLowerCase()}function parseHeaders(t,n){if(n===undefined)n={};for(let i=0;it.toString("utf8")):c.toString("utf8")}}}if("content-length"in n&&"content-disposition"in n){n["content-disposition"]=Buffer.from(n["content-disposition"]).toString("latin1")}return n}function parseRawHeaders(t){const n=t.length;const i=new Array(n);let a=false;let c=-1;let A;let l;let d=0;for(let n=0;n{t.close();t.byobRequest?.respond(0)})}else{const n=Buffer.isBuffer(a)?a:Buffer.from(a);if(n.byteLength){t.enqueue(new Uint8Array(n))}}return t.desiredSize>0},async cancel(t){await n.return()},type:"bytes"})}function isFormDataLike(t){return t&&typeof t==="object"&&typeof t.append==="function"&&typeof t.delete==="function"&&typeof t.get==="function"&&typeof t.getAll==="function"&&typeof t.has==="function"&&typeof t.set==="function"&&t[Symbol.toStringTag]==="FormData"}function addAbortListener(t,n){if("addEventListener"in t){t.addEventListener("abort",n,{once:true});return()=>t.removeEventListener("abort",n)}t.addListener("abort",n);return()=>t.removeListener("abort",n)}const b=typeof String.prototype.toWellFormed==="function";const R=typeof String.prototype.isWellFormed==="function";function toUSVString(t){return b?`${t}`.toWellFormed():m.toUSVString(t)}function isUSVString(t){return R?`${t}`.isWellFormed():toUSVString(t)===`${t}`}function isTokenCharCode(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return t>=33&&t<=126}}function isValidHTTPToken(t){if(t.length===0){return false}for(let n=0;n{const{InvalidArgumentError:a}=i(8707);const{kClients:c,kRunning:A,kClose:l,kDestroy:d,kDispatch:h,kInterceptors:f}=i(6443);const g=i(1841);const p=i(628);const m=i(3701);const E=i(3440);const C=i(5092);const I=Symbol("onConnect");const y=Symbol("onDisconnect");const B=Symbol("onConnectionError");const Q=Symbol("maxRedirections");const w=Symbol("onDrain");const S=Symbol("factory");const b=Symbol("options");function defaultFactory(t,n){return n&&n.connections===1?new m(t,n):new p(t,n)}class Agent extends g{constructor({factory:t=defaultFactory,maxRedirections:n=0,connect:i,...A}={}){if(typeof t!=="function"){throw new a("factory must be a function.")}if(i!=null&&typeof i!=="function"&&typeof i!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(n)||n<0){throw new a("maxRedirections must be a positive number")}super(A);if(i&&typeof i!=="function"){i={...i}}this[f]=A.interceptors?.Agent&&Array.isArray(A.interceptors.Agent)?A.interceptors.Agent:[C({maxRedirections:n})];this[b]={...E.deepClone(A),connect:i};this[b].interceptors=A.interceptors?{...A.interceptors}:undefined;this[Q]=n;this[S]=t;this[c]=new Map;this[w]=(t,n)=>{this.emit("drain",t,[this,...n])};this[I]=(t,n)=>{this.emit("connect",t,[this,...n])};this[y]=(t,n,i)=>{this.emit("disconnect",t,[this,...n],i)};this[B]=(t,n,i)=>{this.emit("connectionError",t,[this,...n],i)}}get[A](){let t=0;for(const n of this[c].values()){t+=n[A]}return t}[h](t,n){let i;if(t.origin&&(typeof t.origin==="string"||t.origin instanceof URL)){i=String(t.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}let A=this[c].get(i);if(!A){A=this[S](t.origin,this[b]).on("drain",this[w]).on("connect",this[I]).on("disconnect",this[y]).on("connectionError",this[B]);this[c].set(i,A)}return A.dispatch(t,n)}async[l](){const t=[];for(const n of this[c].values()){t.push(n.close())}this[c].clear();await Promise.all(t)}async[d](t){const n=[];for(const i of this[c].values()){n.push(i.destroy(t))}this[c].clear();await Promise.all(n)}}t.exports=Agent},837:(t,n,i)=>{const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:c}=i(8707);const{PoolBase:A,kClients:l,kNeedDrain:d,kAddClient:h,kRemoveClient:f,kGetDispatcher:g}=i(2128);const p=i(628);const{kUrl:m,kInterceptors:E}=i(6443);const{parseOrigin:C}=i(3440);const I=Symbol("factory");const y=Symbol("options");const B=Symbol("kGreatestCommonDivisor");const Q=Symbol("kCurrentWeight");const w=Symbol("kIndex");const S=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const R=Symbol("kErrorPenalty");function getGreatestCommonDivisor(t,n){if(t===0)return n;while(n!==0){const i=n;n=t%n;t=i}return t}function defaultFactory(t,n){return new p(t,n)}class BalancedPool extends A{constructor(t=[],{factory:n=defaultFactory,...i}={}){super();this[y]=i;this[w]=-1;this[Q]=0;this[b]=this[y].maxWeightPerServer||100;this[R]=this[y].errorPenalty||15;if(!Array.isArray(t)){t=[t]}if(typeof n!=="function"){throw new c("factory must be a function.")}this[E]=i.interceptors?.BalancedPool&&Array.isArray(i.interceptors.BalancedPool)?i.interceptors.BalancedPool:[];this[I]=n;for(const n of t){this.addUpstream(n)}this._updateBalancedPoolStats()}addUpstream(t){const n=C(t).origin;if(this[l].find(t=>t[m].origin===n&&t.closed!==true&&t.destroyed!==true)){return this}const i=this[I](n,Object.assign({},this[y]));this[h](i);i.on("connect",()=>{i[S]=Math.min(this[b],i[S]+this[R])});i.on("connectionError",()=>{i[S]=Math.max(1,i[S]-this[R]);this._updateBalancedPoolStats()});i.on("disconnect",(...t)=>{const n=t[2];if(n&&n.code==="UND_ERR_SOCKET"){i[S]=Math.max(1,i[S]-this[R]);this._updateBalancedPoolStats()}});for(const t of this[l]){t[S]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let t=0;for(let n=0;nt[m].origin===n&&t.closed!==true&&t.destroyed!==true);if(i){this[f](i)}return this}get upstreams(){return this[l].filter(t=>t.closed!==true&&t.destroyed!==true).map(t=>t[m].origin)}[g](){if(this[l].length===0){throw new a}const t=this[l].find(t=>!t[d]&&t.closed!==true&&t.destroyed!==true);if(!t){return}const n=this[l].map(t=>t[d]).reduce((t,n)=>t&&n,true);if(n){return}let i=0;let c=this[l].findIndex(t=>!t[d]);while(i++this[l][c][S]&&!t[d]){c=this[w]}if(this[w]===0){this[Q]=this[Q]-this[B];if(this[Q]<=0){this[Q]=this[b]}}if(t[S]>=this[Q]&&!t[d]){return t}}this[Q]=this[l][c][S];this[w]=c;return this[l][c]}}t.exports=BalancedPool},637:(t,n,i)=>{const a=i(4589);const c=i(3440);const{channels:A}=i(2414);const l=i(6603);const{RequestContentLengthMismatchError:d,ResponseContentLengthMismatchError:h,RequestAbortedError:f,InvalidArgumentError:g,HeadersTimeoutError:p,HeadersOverflowError:m,SocketError:E,InformationalError:C,BodyTimeoutError:I,HTTPParserError:y,ResponseExceededMaxSizeError:B}=i(8707);const{kUrl:Q,kReset:w,kClient:S,kParser:b,kBlocking:R,kRunning:v,kPending:k,kSize:D,kWriting:T,kQueue:N,kNoRef:M,kKeepAliveDefaultTimeout:F,kHostHeader:x,kPendingIdx:U,kRunningIdx:P,kError:L,kPipelining:O,kSocket:H,kKeepAliveTimeoutValue:$,kMaxHeadersSize:V,kKeepAliveMaxTimeout:G,kKeepAliveTimeoutThreshold:Y,kHeadersTimeout:J,kBodyTimeout:W,kStrictContentLength:q,kMaxRequests:j,kCounter:z,kMaxResponseSize:K,kOnError:Z,kResume:X,kHTTPContext:ee}=i(6443);const te=i(2824);const re=Buffer.alloc(0);const ne=Buffer[Symbol.species];const se=c.addListener;const oe=c.removeAllListeners;const ie=Symbol("kIdleSocketValidation");const ae=Symbol("kIdleSocketValidationTimeout");const ce=Symbol("kSocketUsed");let Ae;async function lazyllhttp(){const t=process.env.JEST_WORKER_ID?i(3870):undefined;let n;try{n=await WebAssembly.compile(i(3434))}catch(a){n=await WebAssembly.compile(t||i(3870))}return await WebAssembly.instantiate(n,{env:{wasm_on_url:(t,n,i)=>0,wasm_on_status:(t,n,i)=>{a(de.ptr===t);const c=n-ge+he.byteOffset;return de.onStatus(new ne(he.buffer,c,i))||0},wasm_on_message_begin:t=>{a(de.ptr===t);return de.onMessageBegin()||0},wasm_on_header_field:(t,n,i)=>{a(de.ptr===t);const c=n-ge+he.byteOffset;return de.onHeaderField(new ne(he.buffer,c,i))||0},wasm_on_header_value:(t,n,i)=>{a(de.ptr===t);const c=n-ge+he.byteOffset;return de.onHeaderValue(new ne(he.buffer,c,i))||0},wasm_on_headers_complete:(t,n,i,c)=>{a(de.ptr===t);return de.onHeadersComplete(n,Boolean(i),Boolean(c))||0},wasm_on_body:(t,n,i)=>{a(de.ptr===t);const c=n-ge+he.byteOffset;return de.onBody(new ne(he.buffer,c,i))||0},wasm_on_message_complete:t=>{a(de.ptr===t);return de.onMessageComplete()||0}}})}let le=null;let ue=lazyllhttp();ue.catch();let de=null;let he=null;let fe=0;let ge=null;const pe=0;const me=1;const Ee=2|me;const Ce=4|me;const Ie=8|pe;class Parser{constructor(t,n,{exports:i}){a(Number.isFinite(t[V])&&t[V]>0);this.llhttp=i;this.ptr=this.llhttp.llhttp_alloc(te.TYPE.RESPONSE);this.client=t;this.socket=n;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=t[V];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=t[K]}setTimeout(t,n){if(t!==this.timeoutValue||n&me^this.timeoutType&me){if(this.timeout){l.clearTimeout(this.timeout);this.timeout=null}if(t){if(n&me){this.timeout=l.setFastTimeout(onParserTimeout,t,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,t,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=t}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=n}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(de==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===Ce);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||re);this.readMore()}readMore(){while(!this.paused&&this.ptr){const t=this.socket.read();if(t===null){break}this.execute(t)}}execute(t){a(this.ptr!=null);a(de==null);a(!this.paused);const{socket:n,llhttp:i}=this;if(t.length>fe){if(ge){i.free(ge)}fe=Math.ceil(t.length/4096)*4096;ge=i.malloc(fe)}new Uint8Array(i.memory.buffer,ge,fe).set(t);try{let a;try{he=t;de=this;a=i.llhttp_execute(this.ptr,ge,t.length)}catch(t){throw t}finally{de=null;he=null}const c=i.llhttp_get_error_pos(this.ptr)-ge;if(a!==te.ERROR.OK){const i=t.subarray(c);if(a===te.ERROR.PAUSED_UPGRADE){this.onUpgrade(i)}else if(a===te.ERROR.PAUSED){this.paused=true;n.unshift(i)}else{throw this.createError(a,i)}}}catch(t){c.destroy(n,t)}}finish(){a(de===null);a(this.ptr!=null);a(!this.paused);const{llhttp:t}=this;let n;try{de=this;n=t.llhttp_finish(this.ptr)}finally{de=null}if(n===te.ERROR.OK){return null}if(n===te.ERROR.PAUSED||n===te.ERROR.PAUSED_UPGRADE){this.paused=true;return null}return this.createError(n,re)}createError(t,n){const{llhttp:i,contentLength:a,bytesRead:c}=this;if(a&&c!==parseInt(a,10)){return new h}const A=i.llhttp_get_error_reason(this.ptr);let l="";if(A){const t=new Uint8Array(i.memory.buffer,A).indexOf(0);l="Response does not match the HTTP/1.1 protocol ("+Buffer.from(i.memory.buffer,A,t).toString()+")"}return new y(l,te.ERROR[t],n)}destroy(){a(this.ptr!=null);a(de==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&l.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(t){this.statusText=t.toString()}onMessageBegin(){const{socket:t,client:n}=this;if(t.destroyed){return-1}if(n[v]===0){c.destroy(t,new E("bad response",c.getSocketInfo(t)));return-1}const i=n[N][n[P]];if(!i){return-1}i.onResponseStarted()}onHeaderField(t){const n=this.headers.length;if((n&1)===0){this.headers.push(t)}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],t])}this.trackHeader(t.length)}onHeaderValue(t){let n=this.headers.length;if((n&1)===1){this.headers.push(t);n+=1}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],t])}const i=this.headers[n-2];if(i.length===10){const n=c.bufferToLowerCasedHeaderName(i);if(n==="keep-alive"){this.keepAlive+=t.toString()}else if(n==="connection"){this.connection+=t.toString()}}else if(i.length===14&&c.bufferToLowerCasedHeaderName(i)==="content-length"){this.contentLength+=t.toString()}this.trackHeader(t.length)}trackHeader(t){this.headersSize+=t;if(this.headersSize>=this.headersMaxSize){c.destroy(this.socket,new m)}}onUpgrade(t){const{upgrade:n,client:i,socket:A,headers:l,statusCode:d}=this;a(n);a(i[H]===A);a(!A.destroyed);a(!this.paused);a((l.length&1)===0);const h=i[N][i[P]];a(h);a(h.upgrade||h.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;A.unshift(t);A[b].destroy();A[b]=null;A[S]=null;A[L]=null;oe(A);i[H]=null;i[ee]=null;i[N][i[P]++]=null;i.emit("disconnect",i[Q],[i],new C("upgrade"));try{h.onUpgrade(d,l,A)}catch(t){c.destroy(A,t)}i[X]()}onHeadersComplete(t,n,i){const{client:A,socket:l,headers:d,statusText:h}=this;if(l.destroyed){return-1}if(A[v]===0){c.destroy(l,new E("bad response",c.getSocketInfo(l)));return-1}const f=A[N][A[P]];if(!f){return-1}a(!this.upgrade);a(this.statusCode<200);if(t===100){c.destroy(l,new E("bad response",c.getSocketInfo(l)));return-1}if(n&&!f.upgrade){c.destroy(l,new E("bad upgrade",c.getSocketInfo(l)));return-1}a(this.timeoutType===Ee);this.statusCode=t;this.shouldKeepAlive=i||f.method==="HEAD"&&!l[w]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const t=f.bodyTimeout!=null?f.bodyTimeout:A[W];this.setTimeout(t,Ce)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(f.method==="CONNECT"){a(A[v]===1);this.upgrade=true;return 2}if(n){a(A[v]===1);this.upgrade=true;return 2}a((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&A[O]){const t=this.keepAlive?c.parseKeepAliveTimeout(this.keepAlive):null;if(t!=null){const n=Math.min(t-A[Y],A[G]);if(n<=0){l[w]=true}else{A[$]=n}}else{A[$]=A[F]}}else{l[w]=true}const g=f.onHeaders(t,d,this.resume,h)===false;if(f.aborted){return-1}if(f.method==="HEAD"){return 1}if(t<200){return 1}if(l[R]){l[R]=false;A[X]()}return g?te.ERROR.PAUSED:0}onBody(t){const{client:n,socket:i,statusCode:A,maxResponseSize:l}=this;if(i.destroyed){return-1}const d=n[N][n[P]];a(d);a(this.timeoutType===Ce);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(A>=200);if(l>-1&&this.bytesRead+t.length>l){c.destroy(i,new B);return-1}this.bytesRead+=t.length;if(d.onData(t)===false){return te.ERROR.PAUSED}}onMessageComplete(){const{client:t,socket:n,statusCode:i,upgrade:A,headers:l,contentLength:d,bytesRead:f,shouldKeepAlive:g}=this;if(n.destroyed&&(!i||g)){return-1}if(A){return}a(i>=100);a((this.headers.length&1)===0);const p=t[N][t[P]];a(p);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(i<200){return}if(p.method!=="HEAD"&&d&&f!==parseInt(d,10)){c.destroy(n,new h);return-1}p.onComplete(l);t[N][t[P]++]=null;n[ce]=true;if(n[T]){a(t[v]===0);c.destroy(n,new C("reset"));return te.ERROR.PAUSED}else if(!g){c.destroy(n,new C("reset"));return te.ERROR.PAUSED}else if(n[w]&&t[v]===0){c.destroy(n,new C("reset"));return te.ERROR.PAUSED}else if(t[O]==null||t[O]===1){setImmediate(()=>t[X]())}else{t[X]()}}}function onParserTimeout(t){const{socket:n,timeoutType:i,client:A,paused:l}=t.deref();if(i===Ee){if(!n[T]||n.writableNeedDrain||A[v]>1){a(!l,"cannot be paused while waiting for headers");c.destroy(n,new p)}}else if(i===Ce){if(!l){c.destroy(n,new I)}}else if(i===Ie){a(A[v]===0&&A[$]);c.destroy(n,new C("socket idle timeout"))}}async function connectH1(t,n){t[H]=n;if(!le){le=await ue;ue=null}n[M]=false;n[T]=false;n[w]=false;n[R]=false;n[ie]=0;n[ae]=null;n[ce]=false;n[b]=new Parser(t,n,le);se(n,"error",function(t){a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const n=this[b];if(t.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){const t=n.finish();if(t){this[L]=t;this[S][Z](t)}return}this[L]=t;this[S][Z](t)});se(n,"readable",function(){const t=this[b];if(t){t.readMore()}});se(n,"end",function(){const t=this[b];if(t.statusCode&&!t.shouldKeepAlive){const n=t.finish();if(n){c.destroy(this,n)}return}c.destroy(this,new E("other side closed",c.getSocketInfo(this)))});se(n,"close",function(){const t=this[S];const n=this[b];clearIdleSocketValidation(this);if(n){if(!this[L]&&n.statusCode&&!n.shouldKeepAlive){this[L]=n.finish()||this[L]}this[b].destroy();this[b]=null}const i=this[L]||new E("closed",c.getSocketInfo(this));t[H]=null;t[ee]=null;if(t.destroyed){a(t[k]===0);const n=t[N].splice(t[P]);for(let a=0;a0&&i.code!=="UND_ERR_INFO"){const n=t[N][t[P]];t[N][t[P]++]=null;c.errorRequest(t,n,i)}t[U]=t[P];a(t[v]===0);t.emit("disconnect",t[Q],[t],i);t[X]()});let i=false;n.on("close",()=>{i=true});return{version:"h1",defaultPipelining:1,write(...n){return writeH1(t,...n)},resume(){resumeH1(t)},destroy(t,a){if(i){queueMicrotask(a)}else{n.destroy(t).on("close",a)}},get destroyed(){return n.destroyed},busy(i){if(n[T]||n[w]||n[R]||n[ie]===1){return true}if(i){if(t[v]>0&&!i.idempotent){return true}if(t[v]>0&&(i.upgrade||i.method==="CONNECT")){return true}if(t[v]>0&&c.bodyLength(i.body)!==0&&(c.isStream(i.body)||c.isAsyncIterable(i.body)||c.isFormDataLike(i.body))){return true}}return false}}}function clearIdleSocketValidation(t){if(t[ae]){clearTimeout(t[ae]);t[ae]=null}t[ie]=0}function scheduleIdleSocketValidation(t,n){n[ie]=1;n[ae]=setTimeout(()=>{n[ae]=null;n[ie]=2;if(t[H]===n&&!n.destroyed){t[X]()}},0);n[ae].unref?.()}function resumeH1(t){const n=t[H];if(n&&!n.destroyed){if(t[D]===0){if(!n[M]&&n.unref){n.unref();n[M]=true}}else if(n[M]&&n.ref){n.ref();n[M]=false}if(t[v]===0&&t[k]>0&&n[ce]){if(n[ie]===0){scheduleIdleSocketValidation(t,n);n[b].readMore();if(n.destroyed){return}return}if(n[ie]===1){n[b].readMore();if(n.destroyed){return}return}}if(t[v]===0){n[b].readMore();if(n.destroyed){return}}if(t[D]===0){if(n[b].timeoutType!==Ie){n[b].setTimeout(t[$],Ie)}}else if(t[v]>0&&n[b].statusCode<200){if(n[b].timeoutType!==Ee){const i=t[N][t[P]];const a=i.headersTimeout!=null?i.headersTimeout:t[J];n[b].setTimeout(a,Ee)}}}}function shouldSendContentLength(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function writeH1(t,n){const{method:l,path:h,host:p,upgrade:m,blocking:E,reset:I}=n;let{body:y,headers:B,contentLength:Q}=n;const S=l==="PUT"||l==="POST"||l==="PATCH"||l==="QUERY"||l==="PROPFIND"||l==="PROPPATCH";if(c.isFormDataLike(y)){if(!Ae){Ae=i(4492).extractBody}const[t,a]=Ae(y);if(n.contentType==null){B.push("content-type",a)}y=t.stream;Q=t.length}else if(c.isBlobLike(y)&&n.contentType==null){const i=y.type;if(i){const a=`${i}`;if(!c.isValidHeaderValue(a)){c.errorRequest(t,n,new g("invalid content-type header"));return false}B.push("content-type",a)}}if(y&&typeof y.read==="function"){y.read(0)}const b=c.bodyLength(y);Q=b??Q;if(Q===null){Q=n.contentLength}if(Q===0&&!S){Q=null}if(shouldSendContentLength(l)&&Q>0&&n.contentLength!==null&&n.contentLength!==Q){if(t[q]){c.errorRequest(t,n,new d);return false}process.emitWarning(new d)}const v=t[H];clearIdleSocketValidation(v);const abort=i=>{if(n.aborted||n.completed){return}c.errorRequest(t,n,i||new f);c.destroy(y);c.destroy(v,new C("aborted"))};try{n.onConnect(abort)}catch(i){c.errorRequest(t,n,i)}if(n.aborted){return false}if(l==="HEAD"){v[w]=true}if(m||l==="CONNECT"){v[w]=true}if(I!=null){v[w]=I}if(t[j]&&v[z]++>=t[j]){v[w]=true}if(E){v[R]=true}let k=`${l} ${h} HTTP/1.1\r\n`;if(typeof p==="string"){k+=`host: ${p}\r\n`}else{k+=t[x]}if(m){k+=`connection: upgrade\r\nupgrade: ${m}\r\n`}else if(t[O]&&!v[w]){k+="connection: keep-alive\r\n"}else{k+="connection: close\r\n"}if(Array.isArray(B)){for(let t=0;t{n.removeListener("error",onFinished)});if(!p){const t=new f;queueMicrotask(()=>onFinished(t))}};const onFinished=function(t){if(p){return}p=true;a(l.destroyed||l[T]&&i[v]<=1);l.off("drain",onDrain).off("error",onFinished);n.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!t){try{m.end()}catch(n){t=n}}m.destroy(t);if(t&&(t.code!=="UND_ERR_INFO"||t.message!=="reset")){c.destroy(n,t)}else{c.destroy(n)}};n.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(n.resume){n.resume()}l.on("drain",onDrain).on("error",onFinished);if(n.errorEmitted??n.errored){setImmediate(()=>onFinished(n.errored))}else if(n.endEmitted??n.readableEnded){setImmediate(()=>onFinished(null))}if(n.closeEmitted??n.closed){setImmediate(onClose)}}function writeBuffer(t,n,i,A,l,d,h,f){try{if(!n){if(d===0){l.write(`${h}content-length: 0\r\n\r\n`,"latin1")}else{a(d===null,"no body must not have content length");l.write(`${h}\r\n`,"latin1")}}else if(c.isBuffer(n)){a(d===n.byteLength,"buffer body must have content length");l.cork();l.write(`${h}content-length: ${d}\r\n\r\n`,"latin1");l.write(n);l.uncork();A.onBodySent(n);if(!f&&A.reset!==false){l[w]=true}}A.onRequestSent();i[X]()}catch(n){t(n)}}async function writeBlob(t,n,i,c,A,l,h,f){a(l===n.size,"blob body must have content length");try{if(l!=null&&l!==n.size){throw new d}const t=Buffer.from(await n.arrayBuffer());A.cork();A.write(`${h}content-length: ${l}\r\n\r\n`,"latin1");A.write(t);A.uncork();c.onBodySent(t);c.onRequestSent();if(!f&&c.reset!==false){A[w]=true}i[X]()}catch(n){t(n)}}async function writeIterable(t,n,i,c,A,l,d,h){a(l!==0||i[v]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const t=f;f=null;t()}}const waitForDrain=()=>new Promise((t,n)=>{a(f===null);if(A[L]){n(A[L])}else{f=t}});A.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({abort:t,socket:A,request:c,contentLength:l,client:i,expectsPayload:h,header:d});try{for await(const t of n){if(A[L]){throw A[L]}if(!g.write(t)){await waitForDrain()}}g.end()}catch(t){g.destroy(t)}finally{A.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:t,socket:n,request:i,contentLength:a,client:c,expectsPayload:A,header:l}){this.socket=n;this.request=i;this.contentLength=a;this.client=c;this.bytesWritten=0;this.expectsPayload=A;this.header=l;this.abort=t;n[T]=true}write(t){const{socket:n,request:i,contentLength:a,client:c,bytesWritten:A,expectsPayload:l,header:h}=this;if(n[L]){throw n[L]}if(n.destroyed){return false}const f=Buffer.byteLength(t);if(!f){return true}if(a!==null&&A+f>a){if(c[q]){throw new d}process.emitWarning(new d)}n.cork();if(A===0){if(!l&&i.reset!==false){n[w]=true}if(a===null){n.write(`${h}transfer-encoding: chunked\r\n`,"latin1")}else{n.write(`${h}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){n.write(`\r\n${f.toString(16)}\r\n`,"latin1")}this.bytesWritten+=f;const g=n.write(t);n.uncork();i.onBodySent(t);if(!g){if(n[b].timeout&&n[b].timeoutType===Ee){if(n[b].timeout.refresh){n[b].timeout.refresh()}}}return g}end(){const{socket:t,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:A,request:l}=this;l.onRequestSent();t[T]=false;if(t[L]){throw t[L]}if(t.destroyed){return}if(a===0){if(c){t.write(`${A}content-length: 0\r\n\r\n`,"latin1")}else{t.write(`${A}\r\n`,"latin1")}}else if(n===null){t.write("\r\n0\r\n\r\n","latin1")}if(n!==null&&a!==n){if(i[q]){throw new d}else{process.emitWarning(new d)}}if(t[b].timeout&&t[b].timeoutType===Ee){if(t[b].timeout.refresh){t[b].timeout.refresh()}}i[X]()}destroy(t){const{socket:n,client:i,abort:c}=this;n[T]=false;if(t){a(i[v]<=1,"pipeline should only contain this request");c(t)}}}t.exports=connectH1},8788:(t,n,i)=>{const a=i(4589);const{pipeline:c}=i(7075);const A=i(3440);const{RequestContentLengthMismatchError:l,RequestAbortedError:d,SocketError:h,InformationalError:f}=i(8707);const{kUrl:g,kReset:p,kClient:m,kRunning:E,kPending:C,kQueue:I,kPendingIdx:y,kRunningIdx:B,kError:Q,kSocket:w,kStrictContentLength:S,kOnError:b,kMaxConcurrentStreams:R,kHTTP2Session:v,kResume:k,kSize:D,kHTTPContext:T}=i(6443);const N=Symbol("open streams");let M;let F=false;let x;try{x=i(2467)}catch{x={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:U,HTTP2_HEADER_METHOD:P,HTTP2_HEADER_PATH:L,HTTP2_HEADER_SCHEME:O,HTTP2_HEADER_CONTENT_LENGTH:H,HTTP2_HEADER_EXPECT:$,HTTP2_HEADER_STATUS:V}}=x;function parseH2Headers(t){const n=[];for(const[i,a]of Object.entries(t)){if(Array.isArray(a)){for(const t of a){n.push(Buffer.from(i),Buffer.from(t))}}else{n.push(Buffer.from(i),Buffer.from(a))}}return n}async function connectH2(t,n){t[w]=n;if(!F){F=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const i=x.connect(t[g],{createConnection:()=>n,peerMaxConcurrentStreams:t[R]});i[N]=0;i[m]=t;i[w]=n;A.addListener(i,"error",onHttp2SessionError);A.addListener(i,"frameError",onHttp2FrameError);A.addListener(i,"end",onHttp2SessionEnd);A.addListener(i,"goaway",onHTTP2GoAway);A.addListener(i,"close",function(){const{[m]:t}=this;const{[w]:n}=t;const i=this[w][Q]||this[Q]||new h("closed",A.getSocketInfo(n));t[v]=null;if(t.destroyed){a(t[C]===0);const n=t[I].splice(t[B]);for(let a=0;a{c=true});return{version:"h2",defaultPipelining:Infinity,write(...n){return writeH2(t,...n)},resume(){resumeH2(t)},destroy(t,i){if(c){queueMicrotask(i)}else{n.destroy(t).on("close",i)}},get destroyed(){return n.destroyed},busy(){return false}}}function resumeH2(t){const n=t[w];if(n?.destroyed===false){if(t[D]===0&&t[R]===0){n.unref();t[v].unref()}else{n.ref();t[v].ref()}}}function onHttp2SessionError(t){a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[w][Q]=t;this[m][b](t)}function onHttp2FrameError(t,n,i){if(i===0){const i=new f(`HTTP/2: "frameError" received - type ${t}, code ${n}`);this[w][Q]=i;this[m][b](i)}}function onHttp2SessionEnd(){const t=new h("other side closed",A.getSocketInfo(this[w]));this.destroy(t);A.destroy(this[w],t)}function onHTTP2GoAway(t){const n=this[Q]||new h(`HTTP/2: "GOAWAY" frame received with code ${t}`,A.getSocketInfo(this));const i=this[m];i[w]=null;i[T]=null;if(this[v]!=null){this[v].destroy(n);this[v]=null}A.destroy(this[w],n);if(i[B]{if(n.aborted||n.completed){return}i=i||new d;A.errorRequest(t,n,i);if(T!=null){A.destroy(T,i)}A.destroy(R,i);t[I][t[B]++]=null;t[k]()};try{n.onConnect(abort)}catch(i){A.errorRequest(t,n,i)}if(n.aborted){return false}if(h==="CONNECT"){c.ref();T=c.request(D,{endStream:false,signal:Q});if(T.id&&!T.pending){n.onUpgrade(null,null,T);++c[N];t[I][t[B]++]=null}else{T.once("ready",()=>{n.onUpgrade(null,null,T);++c[N];t[I][t[B]++]=null})}T.once("close",()=>{c[N]-=1;if(c[N]===0)c.unref()});return true}D[L]=p;D[O]="https";const G=h==="PUT"||h==="POST"||h==="PATCH";if(R&&typeof R.read==="function"){R.read(0)}let Y=A.bodyLength(R);if(A.isFormDataLike(R)){M??=i(4492).extractBody;const[t,n]=M(R);D["content-type"]=n;R=t.stream;Y=t.length}if(Y==null){Y=n.contentLength}if(Y===0||!G){Y=null}if(shouldSendContentLength(h)&&Y>0&&n.contentLength!=null&&n.contentLength!==Y){if(t[S]){A.errorRequest(t,n,new l);return false}process.emitWarning(new l)}if(Y!=null){a(R,"no body must not have content length");D[H]=`${Y}`}c.ref();const J=h==="GET"||h==="HEAD"||R===null;if(C){D[$]="100-continue";T=c.request(D,{endStream:J,signal:Q});T.once("continue",writeBodyH2)}else{T=c.request(D,{endStream:J,signal:Q});writeBodyH2()}++c[N];T.once("response",i=>{const{[V]:a,...c}=i;n.onResponseStarted();if(n.aborted){const i=new d;A.errorRequest(t,n,i);A.destroy(T,i);return}if(n.onHeaders(Number(a),parseH2Headers(c),T.resume.bind(T),"")===false){T.pause()}T.on("data",t=>{if(n.onData(t)===false){T.pause()}})});T.once("end",()=>{if(T.state?.state==null||T.state.state<6){n.onComplete([])}if(c[N]===0){c.unref()}abort(new f("HTTP/2: stream half-closed (remote)"));t[I][t[B]++]=null;t[y]=t[B];t[k]()});T.once("close",()=>{c[N]-=1;if(c[N]===0){c.unref()}});T.once("error",function(t){abort(t)});T.once("frameError",(t,n)=>{abort(new f(`HTTP/2: "frameError" received - type ${t}, code ${n}`))});return true;function writeBodyH2(){if(!R||Y===0){writeBuffer(abort,T,null,t,n,t[w],Y,G)}else if(A.isBuffer(R)){writeBuffer(abort,T,R,t,n,t[w],Y,G)}else if(A.isBlobLike(R)){if(typeof R.stream==="function"){writeIterable(abort,T,R.stream(),t,n,t[w],Y,G)}else{writeBlob(abort,T,R,t,n,t[w],Y,G)}}else if(A.isStream(R)){writeStream(abort,t[w],G,T,R,t,n,Y)}else if(A.isIterable(R)){writeIterable(abort,T,R,t,n,t[w],Y,G)}else{a(false)}}}function writeBuffer(t,n,i,c,l,d,h,f){try{if(i!=null&&A.isBuffer(i)){a(h===i.byteLength,"buffer body must have content length");n.cork();n.write(i);n.uncork();n.end();l.onBodySent(i)}if(!f){d[p]=true}l.onRequestSent();c[k]()}catch(n){t(n)}}function writeStream(t,n,i,l,d,h,f,g){a(g!==0||h[E]===0,"stream body cannot be pipelined");const m=c(d,l,a=>{if(a){A.destroy(m,a);t(a)}else{A.removeAllListeners(m);f.onRequestSent();if(!i){n[p]=true}h[k]()}});A.addListener(m,"data",onPipeData);function onPipeData(t){f.onBodySent(t)}}async function writeBlob(t,n,i,c,A,d,h,f){a(h===i.size,"blob body must have content length");try{if(h!=null&&h!==i.size){throw new l}const t=Buffer.from(await i.arrayBuffer());n.cork();n.write(t);n.uncork();n.end();A.onBodySent(t);A.onRequestSent();if(!f){d[p]=true}c[k]()}catch(n){t(n)}}async function writeIterable(t,n,i,c,A,l,d,h){a(d!==0||c[E]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const t=f;f=null;t()}}const waitForDrain=()=>new Promise((t,n)=>{a(f===null);if(l[Q]){n(l[Q])}else{f=t}});n.on("close",onDrain).on("drain",onDrain);try{for await(const t of i){if(l[Q]){throw l[Q]}const i=n.write(t);A.onBodySent(t);if(!i){await waitForDrain()}}n.end();A.onRequestSent();if(!h){l[p]=true}c[k]()}catch(n){t(n)}finally{n.off("close",onDrain).off("drain",onDrain)}}t.exports=connectH2},3701:(t,n,i)=>{const a=i(4589);const c=i(7030);const A=i(7067);const l=i(3440);const{channels:d}=i(2414);const h=i(4655);const f=i(1841);const{InvalidArgumentError:g,InformationalError:p,ClientDestroyedError:m}=i(8707);const E=i(9136);const{kUrl:C,kServerName:I,kClient:y,kBusy:B,kConnect:Q,kResuming:w,kRunning:S,kPending:b,kSize:R,kQueue:v,kConnected:k,kConnecting:D,kNeedDrain:T,kKeepAliveDefaultTimeout:N,kHostHeader:M,kPendingIdx:F,kRunningIdx:x,kError:U,kPipelining:P,kKeepAliveTimeoutValue:L,kMaxHeadersSize:O,kKeepAliveMaxTimeout:H,kKeepAliveTimeoutThreshold:$,kHeadersTimeout:V,kBodyTimeout:G,kStrictContentLength:Y,kConnector:J,kMaxRedirections:W,kMaxRequests:q,kCounter:j,kClose:z,kDestroy:K,kDispatch:Z,kInterceptors:X,kLocalAddress:ee,kMaxResponseSize:te,kOnError:re,kHTTPContext:ne,kMaxConcurrentStreams:se,kResume:oe}=i(6443);const ie=i(637);const ae=i(8788);let ce=false;const Ae=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(t){return t[P]??t[ne]?.defaultPipelining??1}class Client extends f{constructor(t,{interceptors:n,maxHeaderSize:i,headersTimeout:a,socketTimeout:d,requestTimeout:h,connectTimeout:f,bodyTimeout:p,idleTimeout:m,keepAlive:y,keepAliveTimeout:B,maxKeepAliveTimeout:Q,keepAliveMaxTimeout:S,keepAliveTimeoutThreshold:b,socketPath:R,pipelining:k,tls:D,strictContentLength:U,maxCachedSessions:j,maxRedirections:z,connect:K,maxRequestsPerClient:Z,localAddress:ie,maxResponseSize:ae,autoSelectFamily:ue,autoSelectFamilyAttemptTimeout:de,maxConcurrentStreams:he,allowH2:fe,webSocket:ge}={}){super({webSocket:ge});if(y!==undefined){throw new g("unsupported keepAlive, use pipelining=0 instead")}if(d!==undefined){throw new g("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(h!==undefined){throw new g("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(m!==undefined){throw new g("unsupported idleTimeout, use keepAliveTimeout instead")}if(Q!==undefined){throw new g("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(i!=null&&!Number.isFinite(i)){throw new g("invalid maxHeaderSize")}if(R!=null&&typeof R!=="string"){throw new g("invalid socketPath")}if(f!=null&&(!Number.isFinite(f)||f<0)){throw new g("invalid connectTimeout")}if(B!=null&&(!Number.isFinite(B)||B<=0)){throw new g("invalid keepAliveTimeout")}if(S!=null&&(!Number.isFinite(S)||S<=0)){throw new g("invalid keepAliveMaxTimeout")}if(b!=null&&!Number.isFinite(b)){throw new g("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new g("headersTimeout must be a positive integer or zero")}if(p!=null&&(!Number.isInteger(p)||p<0)){throw new g("bodyTimeout must be a positive integer or zero")}if(K!=null&&typeof K!=="function"&&typeof K!=="object"){throw new g("connect must be a function or an object")}if(z!=null&&(!Number.isInteger(z)||z<0)){throw new g("maxRedirections must be a positive number")}if(Z!=null&&(!Number.isInteger(Z)||Z<0)){throw new g("maxRequestsPerClient must be a positive number")}if(ie!=null&&(typeof ie!=="string"||c.isIP(ie)===0)){throw new g("localAddress must be valid string IP address")}if(ae!=null&&(!Number.isInteger(ae)||ae<-1)){throw new g("maxResponseSize must be a positive number")}if(de!=null&&(!Number.isInteger(de)||de<-1)){throw new g("autoSelectFamilyAttemptTimeout must be a positive number")}if(fe!=null&&typeof fe!=="boolean"){throw new g("allowH2 must be a valid boolean value")}if(he!=null&&(typeof he!=="number"||he<1)){throw new g("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof K!=="function"){K=E({...D,maxCachedSessions:j,allowH2:fe,socketPath:R,timeout:f,...ue?{autoSelectFamily:ue,autoSelectFamilyAttemptTimeout:de}:undefined,...K})}if(n?.Client&&Array.isArray(n.Client)){this[X]=n.Client;if(!ce){ce=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[X]=[le({maxRedirections:z})]}this[C]=l.parseOrigin(t);this[J]=K;this[P]=k!=null?k:1;this[O]=i||A.maxHeaderSize;this[N]=B==null?4e3:B;this[H]=S==null?6e5:S;this[$]=b==null?2e3:b;this[L]=this[N];this[I]=null;this[ee]=ie!=null?ie:null;this[w]=0;this[T]=0;this[M]=`host: ${this[C].hostname}${this[C].port?`:${this[C].port}`:""}\r\n`;this[G]=p!=null?p:3e5;this[V]=a!=null?a:3e5;this[Y]=U==null?true:U;this[W]=z;this[q]=Z;this[Ae]=null;this[te]=ae>-1?ae:-1;this[se]=he!=null?he:100;this[ne]=null;this[v]=[];this[x]=0;this[F]=0;this[oe]=t=>resume(this,t);this[re]=t=>onError(this,t)}get pipelining(){return this[P]}set pipelining(t){this[P]=t;this[oe](true)}get[b](){return this[v].length-this[F]}get[S](){return this[F]-this[x]}get[R](){return this[v].length-this[x]}get[k](){return!!this[ne]&&!this[D]&&!this[ne].destroyed}get[B](){return Boolean(this[ne]?.busy(null)||this[R]>=(getPipelining(this)||1)||this[b]>0)}[Q](t){connect(this);this.once("connect",t)}[Z](t,n){const i=t.origin||this[C].origin;const a=new h(i,t,n);this[v].push(a);if(this[w]){}else if(l.bodyLength(a.body)==null&&l.isIterable(a.body)){this[w]=1;queueMicrotask(()=>resume(this))}else{this[oe](true)}if(this[w]&&this[T]!==2&&this[B]){this[T]=2}return this[T]<2}async[z](){return new Promise(t=>{if(this[R]){this[Ae]=t}else{t(null)}})}async[K](t){return new Promise(n=>{const i=this[v].splice(this[F]);for(let n=0;n{if(this[Ae]){this[Ae]();this[Ae]=null}n(null)};if(this[ne]){this[ne].destroy(t,callback);this[ne]=null}else{queueMicrotask(callback)}this[oe]()})}}const le=i(5092);function onError(t,n){if(t[S]===0&&n.code!=="UND_ERR_INFO"&&n.code!=="UND_ERR_SOCKET"){a(t[F]===t[x]);const i=t[v].splice(t[x]);for(let a=0;a{t[J]({host:n,hostname:i,protocol:A,port:h,servername:t[I],localAddress:t[ee]},(t,n)=>{if(t){c(t)}else{a(n)}})});if(t.destroyed){l.destroy(c.on("error",noop),new m);return}a(c);try{t[ne]=c.alpnProtocol==="h2"?await ae(t,c):await ie(t,c)}catch(t){c.destroy().on("error",noop);throw t}t[D]=false;c[j]=0;c[q]=t[q];c[y]=t;c[U]=null;if(d.connected.hasSubscribers){d.connected.publish({connectParams:{host:n,hostname:i,protocol:A,port:h,version:t[ne]?.version,servername:t[I],localAddress:t[ee]},connector:t[J],socket:c})}t.emit("connect",t[C],[t])}catch(c){if(t.destroyed){return}t[D]=false;if(d.connectError.hasSubscribers){d.connectError.publish({connectParams:{host:n,hostname:i,protocol:A,port:h,version:t[ne]?.version,servername:t[I],localAddress:t[ee]},connector:t[J],error:c})}if(c.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(t[S]===0);while(t[b]>0&&t[v][t[F]].servername===t[I]){const n=t[v][t[F]++];l.errorRequest(t,n,c)}}else{onError(t,c)}t.emit("connectionError",t[C],[t],c)}t[oe]()}function emitDrain(t){t[T]=0;t.emit("drain",t[C],[t])}function resume(t,n){if(t[w]===2){return}t[w]=2;_resume(t,n);t[w]=0;if(t[x]>256){t[v].splice(0,t[x]);t[F]-=t[x];t[x]=0}}function _resume(t,n){while(true){if(t.destroyed){a(t[b]===0);return}if(t[Ae]&&!t[R]){t[Ae]();t[Ae]=null;return}if(t[ne]){t[ne].resume()}if(t[B]){t[T]=2}else if(t[T]===2){if(n){t[T]=1;queueMicrotask(()=>emitDrain(t))}else{emitDrain(t)}continue}if(t[b]===0){return}if(t[S]>=(getPipelining(t)||1)){return}const i=t[v][t[F]];if(t[C].protocol==="https:"&&t[I]!==i.servername){if(t[S]>0){return}t[I]=i.servername;t[ne]?.destroy(new p("servername changed"),()=>{t[ne]=null;resume(t)})}if(t[D]){return}if(!t[ne]){connect(t);return}if(t[ne].destroyed){return}if(t[ne].busy(i)){return}if(!i.aborted&&t[ne].write(i)){t[F]++}else{t[v].splice(t[F],1)}}}t.exports=Client},1841:(t,n,i)=>{const a=i(883);const{ClientDestroyedError:c,ClientClosedError:A,InvalidArgumentError:l}=i(8707);const{kDestroy:d,kClose:h,kClosed:f,kDestroyed:g,kDispatch:p,kInterceptors:m}=i(6443);const E=Symbol("onDestroyed");const C=Symbol("onClosed");const I=Symbol("Intercepted Dispatch");const y=Symbol("webSocketOptions");class DispatcherBase extends a{constructor(t){super();this[g]=false;this[E]=null;this[f]=false;this[C]=[];this[y]=t?.webSocket??{}}get webSocketOptions(){return{maxFragments:this[y].maxFragments??131072,maxPayloadSize:this[y].maxPayloadSize??128*1024*1024}}get destroyed(){return this[g]}get closed(){return this[f]}get interceptors(){return this[m]}set interceptors(t){if(t){for(let n=t.length-1;n>=0;n--){const t=this[m][n];if(typeof t!=="function"){throw new l("interceptor must be an function")}}}this[m]=t}close(t){if(t===undefined){return new Promise((t,n)=>{this.close((i,a)=>i?n(i):t(a))})}if(typeof t!=="function"){throw new l("invalid callback")}if(this[g]){queueMicrotask(()=>t(new c,null));return}if(this[f]){if(this[C]){this[C].push(t)}else{queueMicrotask(()=>t(null,null))}return}this[f]=true;this[C].push(t);const onClosed=()=>{const t=this[C];this[C]=null;for(let n=0;nthis.destroy()).then(()=>{queueMicrotask(onClosed)})}destroy(t,n){if(typeof t==="function"){n=t;t=null}if(n===undefined){return new Promise((n,i)=>{this.destroy(t,(t,a)=>t?i(t):n(a))})}if(typeof n!=="function"){throw new l("invalid callback")}if(this[g]){if(this[E]){this[E].push(n)}else{queueMicrotask(()=>n(null,null))}return}if(!t){t=new c}this[g]=true;this[E]=this[E]||[];this[E].push(n);const onDestroyed=()=>{const t=this[E];this[E]=null;for(let n=0;n{queueMicrotask(onDestroyed)})}[I](t,n){if(!this[m]||this[m].length===0){this[I]=this[p];return this[p](t,n)}let i=this[p].bind(this);for(let t=this[m].length-1;t>=0;t--){i=this[m][t](i)}this[I]=i;return i(t,n)}dispatch(t,n){if(!n||typeof n!=="object"){throw new l("handler must be an object")}try{if(!t||typeof t!=="object"){throw new l("opts must be an object.")}if(this[g]||this[E]){throw new c}if(this[f]){throw new A}return this[I](t,n)}catch(t){if(typeof n.onError!=="function"){throw new l("invalid onError method")}n.onError(t);return false}}}t.exports=DispatcherBase},883:(t,n,i)=>{const a=i(8474);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...t){const n=Array.isArray(t[0])?t[0]:t;let i=this.dispatch.bind(this);for(const t of n){if(t==null){continue}if(typeof t!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof t}`)}i=t(i);if(i==null||typeof i!=="function"||i.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,i)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(t,n){super();this.#e=t;this.#t=n}dispatch(...t){this.#t(...t)}close(...t){return this.#e.close(...t)}destroy(...t){return this.#e.destroy(...t)}}t.exports=Dispatcher},3137:(t,n,i)=>{const a=i(1841);const{kClose:c,kDestroy:A,kClosed:l,kDestroyed:d,kDispatch:h,kNoProxyAgent:f,kHttpProxyAgent:g,kHttpsProxyAgent:p}=i(6443);const m=i(6672);const E=i(7405);const C={"http:":80,"https:":443};let I=false;class EnvHttpProxyAgent extends a{#r=null;#n=null;#s=null;constructor(t={}){super();this.#s=t;if(!I){I=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:n,httpsProxy:i,noProxy:a,...c}=t;this[f]=new E(c);const A=n??process.env.http_proxy??process.env.HTTP_PROXY;if(A){this[g]=new m({...c,uri:A})}else{this[g]=this[f]}const l=i??process.env.https_proxy??process.env.HTTPS_PROXY;if(l){this[p]=new m({...c,uri:l})}else{this[p]=this[g]}this.#o()}[h](t,n){const i=new URL(t.origin);const a=this.#i(i);return a.dispatch(t,n)}async[c](){await this[f].close();if(!this[g][l]){await this[g].close()}if(!this[p][l]){await this[p].close()}}async[A](t){await this[f].destroy(t);if(!this[g][d]){await this[g].destroy(t)}if(!this[p][d]){await this[p].destroy(t)}}#i(t){let{protocol:n,host:i,port:a}=t;i=i.replace(/:\d*$/,"").toLowerCase();a=Number.parseInt(a,10)||C[n]||0;if(!this.#a(i,a)){return this[f]}if(n==="https:"){return this[p]}return this[g]}#a(t,n){if(this.#c){this.#o()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let i=0;i{const n=2048;const i=n-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(n);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&i)===this.bottom}push(t){this.list[this.top]=t;this.top=this.top+1&i}shift(){const t=this.list[this.bottom];if(t===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&i;return t}}t.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(t){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(t)}shift(){const t=this.tail;const n=t.shift();if(t.isEmpty()&&t.next!==null){this.tail=t.next}return n}}},2128:(t,n,i)=>{const a=i(1841);const c=i(4660);const{kConnected:A,kSize:l,kRunning:d,kPending:h,kQueued:f,kBusy:g,kFree:p,kUrl:m,kClose:E,kDestroy:C,kDispatch:I}=i(6443);const y=i(3246);const B=Symbol("clients");const Q=Symbol("needDrain");const w=Symbol("queue");const S=Symbol("closed resolve");const b=Symbol("onDrain");const R=Symbol("onConnect");const v=Symbol("onDisconnect");const k=Symbol("onConnectionError");const D=Symbol("get dispatcher");const T=Symbol("add client");const N=Symbol("remove client");const M=Symbol("stats");class PoolBase extends a{constructor(t){super(t);this[w]=new c;this[B]=[];this[f]=0;const n=this;this[b]=function onDrain(t,i){const a=n[w];let c=false;while(!c){const t=a.shift();if(!t){break}n[f]--;c=!this.dispatch(t.opts,t.handler)}this[Q]=c;if(!this[Q]&&n[Q]){n[Q]=false;n.emit("drain",t,[n,...i])}if(n[S]&&a.isEmpty()){Promise.all(n[B].map(t=>t.close())).then(n[S])}};this[R]=(t,i)=>{n.emit("connect",t,[n,...i])};this[v]=(t,i,a)=>{n.emit("disconnect",t,[n,...i],a)};this[k]=(t,i,a)=>{n.emit("connectionError",t,[n,...i],a)};this[M]=new y(this)}get[g](){return this[Q]}get[A](){return this[B].filter(t=>t[A]).length}get[p](){return this[B].filter(t=>t[A]&&!t[Q]).length}get[h](){let t=this[f];for(const{[h]:n}of this[B]){t+=n}return t}get[d](){let t=0;for(const{[d]:n}of this[B]){t+=n}return t}get[l](){let t=this[f];for(const{[l]:n}of this[B]){t+=n}return t}get stats(){return this[M]}async[E](){if(this[w].isEmpty()){await Promise.all(this[B].map(t=>t.close()))}else{await new Promise(t=>{this[S]=t})}}async[C](t){while(true){const n=this[w].shift();if(!n){break}n.handler.onError(t)}await Promise.all(this[B].map(n=>n.destroy(t)))}[I](t,n){const i=this[D]();if(!i){this[Q]=true;this[w].push({opts:t,handler:n});this[f]++}else if(!i.dispatch(t,n)){i[Q]=true;this[Q]=!this[D]()}return!this[Q]}[T](t){t.on("drain",this[b]).on("connect",this[R]).on("disconnect",this[v]).on("connectionError",this[k]);this[B].push(t);if(this[Q]){queueMicrotask(()=>{if(this[Q]){this[b](t[m],[this,t])}})}return this}[N](t){t.close(()=>{const n=this[B].indexOf(t);if(n!==-1){this[B].splice(n,1)}});this[Q]=this[B].some(t=>!t[Q]&&t.closed!==true&&t.destroyed!==true)}}t.exports={PoolBase:PoolBase,kClients:B,kNeedDrain:Q,kAddClient:T,kRemoveClient:N,kGetDispatcher:D}},3246:(t,n,i)=>{const{kFree:a,kConnected:c,kPending:A,kQueued:l,kRunning:d,kSize:h}=i(6443);const f=Symbol("pool");class PoolStats{constructor(t){this[f]=t}get connected(){return this[f][c]}get free(){return this[f][a]}get pending(){return this[f][A]}get queued(){return this[f][l]}get running(){return this[f][d]}get size(){return this[f][h]}}t.exports=PoolStats},628:(t,n,i)=>{const{PoolBase:a,kClients:c,kNeedDrain:A,kAddClient:l,kGetDispatcher:d}=i(2128);const h=i(3701);const{InvalidArgumentError:f}=i(8707);const g=i(3440);const{kUrl:p,kInterceptors:m}=i(6443);const E=i(9136);const C=Symbol("options");const I=Symbol("connections");const y=Symbol("factory");function defaultFactory(t,n){return new h(t,n)}class Pool extends a{constructor(t,{connections:n,factory:i=defaultFactory,connect:a,connectTimeout:A,tls:l,maxCachedSessions:d,socketPath:h,autoSelectFamily:B,autoSelectFamilyAttemptTimeout:Q,allowH2:w,...S}={}){if(n!=null&&(!Number.isFinite(n)||n<0)){throw new f("invalid connections")}if(typeof i!=="function"){throw new f("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new f("connect must be a function or an object")}if(typeof a!=="function"){a=E({...l,maxCachedSessions:d,allowH2:w,socketPath:h,timeout:A,...B?{autoSelectFamily:B,autoSelectFamilyAttemptTimeout:Q}:undefined,...a})}super(S);this[m]=S.interceptors?.Pool&&Array.isArray(S.interceptors.Pool)?S.interceptors.Pool:[];this[I]=n||null;this[p]=g.parseOrigin(t);this[C]={...g.deepClone(S),connect:a,allowH2:w};this[C].interceptors=S.interceptors?{...S.interceptors}:undefined;this[y]=i;this.on("connectionError",(t,n,i)=>{for(const t of n){const n=this[c].indexOf(t);if(n!==-1){this[c].splice(n,1)}}})}[d](){for(const t of this[c]){if(!t[A]){return t}}if(!this[I]||this[c].length{const{kProxy:a,kClose:c,kDestroy:A,kDispatch:l,kInterceptors:d}=i(6443);const{URL:h}=i(3136);const f=i(7405);const g=i(628);const p=i(1841);const{InvalidArgumentError:m,RequestAbortedError:E,SecureProxyConnectionError:C}=i(8707);const I=i(9136);const y=i(3701);const B=Symbol("proxy agent");const Q=Symbol("proxy client");const w=Symbol("proxy headers");const S=Symbol("request tls settings");const b=Symbol("proxy tls settings");const R=Symbol("connect endpoint function");const v=Symbol("tunnel proxy");function defaultProtocolPort(t){return t==="https:"?443:80}function defaultFactory(t,n){return new g(t,n)}const noop=()=>{};function defaultAgentFactory(t,n){if(n.connections===1){return new y(t,n)}return new g(t,n)}class Http1ProxyWrapper extends p{#l;constructor(t,{headers:n={},connect:i,factory:a}){super();if(!t){throw new m("Proxy URL is mandatory")}this[w]=n;if(a){this.#l=a(t,{connect:i})}else{this.#l=new y(t,{connect:i})}}[l](t,n){const i=n.onHeaders;n.onHeaders=function(t,a,c){if(t===407){if(typeof n.onError==="function"){n.onError(new m("Proxy Authentication Required (407)"))}return}if(i)i.call(this,t,a,c)};const{origin:a,path:c="/",headers:A={}}=t;t.path=a+c;if(!("host"in A)&&!("Host"in A)){const{host:t}=new h(a);A.host=t}t.headers={...this[w],...A};return this.#l[l](t,n)}async[c](){return this.#l.close()}async[A](t){return this.#l.destroy(t)}}class ProxyAgent extends p{constructor(t){super();if(!t||typeof t==="object"&&!(t instanceof h)&&!t.uri){throw new m("Proxy uri is mandatory")}const{clientFactory:n=defaultFactory}=t;if(typeof n!=="function"){throw new m("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:i=true}=t;const c=this.#u(t);const{href:A,origin:l,port:g,protocol:p,username:y,password:k,hostname:D}=c;this[a]={uri:A,protocol:p};this[d]=t.interceptors?.ProxyAgent&&Array.isArray(t.interceptors.ProxyAgent)?t.interceptors.ProxyAgent:[];this[S]=t.requestTls;this[b]=t.proxyTls;this[w]=t.headers||{};this[v]=i;if(t.auth&&t.token){throw new m("opts.auth cannot be used in combination with opts.token")}else if(t.auth){this[w]["proxy-authorization"]=`Basic ${t.auth}`}else if(t.token){this[w]["proxy-authorization"]=t.token}else if(y&&k){this[w]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(y)}:${decodeURIComponent(k)}`).toString("base64")}`}const T=I({...t.proxyTls});this[R]=I({...t.requestTls});const N=t.factory||defaultAgentFactory;const factory=(t,n)=>{const{protocol:i}=new h(t);if(!this[v]&&i==="http:"&&this[a].protocol==="http:"){return new Http1ProxyWrapper(this[a].uri,{headers:this[w],connect:T,factory:N})}return N(t,n)};this[Q]=n(c,{connect:T});this[B]=new f({...t,factory:factory,connect:async(t,n)=>{let i=t.host;if(!t.port){i+=`:${defaultProtocolPort(t.protocol)}`}try{const{socket:a,statusCode:c}=await this[Q].connect({origin:l,port:g,path:i,signal:t.signal,headers:{...this[w],host:t.host},servername:this[b]?.servername||D});if(c!==200){a.on("error",noop).destroy();n(new E(`Proxy response (${c}) !== 200 when HTTP Tunneling`))}if(t.protocol!=="https:"){n(null,a);return}let A;if(this[S]){A=this[S].servername}else{A=t.servername}this[R]({...t,servername:A,httpSocket:a},n)}catch(t){if(t.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(new C(t))}else{n(t)}}}})}dispatch(t,n){const i=buildHeaders(t.headers);throwIfProxyAuthIsSent(i);if(i&&!("host"in i)&&!("Host"in i)){const{host:n}=new h(t.origin);i.host=n}return this[B].dispatch({...t,headers:i},n)}#u(t){if(typeof t==="string"){return new h(t)}else if(t instanceof h){return t}else{return new h(t.uri)}}async[c](){await this[B].close();await this[Q].close()}async[A](){await this[B].destroy();await this[Q].destroy()}}function buildHeaders(t){if(Array.isArray(t)){const n={};for(let i=0;it.toLowerCase()==="proxy-authorization");if(n){throw new m("Proxy-Authorization should be sent in ProxyAgent constructor")}}t.exports=ProxyAgent},50:(t,n,i)=>{const a=i(883);const c=i(7816);class RetryAgent extends a{#d=null;#h=null;constructor(t,n={}){super(n);this.#d=t;this.#h=n}dispatch(t,n){const i=new c({...t,retryOptions:this.#h},{dispatch:this.#d.dispatch.bind(this.#d),handler:n});return this.#d.dispatch(t,i)}close(){return this.#d.close()}destroy(){return this.#d.destroy()}}t.exports=RetryAgent},2581:(t,n,i)=>{const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:c}=i(8707);const A=i(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new A)}function setGlobalDispatcher(t){if(!t||typeof t.dispatch!=="function"){throw new c("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:t,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}t.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:t=>{t.exports=class DecoratorHandler{#f;constructor(t){if(typeof t!=="object"||t===null){throw new TypeError("handler must be an object")}this.#f=t}onConnect(...t){return this.#f.onConnect?.(...t)}onError(...t){return this.#f.onError?.(...t)}onUpgrade(...t){return this.#f.onUpgrade?.(...t)}onResponseStarted(...t){return this.#f.onResponseStarted?.(...t)}onHeaders(...t){return this.#f.onHeaders?.(...t)}onData(...t){return this.#f.onData?.(...t)}onComplete(...t){return this.#f.onComplete?.(...t)}onBodySent(...t){return this.#f.onBodySent?.(...t)}}},8754:(t,n,i)=>{const a=i(3440);const{kBodyUsed:c}=i(6443);const A=i(4589);const{InvalidArgumentError:l}=i(8707);const d=i(8474);const h=[300,301,302,303,307,308];const f=Symbol("body");class BodyAsyncIterable{constructor(t){this[f]=t;this[c]=false}async*[Symbol.asyncIterator](){A(!this[c],"disturbed");this[c]=true;yield*this[f]}}class RedirectHandler{constructor(t,n,i,h){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new l("maxRedirections must be a positive number")}a.validateHandler(h,i.method,i.upgrade);this.dispatch=t;this.location=null;this.abort=null;this.opts={...i,maxRedirections:0};this.maxRedirections=n;this.handler=h;this.history=[];this.redirectionLimitReached=false;if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",function(){A(false)})}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[c]=false;d.prototype.on.call(this.opts.body,"data",function(){this[c]=true})}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(t){this.abort=t;this.handler.onConnect(t,{history:this.history})}onUpgrade(t,n,i){this.handler.onUpgrade(t,n,i)}onError(t){this.handler.onError(t)}onHeaders(t,n,i,c){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(t,n);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(t,n,i,c)}const{origin:A,pathname:l,search:d}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const h=d?`${l}${d}`:l;this.opts.headers=cleanRequestHeaders(this.opts.headers,t===303,this.opts.origin!==A);this.opts.path=h;this.opts.origin=A;this.opts.maxRedirections=0;this.opts.query=null;if(t===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(t){if(this.location){}else{return this.handler.onData(t)}}onComplete(t){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(t)}}onBodySent(t){if(this.handler.onBodySent){this.handler.onBodySent(t)}}}function parseLocation(t,n){if(h.indexOf(t)===-1){return null}for(let t=0;t{const a=i(4589);const{kRetryHandlerDefaultRetry:c}=i(6443);const{RequestRetryError:A}=i(8707);const{isDisturbed:l,parseHeaders:d,parseRangeHeader:h,wrapRequestBody:f}=i(3440);function calculateRetryAfterHeader(t){const n=Date.now();return new Date(t).getTime()-n}function validatePartialResponseContentLength(t,n,i,a){const c=t["content-length"];if(c==null){return null}if(!Number.isFinite(n.start)||!Number.isFinite(n.end)){return null}const l=Number(c);const d=n.end-n.start+1;if(!Number.isFinite(l)||l!==d){return new A("Content-Length mismatch",i,{headers:t,data:{count:a}})}return null}class RetryHandler{constructor(t,n){const{retryOptions:i,...a}=t;const{retry:A,maxRetries:l,maxTimeout:d,minTimeout:h,timeoutFactor:g,methods:p,errorCodes:m,retryAfter:E,statusCodes:C}=i??{};this.dispatch=n.dispatch;this.handler=n.handler;this.opts={...a,body:f(t.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:A??RetryHandler[c],retryAfter:E??true,maxTimeout:d??30*1e3,minTimeout:h??500,timeoutFactor:g??2,maxRetries:l??5,methods:p??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:C??[500,502,503,504,429],errorCodes:m??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect(t=>{this.aborted=true;if(this.abort){this.abort(t)}else{this.reason=t}})}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(t,n,i){if(this.handler.onUpgrade){this.handler.onUpgrade(t,n,i)}}onConnect(t){if(this.aborted){t(this.reason)}else{this.abort=t}}onBodySent(t){if(this.handler.onBodySent)return this.handler.onBodySent(t)}static[c](t,{state:n,opts:i},a){const{statusCode:c,code:A,headers:l}=t;const{method:d,retryOptions:h}=i;const{maxRetries:f,minTimeout:g,maxTimeout:p,timeoutFactor:m,statusCodes:E,errorCodes:C,methods:I}=h;const{counter:y}=n;if(A&&A!=="UND_ERR_REQ_RETRY"&&!C.includes(A)){a(t);return}if(Array.isArray(I)&&!I.includes(d)){a(t);return}if(c!=null&&Array.isArray(E)&&!E.includes(c)){a(t);return}if(y>f){a(t);return}let B=l?.["retry-after"];if(B){B=Number(B);B=Number.isNaN(B)?calculateRetryAfterHeader(B):B*1e3}const Q=B>0?Math.min(B,p):Math.min(g*m**(y-1),p);setTimeout(()=>a(null),Q)}onHeaders(t,n,i,c){const l=d(n);this.retryCount+=1;if(t>=300){if(this.retryOpts.statusCodes.includes(t)===false){return this.handler.onHeaders(t,n,i,c)}else{this.abort(new A("Request failed",t,{headers:l,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(t!==206&&(this.start>0||t!==200)){this.abort(new A("server does not support the range header and the payload was partially consumed",t,{headers:l,data:{count:this.retryCount}}));return false}const n=h(l["content-range"]);if(!n){this.abort(new A("Content-Range mismatch",t,{headers:l,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==l.etag){this.abort(new A("ETag mismatch",t,{headers:l,data:{count:this.retryCount}}));return false}const c=validatePartialResponseContentLength(l,n,t,this.retryCount);if(c!=null){this.abort(c);return false}const{start:d,size:f,end:g=f-1}=n;a(this.start===d,"content-range mismatch");a(this.end==null||this.end===g,"content-range mismatch");this.resume=i;return true}if(this.end==null){if(t===206){const A=h(l["content-range"]);if(A==null){return this.handler.onHeaders(t,n,i,c)}const d=validatePartialResponseContentLength(l,A,t,this.retryCount);if(d!=null){this.abort(d);return false}const{start:f,size:g,end:p=g-1}=A;a(f!=null&&Number.isFinite(f),"content-range mismatch");a(p!=null&&Number.isFinite(p),"invalid content-length");this.start=f;this.end=p}if(this.end==null){const t=l["content-length"];this.end=t!=null?Number(t)-1:null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=i;this.etag=l.etag!=null?l.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(t,n,i,c)}const f=new A("Request failed",t,{headers:l,data:{count:this.retryCount}});this.abort(f);return false}onData(t){this.start+=t.length;return this.handler.onData(t)}onComplete(t){this.retryCount=0;return this.handler.onComplete(t)}onError(t){if(this.aborted||l(this.opts.body)){return this.handler.onError(t)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(t,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(t){if(t!=null||this.aborted||l(this.opts.body)){return this.handler.onError(t)}if(this.start!==0){const t={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){t["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...t}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(t){this.handler.onError(t)}}}}t.exports=RetryHandler},379:(t,n,i)=>{const{isIP:a}=i(7030);const{lookup:c}=i(610);const A=i(8155);const{InvalidArgumentError:l,InformationalError:d}=i(8707);const h=Math.pow(2,31)-1;class DNSInstance{#g=0;#p=0;#m=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(t){this.#g=t.maxTTL;this.#p=t.maxItems;this.dualStack=t.dualStack;this.affinity=t.affinity;this.lookup=t.lookup??this.#E;this.pick=t.pick??this.#C}get full(){return this.#m.size===this.#p}runLookup(t,n,i){const a=this.#m.get(t.hostname);if(a==null&&this.full){i(null,t.origin);return}const c={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...n.dns,maxTTL:this.#g,maxItems:this.#p};if(a==null){this.lookup(t,c,(n,a)=>{if(n||a==null||a.length===0){i(n??new d("No DNS entries found"));return}this.setRecords(t,a);const A=this.#m.get(t.hostname);const l=this.pick(t,A,c.affinity);let h;if(typeof l.port==="number"){h=`:${l.port}`}else if(t.port!==""){h=`:${t.port}`}else{h=""}i(null,`${t.protocol}//${l.family===6?`[${l.address}]`:l.address}${h}`)})}else{const A=this.pick(t,a,c.affinity);if(A==null){this.#m.delete(t.hostname);this.runLookup(t,n,i);return}let l;if(typeof A.port==="number"){l=`:${A.port}`}else if(t.port!==""){l=`:${t.port}`}else{l=""}i(null,`${t.protocol}//${A.family===6?`[${A.address}]`:A.address}${l}`)}}#E(t,n,i){c(t.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},(t,n)=>{if(t){return i(t)}const a=new Map;for(const t of n){a.set(`${t.address}:${t.family}`,t)}i(null,a.values())})}#C(t,n,i){let a=null;const{records:c,offset:A}=n;let l;if(this.dualStack){if(i==null){if(A==null||A===h){n.offset=0;i=4}else{n.offset++;i=(n.offset&1)===1?6:4}}if(c[i]!=null&&c[i].ips.length>0){l=c[i]}else{l=c[i===4?6:4]}}else{l=c[i]}if(l==null||l.ips.length===0){return a}if(l.offset==null||l.offset===h){l.offset=0}else{l.offset++}const d=l.offset%l.ips.length;a=l.ips[d]??null;if(a==null){return a}if(Date.now()-a.timestamp>a.ttl){l.ips.splice(d,1);return this.pick(t,n,i)}return a}setRecords(t,n){const i=Date.now();const a={records:{4:null,6:null}};for(const t of n){t.timestamp=i;if(typeof t.ttl==="number"){t.ttl=Math.min(t.ttl,this.#g)}else{t.ttl=this.#g}const n=a.records[t.family]??{ips:[]};n.ips.push(t);a.records[t.family]=n}this.#m.set(t.hostname,a)}getHandler(t,n){return new DNSDispatchHandler(this,t,n)}}class DNSDispatchHandler extends A{#I=null;#s=null;#t=null;#f=null;#y=null;constructor(t,{origin:n,handler:i,dispatch:a},c){super(i);this.#y=n;this.#f=i;this.#s={...c};this.#I=t;this.#t=a}onError(t){switch(t.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#I.dualStack){this.#I.runLookup(this.#y,this.#s,(t,n)=>{if(t){return this.#f.onError(t)}const i={...this.#s,origin:n};this.#t(i,this)});return}this.#f.onError(t);return}case"ENOTFOUND":this.#I.deleteRecord(this.#y);default:this.#f.onError(t);break}}}t.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!=="number"||t?.maxTTL<0)){throw new l("Invalid maxTTL. Must be a positive number")}if(t?.maxItems!=null&&(typeof t?.maxItems!=="number"||t?.maxItems<1)){throw new l("Invalid maxItems. Must be a positive number and greater than zero")}if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6){throw new l("Invalid affinity. Must be either 4 or 6")}if(t?.dualStack!=null&&typeof t?.dualStack!=="boolean"){throw new l("Invalid dualStack. Must be a boolean")}if(t?.lookup!=null&&typeof t?.lookup!=="function"){throw new l("Invalid lookup. Must be a function")}if(t?.pick!=null&&typeof t?.pick!=="function"){throw new l("Invalid pick. Must be a function")}const n=t?.dualStack??true;let i;if(n){i=t?.affinity??null}else{i=t?.affinity??4}const c={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:n,affinity:i,maxItems:t?.maxItems??Infinity};const A=new DNSInstance(c);return t=>function dnsInterceptor(n,i){const c=n.origin.constructor===URL?n.origin:new URL(n.origin);if(a(c.hostname)!==0){return t(n,i)}A.runLookup(c,n,(a,l)=>{if(a){return i.onError(a)}let d=null;d={...n,servername:c.hostname,origin:l,headers:{host:c.hostname,...n.headers}};t(d,A.getHandler({origin:c,dispatch:t,handler:i},n))});return true}}},8060:(t,n,i)=>{const a=i(3440);const{InvalidArgumentError:c,RequestAbortedError:A}=i(8707);const l=i(8155);class DumpHandler extends l{#B=1024*1024;#Q=null;#w=false;#S=false;#b=0;#R=null;#f=null;constructor({maxSize:t},n){super(n);if(t!=null&&(!Number.isFinite(t)||t<1)){throw new c("maxSize must be a number greater than 0")}this.#B=t??this.#B;this.#f=n}onConnect(t){this.#Q=t;this.#f.onConnect(this.#v.bind(this))}#v(t){this.#S=true;this.#R=t}onHeaders(t,n,i,c){const l=a.parseHeaders(n);const d=l["content-length"];if(d!=null&&d>this.#B){throw new A(`Response size (${d}) larger than maxSize (${this.#B})`)}if(this.#S){return true}return this.#f.onHeaders(t,n,i,c)}onError(t){if(this.#w){return}t=this.#R??t;this.#f.onError(t)}onData(t){this.#b=this.#b+t.length;if(this.#b>=this.#B){this.#w=true;if(this.#S){this.#f.onError(this.#R)}else{this.#f.onComplete([])}}return true}onComplete(t){if(this.#w){return}if(this.#S){this.#f.onError(this.reason);return}this.#f.onComplete(t)}}function createDumpInterceptor({maxSize:t}={maxSize:1024*1024}){return n=>function Intercept(i,a){const{dumpMaxSize:c=t}=i;const A=new DumpHandler({maxSize:c},a);return n(i,A)}}t.exports=createDumpInterceptor},5092:(t,n,i)=>{const a=i(8754);function createRedirectInterceptor({maxRedirections:t}){return n=>function Intercept(i,c){const{maxRedirections:A=t}=i;if(!A){return n(i,c)}const l=new a(n,A,i,c);i={...i,maxRedirections:0};return n(i,l)}}t.exports=createRedirectInterceptor},1514:(t,n,i)=>{const a=i(8754);t.exports=t=>{const n=t?.maxRedirections;return t=>function redirectInterceptor(i,c){const{maxRedirections:A=n,...l}=i;if(!A){return t(i,c)}const d=new a(t,A,i,c);return t(l,d)}}},2026:(t,n,i)=>{const a=i(7816);t.exports=t=>n=>function retryInterceptor(i,c){return n(i,new a({...i,retryOptions:{...t,...i.retryOptions}},{handler:c,dispatch:n}))}},2824:(t,n,i)=>{Object.defineProperty(n,"__esModule",{value:true});n.SPECIAL_HEADERS=n.HEADER_STATE=n.MINOR=n.MAJOR=n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS=n.TOKEN=n.STRICT_TOKEN=n.HEX=n.URL_CHAR=n.STRICT_URL_CHAR=n.USERINFO_CHARS=n.MARK=n.ALPHANUM=n.NUM=n.HEX_MAP=n.NUM_MAP=n.ALPHA=n.FINISH=n.H_METHOD_MAP=n.METHOD_MAP=n.METHODS_RTSP=n.METHODS_ICE=n.METHODS_HTTP=n.METHODS=n.LENIENT_FLAGS=n.FLAGS=n.TYPE=n.ERROR=void 0;const a=i(172);var c;(function(t){t[t["OK"]=0]="OK";t[t["INTERNAL"]=1]="INTERNAL";t[t["STRICT"]=2]="STRICT";t[t["LF_EXPECTED"]=3]="LF_EXPECTED";t[t["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";t[t["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";t[t["INVALID_METHOD"]=6]="INVALID_METHOD";t[t["INVALID_URL"]=7]="INVALID_URL";t[t["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";t[t["INVALID_VERSION"]=9]="INVALID_VERSION";t[t["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";t[t["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";t[t["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";t[t["INVALID_STATUS"]=13]="INVALID_STATUS";t[t["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";t[t["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";t[t["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";t[t["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";t[t["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";t[t["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";t[t["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";t[t["PAUSED"]=21]="PAUSED";t[t["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";t[t["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";t[t["USER"]=24]="USER"})(c=n.ERROR||(n.ERROR={}));var A;(function(t){t[t["BOTH"]=0]="BOTH";t[t["REQUEST"]=1]="REQUEST";t[t["RESPONSE"]=2]="RESPONSE"})(A=n.TYPE||(n.TYPE={}));var l;(function(t){t[t["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";t[t["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";t[t["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";t[t["CHUNKED"]=8]="CHUNKED";t[t["UPGRADE"]=16]="UPGRADE";t[t["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";t[t["SKIPBODY"]=64]="SKIPBODY";t[t["TRAILING"]=128]="TRAILING";t[t["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(l=n.FLAGS||(n.FLAGS={}));var d;(function(t){t[t["HEADERS"]=1]="HEADERS";t[t["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";t[t["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(d=n.LENIENT_FLAGS||(n.LENIENT_FLAGS={}));var h;(function(t){t[t["DELETE"]=0]="DELETE";t[t["GET"]=1]="GET";t[t["HEAD"]=2]="HEAD";t[t["POST"]=3]="POST";t[t["PUT"]=4]="PUT";t[t["CONNECT"]=5]="CONNECT";t[t["OPTIONS"]=6]="OPTIONS";t[t["TRACE"]=7]="TRACE";t[t["COPY"]=8]="COPY";t[t["LOCK"]=9]="LOCK";t[t["MKCOL"]=10]="MKCOL";t[t["MOVE"]=11]="MOVE";t[t["PROPFIND"]=12]="PROPFIND";t[t["PROPPATCH"]=13]="PROPPATCH";t[t["SEARCH"]=14]="SEARCH";t[t["UNLOCK"]=15]="UNLOCK";t[t["BIND"]=16]="BIND";t[t["REBIND"]=17]="REBIND";t[t["UNBIND"]=18]="UNBIND";t[t["ACL"]=19]="ACL";t[t["REPORT"]=20]="REPORT";t[t["MKACTIVITY"]=21]="MKACTIVITY";t[t["CHECKOUT"]=22]="CHECKOUT";t[t["MERGE"]=23]="MERGE";t[t["M-SEARCH"]=24]="M-SEARCH";t[t["NOTIFY"]=25]="NOTIFY";t[t["SUBSCRIBE"]=26]="SUBSCRIBE";t[t["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";t[t["PATCH"]=28]="PATCH";t[t["PURGE"]=29]="PURGE";t[t["MKCALENDAR"]=30]="MKCALENDAR";t[t["LINK"]=31]="LINK";t[t["UNLINK"]=32]="UNLINK";t[t["SOURCE"]=33]="SOURCE";t[t["PRI"]=34]="PRI";t[t["DESCRIBE"]=35]="DESCRIBE";t[t["ANNOUNCE"]=36]="ANNOUNCE";t[t["SETUP"]=37]="SETUP";t[t["PLAY"]=38]="PLAY";t[t["PAUSE"]=39]="PAUSE";t[t["TEARDOWN"]=40]="TEARDOWN";t[t["GET_PARAMETER"]=41]="GET_PARAMETER";t[t["SET_PARAMETER"]=42]="SET_PARAMETER";t[t["REDIRECT"]=43]="REDIRECT";t[t["RECORD"]=44]="RECORD";t[t["FLUSH"]=45]="FLUSH"})(h=n.METHODS||(n.METHODS={}));n.METHODS_HTTP=[h.DELETE,h.GET,h.HEAD,h.POST,h.PUT,h.CONNECT,h.OPTIONS,h.TRACE,h.COPY,h.LOCK,h.MKCOL,h.MOVE,h.PROPFIND,h.PROPPATCH,h.SEARCH,h.UNLOCK,h.BIND,h.REBIND,h.UNBIND,h.ACL,h.REPORT,h.MKACTIVITY,h.CHECKOUT,h.MERGE,h["M-SEARCH"],h.NOTIFY,h.SUBSCRIBE,h.UNSUBSCRIBE,h.PATCH,h.PURGE,h.MKCALENDAR,h.LINK,h.UNLINK,h.PRI,h.SOURCE];n.METHODS_ICE=[h.SOURCE];n.METHODS_RTSP=[h.OPTIONS,h.DESCRIBE,h.ANNOUNCE,h.SETUP,h.PLAY,h.PAUSE,h.TEARDOWN,h.GET_PARAMETER,h.SET_PARAMETER,h.REDIRECT,h.RECORD,h.FLUSH,h.GET,h.POST];n.METHOD_MAP=a.enumToMap(h);n.H_METHOD_MAP={};Object.keys(n.METHOD_MAP).forEach(t=>{if(/^H/.test(t)){n.H_METHOD_MAP[t]=n.METHOD_MAP[t]}});var f;(function(t){t[t["SAFE"]=0]="SAFE";t[t["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";t[t["UNSAFE"]=2]="UNSAFE"})(f=n.FINISH||(n.FINISH={}));n.ALPHA=[];for(let t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++){n.ALPHA.push(String.fromCharCode(t));n.ALPHA.push(String.fromCharCode(t+32))}n.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};n.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};n.NUM=["0","1","2","3","4","5","6","7","8","9"];n.ALPHANUM=n.ALPHA.concat(n.NUM);n.MARK=["-","_",".","!","~","*","'","(",")"];n.USERINFO_CHARS=n.ALPHANUM.concat(n.MARK).concat(["%",";",":","&","=","+","$",","]);n.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(n.ALPHANUM);n.URL_CHAR=n.STRICT_URL_CHAR.concat(["\t","\f"]);for(let t=128;t<=255;t++){n.URL_CHAR.push(t)}n.HEX=n.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);n.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(n.ALPHANUM);n.TOKEN=n.STRICT_TOKEN.concat([" "]);n.HEADER_CHARS=["\t"];for(let t=32;t<=255;t++){if(t!==127){n.HEADER_CHARS.push(t)}}n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS.filter(t=>t!==44);n.MAJOR=n.NUM_MAP;n.MINOR=n.MAJOR;var g;(function(t){t[t["GENERAL"]=0]="GENERAL";t[t["CONNECTION"]=1]="CONNECTION";t[t["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";t[t["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";t[t["UPGRADE"]=4]="UPGRADE";t[t["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";t[t["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";t[t["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";t[t["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=n.HEADER_STATE||(n.HEADER_STATE={}));n.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},3870:(t,n,i)=>{const{Buffer:a}=i(4573);t.exports=a.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaH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BaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgN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kH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0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AgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYN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gAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkE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BAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(t,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.enumToMap=void 0;function enumToMap(t){const n={};Object.keys(t).forEach(i=>{const a=t[i];if(typeof a==="number"){n[i]=a}});return n}n.enumToMap=enumToMap},7501:(t,n,i)=>{const{kClients:a}=i(6443);const c=i(7405);const{kAgent:A,kMockAgentSet:l,kMockAgentGet:d,kDispatches:h,kIsMockActive:f,kNetConnect:g,kGetNetConnect:p,kOptions:m,kFactory:E}=i(1117);const C=i(7365);const I=i(4004);const{matchValue:y,buildMockOptions:B}=i(3397);const{InvalidArgumentError:Q,UndiciError:w}=i(8707);const S=i(883);const b=i(1529);const R=i(6142);class MockAgent extends S{constructor(t){super(t);this[g]=true;this[f]=true;if(t?.agent&&typeof t.agent.dispatch!=="function"){throw new Q("Argument opts.agent must implement Agent")}const n=t?.agent?t.agent:new c(t);this[A]=n;this[a]=n[a];this[m]=B(t)}get(t){let n=this[d](t);if(!n){n=this[E](t);this[l](t,n)}return n}dispatch(t,n){this.get(t.origin);return this[A].dispatch(t,n)}async close(){await this[A].close();this[a].clear()}deactivate(){this[f]=false}activate(){this[f]=true}enableNetConnect(t){if(typeof t==="string"||typeof t==="function"||t instanceof RegExp){if(Array.isArray(this[g])){this[g].push(t)}else{this[g]=[t]}}else if(typeof t==="undefined"){this[g]=true}else{throw new Q("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[f]}[l](t,n){this[a].set(t,n)}[E](t){const n=Object.assign({agent:this},this[m]);return this[m]&&this[m].connections===1?new C(t,n):new I(t,n)}[d](t){const n=this[a].get(t);if(n){return n}if(typeof t!=="string"){const n=this[E]("http://localhost:9999");this[l](t,n);return n}for(const[n,i]of Array.from(this[a])){if(i&&typeof n!=="string"&&y(n,t)){const n=this[E](t);this[l](t,n);n[h]=i[h];return n}}}[p](){return this[g]}pendingInterceptors(){const t=this[a];return Array.from(t.entries()).flatMap(([t,n])=>n[h].map(n=>({...n,origin:t}))).filter(({pending:t})=>t)}assertNoPendingInterceptors({pendingInterceptorsFormatter:t=new R}={}){const n=this.pendingInterceptors();if(n.length===0){return}const i=new b("interceptor","interceptors").pluralize(n.length);throw new w(`\n${i.count} ${i.noun} ${i.is} pending:\n\n${t.format(n)}\n`.trim())}}t.exports=MockAgent},7365:(t,n,i)=>{const{promisify:a}=i(7975);const c=i(3701);const{buildMockDispatch:A}=i(3397);const{kDispatches:l,kMockAgent:d,kClose:h,kOriginalClose:f,kOrigin:g,kOriginalDispatch:p,kConnected:m}=i(1117);const{MockInterceptor:E}=i(1511);const C=i(6443);const{InvalidArgumentError:I}=i(8707);class MockClient extends c{constructor(t,n){super(t,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new I("Argument opts.agent must implement Agent")}this[d]=n.agent;this[g]=t;this[l]=[];this[m]=1;this[p]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=A.call(this);this.close=this[h]}get[C.kConnected](){return this[m]}intercept(t){return new E(t,this[l])}async[h](){await a(this[f])();this[m]=0;this[d][C.kClients].delete(this[g])}}t.exports=MockClient},2429:(t,n,i)=>{const{UndiciError:a}=i(8707);const c=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends a{constructor(t){super(t);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=t||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](t){return t&&t[c]===true}[c]=true}t.exports={MockNotMatchedError:MockNotMatchedError}},1511:(t,n,i)=>{const{getResponseData:a,buildKey:c,addMockDispatch:A}=i(3397);const{kDispatches:l,kDispatchKey:d,kDefaultHeaders:h,kDefaultTrailers:f,kContentLength:g,kMockDispatch:p}=i(1117);const{InvalidArgumentError:m}=i(8707);const{buildURL:E}=i(3440);class MockScope{constructor(t){this[p]=t}delay(t){if(typeof t!=="number"||!Number.isInteger(t)||t<=0){throw new m("waitInMs must be a valid integer > 0")}this[p].delay=t;return this}persist(){this[p].persist=true;return this}times(t){if(typeof t!=="number"||!Number.isInteger(t)||t<=0){throw new m("repeatTimes must be a valid integer > 0")}this[p].times=t;return this}}class MockInterceptor{constructor(t,n){if(typeof t!=="object"){throw new m("opts must be an object")}if(typeof t.path==="undefined"){throw new m("opts.path must be defined")}if(typeof t.method==="undefined"){t.method="GET"}if(typeof t.path==="string"){if(t.query){t.path=E(t.path,t.query)}else{const n=new URL(t.path,"data://");t.path=n.pathname+n.search}}if(typeof t.method==="string"){t.method=t.method.toUpperCase()}this[d]=c(t);this[l]=n;this[h]={};this[f]={};this[g]=false}createMockScopeDispatchData({statusCode:t,data:n,responseOptions:i}){const c=a(n);const A=this[g]?{"content-length":c.length}:{};const l={...this[h],...A,...i.headers};const d={...this[f],...i.trailers};return{statusCode:t,data:n,headers:l,trailers:d}}validateReplyParameters(t){if(typeof t.statusCode==="undefined"){throw new m("statusCode must be defined")}if(typeof t.responseOptions!=="object"||t.responseOptions===null){throw new m("responseOptions must be an object")}}reply(t){if(typeof t==="function"){const wrappedDefaultsCallback=n=>{const i=t(n);if(typeof i!=="object"||i===null){throw new m("reply options callback must return an object")}const a={data:"",responseOptions:{},...i};this.validateReplyParameters(a);return{...this.createMockScopeDispatchData(a)}};const n=A(this[l],this[d],wrappedDefaultsCallback);return new MockScope(n)}const n={statusCode:t,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(n);const i=this.createMockScopeDispatchData(n);const a=A(this[l],this[d],i);return new MockScope(a)}replyWithError(t){if(typeof t==="undefined"){throw new m("error must be defined")}const n=A(this[l],this[d],{error:t});return new MockScope(n)}defaultReplyHeaders(t){if(typeof t==="undefined"){throw new m("headers must be defined")}this[h]=t;return this}defaultReplyTrailers(t){if(typeof t==="undefined"){throw new m("trailers must be defined")}this[f]=t;return this}replyContentLength(){this[g]=true;return this}}t.exports.MockInterceptor=MockInterceptor;t.exports.MockScope=MockScope},4004:(t,n,i)=>{const{promisify:a}=i(7975);const c=i(628);const{buildMockDispatch:A}=i(3397);const{kDispatches:l,kMockAgent:d,kClose:h,kOriginalClose:f,kOrigin:g,kOriginalDispatch:p,kConnected:m}=i(1117);const{MockInterceptor:E}=i(1511);const C=i(6443);const{InvalidArgumentError:I}=i(8707);class MockPool extends c{constructor(t,n){super(t,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new I("Argument opts.agent must implement Agent")}this[d]=n.agent;this[g]=t;this[l]=[];this[m]=1;this[p]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=A.call(this);this.close=this[h]}get[C.kConnected](){return this[m]}intercept(t){return new E(t,this[l])}async[h](){await a(this[f])();this[m]=0;this[d][C.kClients].delete(this[g])}}t.exports=MockPool},1117:t=>{t.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(t,n,i)=>{const{MockNotMatchedError:a}=i(2429);const{kDispatches:c,kMockAgent:A,kOriginalDispatch:l,kOrigin:d,kGetNetConnect:h}=i(1117);const{buildURL:f}=i(3440);const{STATUS_CODES:g}=i(7067);const{types:{isPromise:p}}=i(7975);function matchValue(t,n){if(typeof t==="string"){return t===n}if(t instanceof RegExp){return t.test(n)}if(typeof t==="function"){return t(n)===true}return false}function lowerCaseEntries(t){return Object.fromEntries(Object.entries(t).map(([t,n])=>[t.toLocaleLowerCase(),n]))}function getHeaderByName(t,n){if(Array.isArray(t)){for(let i=0;i!t).filter(({path:t})=>matchValue(safeUrl(t),c));if(A.length===0){throw new a(`Mock dispatch not matched for path '${c}'`)}A=A.filter(({method:t})=>matchValue(t,n.method));if(A.length===0){throw new a(`Mock dispatch not matched for method '${n.method}' on path '${c}'`)}A=A.filter(({body:t})=>typeof t!=="undefined"?matchValue(t,n.body):true);if(A.length===0){throw new a(`Mock dispatch not matched for body '${n.body}' on path '${c}'`)}A=A.filter(t=>matchHeaders(t,n.headers));if(A.length===0){const t=typeof n.headers==="object"?JSON.stringify(n.headers):n.headers;throw new a(`Mock dispatch not matched for headers '${t}' on path '${c}'`)}return A[0]}function addMockDispatch(t,n,i){const a={timesInvoked:0,times:1,persist:false,consumed:false};const c=typeof i==="function"?{callback:i}:{...i};const A={...a,...n,pending:true,data:{error:null,...c}};t.push(A);return A}function deleteMockDispatch(t,n){const i=t.findIndex(t=>{if(!t.consumed){return false}return matchKey(t,n)});if(i!==-1){t.splice(i,1)}}function buildKey(t){const{path:n,method:i,body:a,headers:c,query:A}=t;return{path:n,method:i,body:a,headers:c,query:A}}function generateKeyValues(t){const n=Object.keys(t);const i=[];for(let a=0;a=C;a.pending=E0){setTimeout(()=>{handleReply(this[c])},g)}else{handleReply(this[c])}function handleReply(a,c=l){const f=Array.isArray(t.headers)?buildHeadersFromArray(t.headers):t.headers;const g=typeof c==="function"?c({...t,headers:f}):c;if(p(g)){g.then(t=>handleReply(a,t));return}const m=getResponseData(g);const E=generateKeyValues(d);const C=generateKeyValues(h);n.onConnect?.(t=>n.onError(t),null);n.onHeaders?.(A,E,resume,getStatusText(A));n.onData?.(Buffer.from(m));n.onComplete?.(C);deleteMockDispatch(a,i)}function resume(){}return true}function buildMockDispatch(){const t=this[A];const n=this[d];const i=this[l];return function dispatch(c,A){if(t.isMockActive){try{mockDispatch.call(this,c,A)}catch(l){if(l instanceof a){const d=t[h]();if(d===false){throw new a(`${l.message}: subsequent request to origin ${n} was not allowed (net.connect disabled)`)}if(checkNetConnect(d,n)){i.call(this,c,A)}else{throw new a(`${l.message}: subsequent request to origin ${n} was not allowed (net.connect is not enabled for this origin)`)}}else{throw l}}}else{i.call(this,c,A)}}}function checkNetConnect(t,n){const i=new URL(n);if(t===true){return true}else if(Array.isArray(t)&&t.some(t=>matchValue(t,i.host))){return true}return false}function buildMockOptions(t){if(t){const{agent:n,...i}=t;return i}}t.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(t,n,i)=>{const{Transform:a}=i(7075);const{Console:c}=i(7540);const A=process.versions.icu?"✅":"Y ";const l=process.versions.icu?"❌":"N ";t.exports=class PendingInterceptorsFormatter{constructor({disableColors:t}={}){this.transform=new a({transform(t,n,i){i(null,t)}});this.logger=new c({stdout:this.transform,inspectOptions:{colors:!t&&!process.env.CI}})}format(t){const n=t.map(({method:t,path:n,data:{statusCode:i},persist:a,times:c,timesInvoked:d,origin:h})=>({Method:t,Origin:h,Path:n,"Status code":i,Persistent:a?A:l,Invocations:d,Remaining:a?Infinity:c-d}));this.logger.table(n);return this.transform.read().toString()}}},1529:t=>{const n={pronoun:"it",is:"is",was:"was",this:"this"};const i={pronoun:"they",is:"are",was:"were",this:"these"};t.exports=class Pluralizer{constructor(t,n){this.singular=t;this.plural=n}pluralize(t){const a=t===1;const c=a?n:i;const A=a?this.singular:this.plural;return{...c,count:t,noun:A}}}},6603:t=>{let n=0;const i=1e3;const a=(i>>1)-1;let c;const A=Symbol("kFastTimer");const l=[];const d=-2;const h=-1;const f=0;const g=1;function onTick(){n+=a;let t=0;let i=l.length;while(t=c._idleStart+c._idleTimeout){c._state=h;c._idleStart=-1;c._onTimeout(c._timerArg)}if(c._state===h){c._state=d;if(--i!==0){l[t]=l[i]}}else{++t}}l.length=i;if(l.length!==0){refreshTimeout()}}function refreshTimeout(){if(c){c.refresh()}else{clearTimeout(c);c=setTimeout(onTick,a);if(c.unref){c.unref()}}}class FastTimer{[A]=true;_state=d;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(t,n,i){this._onTimeout=t;this._idleTimeout=n;this._timerArg=i;this.refresh()}refresh(){if(this._state===d){l.push(this)}if(!c||l.length===1){refreshTimeout()}this._state=f}clear(){this._state=h;this._idleStart=-1}}t.exports={setTimeout(t,n,a){return n<=i?setTimeout(t,n,a):new FastTimer(t,n,a)},clearTimeout(t){if(t[A]){t.clear()}else{clearTimeout(t)}},setFastTimeout(t,n,i){return new FastTimer(t,n,i)},clearFastTimeout(t){t.clear()},now(){return n},tick(t=0){n+=t-i+1;onTick();onTick()},reset(){n=0;l.length=0;clearTimeout(c);c=null},kFastTimer:A}},9634:(t,n,i)=>{const{kConstruct:a}=i(109);const{urlEquals:c,getFieldValues:A}=i(6798);const{kEnumerableProperty:l,isDisturbed:d}=i(3440);const{webidl:h}=i(5893);const{Response:f,cloneResponse:g,fromInnerResponse:p}=i(9051);const{Request:m,fromInnerRequest:E}=i(9967);const{kState:C}=i(3627);const{fetching:I}=i(4398);const{urlIsHttpHttpsScheme:y,createDeferredPromise:B,readAllBytes:Q}=i(3168);const w=i(4589);class Cache{#k;constructor(){if(arguments[0]!==a){h.illegalConstructor()}h.util.markAsUncloneable(this);this.#k=arguments[1]}async match(t,n={}){h.brandCheck(this,Cache);const i="Cache.match";h.argumentLengthCheck(arguments,1,i);t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");const a=this.#D(t,n,1);if(a.length===0){return}return a[0]}async matchAll(t=undefined,n={}){h.brandCheck(this,Cache);const i="Cache.matchAll";if(t!==undefined)t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");return this.#D(t,n)}async add(t){h.brandCheck(this,Cache);const n="Cache.add";h.argumentLengthCheck(arguments,1,n);t=h.converters.RequestInfo(t,n,"request");const i=[t];const a=this.addAll(i);return await a}async addAll(t){h.brandCheck(this,Cache);const n="Cache.addAll";h.argumentLengthCheck(arguments,1,n);const i=[];const a=[];for(let i of t){if(i===undefined){throw h.errors.conversionFailed({prefix:n,argument:"Argument 1",types:["undefined is not allowed"]})}i=h.converters.RequestInfo(i);if(typeof i==="string"){continue}const t=i[C];if(!y(t.url)||t.method!=="GET"){throw h.errors.exception({header:n,message:"Expected http/s scheme when method is not GET."})}}const c=[];for(const l of t){const t=new m(l)[C];if(!y(t.url)){throw h.errors.exception({header:n,message:"Expected http/s scheme."})}t.initiator="fetch";t.destination="subresource";a.push(t);const d=B();c.push(I({request:t,processResponse(t){if(t.type==="error"||t.status===206||t.status<200||t.status>299){d.reject(h.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(t.headersList.contains("vary")){const n=A(t.headersList.get("vary"));for(const t of n){if(t==="*"){d.reject(h.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const t of c){t.abort()}return}}}},processResponseEndOfBody(t){if(t.aborted){d.reject(new DOMException("aborted","AbortError"));return}d.resolve(t)}}));i.push(d.promise)}const l=Promise.all(i);const d=await l;const f=[];let g=0;for(const t of d){const n={type:"put",request:a[g],response:t};f.push(n);g++}const p=B();let E=null;try{this.#T(f)}catch(t){E=t}queueMicrotask(()=>{if(E===null){p.resolve(undefined)}else{p.reject(E)}});return p.promise}async put(t,n){h.brandCheck(this,Cache);const i="Cache.put";h.argumentLengthCheck(arguments,2,i);t=h.converters.RequestInfo(t,i,"request");n=h.converters.Response(n,i,"response");let a=null;if(t instanceof m){a=t[C]}else{a=new m(t)[C]}if(!y(a.url)||a.method!=="GET"){throw h.errors.exception({header:i,message:"Expected an http/s scheme when method is not GET"})}const c=n[C];if(c.status===206){throw h.errors.exception({header:i,message:"Got 206 status"})}if(c.headersList.contains("vary")){const t=A(c.headersList.get("vary"));for(const n of t){if(n==="*"){throw h.errors.exception({header:i,message:"Got * vary field value"})}}}if(c.body&&(d(c.body.stream)||c.body.stream.locked)){throw h.errors.exception({header:i,message:"Response body is locked or disturbed"})}const l=g(c);const f=B();if(c.body!=null){const t=c.body.stream;const n=t.getReader();Q(n).then(f.resolve,f.reject)}else{f.resolve(undefined)}const p=[];const E={type:"put",request:a,response:l};p.push(E);const I=await f.promise;if(l.body!=null){l.body.source=I}const w=B();let S=null;try{this.#T(p)}catch(t){S=t}queueMicrotask(()=>{if(S===null){w.resolve()}else{w.reject(S)}});return w.promise}async delete(t,n={}){h.brandCheck(this,Cache);const i="Cache.delete";h.argumentLengthCheck(arguments,1,i);t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");let a=null;if(t instanceof m){a=t[C];if(a.method!=="GET"&&!n.ignoreMethod){return false}}else{w(typeof t==="string");a=new m(t)[C]}const c=[];const A={type:"delete",request:a,options:n};c.push(A);const l=B();let d=null;let f;try{f=this.#T(c)}catch(t){d=t}queueMicrotask(()=>{if(d===null){l.resolve(!!f?.length)}else{l.reject(d)}});return l.promise}async keys(t=undefined,n={}){h.brandCheck(this,Cache);const i="Cache.keys";if(t!==undefined)t=h.converters.RequestInfo(t,i,"request");n=h.converters.CacheQueryOptions(n,i,"options");let a=null;if(t!==undefined){if(t instanceof m){a=t[C];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof t==="string"){a=new m(t)[C]}}const c=B();const A=[];if(t===undefined){for(const t of this.#k){A.push(t[0])}}else{const t=this.#N(a,n);for(const n of t){A.push(n[0])}}queueMicrotask(()=>{const t=[];for(const n of A){const i=E(n,(new AbortController).signal,"immutable");t.push(i)}c.resolve(Object.freeze(t))});return c.promise}#T(t){const n=this.#k;const i=[...n];const a=[];const c=[];try{for(const i of t){if(i.type!=="delete"&&i.type!=="put"){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(i.type==="delete"&&i.response!=null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#N(i.request,i.options,a).length){throw new DOMException("???","InvalidStateError")}let t;if(i.type==="delete"){t=this.#N(i.request,i.options);if(t.length===0){return[]}for(const i of t){const t=n.indexOf(i);w(t!==-1);n.splice(t,1)}}else if(i.type==="put"){if(i.response==null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const c=i.request;if(!y(c.url)){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(c.method!=="GET"){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(i.options!=null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}t=this.#N(i.request);for(const i of t){const t=n.indexOf(i);w(t!==-1);n.splice(t,1)}n.push([i.request,i.response]);a.push([i.request,i.response])}c.push([i.request,i.response])}return c}catch(t){this.#k.length=0;this.#k=i;throw t}}#N(t,n,i){const a=[];const c=i??this.#k;for(const i of c){const[c,A]=i;if(this.#M(t,c,A,n)){a.push(i)}}return a}#M(t,n,i=null,a){const l=new URL(t.url);const d=new URL(n.url);if(a?.ignoreSearch){d.search="";l.search=""}if(!c(l,d,true)){return false}if(i==null||a?.ignoreVary||!i.headersList.contains("vary")){return true}const h=A(i.headersList.get("vary"));for(const i of h){if(i==="*"){return false}const a=n.headersList.get(i);const c=t.headersList.get(i);if(a!==c){return false}}return true}#D(t,n,i=Infinity){let a=null;if(t!==undefined){if(t instanceof m){a=t[C];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof t==="string"){a=new m(t)[C]}}const c=[];if(t===undefined){for(const t of this.#k){c.push(t[1])}}else{const t=this.#N(a,n);for(const n of t){c.push(n[1])}}const A=[];for(const t of c){const n=p(t,"immutable");A.push(n.clone());if(A.length>=i){break}}return Object.freeze(A)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:l,matchAll:l,add:l,addAll:l,put:l,delete:l,keys:l});const S=[{key:"ignoreSearch",converter:h.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:h.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:h.converters.boolean,defaultValue:()=>false}];h.converters.CacheQueryOptions=h.dictionaryConverter(S);h.converters.MultiCacheQueryOptions=h.dictionaryConverter([...S,{key:"cacheName",converter:h.converters.DOMString}]);h.converters.Response=h.interfaceConverter(f);h.converters["sequence"]=h.sequenceConverter(h.converters.RequestInfo);t.exports={Cache:Cache}},3245:(t,n,i)=>{const{kConstruct:a}=i(109);const{Cache:c}=i(9634);const{webidl:A}=i(5893);const{kEnumerableProperty:l}=i(3440);class CacheStorage{#F=new Map;constructor(){if(arguments[0]!==a){A.illegalConstructor()}A.util.markAsUncloneable(this)}async match(t,n={}){A.brandCheck(this,CacheStorage);A.argumentLengthCheck(arguments,1,"CacheStorage.match");t=A.converters.RequestInfo(t);n=A.converters.MultiCacheQueryOptions(n);if(n.cacheName!=null){if(this.#F.has(n.cacheName)){const i=this.#F.get(n.cacheName);const A=new c(a,i);return await A.match(t,n)}}else{for(const i of this.#F.values()){const A=new c(a,i);const l=await A.match(t,n);if(l!==undefined){return l}}}}async has(t){A.brandCheck(this,CacheStorage);const n="CacheStorage.has";A.argumentLengthCheck(arguments,1,n);t=A.converters.DOMString(t,n,"cacheName");return this.#F.has(t)}async open(t){A.brandCheck(this,CacheStorage);const n="CacheStorage.open";A.argumentLengthCheck(arguments,1,n);t=A.converters.DOMString(t,n,"cacheName");if(this.#F.has(t)){const n=this.#F.get(t);return new c(a,n)}const i=[];this.#F.set(t,i);return new c(a,i)}async delete(t){A.brandCheck(this,CacheStorage);const n="CacheStorage.delete";A.argumentLengthCheck(arguments,1,n);t=A.converters.DOMString(t,n,"cacheName");return this.#F.delete(t)}async keys(){A.brandCheck(this,CacheStorage);const t=this.#F.keys();return[...t]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:l,has:l,open:l,delete:l,keys:l});t.exports={CacheStorage:CacheStorage}},109:(t,n,i)=>{t.exports={kConstruct:i(6443).kConstruct}},6798:(t,n,i)=>{const a=i(4589);const{URLSerializer:c}=i(1900);const{isValidHeaderName:A}=i(3168);function urlEquals(t,n,i=false){const a=c(t,i);const A=c(n,i);return a===A}function getFieldValues(t){a(t!==null);const n=[];for(let i of t.split(",")){i=i.trim();if(A(i)){n.push(i)}}return n}t.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:t=>{const n=1024;const i=4096;t.exports={maxAttributeValueSize:n,maxNameValuePairSize:i}},9061:(t,n,i)=>{const{parseSetCookie:a}=i(1978);const{stringify:c}=i(7797);const{webidl:A}=i(5893);const{Headers:l}=i(660);function getCookies(t){A.argumentLengthCheck(arguments,1,"getCookies");A.brandCheck(t,l,{strict:false});const n=t.get("cookie");const i={};if(!n){return i}for(const t of n.split(";")){const[n,...a]=t.split("=");i[n.trim()]=a.join("=")}return i}function deleteCookie(t,n,i){A.brandCheck(t,l,{strict:false});const a="deleteCookie";A.argumentLengthCheck(arguments,2,a);n=A.converters.DOMString(n,a,"name");i=A.converters.DeleteCookieAttributes(i);setCookie(t,{name:n,value:"",expires:new Date(0),...i})}function getSetCookies(t){A.argumentLengthCheck(arguments,1,"getSetCookies");A.brandCheck(t,l,{strict:false});const n=t.getSetCookie();if(!n){return[]}return n.map(t=>a(t))}function setCookie(t,n){A.argumentLengthCheck(arguments,2,"setCookie");A.brandCheck(t,l,{strict:false});n=A.converters.Cookie(n);const i=c(n);if(i){t.append("Set-Cookie",i)}}A.converters.DeleteCookieAttributes=A.dictionaryConverter([{converter:A.nullableConverter(A.converters.DOMString),key:"path",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.DOMString),key:"domain",defaultValue:()=>null}]);A.converters.Cookie=A.dictionaryConverter([{converter:A.converters.DOMString,key:"name"},{converter:A.converters.DOMString,key:"value"},{converter:A.nullableConverter(t=>{if(typeof t==="number"){return A.converters["unsigned long long"](t)}return new Date(t)}),key:"expires",defaultValue:()=>null},{converter:A.nullableConverter(A.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.DOMString),key:"path",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.boolean),key:"secure",defaultValue:()=>null},{converter:A.nullableConverter(A.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:A.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:A.sequenceConverter(A.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);t.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(t,n,i)=>{const{maxNameValuePairSize:a,maxAttributeValueSize:c}=i(1276);const{isCTLExcludingHtab:A}=i(7797);const{collectASequenceOfCodePointsFast:l}=i(1900);const d=i(4589);function parseSetCookie(t){if(A(t)){return null}let n="";let i="";let c="";let d="";if(t.includes(";")){const a={position:0};n=l(";",t,a);i=t.slice(a.position)}else{n=t}if(!n.includes("=")){d=n}else{const t={position:0};c=l("=",n,t);d=n.slice(t.position+1)}c=c.trim();d=d.trim();if(c.length+d.length>a){return null}return{name:c,value:d,...parseUnparsedAttributes(i)}}function parseUnparsedAttributes(t,n={}){if(t.length===0){return n}d(t[0]===";");t=t.slice(1);let i="";if(t.includes(";")){i=l(";",t,{position:0});t=t.slice(i.length)}else{i=t;t=""}let a="";let A="";if(i.includes("=")){const t={position:0};a=l("=",i,t);A=i.slice(t.position+1)}else{a=i}a=a.trim();A=A.trim();if(A.length>c){return parseUnparsedAttributes(t,n)}const h=a.toLowerCase();if(h==="expires"){const t=new Date(A);n.expires=t}else if(h==="max-age"){const i=A.charCodeAt(0);if((i<48||i>57)&&A[0]!=="-"){return parseUnparsedAttributes(t,n)}if(!/^\d+$/.test(A)){return parseUnparsedAttributes(t,n)}const a=Number(A);n.maxAge=a}else if(h==="domain"){let t=A;if(t[0]==="."){t=t.slice(1)}t=t.toLowerCase();n.domain=t}else if(h==="path"){let t="";if(A.length===0||A[0]!=="/"){t="/"}else{t=A}n.path=t}else if(h==="secure"){n.secure=true}else if(h==="httponly"){n.httpOnly=true}else if(h==="samesite"){const t=A.toLowerCase();if(t==="none"){n.sameSite="None"}else if(t==="strict"){n.sameSite="Strict"}else if(t==="lax"){n.sameSite="Lax"}}else{n.unparsed??=[];n.unparsed.push(`${a}=${A}`)}return parseUnparsedAttributes(t,n)}t.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:t=>{function isCTLExcludingHtab(t){for(let n=0;n=0&&i<=8||i>=10&&i<=31||i===127){return true}}return false}function validateCookieName(t){for(let n=0;n126||i===34||i===40||i===41||i===60||i===62||i===64||i===44||i===59||i===58||i===92||i===47||i===91||i===93||i===63||i===61||i===123||i===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(t){let n=t.length;let i=0;if(t[0]==='"'){if(n===1||t[n-1]!=='"'){throw new Error("Invalid cookie value")}--n;++i}while(i126||n===34||n===44||n===59||n===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(t){for(let n=0;n126||i===59){throw new Error("Invalid cookie path")}}}function isLetterOrDigit(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function validateCookieDomain(t){if(t===" "){return}if(t.length>255){throw new Error("Invalid cookie domain")}let n=0;for(let i=0;i63){throw new Error("Invalid cookie domain")}}if(n===0||t.charCodeAt(t.length-1)===45){throw new Error("Invalid cookie domain")}}const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const a=Array(61).fill(0).map((t,n)=>n.toString().padStart(2,"0"));function toIMFDate(t){if(typeof t==="number"){t=new Date(t)}return`${n[t.getUTCDay()]}, ${a[t.getUTCDate()]} ${i[t.getUTCMonth()]} ${t.getUTCFullYear()} ${a[t.getUTCHours()]}:${a[t.getUTCMinutes()]}:${a[t.getUTCSeconds()]} GMT`}function validateCookieMaxAge(t){if(t<0){throw new Error("Invalid cookie max-age")}}function stringify(t){if(t.name.length===0){return null}validateCookieName(t.name);validateCookieValue(t.value);const n=[`${t.name}=${t.value}`];if(t.name.startsWith("__Secure-")){t.secure=true}if(t.name.startsWith("__Host-")){t.secure=true;t.domain=null;t.path="/"}if(t.secure){n.push("Secure")}if(t.httpOnly){n.push("HttpOnly")}if(typeof t.maxAge==="number"){validateCookieMaxAge(t.maxAge);n.push(`Max-Age=${t.maxAge}`)}if(t.domain){validateCookieDomain(t.domain);n.push(`Domain=${t.domain}`)}if(t.path){validateCookiePath(t.path);n.push(`Path=${t.path}`)}if(t.expires&&t.expires.toString()!=="Invalid Date"){n.push(`Expires=${toIMFDate(t.expires)}`)}if(t.sameSite){n.push(`SameSite=${t.sameSite}`)}for(const i of t.unparsed){if(!i.includes("=")){throw new Error("Invalid unparsed")}const[t,...a]=i.split("=");const c=t.trim();const A=a.join("=");validateCookieName(c);validateCookieValue(A);n.push(`${c}=${A}`)}return n.join("; ")}t.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(t,n,i)=>{const{Transform:a}=i(7075);const{isASCIINumber:c,isValidLastEventId:A}=i(4811);const l=[239,187,191];const d=10;const h=13;const f=58;const g=32;class EventSourceStream extends a{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(t={}){t.readableObjectMode=true;super(t);this.state=t.eventSourceSettings||{};if(t.push){this.push=t.push}}_transform(t,n,i){if(t.length===0){i();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,t])}else{this.buffer=t}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===l[0]){i();return}this.checkBOM=false;i();return;case 2:if(this.buffer[0]===l[0]&&this.buffer[1]===l[1]){i();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===l[0]&&this.buffer[1]===l[1]&&this.buffer[2]===l[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;i();return}this.checkBOM=false;break;default:if(this.buffer[0]===l[0]&&this.buffer[1]===l[1]&&this.buffer[2]===l[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){n[a]=l}break}}processEvent(t){if(t.retry&&c(t.retry)){this.state.reconnectionTime=parseInt(t.retry,10)}if(t.id&&A(t.id)){this.state.lastEventId=t.id}if(t.data!==undefined){this.push({type:t.event||"message",options:{data:t.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}t.exports={EventSourceStream:EventSourceStream}},1238:(t,n,i)=>{const{pipeline:a}=i(7075);const{fetching:c}=i(4398);const{makeRequest:A}=i(9967);const{webidl:l}=i(5893);const{EventSourceStream:d}=i(4031);const{parseMIMEType:h}=i(1900);const{createFastMessageEvent:f}=i(5188);const{isNetworkError:g}=i(9051);const{delay:p}=i(4811);const{kEnumerableProperty:m}=i(3440);const{environmentSettingsObject:E}=i(3168);let C=false;const I=3e3;const y=0;const B=1;const Q=2;const w="anonymous";const S="use-credentials";class EventSource extends EventTarget{#x={open:null,error:null,message:null};#U=null;#P=false;#L=y;#_=null;#O=null;#e;#I;constructor(t,n={}){super();l.util.markAsUncloneable(this);const i="EventSource constructor";l.argumentLengthCheck(arguments,1,i);if(!C){C=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}t=l.converters.USVString(t,i,"url");n=l.converters.EventSourceInitDict(n,i,"eventSourceInitDict");this.#e=n.dispatcher;this.#I={lastEventId:"",reconnectionTime:I};const a=E;let c;try{c=new URL(t,a.settingsObject.baseUrl);this.#I.origin=c.origin}catch(t){throw new DOMException(t,"SyntaxError")}this.#U=c.href;let d=w;if(n.withCredentials){d=S;this.#P=true}const h={redirect:"follow",keepalive:true,mode:"cors",credentials:d==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};h.client=E.settingsObject;h.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];h.cache="no-store";h.initiator="other";h.urlList=[new URL(this.#U)];this.#_=A(h);this.#H()}get readyState(){return this.#L}get url(){return this.#U}get withCredentials(){return this.#P}#H(){if(this.#L===Q)return;this.#L=y;const t={request:this.#_,dispatcher:this.#e};const processEventSourceEndOfBody=t=>{if(g(t)){this.dispatchEvent(new Event("error"));this.close()}this.#$()};t.processResponseEndOfBody=processEventSourceEndOfBody;t.processResponse=t=>{if(g(t)){if(t.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#$();return}}const n=t.headersList.get("content-type",true);const i=n!==null?h(n):"failure";const c=i!=="failure"&&i.essence==="text/event-stream";if(t.status!==200||c===false){this.close();this.dispatchEvent(new Event("error"));return}this.#L=B;this.dispatchEvent(new Event("open"));this.#I.origin=t.urlList[t.urlList.length-1].origin;const A=new d({eventSourceSettings:this.#I,push:t=>{this.dispatchEvent(f(t.type,t.options))}});a(t.body.stream,A,t=>{if(t?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}})};this.#O=c(t)}async#$(){if(this.#L===Q)return;this.#L=y;this.dispatchEvent(new Event("error"));await p(this.#I.reconnectionTime);if(this.#L!==y)return;if(this.#I.lastEventId.length){this.#_.headersList.set("last-event-id",this.#I.lastEventId,true)}this.#H()}close(){l.brandCheck(this,EventSource);if(this.#L===Q)return;this.#L=Q;this.#O.abort();this.#_=null}get onopen(){return this.#x.open}set onopen(t){if(this.#x.open){this.removeEventListener("open",this.#x.open)}if(typeof t==="function"){this.#x.open=t;this.addEventListener("open",t)}else{this.#x.open=null}}get onmessage(){return this.#x.message}set onmessage(t){if(this.#x.message){this.removeEventListener("message",this.#x.message)}if(typeof t==="function"){this.#x.message=t;this.addEventListener("message",t)}else{this.#x.message=null}}get onerror(){return this.#x.error}set onerror(t){if(this.#x.error){this.removeEventListener("error",this.#x.error)}if(typeof t==="function"){this.#x.error=t;this.addEventListener("error",t)}else{this.#x.error=null}}}const b={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:y,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:B,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:Q,writable:false}};Object.defineProperties(EventSource,b);Object.defineProperties(EventSource.prototype,b);Object.defineProperties(EventSource.prototype,{close:m,onerror:m,onmessage:m,onopen:m,readyState:m,url:m,withCredentials:m});l.converters.EventSourceInitDict=l.dictionaryConverter([{key:"withCredentials",converter:l.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:l.converters.any}]);t.exports={EventSource:EventSource,defaultReconnectionTime:I}},4811:t=>{function isValidLastEventId(t){return t.indexOf("\0")===-1}function isASCIINumber(t){if(t.length===0)return false;for(let n=0;n57)return false}return true}function delay(t){return new Promise(n=>{setTimeout(n,t).unref()})}t.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(t,n,i)=>{const a=i(3440);const{ReadableStreamFrom:c,isBlobLike:A,isReadableStreamLike:l,readableStreamClose:d,createDeferredPromise:h,fullyReadBody:f,extractMimeType:g,utf8DecodeBytes:p}=i(3168);const{FormData:m}=i(5910);const{kState:E}=i(3627);const{webidl:C}=i(5893);const{Blob:I}=i(4573);const y=i(4589);const{isErrored:B,isDisturbed:Q}=i(7075);const{isArrayBuffer:w}=i(3429);const{serializeAMimeType:S}=i(1900);const{multipartFormDataParser:b}=i(116);let R;try{const t=i(7598);R=n=>t.randomInt(0,n)}catch{R=t=>Math.floor(Math.random(t))}const v=new TextEncoder;function noop(){}const k=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let D;if(k){D=new FinalizationRegistry(t=>{const n=t.deref();if(n&&!n.locked&&!Q(n)&&!B(n)){n.cancel("Response object has been garbage collected").catch(noop)}})}function extractBody(t,n=false){let i=null;if(t instanceof ReadableStream){i=t}else if(A(t)){i=t.stream()}else{i=new ReadableStream({async pull(t){const n=typeof f==="string"?v.encode(f):f;if(n.byteLength){t.enqueue(n)}queueMicrotask(()=>d(t))},start(){},type:"bytes"})}y(l(i));let h=null;let f=null;let g=null;let p=null;if(typeof t==="string"){f=t;p="text/plain;charset=UTF-8"}else if(t instanceof URLSearchParams){f=t.toString();p="application/x-www-form-urlencoded;charset=UTF-8"}else if(w(t)){f=new Uint8Array(t.slice())}else if(ArrayBuffer.isView(t)){f=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength))}else if(a.isFormDataLike(t)){const n=`----formdata-undici-0${`${R(1e11)}`.padStart(11,"0")}`;const i=`--${n}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=t=>t.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=t=>t.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);g=0;let A=false;for(const[n,l]of t){if(typeof l==="string"){const t=v.encode(i+`; name="${escape(normalizeLinefeeds(n))}"`+`\r\n\r\n${normalizeLinefeeds(l)}\r\n`);a.push(t);g+=t.byteLength}else{const t=v.encode(`${i}; name="${escape(normalizeLinefeeds(n))}"`+(l.name?`; filename="${escape(l.name)}"`:"")+"\r\n"+`Content-Type: ${l.type||"application/octet-stream"}\r\n\r\n`);a.push(t,l,c);if(typeof l.size==="number"){g+=t.byteLength+l.size+c.byteLength}else{A=true}}}const l=v.encode(`--${n}--\r\n`);a.push(l);g+=l.byteLength;if(A){g=null}f=t;h=async function*(){for(const t of a){if(t.stream){yield*t.stream()}else{yield t}}};p=`multipart/form-data; boundary=${n}`}else if(A(t)){f=t;g=t.size;if(t.type){p=t.type}}else if(typeof t[Symbol.asyncIterator]==="function"){if(n){throw new TypeError("keepalive")}if(a.isDisturbed(t)||t.locked){throw new TypeError("Response body object should not be disturbed or locked")}i=t instanceof ReadableStream?t:c(t)}if(typeof f==="string"||a.isBuffer(f)){g=Buffer.byteLength(f)}if(h!=null){let n;i=new ReadableStream({async start(){n=h(t)[Symbol.asyncIterator]()},async pull(t){const{value:a,done:c}=await n.next();if(c){queueMicrotask(()=>{t.close();t.byobRequest?.respond(0)})}else{if(!B(i)){const n=new Uint8Array(a);if(n.byteLength){t.enqueue(n)}}}return t.desiredSize>0},async cancel(t){await n.return()},type:"bytes"})}const m={stream:i,source:f,length:g};return[m,p]}function safelyExtractBody(t,n=false){if(t instanceof ReadableStream){y(!a.isDisturbed(t),"The body has already been consumed.");y(!t.locked,"The stream is locked.")}return extractBody(t,n)}function cloneBody(t,n){const[i,a]=n.stream.tee();n.stream=i;return{stream:a,length:n.length,source:n.source}}function throwIfAborted(t){if(t.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(t){const n={blob(){return consumeBody(this,t=>{let n=bodyMimeType(this);if(n===null){n=""}else if(n){n=S(n)}return new I([t],{type:n})},t)},arrayBuffer(){return consumeBody(this,t=>new Uint8Array(t).buffer,t)},text(){return consumeBody(this,p,t)},json(){return consumeBody(this,parseJSONFromBytes,t)},formData(){return consumeBody(this,t=>{const n=bodyMimeType(this);if(n!==null){switch(n.essence){case"multipart/form-data":{const i=b(t,n);if(i==="failure"){throw new TypeError("Failed to parse body as FormData.")}const a=new m;a[E]=i;return a}case"application/x-www-form-urlencoded":{const n=new URLSearchParams(t.toString());const i=new m;for(const[t,a]of n){i.append(t,a)}return i}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return consumeBody(this,t=>new Uint8Array(t),t)}};return n}function mixinBody(t){Object.assign(t.prototype,bodyMixinMethods(t))}async function consumeBody(t,n,i){C.brandCheck(t,i);if(bodyUnusable(t)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(t[E]);const a=h();const errorSteps=t=>a.reject(t);const successSteps=t=>{try{a.resolve(n(t))}catch(t){errorSteps(t)}};if(t[E].body==null){successSteps(Buffer.allocUnsafe(0));return a.promise}await f(t[E].body,successSteps,errorSteps);return a.promise}function bodyUnusable(t){const n=t[E].body;return n!=null&&(n.stream.locked||a.isDisturbed(n.stream))}function parseJSONFromBytes(t){return JSON.parse(p(t))}function bodyMimeType(t){const n=t[E].headersList;const i=g(n);if(i==="failure"){return null}return i}t.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:D,hasFinalizationRegistry:k,bodyUnusable:bodyUnusable}},4495:t=>{const n=["GET","HEAD","POST"];const i=new Set(n);const a=[101,204,205,304];const c=[301,302,303,307,308];const A=new Set(c);const l=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const d=new Set(l);const h=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const f=new Set(h);const g=["follow","manual","error"];const p=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(p);const E=["navigate","same-origin","no-cors","cors"];const C=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const y=["content-encoding","content-language","content-location","content-type","content-length"];const B=["half"];const Q=["CONNECT","TRACE","TRACK"];const w=new Set(Q);const S=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const b=new Set(S);t.exports={subresource:S,forbiddenMethods:Q,requestBodyHeader:y,referrerPolicy:h,requestRedirect:g,requestMode:E,requestCredentials:C,requestCache:I,redirectStatus:c,corsSafeListedMethods:n,nullBodyStatus:a,safeMethods:p,badPorts:l,requestDuplex:B,subresourceSet:b,badPortsSet:d,redirectStatusSet:A,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:w,referrerPolicySet:f}},1900:(t,n,i)=>{const a=i(4589);const c=new TextEncoder;const A=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const l=/[\u000A\u000D\u0009\u0020]/;const d=/[\u0009\u000A\u000C\u000D\u0020]/g;const h=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(t){a(t.protocol==="data:");let n=URLSerializer(t,true);n=n.slice(5);const i={position:0};let c=collectASequenceOfCodePointsFast(",",n,i);const A=c.length;c=removeASCIIWhitespace(c,true,true);if(i.position>=n.length){return"failure"}i.position++;const l=n.slice(A+1);let d=stringPercentDecode(l);if(/;(\u0020){0,}base64$/i.test(c)){const t=isomorphicDecode(d);d=forgivingBase64(t);if(d==="failure"){return"failure"}c=c.slice(0,-6);c=c.replace(/(\u0020)+$/,"");c=c.slice(0,-1)}if(c.startsWith(";")){c="text/plain"+c}let h=parseMIMEType(c);if(h==="failure"){h=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:h,body:d}}function URLSerializer(t,n=false){if(!n){return t.href}const i=t.href;const a=t.hash.length;const c=a===0?i:i.substring(0,i.length-a);if(!a&&i.endsWith("#")){return c.slice(0,-1)}return c}function collectASequenceOfCodePoints(t,n,i){let a="";while(i.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexByteToNumber(t){return t>=48&&t<=57?t-48:(t&223)-55}function percentDecode(t){const n=t.length;const i=new Uint8Array(n);let a=0;for(let c=0;ct.length){return"failure"}n.position++;let a=collectASequenceOfCodePointsFast(";",t,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!A.test(a)){return"failure"}const c=i.toLowerCase();const d=a.toLowerCase();const f={type:c,subtype:d,parameters:new Map,essence:`${c}/${d}`};while(n.positionl.test(t),t,n);let i=collectASequenceOfCodePoints(t=>t!==";"&&t!=="=",t,n);i=i.toLowerCase();if(n.positiont.length){break}let a=null;if(t[n.position]==='"'){a=collectAnHTTPQuotedString(t,n,true);collectASequenceOfCodePointsFast(";",t,n)}else{a=collectASequenceOfCodePointsFast(";",t,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(i.length!==0&&A.test(i)&&(a.length===0||h.test(a))&&!f.parameters.has(i)){f.parameters.set(i,a)}}return f}function forgivingBase64(t){t=t.replace(d,"");let n=t.length;if(n%4===0){if(t.charCodeAt(n-1)===61){--n;if(t.charCodeAt(n-1)===61){--n}}}if(n%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(t.length===n?t:t.substring(0,n))){return"failure"}const i=Buffer.from(t,"base64");return new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}function collectAnHTTPQuotedString(t,n,i){const c=n.position;let A="";a(t[n.position]==='"');n.position++;while(true){A+=collectASequenceOfCodePoints(t=>t!=='"'&&t!=="\\",t,n);if(n.position>=t.length){break}const i=t[n.position];n.position++;if(i==="\\"){if(n.position>=t.length){A+="\\";break}A+=t[n.position];n.position++}else{a(i==='"');break}}if(i){return A}return t.slice(c,n.position)}function serializeAMimeType(t){a(t!=="failure");const{parameters:n,essence:i}=t;let c=i;for(let[t,i]of n.entries()){c+=";";c+=t;c+="=";if(!A.test(i)){i=i.replace(/(\\|")/g,"\\$1");i='"'+i;i+='"'}c+=i}return c}function isHTTPWhiteSpace(t){return t===13||t===10||t===9||t===32}function removeHTTPWhitespace(t,n=true,i=true){return removeChars(t,n,i,isHTTPWhiteSpace)}function isASCIIWhitespace(t){return t===13||t===10||t===9||t===12||t===32}function removeASCIIWhitespace(t,n=true,i=true){return removeChars(t,n,i,isASCIIWhitespace)}function removeChars(t,n,i,a){let c=0;let A=t.length-1;if(n){while(c0&&a(t.charCodeAt(A)))A--}return c===0&&A===t.length-1?t:t.slice(c,A+1)}function isomorphicDecode(t){const n=t.length;if((2<<15)-1>n){return String.fromCharCode.apply(null,t)}let i="";let a=0;let c=(2<<15)-1;while(an){c=n-a}i+=String.fromCharCode.apply(null,t.subarray(a,a+=c))}return i}function minimizeSupportedMimeType(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(t.subtype.endsWith("+json")){return"application/json"}if(t.subtype.endsWith("+xml")){return"application/xml"}return""}t.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:A,isomorphicDecode:isomorphicDecode}},6653:(t,n,i)=>{const{kConnected:a,kSize:c}=i(6443);class CompatWeakRef{constructor(t){this.value=t}deref(){return this.value[a]===0&&this.value[c]===0?undefined:this.value}}class CompatFinalizer{constructor(t){this.finalizer=t}register(t,n){if(t.on){t.on("disconnect",()=>{if(t[a]===0&&t[c]===0){this.finalizer(n)}})}}unregister(t){}}t.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(t,n,i)=>{const{Blob:a,File:c}=i(4573);const{kState:A}=i(3627);const{webidl:l}=i(5893);class FileLike{constructor(t,n,i={}){const a=n;const c=i.type;const l=i.lastModified??Date.now();this[A]={blobLike:t,name:a,type:c,lastModified:l}}stream(...t){l.brandCheck(this,FileLike);return this[A].blobLike.stream(...t)}arrayBuffer(...t){l.brandCheck(this,FileLike);return this[A].blobLike.arrayBuffer(...t)}slice(...t){l.brandCheck(this,FileLike);return this[A].blobLike.slice(...t)}text(...t){l.brandCheck(this,FileLike);return this[A].blobLike.text(...t)}get size(){l.brandCheck(this,FileLike);return this[A].blobLike.size}get type(){l.brandCheck(this,FileLike);return this[A].blobLike.type}get name(){l.brandCheck(this,FileLike);return this[A].name}get lastModified(){l.brandCheck(this,FileLike);return this[A].lastModified}get[Symbol.toStringTag](){return"File"}}l.converters.Blob=l.interfaceConverter(a);function isFileLike(t){return t instanceof c||t&&(typeof t.stream==="function"||typeof t.arrayBuffer==="function")&&t[Symbol.toStringTag]==="File"}t.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(t,n,i)=>{const{isUSVString:a,bufferToLowerCasedHeaderName:c}=i(3440);const{utf8DecodeBytes:A}=i(3168);const{HTTP_TOKEN_CODEPOINTS:l,isomorphicDecode:d}=i(1900);const{isFileLike:h}=i(7114);const{makeEntry:f}=i(5910);const g=i(4589);const{File:p}=i(4573);const m=globalThis.File??p;const E=Buffer.from('form-data; name="');const C=Buffer.from("; filename");const I=Buffer.from("--");const y=Buffer.from("--\r\n");function isAsciiString(t){for(let n=0;n70){return false}for(let i=0;i=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95)){return false}}return true}function multipartFormDataParser(t,n){g(n!=="failure"&&n.essence==="multipart/form-data");const i=n.parameters.get("boundary");if(i===undefined){return"failure"}const c=Buffer.from(`--${i}`,"utf8");const l=[];const d={position:0};while(t[d.position]===13&&t[d.position+1]===10){d.position+=2}let p=t.length;while(t[p-1]===10&&t[p-2]===13){p-=2}if(p!==t.length){t=t.subarray(0,p)}while(true){if(t.subarray(d.position,d.position+c.length).equals(c)){d.position+=c.length}else{return"failure"}if(d.position===t.length-2&&bufferStartsWith(t,I,d)||d.position===t.length-4&&bufferStartsWith(t,y,d)){return l}if(t[d.position]!==13||t[d.position+1]!==10){return"failure"}d.position+=2;const n=parseMultipartFormDataHeaders(t,d);if(n==="failure"){return"failure"}let{name:i,filename:p,contentType:E,encoding:C}=n;d.position+=2;let B;{const n=t.indexOf(c.subarray(2),d.position);if(n===-1){return"failure"}B=t.subarray(d.position,n-4);d.position+=B.length;if(C==="base64"){B=Buffer.from(B.toString(),"base64")}}if(t[d.position]!==13||t[d.position+1]!==10){return"failure"}else{d.position+=2}let Q;if(p!==null){E??="text/plain";if(!isAsciiString(E)){E=""}Q=new m([B],p,{type:E})}else{Q=A(Buffer.from(B))}g(a(i));g(typeof Q==="string"&&a(Q)||h(Q));l.push(f(i,Q,p))}}function parseMultipartFormDataHeaders(t,n){let i=null;let a=null;let A=null;let h=null;while(true){if(t[n.position]===13&&t[n.position+1]===10){if(i===null){return"failure"}return{name:i,filename:a,contentType:A,encoding:h}}let f=collectASequenceOfBytes(t=>t!==10&&t!==13&&t!==58,t,n);f=removeChars(f,true,true,t=>t===9||t===32);if(!l.test(f.toString())){return"failure"}if(t[n.position]!==58){return"failure"}n.position++;collectASequenceOfBytes(t=>t===32||t===9,t,n);switch(c(f)){case"content-disposition":{i=a=null;if(!bufferStartsWith(t,E,n)){return"failure"}n.position+=17;i=parseMultipartFormDataName(t,n);if(i===null){return"failure"}if(bufferStartsWith(t,C,n)){let i=n.position+C.length;if(t[i]===42){n.position+=1;i+=1}if(t[i]!==61||t[i+1]!==34){return"failure"}n.position+=12;a=parseMultipartFormDataName(t,n);if(a===null){return"failure"}}break}case"content-type":{let i=collectASequenceOfBytes(t=>t!==10&&t!==13,t,n);i=removeChars(i,false,true,t=>t===9||t===32);A=d(i);break}case"content-transfer-encoding":{let i=collectASequenceOfBytes(t=>t!==10&&t!==13,t,n);i=removeChars(i,false,true,t=>t===9||t===32);h=d(i);break}default:{collectASequenceOfBytes(t=>t!==10&&t!==13,t,n)}}if(t[n.position]!==13&&t[n.position+1]!==10){return"failure"}else{n.position+=2}}}function parseMultipartFormDataName(t,n){g(t[n.position-1]===34);let i=collectASequenceOfBytes(t=>t!==10&&t!==13&&t!==34,t,n);if(t[n.position]!==34){return null}else{n.position++}i=(new TextDecoder).decode(i).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return i}function collectASequenceOfBytes(t,n,i){let a=i.position;while(a0&&a(t[A]))A--}return c===0&&A===t.length-1?t:t.subarray(c,A+1)}function bufferStartsWith(t,n,i){if(t.length{const{isBlobLike:a,iteratorMixin:c}=i(3168);const{kState:A}=i(3627);const{kEnumerableProperty:l}=i(3440);const{FileLike:d,isFileLike:h}=i(7114);const{webidl:f}=i(5893);const{File:g}=i(4573);const p=i(7975);const m=globalThis.File??g;class FormData{constructor(t){f.util.markAsUncloneable(this);if(t!==undefined){throw f.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[A]=[]}append(t,n,i=undefined){f.brandCheck(this,FormData);const c="FormData.append";f.argumentLengthCheck(arguments,2,c);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}t=f.converters.USVString(t,c,"name");n=a(n)?f.converters.Blob(n,c,"value",{strict:false}):f.converters.USVString(n,c,"value");i=arguments.length===3?f.converters.USVString(i,c,"filename"):undefined;const l=makeEntry(t,n,i);this[A].push(l)}delete(t){f.brandCheck(this,FormData);const n="FormData.delete";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");this[A]=this[A].filter(n=>n.name!==t)}get(t){f.brandCheck(this,FormData);const n="FormData.get";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");const i=this[A].findIndex(n=>n.name===t);if(i===-1){return null}return this[A][i].value}getAll(t){f.brandCheck(this,FormData);const n="FormData.getAll";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");return this[A].filter(n=>n.name===t).map(t=>t.value)}has(t){f.brandCheck(this,FormData);const n="FormData.has";f.argumentLengthCheck(arguments,1,n);t=f.converters.USVString(t,n,"name");return this[A].findIndex(n=>n.name===t)!==-1}set(t,n,i=undefined){f.brandCheck(this,FormData);const c="FormData.set";f.argumentLengthCheck(arguments,2,c);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}t=f.converters.USVString(t,c,"name");n=a(n)?f.converters.Blob(n,c,"name",{strict:false}):f.converters.USVString(n,c,"name");i=arguments.length===3?f.converters.USVString(i,c,"name"):undefined;const l=makeEntry(t,n,i);const d=this[A].findIndex(n=>n.name===t);if(d!==-1){this[A]=[...this[A].slice(0,d),l,...this[A].slice(d+1).filter(n=>n.name!==t)]}else{this[A].push(l)}}[p.inspect.custom](t,n){const i=this[A].reduce((t,n)=>{if(t[n.name]){if(Array.isArray(t[n.name])){t[n.name].push(n.value)}else{t[n.name]=[t[n.name],n.value]}}else{t[n.name]=n.value}return t},{__proto__:null});n.depth??=t;n.colors??=true;const a=p.formatWithOptions(n,i);return`FormData ${a.slice(a.indexOf("]")+2)}`}}c("FormData",FormData,A,"name","value");Object.defineProperties(FormData.prototype,{append:l,delete:l,get:l,getAll:l,has:l,set:l,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(t,n,i){if(typeof n==="string"){}else{if(!h(n)){n=n instanceof Blob?new m([n],"blob",{type:n.type}):new d(n,"blob",{type:n.type})}if(i!==undefined){const t={type:n.type,lastModified:n.lastModified};n=n instanceof g?new m([n],i,t):new d(n,i,t)}}return{name:t,value:n}}t.exports={FormData:FormData,makeEntry:makeEntry}},1059:t=>{const n=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[n]}function setGlobalOrigin(t){if(t===undefined){Object.defineProperty(globalThis,n,{value:undefined,writable:true,enumerable:false,configurable:false});return}const i=new URL(t);if(i.protocol!=="http:"&&i.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${i.protocol}`)}Object.defineProperty(globalThis,n,{value:i,writable:true,enumerable:false,configurable:false})}t.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(t,n,i)=>{const{kConstruct:a}=i(6443);const{kEnumerableProperty:c}=i(3440);const{iteratorMixin:A,isValidHeaderName:l,isValidHeaderValue:d}=i(3168);const{webidl:h}=i(5893);const f=i(4589);const g=i(7975);const p=Symbol("headers map");const m=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(t){return t===10||t===13||t===9||t===32}function headerValueNormalize(t){let n=0;let i=t.length;while(i>n&&isHTTPWhiteSpaceCharCode(t.charCodeAt(i-1)))--i;while(i>n&&isHTTPWhiteSpaceCharCode(t.charCodeAt(n)))++n;return n===0&&i===t.length?t:t.substring(n,i)}function fill(t,n){if(Array.isArray(n)){for(let i=0;i>","record"]})}}function appendHeader(t,n,i){i=headerValueNormalize(i);if(!l(n)){throw h.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header name"})}else if(!d(i)){throw h.errors.invalidArgument({prefix:"Headers.append",value:i,type:"header value"})}if(E(t)==="immutable"){throw new TypeError("immutable")}return I(t).append(n,i,false)}function compareHeaderName(t,n){return t[0]>1);if(n[d][0]<=h[0]){l=d+1}else{A=d}}if(a!==d){c=a;while(c>l){n[c]=n[--c]}n[l]=h}}if(!i.next().done){throw new TypeError("Unreachable")}return n}else{let t=0;for(const{0:i,1:{value:a}}of this[p]){n[t++]=[i,a];f(a!==null)}return n.sort(compareHeaderName)}}}class Headers{#V;#G;constructor(t=undefined){h.util.markAsUncloneable(this);if(t===a){return}this.#G=new HeadersList;this.#V="none";if(t!==undefined){t=h.converters.HeadersInit(t,"Headers contructor","init");fill(this,t)}}append(t,n){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,"Headers.append");const i="Headers.append";t=h.converters.ByteString(t,i,"name");n=h.converters.ByteString(n,i,"value");return appendHeader(this,t,n)}delete(t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.delete");const n="Headers.delete";t=h.converters.ByteString(t,n,"name");if(!l(t)){throw h.errors.invalidArgument({prefix:"Headers.delete",value:t,type:"header name"})}if(this.#V==="immutable"){throw new TypeError("immutable")}if(!this.#G.contains(t,false)){return}this.#G.delete(t,false)}get(t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.get");const n="Headers.get";t=h.converters.ByteString(t,n,"name");if(!l(t)){throw h.errors.invalidArgument({prefix:n,value:t,type:"header name"})}return this.#G.get(t,false)}has(t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.has");const n="Headers.has";t=h.converters.ByteString(t,n,"name");if(!l(t)){throw h.errors.invalidArgument({prefix:n,value:t,type:"header name"})}return this.#G.contains(t,false)}set(t,n){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,"Headers.set");const i="Headers.set";t=h.converters.ByteString(t,i,"name");n=h.converters.ByteString(n,i,"value");n=headerValueNormalize(n);if(!l(t)){throw h.errors.invalidArgument({prefix:i,value:t,type:"header name"})}else if(!d(n)){throw h.errors.invalidArgument({prefix:i,value:n,type:"header value"})}if(this.#V==="immutable"){throw new TypeError("immutable")}this.#G.set(t,n,false)}getSetCookie(){h.brandCheck(this,Headers);const t=this.#G.cookies;if(t){return[...t]}return[]}get[m](){if(this.#G[m]){return this.#G[m]}const t=[];const n=this.#G.toSortedArray();const i=this.#G.cookies;if(i===null||i.length===1){return this.#G[m]=n}for(let a=0;a>"](t,n,i,a.bind(t))}return h.converters["record"](t,n,i)}throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};t.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:E,setHeadersGuard:C,setHeadersList:y,getHeadersList:I}},4398:(t,n,i)=>{const{makeNetworkError:a,makeAppropriateNetworkError:c,filterResponse:A,makeResponse:l,fromInnerResponse:d}=i(9051);const{HeadersList:h}=i(660);const{Request:f,cloneRequest:g}=i(9967);const p=i(8522);const{bytesMatch:m,makePolicyContainer:E,clonePolicyContainer:C,requestBadPort:I,TAOCheck:y,appendRequestOriginHeader:B,responseLocationURL:Q,requestCurrentURL:w,setRequestReferrerPolicyOnRedirect:S,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:R,appendFetchMetadata:v,corsCheck:k,crossOriginResourcePolicyCheck:D,determineRequestsReferrer:T,coarsenedSharedCurrentTime:N,createDeferredPromise:M,isBlobLike:F,sameOrigin:x,isCancelled:U,isAborted:P,isErrorLike:L,fullyReadBody:O,readableStreamClose:H,isomorphicEncode:$,urlIsLocal:V,urlIsHttpHttpsScheme:G,urlHasHttpsScheme:Y,clampAndCoarsenConnectionTimingInfo:J,simpleRangeHeaderValue:W,buildContentRange:q,createInflate:j,extractMimeType:z}=i(3168);const{kState:K,kDispatcher:Z}=i(3627);const X=i(4589);const{safelyExtractBody:ee,extractBody:te}=i(4492);const{redirectStatusSet:re,nullBodyStatus:ne,safeMethodsSet:se,requestBodyHeader:oe,subresourceSet:ie}=i(4495);const ae=i(8474);const{Readable:ce,pipeline:Ae,finished:le}=i(7075);const{addAbortListener:ue,isErrored:de,isReadable:he,bufferToLowerCasedHeaderName:fe}=i(3440);const{dataURLProcessor:ge,serializeAMimeType:pe,minimizeSupportedMimeType:me}=i(1900);const{getGlobalDispatcher:Ee}=i(2581);const{webidl:Ce}=i(5893);const{STATUS_CODES:Ie}=i(7067);const ye=["GET","HEAD"];const Be=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let Qe;class Fetch extends ae{constructor(t){super();this.dispatcher=t;this.connection=null;this.dump=false;this.state="ongoing"}terminate(t){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(t);this.emit("terminated",t)}abort(t){if(this.state!=="ongoing"){return}this.state="aborted";if(!t){t=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=t;this.connection?.destroy(t);this.emit("terminated",t)}}function handleFetchDone(t){finalizeAndReportTiming(t,"fetch")}function fetch(t,n=undefined){Ce.argumentLengthCheck(arguments,1,"globalThis.fetch");let i=M();let a;try{a=new f(t,n)}catch(t){i.reject(t);return i.promise}const c=a[K];if(a.signal.aborted){abortFetch(i,c,null,a.signal.reason);return i.promise}const A=c.client.globalObject;if(A?.constructor?.name==="ServiceWorkerGlobalScope"){c.serviceWorkers="none"}let l=null;let h=false;let g=null;ue(a.signal,()=>{h=true;X(g!=null);g.abort(a.signal.reason);const t=l?.deref();abortFetch(i,c,t,a.signal.reason)});const processResponse=t=>{if(h){return}if(t.aborted){abortFetch(i,c,l,g.serializedAbortReason);return}if(t.type==="error"){i.reject(new TypeError("fetch failed",{cause:t.error}));return}l=new WeakRef(d(t,"immutable"));i.resolve(l.deref());i=null};g=fetching({request:c,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:a[Z]});return i.promise}function finalizeAndReportTiming(t,n="other"){if(t.type==="error"&&t.aborted){return}if(!t.urlList?.length){return}const i=t.urlList[0];let a=t.timingInfo;let c=t.cacheState;if(!G(i)){return}if(a===null){return}if(!t.timingAllowPassed){a=R({startTime:a.startTime});c=""}a.endTime=N();t.timingInfo=a;we(a,i.href,n,globalThis,c)}const we=performance.markResourceTiming;function abortFetch(t,n,i,a){if(t){t.reject(a)}if(n.body!=null&&he(n.body?.stream)){n.body.stream.cancel(a).catch(t=>{if(t.code==="ERR_INVALID_STATE"){return}throw t})}if(i==null){return}const c=i[K];if(c.body!=null&&he(c.body?.stream)){c.body.stream.cancel(a).catch(t=>{if(t.code==="ERR_INVALID_STATE"){return}throw t})}}function fetching({request:t,processRequestBodyChunkLength:n,processRequestEndOfBody:i,processResponse:a,processResponseEndOfBody:c,processResponseConsumeBody:A,useParallelQueue:l=false,dispatcher:d=Ee()}){X(d);let h=null;let f=false;if(t.client!=null){h=t.client.globalObject;f=t.client.crossOriginIsolatedCapability}const g=N(f);const p=R({startTime:g});const m={controller:new Fetch(d),request:t,timingInfo:p,processRequestBodyChunkLength:n,processRequestEndOfBody:i,processResponse:a,processResponseConsumeBody:A,processResponseEndOfBody:c,taskDestination:h,crossOriginIsolatedCapability:f};X(!t.body||t.body.stream);if(t.window==="client"){t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"}if(t.origin==="client"){t.origin=t.client.origin}if(t.policyContainer==="client"){if(t.client!=null){t.policyContainer=C(t.client.policyContainer)}else{t.policyContainer=E()}}if(!t.headersList.contains("accept",true)){const n="*/*";t.headersList.append("accept",n,true)}if(!t.headersList.contains("accept-language",true)){t.headersList.append("accept-language","*",true)}if(t.priority===null){}if(ie.has(t.destination)){}mainFetch(m).catch(t=>{m.controller.terminate(t)});return m.controller}async function mainFetch(t,n=false){const i=t.request;let c=null;if(i.localURLsOnly&&!V(w(i))){c=a("local URLs only")}b(i);if(I(i)==="blocked"){c=a("bad port")}if(i.referrerPolicy===""){i.referrerPolicy=i.policyContainer.referrerPolicy}if(i.referrer!=="no-referrer"){i.referrer=T(i)}if(c===null){c=await(async()=>{const n=w(i);if(x(n,i.url)&&i.responseTainting==="basic"||n.protocol==="data:"||(i.mode==="navigate"||i.mode==="websocket")){i.responseTainting="basic";return await schemeFetch(t)}if(i.mode==="same-origin"){return a('request mode cannot be "same-origin"')}if(i.mode==="no-cors"){if(i.redirect!=="follow"){return a('redirect mode cannot be "follow" for "no-cors" request')}i.responseTainting="opaque";return await schemeFetch(t)}if(!G(w(i))){return a("URL scheme must be a HTTP(S) scheme")}i.responseTainting="cors";return await httpFetch(t)})()}if(n){return c}if(c.status!==0&&!c.internalResponse){if(i.responseTainting==="cors"){}if(i.responseTainting==="basic"){c=A(c,"basic")}else if(i.responseTainting==="cors"){c=A(c,"cors")}else if(i.responseTainting==="opaque"){c=A(c,"opaque")}else{X(false)}}let l=c.status===0?c:c.internalResponse;if(l.urlList.length===0){l.urlList.push(...i.urlList)}if(!i.timingAllowFailed){c.timingAllowPassed=true}if(c.type==="opaque"&&l.status===206&&l.rangeRequested&&!i.headers.contains("range",true)){c=l=a()}if(c.status!==0&&(i.method==="HEAD"||i.method==="CONNECT"||ne.includes(l.status))){l.body=null;t.controller.dump=true}if(i.integrity){const processBodyError=n=>fetchFinale(t,a(n));if(i.responseTainting==="opaque"||c.body==null){processBodyError(c.error);return}const processBody=n=>{if(!m(n,i.integrity)){processBodyError("integrity mismatch");return}c.body=ee(n)[0];fetchFinale(t,c)};await O(c.body,processBody,processBodyError)}else{fetchFinale(t,c)}}function schemeFetch(t){if(U(t)&&t.request.redirectCount===0){return Promise.resolve(c(t))}const{request:n}=t;const{protocol:A}=w(n);switch(A){case"about:":{return Promise.resolve(a("about scheme is not supported"))}case"blob:":{if(!Qe){Qe=i(4573).resolveObjectURL}const t=w(n);if(t.search.length!==0){return Promise.resolve(a("NetworkError when attempting to fetch resource."))}const c=Qe(t.toString());if(n.method!=="GET"||!F(c)){return Promise.resolve(a("invalid method"))}const A=l();const d=c.size;const h=$(`${d}`);const f=c.type;if(!n.headersList.contains("range",true)){const t=te(c);A.statusText="OK";A.body=t[0];A.headersList.set("content-length",h,true);A.headersList.set("content-type",f,true)}else{A.rangeRequested=true;const t=n.headersList.get("range",true);const i=W(t,true);if(i==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}let{rangeStartValue:l,rangeEndValue:h}=i;if(l===null){l=d-h;h=l+h-1}else{if(l>=d){return Promise.resolve(a("Range start is greater than the blob's size."))}if(h===null||h>=d){h=d-1}}const g=c.slice(l,h,f);const p=te(g);A.body=p[0];const m=$(`${g.size}`);const E=q(l,h,d);A.status=206;A.statusText="Partial Content";A.headersList.set("content-length",m,true);A.headersList.set("content-type",f,true);A.headersList.set("content-range",E,true)}return Promise.resolve(A)}case"data:":{const t=w(n);const i=ge(t);if(i==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}const c=pe(i.mimeType);return Promise.resolve(l({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:c}]],body:ee(i.body)[0]}))}case"file:":{return Promise.resolve(a("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(t).catch(t=>a(t))}default:{return Promise.resolve(a("unknown scheme"))}}}function finalizeResponse(t,n){t.request.done=true;if(t.processResponseDone!=null){queueMicrotask(()=>t.processResponseDone(n))}}function fetchFinale(t,n){let i=t.timingInfo;const processResponseEndOfBody=()=>{const a=Date.now();if(t.request.destination==="document"){t.controller.fullTimingInfo=i}t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:"){return}i.endTime=a;let c=n.cacheState;const A=n.bodyInfo;if(!n.timingAllowPassed){i=R(i);c=""}let l=0;if(t.request.mode!=="navigator"||!n.hasCrossOriginRedirects){l=n.status;const t=z(n.headersList);if(t!=="failure"){A.contentType=me(t)}}if(t.request.initiatorType!=null){we(i,t.request.url.href,t.request.initiatorType,globalThis,c,A,l)}};const processResponseEndOfBodyTask=()=>{t.request.done=true;if(t.processResponseEndOfBody!=null){queueMicrotask(()=>t.processResponseEndOfBody(n))}if(t.request.initiatorType!=null){t.controller.reportTimingSteps()}};queueMicrotask(()=>processResponseEndOfBodyTask())};if(t.processResponse!=null){queueMicrotask(()=>{t.processResponse(n);t.processResponse=null})}const a=n.type==="error"?n:n.internalResponse??n;if(a.body==null){processResponseEndOfBody()}else{le(a.body.stream,()=>{processResponseEndOfBody()})}}async function httpFetch(t){const n=t.request;let i=null;let c=null;const A=t.timingInfo;if(n.serviceWorkers==="all"){}if(i===null){if(n.redirect==="follow"){n.serviceWorkers="none"}c=i=await httpNetworkOrCacheFetch(t);if(n.responseTainting==="cors"&&k(n,i)==="failure"){return a("cors failure")}if(y(n,i)==="failure"){n.timingAllowFailed=true}}if((n.responseTainting==="opaque"||i.type==="opaque")&&D(n.origin,n.client,n.destination,c)==="blocked"){return a("blocked")}if(re.has(c.status)){if(n.redirect!=="manual"){t.controller.connection.destroy(undefined,false)}if(n.redirect==="error"){i=a("unexpected redirect")}else if(n.redirect==="manual"){i=c}else if(n.redirect==="follow"){i=await httpRedirectFetch(t,i)}else{X(false)}}i.timingInfo=A;return i}function httpRedirectFetch(t,n){const i=t.request;const c=n.internalResponse?n.internalResponse:n;let A;try{A=Q(c,w(i).hash);if(A==null){return n}}catch(t){return Promise.resolve(a(t))}if(!G(A)){return Promise.resolve(a("URL scheme must be a HTTP(S) scheme"))}if(i.redirectCount===20){return Promise.resolve(a("redirect count exceeded"))}i.redirectCount+=1;if(i.mode==="cors"&&(A.username||A.password)&&!x(i,A)){return Promise.resolve(a('cross origin not allowed for request mode "cors"'))}if(i.responseTainting==="cors"&&(A.username||A.password)){return Promise.resolve(a('URL cannot contain credentials for request mode "cors"'))}if(c.status!==303&&i.body!=null&&i.body.source==null){return Promise.resolve(a())}if([301,302].includes(c.status)&&i.method==="POST"||c.status===303&&!ye.includes(i.method)){i.method="GET";i.body=null;for(const t of oe){i.headersList.delete(t)}}if(!x(w(i),A)){i.headersList.delete("authorization",true);i.headersList.delete("proxy-authorization",true);i.headersList.delete("cookie",true);i.headersList.delete("host",true)}if(i.body!=null){X(i.body.source!=null);i.body=ee(i.body.source)[0]}const l=t.timingInfo;l.redirectEndTime=l.postRedirectStartTime=N(t.crossOriginIsolatedCapability);if(l.redirectStartTime===0){l.redirectStartTime=l.startTime}i.urlList.push(A);S(i,c);return mainFetch(t,true)}async function httpNetworkOrCacheFetch(t,n=false,i=false){const A=t.request;let l=null;let d=null;let h=null;const f=null;const p=false;if(A.window==="no-window"&&A.redirect==="error"){l=t;d=A}else{d=g(A);l={...t};l.request=d}const m=A.credentials==="include"||A.credentials==="same-origin"&&A.responseTainting==="basic";const E=d.body?d.body.length:null;let C=null;if(d.body==null&&["POST","PUT"].includes(d.method)){C="0"}if(E!=null){C=$(`${E}`)}if(C!=null){d.headersList.append("content-length",C,true)}if(E!=null&&d.keepalive){}if(d.referrer instanceof URL){d.headersList.append("referer",$(d.referrer.href),true)}B(d);v(d);if(!d.headersList.contains("user-agent",true)){d.headersList.append("user-agent",Be)}if(d.cache==="default"&&(d.headersList.contains("if-modified-since",true)||d.headersList.contains("if-none-match",true)||d.headersList.contains("if-unmodified-since",true)||d.headersList.contains("if-match",true)||d.headersList.contains("if-range",true))){d.cache="no-store"}if(d.cache==="no-cache"&&!d.preventNoCacheCacheControlHeaderModification&&!d.headersList.contains("cache-control",true)){d.headersList.append("cache-control","max-age=0",true)}if(d.cache==="no-store"||d.cache==="reload"){if(!d.headersList.contains("pragma",true)){d.headersList.append("pragma","no-cache",true)}if(!d.headersList.contains("cache-control",true)){d.headersList.append("cache-control","no-cache",true)}}if(d.headersList.contains("range",true)){d.headersList.append("accept-encoding","identity",true)}if(!d.headersList.contains("accept-encoding",true)){if(Y(w(d))){d.headersList.append("accept-encoding","br, gzip, deflate",true)}else{d.headersList.append("accept-encoding","gzip, deflate",true)}}d.headersList.delete("host",true);if(m){}if(f==null){d.cache="no-store"}if(d.cache!=="no-store"&&d.cache!=="reload"){}if(h==null){if(d.cache==="only-if-cached"){return a("only if cached")}const t=await httpNetworkFetch(l,m,i);if(!se.has(d.method)&&t.status>=200&&t.status<=399){}if(p&&t.status===304){}if(h==null){h=t}}h.urlList=[...d.urlList];if(d.headersList.contains("range",true)){h.rangeRequested=true}h.requestIncludesCredentials=m;if(h.status===407){if(A.window==="no-window"){return a()}if(U(t)){return c(t)}return a("proxy authentication required")}if(h.status===421&&!i&&(A.body==null||A.body.source!=null)){if(U(t)){return c(t)}t.controller.connection.destroy();h=await httpNetworkOrCacheFetch(t,n,true)}if(n){}return h}async function httpNetworkFetch(t,n=false,i=false){X(!t.controller.connection||t.controller.connection.destroyed);t.controller.connection={abort:null,destroyed:false,destroy(t,n=true){if(!this.destroyed){this.destroyed=true;if(n){this.abort?.(t??new DOMException("The operation was aborted.","AbortError"))}}}};const A=t.request;let d=null;const f=t.timingInfo;const g=null;if(g==null){A.cache="no-store"}const m=i?"yes":"no";if(A.mode==="websocket"){}else{}let E=null;if(A.body==null&&t.processRequestEndOfBody){queueMicrotask(()=>t.processRequestEndOfBody())}else if(A.body!=null){const processBodyChunk=async function*(n){if(U(t)){return}yield n;t.processRequestBodyChunkLength?.(n.byteLength)};const processEndOfBody=()=>{if(U(t)){return}if(t.processRequestEndOfBody){t.processRequestEndOfBody()}};const processBodyError=n=>{if(U(t)){return}if(n.name==="AbortError"){t.controller.abort()}else{t.controller.terminate(n)}};E=async function*(){try{for await(const t of A.body.stream){yield*processBodyChunk(t)}processEndOfBody()}catch(t){processBodyError(t)}}()}try{const{body:n,status:i,statusText:a,headersList:c,socket:A}=await dispatch({body:E});if(A){d=l({status:i,statusText:a,headersList:c,socket:A})}else{const A=n[Symbol.asyncIterator]();t.controller.next=()=>A.next();d=l({status:i,statusText:a,headersList:c})}}catch(n){if(n.name==="AbortError"){t.controller.connection.destroy();return c(t,n)}return a(n)}const pullAlgorithm=async()=>{await t.controller.resume()};const cancelAlgorithm=n=>{if(!U(t)){t.controller.abort(n)}};const C=new ReadableStream({async start(n){t.controller.controller=n},async pull(t){await pullAlgorithm(t)},async cancel(t){await cancelAlgorithm(t)},type:"bytes"});d.body={stream:C,source:null,length:null};t.controller.onAborted=onAborted;t.controller.on("terminated",onAborted);t.controller.resume=async()=>{while(true){let n;let i;try{const{done:i,value:a}=await t.controller.next();if(P(t)){break}n=i?undefined:a}catch(a){if(t.controller.ended&&!f.encodedBodySize){n=undefined}else{n=a;i=true}}if(n===undefined){H(t.controller.controller);finalizeResponse(t,d);return}f.decodedBodySize+=n?.byteLength??0;if(i){t.controller.terminate(n);return}const a=new Uint8Array(n);if(a.byteLength){t.controller.controller.enqueue(a)}if(de(C)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0){return}}};function onAborted(n){if(P(t)){d.aborted=true;if(he(C)){t.controller.controller.error(t.controller.serializedAbortReason)}}else{if(he(C)){t.controller.controller.error(new TypeError("terminated",{cause:L(n)?n:undefined}))}}t.controller.connection.destroy()}return d;function dispatch({body:n}){const i=w(A);const a=t.controller.dispatcher;return new Promise((c,l)=>a.dispatch({path:i.pathname+i.search,origin:i.origin,method:A.method,body:a.isMockActive?A.body&&(A.body.source||A.body.stream):n,headers:A.headersList.entries,maxRedirections:0,upgrade:A.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(n){const{connection:i}=t.controller;f.finalConnectionTimingInfo=J(undefined,f.postRedirectStartTime,t.crossOriginIsolatedCapability);if(i.destroyed){n(new DOMException("The operation was aborted.","AbortError"))}else{t.controller.on("terminated",n);this.abort=i.abort=n}f.finalNetworkRequestStartTime=N(t.crossOriginIsolatedCapability)},onResponseStarted(){f.finalNetworkResponseStartTime=N(t.crossOriginIsolatedCapability)},onHeaders(t,n,i,a){if(t<200){return}let d="";const f=new h;for(let t=0;ti){l(new Error(`too many content-encodings in response: ${n.length}, maximum allowed is ${i}`));return true}for(let t=n.length-1;t>=0;--t){const i=n[t].trim();if(i==="x-gzip"||i==="gzip"){g.push(p.createGunzip({flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH}))}else if(i==="deflate"){g.push(j({flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH}))}else if(i==="br"){g.push(p.createBrotliDecompress({flush:p.constants.BROTLI_OPERATION_FLUSH,finishFlush:p.constants.BROTLI_OPERATION_FLUSH}))}else{g.length=0;break}}}const E=this.onError.bind(this);c({status:t,statusText:a,headersList:f,body:g.length?Ae(this.body,...g,t=>{if(t){this.onError(t)}}).on("error",E):this.body.on("error",E)});return true},onData(n){if(t.controller.dump){return}const i=n;f.encodedBodySize+=i.byteLength;return this.body.push(i)},onComplete(){if(this.abort){t.controller.off("terminated",this.abort)}if(t.controller.onAborted){t.controller.off("terminated",t.controller.onAborted)}t.controller.ended=true;this.body.push(null)},onError(n){if(this.abort){t.controller.off("terminated",this.abort)}this.body?.destroy(n);t.controller.terminate(n);l(n)},onUpgrade(t,n,i){if(t!==101){return}const a=new h;for(let t=0;t{const{extractBody:a,mixinBody:c,cloneBody:A,bodyUnusable:l}=i(4492);const{Headers:d,fill:h,HeadersList:f,setHeadersGuard:g,getHeadersGuard:p,setHeadersList:m,getHeadersList:E}=i(660);const{FinalizationRegistry:C}=i(6653)();const I=i(3440);const y=i(7975);const{isValidHTTPToken:B,sameOrigin:Q,environmentSettingsObject:w}=i(3168);const{forbiddenMethodsSet:S,corsSafeListedMethodsSet:b,referrerPolicy:R,requestRedirect:v,requestMode:k,requestCredentials:D,requestCache:T,requestDuplex:N}=i(4495);const{kEnumerableProperty:M,normalizedMethodRecordsBase:F,normalizedMethodRecords:x}=I;const{kHeaders:U,kSignal:P,kState:L,kDispatcher:O}=i(3627);const{webidl:H}=i(5893);const{URLSerializer:$}=i(1900);const{kConstruct:V}=i(6443);const G=i(4589);const{getMaxListeners:Y,setMaxListeners:J,getEventListeners:W,defaultMaxListeners:q}=i(8474);const j=Symbol("abortController");const z=new C(({signal:t,abort:n})=>{t.removeEventListener("abort",n)});const K=new WeakMap;function buildAbort(t){return abort;function abort(){const n=t.deref();if(n!==undefined){z.unregister(abort);this.removeEventListener("abort",abort);n.abort(this.reason);const t=K.get(n.signal);if(t!==undefined){if(t.size!==0){for(const n of t){const t=n.deref();if(t!==undefined){t.abort(this.reason)}}t.clear()}K.delete(n.signal)}}}}let Z=false;class Request{constructor(t,n={}){H.util.markAsUncloneable(this);if(t===V){return}const i="Request constructor";H.argumentLengthCheck(arguments,1,i);t=H.converters.RequestInfo(t,i,"input");n=H.converters.RequestInit(n,i,"init");let c=null;let A=null;const p=w.settingsObject.baseUrl;let C=null;if(typeof t==="string"){this[O]=n.dispatcher;let i;try{i=new URL(t,p)}catch(n){throw new TypeError("Failed to parse URL from "+t,{cause:n})}if(i.username||i.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+t)}c=makeRequest({urlList:[i]});A="cors"}else{this[O]=n.dispatcher||t[O];G(t instanceof Request);c=t[L];C=t[P]}const y=w.settingsObject.origin;let R="client";if(c.window?.constructor?.name==="EnvironmentSettingsObject"&&Q(c.window,y)){R=c.window}if(n.window!=null){throw new TypeError(`'window' option '${R}' must be null`)}if("window"in n){R="no-window"}c=makeRequest({method:c.method,headersList:c.headersList,unsafeRequest:c.unsafeRequest,client:w.settingsObject,window:R,priority:c.priority,origin:c.origin,referrer:c.referrer,referrerPolicy:c.referrerPolicy,mode:c.mode,credentials:c.credentials,cache:c.cache,redirect:c.redirect,integrity:c.integrity,keepalive:c.keepalive,reloadNavigation:c.reloadNavigation,historyNavigation:c.historyNavigation,urlList:[...c.urlList]});const v=Object.keys(n).length!==0;if(v){if(c.mode==="navigate"){c.mode="same-origin"}c.reloadNavigation=false;c.historyNavigation=false;c.origin="client";c.referrer="client";c.referrerPolicy="";c.url=c.urlList[c.urlList.length-1];c.urlList=[c.url]}if(n.referrer!==undefined){const t=n.referrer;if(t===""){c.referrer="no-referrer"}else{let n;try{n=new URL(t,p)}catch(n){throw new TypeError(`Referrer "${t}" is not a valid URL.`,{cause:n})}if(n.protocol==="about:"&&n.hostname==="client"||y&&!Q(n,w.settingsObject.baseUrl)){c.referrer="client"}else{c.referrer=n}}}if(n.referrerPolicy!==undefined){c.referrerPolicy=n.referrerPolicy}let k;if(n.mode!==undefined){k=n.mode}else{k=A}if(k==="navigate"){throw H.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(k!=null){c.mode=k}if(n.credentials!==undefined){c.credentials=n.credentials}if(n.cache!==undefined){c.cache=n.cache}if(c.cache==="only-if-cached"&&c.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(n.redirect!==undefined){c.redirect=n.redirect}if(n.integrity!=null){c.integrity=String(n.integrity)}if(n.keepalive!==undefined){c.keepalive=Boolean(n.keepalive)}if(n.method!==undefined){let t=n.method;const i=x[t];if(i!==undefined){c.method=i}else{if(!B(t)){throw new TypeError(`'${t}' is not a valid HTTP method.`)}const n=t.toUpperCase();if(S.has(n)){throw new TypeError(`'${t}' HTTP method is unsupported.`)}t=F[n]??t;c.method=t}if(!Z&&c.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});Z=true}}if(n.signal!==undefined){C=n.signal}this[L]=c;const D=new AbortController;this[P]=D.signal;if(C!=null){if(!C||typeof C.aborted!=="boolean"||typeof C.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(C.aborted){D.abort(C.reason)}else{this[j]=D;const t=new WeakRef(D);const n=buildAbort(t);try{if(typeof Y==="function"&&Y(C)===q){J(1500,C)}else if(W(C,"abort").length>=q){J(1500,C)}}catch{}I.addAbortListener(C,n);z.register(D,{signal:C,abort:n},n)}}this[U]=new d(V);m(this[U],c.headersList);g(this[U],"request");if(k==="no-cors"){if(!b.has(c.method)){throw new TypeError(`'${c.method} is unsupported in no-cors mode.`)}g(this[U],"request-no-cors")}if(v){const t=E(this[U]);const i=n.headers!==undefined?n.headers:new f(t);t.clear();if(i instanceof f){for(const{name:n,value:a}of i.rawValues()){t.append(n,a,false)}t.cookies=i.cookies}else{h(this[U],i)}}const T=t instanceof Request?t[L].body:null;if((n.body!=null||T!=null)&&(c.method==="GET"||c.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let N=null;if(n.body!=null){const[t,i]=a(n.body,c.keepalive);N=t;if(i&&!E(this[U]).contains("content-type",true)){this[U].append("content-type",i)}}const M=N??T;if(M!=null&&M.source==null){if(N!=null&&n.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(c.mode!=="same-origin"&&c.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}c.useCORSPreflightFlag=true}let $=M;if(N==null&&T!=null){if(l(t)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const n=new TransformStream;T.stream.pipeThrough(n);$={source:T.source,length:T.length,stream:n.readable}}this[L].body=$}get method(){H.brandCheck(this,Request);return this[L].method}get url(){H.brandCheck(this,Request);return $(this[L].url)}get headers(){H.brandCheck(this,Request);return this[U]}get destination(){H.brandCheck(this,Request);return this[L].destination}get referrer(){H.brandCheck(this,Request);if(this[L].referrer==="no-referrer"){return""}if(this[L].referrer==="client"){return"about:client"}return this[L].referrer.toString()}get referrerPolicy(){H.brandCheck(this,Request);return this[L].referrerPolicy}get mode(){H.brandCheck(this,Request);return this[L].mode}get credentials(){return this[L].credentials}get cache(){H.brandCheck(this,Request);return this[L].cache}get redirect(){H.brandCheck(this,Request);return this[L].redirect}get integrity(){H.brandCheck(this,Request);return this[L].integrity}get keepalive(){H.brandCheck(this,Request);return this[L].keepalive}get isReloadNavigation(){H.brandCheck(this,Request);return this[L].reloadNavigation}get isHistoryNavigation(){H.brandCheck(this,Request);return this[L].historyNavigation}get signal(){H.brandCheck(this,Request);return this[P]}get body(){H.brandCheck(this,Request);return this[L].body?this[L].body.stream:null}get bodyUsed(){H.brandCheck(this,Request);return!!this[L].body&&I.isDisturbed(this[L].body.stream)}get duplex(){H.brandCheck(this,Request);return"half"}clone(){H.brandCheck(this,Request);if(l(this)){throw new TypeError("unusable")}const t=cloneRequest(this[L]);const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{let t=K.get(this.signal);if(t===undefined){t=new Set;K.set(this.signal,t)}const i=new WeakRef(n);t.add(i);I.addAbortListener(n.signal,buildAbort(i))}return fromInnerRequest(t,n.signal,p(this[U]))}[y.inspect.custom](t,n){if(n.depth===null){n.depth=2}n.colors??=true;const i={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${y.formatWithOptions(n,i)}`}}c(Request);function makeRequest(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??false,unsafeRequest:t.unsafeRequest??false,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??false,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??false,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??false,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??false,historyNavigation:t.historyNavigation??false,userActivation:t.userActivation??false,taintedOrigin:t.taintedOrigin??false,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??false,done:t.done??false,timingAllowFailed:t.timingAllowFailed??false,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new f(t.headersList):new f}}function cloneRequest(t){const n=makeRequest({...t,body:null});if(t.body!=null){n.body=A(n,t.body)}return n}function fromInnerRequest(t,n,i){const a=new Request(V);a[L]=t;a[P]=n;a[U]=new d(V);m(a[U],t.headersList);g(a[U],i);return a}Object.defineProperties(Request.prototype,{method:M,url:M,headers:M,redirect:M,clone:M,signal:M,duplex:M,destination:M,body:M,bodyUsed:M,isHistoryNavigation:M,isReloadNavigation:M,keepalive:M,integrity:M,cache:M,credentials:M,attribute:M,referrerPolicy:M,referrer:M,mode:M,[Symbol.toStringTag]:{value:"Request",configurable:true}});H.converters.Request=H.interfaceConverter(Request);H.converters.RequestInfo=function(t,n,i){if(typeof t==="string"){return H.converters.USVString(t,n,i)}if(t instanceof Request){return H.converters.Request(t,n,i)}return H.converters.USVString(t,n,i)};H.converters.AbortSignal=H.interfaceConverter(AbortSignal);H.converters.RequestInit=H.dictionaryConverter([{key:"method",converter:H.converters.ByteString},{key:"headers",converter:H.converters.HeadersInit},{key:"body",converter:H.nullableConverter(H.converters.BodyInit)},{key:"referrer",converter:H.converters.USVString},{key:"referrerPolicy",converter:H.converters.DOMString,allowedValues:R},{key:"mode",converter:H.converters.DOMString,allowedValues:k},{key:"credentials",converter:H.converters.DOMString,allowedValues:D},{key:"cache",converter:H.converters.DOMString,allowedValues:T},{key:"redirect",converter:H.converters.DOMString,allowedValues:v},{key:"integrity",converter:H.converters.DOMString},{key:"keepalive",converter:H.converters.boolean},{key:"signal",converter:H.nullableConverter(t=>H.converters.AbortSignal(t,"RequestInit","signal",{strict:false}))},{key:"window",converter:H.converters.any},{key:"duplex",converter:H.converters.DOMString,allowedValues:N},{key:"dispatcher",converter:H.converters.any}]);t.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(t,n,i)=>{const{Headers:a,HeadersList:c,fill:A,getHeadersGuard:l,setHeadersGuard:d,setHeadersList:h}=i(660);const{extractBody:f,cloneBody:g,mixinBody:p,hasFinalizationRegistry:m,streamRegistry:E,bodyUnusable:C}=i(4492);const I=i(3440);const y=i(7975);const{kEnumerableProperty:B}=I;const{isValidReasonPhrase:Q,isCancelled:w,isAborted:S,isBlobLike:b,serializeJavascriptValueToJSONString:R,isErrorLike:v,isomorphicEncode:k,environmentSettingsObject:D}=i(3168);const{redirectStatusSet:T,nullBodyStatus:N}=i(4495);const{kState:M,kHeaders:F}=i(3627);const{webidl:x}=i(5893);const{FormData:U}=i(5910);const{URLSerializer:P}=i(1900);const{kConstruct:L}=i(6443);const O=i(4589);const{types:H}=i(7975);const $=new TextEncoder("utf-8");class Response{static error(){const t=fromInnerResponse(makeNetworkError(),"immutable");return t}static json(t,n={}){x.argumentLengthCheck(arguments,1,"Response.json");if(n!==null){n=x.converters.ResponseInit(n)}const i=$.encode(R(t));const a=f(i);const c=fromInnerResponse(makeResponse({}),"response");initializeResponse(c,n,{body:a[0],type:"application/json"});return c}static redirect(t,n=302){x.argumentLengthCheck(arguments,1,"Response.redirect");t=x.converters.USVString(t);n=x.converters["unsigned short"](n);let i;try{i=new URL(t,D.settingsObject.baseUrl)}catch(n){throw new TypeError(`Failed to parse URL from ${t}`,{cause:n})}if(!T.has(n)){throw new RangeError(`Invalid status code ${n}`)}const a=fromInnerResponse(makeResponse({}),"immutable");a[M].status=n;const c=k(P(i));a[M].headersList.append("location",c,true);return a}constructor(t=null,n={}){x.util.markAsUncloneable(this);if(t===L){return}if(t!==null){t=x.converters.BodyInit(t)}n=x.converters.ResponseInit(n);this[M]=makeResponse({});this[F]=new a(L);d(this[F],"response");h(this[F],this[M].headersList);let i=null;if(t!=null){const[n,a]=f(t);i={body:n,type:a}}initializeResponse(this,n,i)}get type(){x.brandCheck(this,Response);return this[M].type}get url(){x.brandCheck(this,Response);const t=this[M].urlList;const n=t[t.length-1]??null;if(n===null){return""}return P(n,true)}get redirected(){x.brandCheck(this,Response);return this[M].urlList.length>1}get status(){x.brandCheck(this,Response);return this[M].status}get ok(){x.brandCheck(this,Response);return this[M].status>=200&&this[M].status<=299}get statusText(){x.brandCheck(this,Response);return this[M].statusText}get headers(){x.brandCheck(this,Response);return this[F]}get body(){x.brandCheck(this,Response);return this[M].body?this[M].body.stream:null}get bodyUsed(){x.brandCheck(this,Response);return!!this[M].body&&I.isDisturbed(this[M].body.stream)}clone(){x.brandCheck(this,Response);if(C(this)){throw x.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const t=cloneResponse(this[M]);if(m&&this[M].body?.stream){E.register(this,new WeakRef(this[M].body.stream))}return fromInnerResponse(t,l(this[F]))}[y.inspect.custom](t,n){if(n.depth===null){n.depth=2}n.colors??=true;const i={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${y.formatWithOptions(n,i)}`}}p(Response);Object.defineProperties(Response.prototype,{type:B,url:B,status:B,ok:B,redirected:B,statusText:B,headers:B,clone:B,body:B,bodyUsed:B,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:B,redirect:B,error:B});function cloneResponse(t){if(t.internalResponse){return filterResponse(cloneResponse(t.internalResponse),t.type)}const n=makeResponse({...t,body:null});if(t.body!=null){n.body=g(n,t.body)}return n}function makeResponse(t){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new c(t?.headersList):new c,urlList:t?.urlList?[...t.urlList]:[]}}function makeNetworkError(t){const n=v(t);return makeResponse({type:"error",status:0,error:n?t:new Error(t?String(t):t),aborted:t&&t.name==="AbortError"})}function isNetworkError(t){return t.type==="error"&&t.status===0}function makeFilteredResponse(t,n){n={internalResponse:t,...n};return new Proxy(t,{get(t,i){return i in n?n[i]:t[i]},set(t,i,a){O(!(i in n));t[i]=a;return true}})}function filterResponse(t,n){if(n==="basic"){return makeFilteredResponse(t,{type:"basic",headersList:t.headersList})}else if(n==="cors"){return makeFilteredResponse(t,{type:"cors",headersList:t.headersList})}else if(n==="opaque"){return makeFilteredResponse(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(n==="opaqueredirect"){return makeFilteredResponse(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{O(false)}}function makeAppropriateNetworkError(t,n=null){O(w(t));return S(t)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:n})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:n}))}function initializeResponse(t,n,i){if(n.status!==null&&(n.status<200||n.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in n&&n.statusText!=null){if(!Q(String(n.statusText))){throw new TypeError("Invalid statusText")}}if("status"in n&&n.status!=null){t[M].status=n.status}if("statusText"in n&&n.statusText!=null){t[M].statusText=n.statusText}if("headers"in n&&n.headers!=null){A(t[F],n.headers)}if(i){if(N.includes(t.status)){throw x.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`})}t[M].body=i.body;if(i.type!=null&&!t[M].headersList.contains("content-type",true)){t[M].headersList.append("content-type",i.type,true)}}}function fromInnerResponse(t,n){const i=new Response(L);i[M]=t;i[F]=new a(L);h(i[F],t.headersList);d(i[F],n);if(m&&t.body?.stream){E.register(i,new WeakRef(t.body.stream))}return i}x.converters.ReadableStream=x.interfaceConverter(ReadableStream);x.converters.FormData=x.interfaceConverter(U);x.converters.URLSearchParams=x.interfaceConverter(URLSearchParams);x.converters.XMLHttpRequestBodyInit=function(t,n,i){if(typeof t==="string"){return x.converters.USVString(t,n,i)}if(b(t)){return x.converters.Blob(t,n,i,{strict:false})}if(ArrayBuffer.isView(t)||H.isArrayBuffer(t)){return x.converters.BufferSource(t,n,i)}if(I.isFormDataLike(t)){return x.converters.FormData(t,n,i,{strict:false})}if(t instanceof URLSearchParams){return x.converters.URLSearchParams(t,n,i)}return x.converters.DOMString(t,n,i)};x.converters.BodyInit=function(t,n,i){if(t instanceof ReadableStream){return x.converters.ReadableStream(t,n,i)}if(t?.[Symbol.asyncIterator]){return t}return x.converters.XMLHttpRequestBodyInit(t,n,i)};x.converters.ResponseInit=x.dictionaryConverter([{key:"status",converter:x.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:x.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:x.converters.HeadersInit}]);t.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:t=>{t.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(t,n,i)=>{const{Transform:a}=i(7075);const c=i(8522);const{redirectStatusSet:A,referrerPolicySet:l,badPortsSet:d}=i(4495);const{getGlobalOrigin:h}=i(1059);const{collectASequenceOfCodePoints:f,collectAnHTTPQuotedString:g,removeChars:p,parseMIMEType:m}=i(1900);const{performance:E}=i(643);const{isBlobLike:C,ReadableStreamFrom:I,isValidHTTPToken:y,normalizedMethodRecordsBase:B}=i(3440);const Q=i(4589);const{isUint8Array:w}=i(3429);const{webidl:S}=i(5893);let b=[];let R;try{R=i(7598);const t=["sha256","sha384","sha512"];b=R.getHashes().filter(n=>t.includes(n))}catch{}function responseURL(t){const n=t.urlList;const i=n.length;return i===0?null:n[i-1].toString()}function responseLocationURL(t,n){if(!A.has(t.status)){return null}let i=t.headersList.get("location",true);if(i!==null&&isValidHeaderValue(i)){if(!isValidEncodedURL(i)){i=normalizeBinaryStringToUtf8(i)}i=new URL(i,responseURL(t))}if(i&&!i.hash){i.hash=n}return i}function isValidEncodedURL(t){for(let n=0;n126||i<32){return false}}return true}function normalizeBinaryStringToUtf8(t){return Buffer.from(t,"binary").toString("utf8")}function requestCurrentURL(t){return t.urlList[t.urlList.length-1]}function requestBadPort(t){const n=requestCurrentURL(t);if(urlIsHttpHttpsScheme(n)&&d.has(n.port)){return"blocked"}return"allowed"}function isErrorLike(t){return t instanceof Error||(t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException")}function isValidReasonPhrase(t){for(let n=0;n=32&&i<=126||i>=128&&i<=255)){return false}}return true}const v=y;function isValidHeaderValue(t){return(t[0]==="\t"||t[0]===" "||t[t.length-1]==="\t"||t[t.length-1]===" "||t.includes("\n")||t.includes("\r")||t.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(t,n){const{headersList:i}=n;const a=(i.get("referrer-policy",true)??"").split(",");let c="";if(a.length>0){for(let t=a.length;t!==0;t--){const n=a[t-1].trim();if(l.has(n)){c=n;break}}}if(c!==""){t.referrerPolicy=c}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(t){let n=null;n=t.mode;t.headersList.set("sec-fetch-mode",n,true)}function appendRequestOriginHeader(t){let n=t.origin;if(n==="client"||n===undefined){return}if(t.responseTainting==="cors"||t.mode==="websocket"){t.headersList.append("origin",n,true)}else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":n=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(t.origin&&urlHasHttpsScheme(t.origin)&&!urlHasHttpsScheme(requestCurrentURL(t))){n=null}break;case"same-origin":if(!sameOrigin(t,requestCurrentURL(t))){n=null}break;default:}t.headersList.append("origin",n,true)}}function coarsenTime(t,n){return t}function clampAndCoarsenConnectionTimingInfo(t,n,i){if(!t?.startTime||t.startTime4096){a=c}const A=sameOrigin(t,a);const l=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(t.url);switch(n){case"origin":return c!=null?c:stripURLForReferrer(i,true);case"unsafe-url":return a;case"same-origin":return A?c:"no-referrer";case"origin-when-cross-origin":return A?a:c;case"strict-origin-when-cross-origin":{const n=requestCurrentURL(t);if(sameOrigin(a,n)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(n)){return"no-referrer"}return c}case"strict-origin":case"no-referrer-when-downgrade":default:return l?"no-referrer":c}}function stripURLForReferrer(t,n){Q(t instanceof URL);t=new URL(t);if(t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"){return"no-referrer"}t.username="";t.password="";t.hash="";if(n){t.pathname="";t.search=""}return t}function isURLPotentiallyTrustworthy(t){if(!(t instanceof URL)){return false}if(t.href==="about:blank"||t.href==="about:srcdoc"){return true}if(t.protocol==="data:")return true;if(t.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(t.origin);function isOriginPotentiallyTrustworthy(t){if(t==null||t==="null")return false;const n=new URL(t);if(n.protocol==="https:"||n.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||(n.hostname==="localhost"||n.hostname.includes("localhost."))||n.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(t,n){if(R===undefined){return true}const i=parseMetadata(n);if(i==="no metadata"){return true}if(i.length===0){return true}const a=getStrongestMetadata(i);const c=filterMetadataListByAlgorithm(i,a);for(const n of c){const i=n.algo;const a=n.hash;let c=R.createHash(i).update(t).digest("base64");if(c[c.length-1]==="="){if(c[c.length-2]==="="){c=c.slice(0,-2)}else{c=c.slice(0,-1)}}if(compareBase64Mixed(c,a)){return true}}return false}const k=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(t){const n=[];let i=true;for(const a of t.split(" ")){i=false;const t=k.exec(a);if(t===null||t.groups===undefined||t.groups.algo===undefined){continue}const c=t.groups.algo.toLowerCase();if(b.includes(c)){n.push(t.groups)}}if(i===true){return"no metadata"}return n}function getStrongestMetadata(t){let n=t[0].algo;if(n[3]==="5"){return n}for(let i=1;i{t=i;n=a});return{promise:i,resolve:t,reject:n}}function isAborted(t){return t.controller.state==="aborted"}function isCancelled(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function normalizeMethod(t){return B[t.toLowerCase()]??t}function serializeJavascriptValueToJSONString(t){const n=JSON.stringify(t);if(n===undefined){throw new TypeError("Value is not JSON serializable")}Q(typeof n==="string");return n}const D=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(t,n,i=0,a=1){class FastIterableIterator{#Y;#J;#W;constructor(t,n){this.#Y=t;this.#J=n;this.#W=0}next(){if(typeof this!=="object"||this===null||!(#Y in this)){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const c=this.#W;const A=this.#Y[n];const l=A.length;if(c>=l){return{value:undefined,done:true}}const{[i]:d,[a]:h}=A[c];this.#W=c+1;let f;switch(this.#J){case"key":f=d;break;case"value":f=h;break;case"key+value":f=[d,h];break}return{value:f,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,D);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${t} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(t,n){return new FastIterableIterator(t,n)}}function iteratorMixin(t,n,i,a=0,c=1){const A=createIterator(t,i,a,c);const l={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){S.brandCheck(this,n);return A(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){S.brandCheck(this,n);return A(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){S.brandCheck(this,n);return A(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(i,a=globalThis){S.brandCheck(this,n);S.argumentLengthCheck(arguments,1,`${t}.forEach`);if(typeof i!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`)}for(const{0:t,1:n}of A(this,"key+value")){i.call(a,n,t,this)}}}};return Object.defineProperties(n.prototype,{...l,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:l.entries.value}})}async function fullyReadBody(t,n,i){const a=n;const c=i;let A;try{A=t.stream.getReader()}catch(t){c(t);return}try{a(await readAllBytes(A))}catch(t){c(t)}}function isReadableStreamLike(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee==="function"}function readableStreamClose(t){try{t.close();t.byobRequest?.respond(0)}catch(t){if(!t.message.includes("Controller is already closed")&&!t.message.includes("ReadableStream is already closed")){throw t}}}const T=/[^\x00-\xFF]/;function isomorphicEncode(t){Q(!T.test(t));return t}async function readAllBytes(t){const n=[];let i=0;while(true){const{done:a,value:c}=await t.read();if(a){return Buffer.concat(n,i)}if(!w(c)){throw new TypeError("Received non-Uint8Array chunk")}n.push(c);i+=c.length}}function urlIsLocal(t){Q("protocol"in t);const n=t.protocol;return n==="about:"||n==="blob:"||n==="data:"}function urlHasHttpsScheme(t){return typeof t==="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}function urlIsHttpHttpsScheme(t){Q("protocol"in t);const n=t.protocol;return n==="http:"||n==="https:"}function simpleRangeHeaderValue(t,n){const i=t;if(!i.startsWith("bytes")){return"failure"}const a={position:5};if(n){f(t=>t==="\t"||t===" ",i,a)}if(i.charCodeAt(a.position)!==61){return"failure"}a.position++;if(n){f(t=>t==="\t"||t===" ",i,a)}const c=f(t=>{const n=t.charCodeAt(0);return n>=48&&n<=57},i,a);const A=c.length?Number(c):null;if(n){f(t=>t==="\t"||t===" ",i,a)}if(i.charCodeAt(a.position)!==45){return"failure"}a.position++;if(n){f(t=>t==="\t"||t===" ",i,a)}const l=f(t=>{const n=t.charCodeAt(0);return n>=48&&n<=57},i,a);const d=l.length?Number(l):null;if(a.positiond){return"failure"}return{rangeStartValue:A,rangeEndValue:d}}function buildContentRange(t,n,i){let a="bytes ";a+=isomorphicEncode(`${t}`);a+="-";a+=isomorphicEncode(`${n}`);a+="/";a+=isomorphicEncode(`${i}`);return a}class InflateStream extends a{#q;constructor(t){super();this.#q=t}_transform(t,n,i){if(!this._inflateStream){if(t.length===0){i();return}this._inflateStream=(t[0]&15)===8?c.createInflate(this.#q):c.createInflateRaw(this.#q);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",()=>this.push(null));this._inflateStream.on("error",t=>this.destroy(t))}this._inflateStream.write(t,n,i)}_final(t){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}t()}}function createInflate(t){return new InflateStream(t)}function extractMimeType(t){let n=null;let i=null;let a=null;const c=getDecodeSplit("content-type",t);if(c===null){return"failure"}for(const t of c){const c=m(t);if(c==="failure"||c.essence==="*/*"){continue}a=c;if(a.essence!==i){n=null;if(a.parameters.has("charset")){n=a.parameters.get("charset")}i=a.essence}else if(!a.parameters.has("charset")&&n!==null){a.parameters.set("charset",n)}}if(a==null){return"failure"}return a}function gettingDecodingSplitting(t){const n=t;const i={position:0};const a=[];let c="";while(i.positiont!=='"'&&t!==",",n,i);if(i.positiont===9||t===32);a.push(c);c=""}return a}function getDecodeSplit(t,n){const i=n.get(t,true);if(i===null){return null}return gettingDecodingSplitting(i)}const N=new TextDecoder;function utf8DecodeBytes(t){if(t.length===0){return""}if(t[0]===239&&t[1]===187&&t[2]===191){t=t.subarray(3)}const n=N.decode(t);return n}class EnvironmentSettingsObjectBase{get baseUrl(){return h()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const M=new EnvironmentSettingsObject;t.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:I,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:y,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:C,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:v,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:M}},5893:(t,n,i)=>{const{types:a,inspect:c}=i(7975);const{markAsUncloneable:A}=i(5919);const{toUSVString:l}=i(3440);const d={};d.converters={};d.util={};d.errors={};d.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};d.errors.conversionFailed=function(t){const n=t.types.length===1?"":" one of";const i=`${t.argument} could not be converted to`+`${n}: ${t.types.join(", ")}.`;return d.errors.exception({header:t.prefix,message:i})};d.errors.invalidArgument=function(t){return d.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};d.brandCheck=function(t,n,i){if(i?.strict!==false){if(!(t instanceof n)){const t=new TypeError("Illegal invocation");t.code="ERR_INVALID_THIS";throw t}}else{if(t?.[Symbol.toStringTag]!==n.prototype[Symbol.toStringTag]){const t=new TypeError("Illegal invocation");t.code="ERR_INVALID_THIS";throw t}}};d.argumentLengthCheck=function({length:t},n,i){if(t{});d.util.ConvertToInt=function(t,n,i,a){let c;let A;if(n===64){c=Math.pow(2,53)-1;if(i==="unsigned"){A=0}else{A=Math.pow(-2,53)+1}}else if(i==="unsigned"){A=0;c=Math.pow(2,n)-1}else{A=Math.pow(-2,n)-1;c=Math.pow(2,n-1)-1}let l=Number(t);if(l===0){l=0}if(a?.enforceRange===true){if(Number.isNaN(l)||l===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY){throw d.errors.exception({header:"Integer conversion",message:`Could not convert ${d.util.Stringify(t)} to an integer.`})}l=d.util.IntegerPart(l);if(lc){throw d.errors.exception({header:"Integer conversion",message:`Value must be between ${A}-${c}, got ${l}.`})}return l}if(!Number.isNaN(l)&&a?.clamp===true){l=Math.min(Math.max(l,A),c);if(Math.floor(l)%2===0){l=Math.floor(l)}else{l=Math.ceil(l)}return l}if(Number.isNaN(l)||l===0&&Object.is(0,l)||l===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY){return 0}l=d.util.IntegerPart(l);l=l%Math.pow(2,n);if(i==="signed"&&l>=Math.pow(2,n)-1){return l-Math.pow(2,n)}return l};d.util.IntegerPart=function(t){const n=Math.floor(Math.abs(t));if(t<0){return-1*n}return n};d.util.Stringify=function(t){const n=d.util.Type(t);switch(n){case"Symbol":return`Symbol(${t.description})`;case"Object":return c(t);case"String":return`"${t}"`;default:return`${t}`}};d.sequenceConverter=function(t){return(n,i,a,c)=>{if(d.util.Type(n)!=="Object"){throw d.errors.exception({header:i,message:`${a} (${d.util.Stringify(n)}) is not iterable.`})}const A=typeof c==="function"?c():n?.[Symbol.iterator]?.();const l=[];let h=0;if(A===undefined||typeof A.next!=="function"){throw d.errors.exception({header:i,message:`${a} is not iterable.`})}while(true){const{done:n,value:c}=A.next();if(n){break}l.push(t(c,i,`${a}[${h++}]`))}return l}};d.recordConverter=function(t,n){return(i,c,A)=>{if(d.util.Type(i)!=="Object"){throw d.errors.exception({header:c,message:`${A} ("${d.util.Type(i)}") is not an Object.`})}const l={};if(!a.isProxy(i)){const a=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const d of a){const a=t(d,c,A);const h=n(i[d],c,A);l[a]=h}return l}const h=Reflect.ownKeys(i);for(const a of h){const d=Reflect.getOwnPropertyDescriptor(i,a);if(d?.enumerable){const d=t(a,c,A);const h=n(i[a],c,A);l[d]=h}}return l}};d.interfaceConverter=function(t){return(n,i,a,c)=>{if(c?.strict!==false&&!(n instanceof t)){throw d.errors.exception({header:i,message:`Expected ${a} ("${d.util.Stringify(n)}") to be an instance of ${t.name}.`})}return n}};d.dictionaryConverter=function(t){return(n,i,a)=>{const c=d.util.Type(n);const A={};if(c==="Null"||c==="Undefined"){return A}else if(c!=="Object"){throw d.errors.exception({header:i,message:`Expected ${n} to be one of: Null, Undefined, Object.`})}for(const c of t){const{key:t,defaultValue:l,required:h,converter:f}=c;if(h===true){if(!Object.hasOwn(n,t)){throw d.errors.exception({header:i,message:`Missing required key "${t}".`})}}let g=n[t];const p=Object.hasOwn(c,"defaultValue");if(p&&g!==null){g??=l()}if(h||p||g!==undefined){g=f(g,i,`${a}.${t}`);if(c.allowedValues&&!c.allowedValues.includes(g)){throw d.errors.exception({header:i,message:`${g} is not an accepted type. Expected one of ${c.allowedValues.join(", ")}.`})}A[t]=g}}return A}};d.nullableConverter=function(t){return(n,i,a)=>{if(n===null){return n}return t(n,i,a)}};d.converters.DOMString=function(t,n,i,a){if(t===null&&a?.legacyNullToEmptyString){return""}if(typeof t==="symbol"){throw d.errors.exception({header:n,message:`${i} is a symbol, which cannot be converted to a DOMString.`})}return String(t)};d.converters.ByteString=function(t,n,i){const a=d.converters.DOMString(t,n,i);for(let t=0;t255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${t} has a value of ${a.charCodeAt(t)} which is greater than 255.`)}}return a};d.converters.USVString=l;d.converters.boolean=function(t){const n=Boolean(t);return n};d.converters.any=function(t){return t};d.converters["long long"]=function(t,n,i){const a=d.util.ConvertToInt(t,64,"signed",undefined,n,i);return a};d.converters["unsigned long long"]=function(t,n,i){const a=d.util.ConvertToInt(t,64,"unsigned",undefined,n,i);return a};d.converters["unsigned long"]=function(t,n,i){const a=d.util.ConvertToInt(t,32,"unsigned",undefined,n,i);return a};d.converters["unsigned short"]=function(t,n,i,a){const c=d.util.ConvertToInt(t,16,"unsigned",a,n,i);return c};d.converters.ArrayBuffer=function(t,n,i,c){if(d.util.Type(t)!=="Object"||!a.isAnyArrayBuffer(t)){throw d.errors.conversionFailed({prefix:n,argument:`${i} ("${d.util.Stringify(t)}")`,types:["ArrayBuffer"]})}if(c?.allowShared===false&&a.isSharedArrayBuffer(t)){throw d.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.resizable||t.growable){throw d.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};d.converters.TypedArray=function(t,n,i,c,A){if(d.util.Type(t)!=="Object"||!a.isTypedArray(t)||t.constructor.name!==n.name){throw d.errors.conversionFailed({prefix:i,argument:`${c} ("${d.util.Stringify(t)}")`,types:[n.name]})}if(A?.allowShared===false&&a.isSharedArrayBuffer(t.buffer)){throw d.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.buffer.resizable||t.buffer.growable){throw d.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};d.converters.DataView=function(t,n,i,c){if(d.util.Type(t)!=="Object"||!a.isDataView(t)){throw d.errors.exception({header:n,message:`${i} is not a DataView.`})}if(c?.allowShared===false&&a.isSharedArrayBuffer(t.buffer)){throw d.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(t.buffer.resizable||t.buffer.growable){throw d.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return t};d.converters.BufferSource=function(t,n,i,c){if(a.isAnyArrayBuffer(t)){return d.converters.ArrayBuffer(t,n,i,{...c,allowShared:false})}if(a.isTypedArray(t)){return d.converters.TypedArray(t,t.constructor,n,i,{...c,allowShared:false})}if(a.isDataView(t)){return d.converters.DataView(t,n,i,{...c,allowShared:false})}throw d.errors.conversionFailed({prefix:n,argument:`${i} ("${d.util.Stringify(t)}")`,types:["BufferSource"]})};d.converters["sequence"]=d.sequenceConverter(d.converters.ByteString);d.converters["sequence>"]=d.sequenceConverter(d.converters["sequence"]);d.converters["record"]=d.recordConverter(d.converters.ByteString,d.converters.ByteString);t.exports={webidl:d}},2607:t=>{function getEncoding(t){if(!t){return"failure"}switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}t.exports={getEncoding:getEncoding}},8355:(t,n,i)=>{const{staticPropertyDescriptors:a,readOperation:c,fireAProgressEvent:A}=i(3610);const{kState:l,kError:d,kResult:h,kEvents:f,kAborted:g}=i(961);const{webidl:p}=i(5893);const{kEnumerableProperty:m}=i(3440);class FileReader extends EventTarget{constructor(){super();this[l]="empty";this[h]=null;this[d]=null;this[f]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");t=p.converters.Blob(t,{strict:false});c(this,t,"ArrayBuffer")}readAsBinaryString(t){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");t=p.converters.Blob(t,{strict:false});c(this,t,"BinaryString")}readAsText(t,n=undefined){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsText");t=p.converters.Blob(t,{strict:false});if(n!==undefined){n=p.converters.DOMString(n,"FileReader.readAsText","encoding")}c(this,t,"Text",n)}readAsDataURL(t){p.brandCheck(this,FileReader);p.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");t=p.converters.Blob(t,{strict:false});c(this,t,"DataURL")}abort(){if(this[l]==="empty"||this[l]==="done"){this[h]=null;return}if(this[l]==="loading"){this[l]="done";this[h]=null}this[g]=true;A("abort",this);if(this[l]!=="loading"){A("loadend",this)}}get readyState(){p.brandCheck(this,FileReader);switch(this[l]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){p.brandCheck(this,FileReader);return this[h]}get error(){p.brandCheck(this,FileReader);return this[d]}get onloadend(){p.brandCheck(this,FileReader);return this[f].loadend}set onloadend(t){p.brandCheck(this,FileReader);if(this[f].loadend){this.removeEventListener("loadend",this[f].loadend)}if(typeof t==="function"){this[f].loadend=t;this.addEventListener("loadend",t)}else{this[f].loadend=null}}get onerror(){p.brandCheck(this,FileReader);return this[f].error}set onerror(t){p.brandCheck(this,FileReader);if(this[f].error){this.removeEventListener("error",this[f].error)}if(typeof t==="function"){this[f].error=t;this.addEventListener("error",t)}else{this[f].error=null}}get onloadstart(){p.brandCheck(this,FileReader);return this[f].loadstart}set onloadstart(t){p.brandCheck(this,FileReader);if(this[f].loadstart){this.removeEventListener("loadstart",this[f].loadstart)}if(typeof t==="function"){this[f].loadstart=t;this.addEventListener("loadstart",t)}else{this[f].loadstart=null}}get onprogress(){p.brandCheck(this,FileReader);return this[f].progress}set onprogress(t){p.brandCheck(this,FileReader);if(this[f].progress){this.removeEventListener("progress",this[f].progress)}if(typeof t==="function"){this[f].progress=t;this.addEventListener("progress",t)}else{this[f].progress=null}}get onload(){p.brandCheck(this,FileReader);return this[f].load}set onload(t){p.brandCheck(this,FileReader);if(this[f].load){this.removeEventListener("load",this[f].load)}if(typeof t==="function"){this[f].load=t;this.addEventListener("load",t)}else{this[f].load=null}}get onabort(){p.brandCheck(this,FileReader);return this[f].abort}set onabort(t){p.brandCheck(this,FileReader);if(this[f].abort){this.removeEventListener("abort",this[f].abort)}if(typeof t==="function"){this[f].abort=t;this.addEventListener("abort",t)}else{this[f].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:m,readAsBinaryString:m,readAsText:m,readAsDataURL:m,abort:m,readyState:m,result:m,error:m,onloadstart:m,onprogress:m,onload:m,onabort:m,onerror:m,onloadend:m,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});t.exports={FileReader:FileReader}},8573:(t,n,i)=>{const{webidl:a}=i(5893);const c=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(t,n={}){t=a.converters.DOMString(t,"ProgressEvent constructor","type");n=a.converters.ProgressEventInit(n??{});super(t,n);this[c]={lengthComputable:n.lengthComputable,loaded:n.loaded,total:n.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[c].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[c].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[c].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}]);t.exports={ProgressEvent:ProgressEvent}},961:t=>{t.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(t,n,i)=>{const{kState:a,kError:c,kResult:A,kAborted:l,kLastProgressEventFired:d}=i(961);const{ProgressEvent:h}=i(8573);const{getEncoding:f}=i(2607);const{serializeAMimeType:g,parseMIMEType:p}=i(1900);const{types:m}=i(7975);const{StringDecoder:E}=i(3193);const{btoa:C}=i(4573);const I={enumerable:true,writable:false,configurable:false};function readOperation(t,n,i,h){if(t[a]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}t[a]="loading";t[A]=null;t[c]=null;const f=n.stream();const g=f.getReader();const p=[];let E=g.read();let C=true;(async()=>{while(!t[l]){try{const{done:f,value:I}=await E;if(C&&!t[l]){queueMicrotask(()=>{fireAProgressEvent("loadstart",t)})}C=false;if(!f&&m.isUint8Array(I)){p.push(I);if((t[d]===undefined||Date.now()-t[d]>=50)&&!t[l]){t[d]=Date.now();queueMicrotask(()=>{fireAProgressEvent("progress",t)})}E=g.read()}else if(f){queueMicrotask(()=>{t[a]="done";try{const a=packageData(p,i,n.type,h);if(t[l]){return}t[A]=a;fireAProgressEvent("load",t)}catch(n){t[c]=n;fireAProgressEvent("error",t)}if(t[a]!=="loading"){fireAProgressEvent("loadend",t)}});break}}catch(n){if(t[l]){return}queueMicrotask(()=>{t[a]="done";t[c]=n;fireAProgressEvent("error",t);if(t[a]!=="loading"){fireAProgressEvent("loadend",t)}});break}}})()}function fireAProgressEvent(t,n){const i=new h(t,{bubbles:false,cancelable:false});n.dispatchEvent(i)}function packageData(t,n,i,a){switch(n){case"DataURL":{let n="data:";const a=p(i||"application/octet-stream");if(a!=="failure"){n+=g(a)}n+=";base64,";const c=new E("latin1");for(const i of t){n+=C(c.write(i))}n+=C(c.end());return n}case"Text":{let n="failure";if(a){n=f(a)}if(n==="failure"&&i){const t=p(i);if(t!=="failure"){n=f(t.parameters.get("charset"))}}if(n==="failure"){n="UTF-8"}return decode(t,n)}case"ArrayBuffer":{const n=combineByteSequences(t);return n.buffer}case"BinaryString":{let n="";const i=new E("latin1");for(const a of t){n+=i.write(a)}n+=i.end();return n}}}function decode(t,n){const i=combineByteSequences(t);const a=BOMSniffing(i);let c=0;if(a!==null){n=a;c=a==="UTF-8"?3:2}const A=i.slice(c);return new TextDecoder(n).decode(A)}function BOMSniffing(t){const[n,i,a]=t;if(n===239&&i===187&&a===191){return"UTF-8"}else if(n===254&&i===255){return"UTF-16BE"}else if(n===255&&i===254){return"UTF-16LE"}return null}function combineByteSequences(t){const n=t.reduce((t,n)=>t+n.byteLength,0);let i=0;return t.reduce((t,n)=>{t.set(n,i);i+=n.byteLength;return t},new Uint8Array(n))}t.exports={staticPropertyDescriptors:I,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(t,n,i)=>{const{uid:a,states:c,sentCloseFrameState:A,emptyBuffer:l,opcodes:d}=i(736);const{kReadyState:h,kSentClose:f,kByteParser:g,kReceivedClose:p,kResponse:m}=i(1216);const{fireEvent:E,failWebsocketConnection:C,isClosing:I,isClosed:y,isEstablished:B,parseExtensions:Q}=i(8625);const{channels:w}=i(2414);const{CloseEvent:S}=i(5188);const{makeRequest:b}=i(9967);const{fetching:R}=i(4398);const{Headers:v,getHeadersList:k}=i(660);const{getDecodeSplit:D}=i(3168);const{WebsocketFrameSend:T}=i(3264);let N;try{N=i(7598)}catch{}function establishWebSocketConnection(t,n,i,c,A,l){const d=t;d.protocol=t.protocol==="ws:"?"http:":"https:";const h=b({urlList:[d],client:i,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(l.headers){const t=k(new v(l.headers));h.headersList=t}const f=N.randomBytes(16).toString("base64");h.headersList.append("sec-websocket-key",f);h.headersList.append("sec-websocket-version","13");for(const t of n){h.headersList.append("sec-websocket-protocol",t)}const g="permessage-deflate; client_max_window_bits";h.headersList.append("sec-websocket-extensions",g);const p=R({request:h,useParallelQueue:true,dispatcher:l.dispatcher,processResponse(t){if(t.type==="error"||t.status!==101){C(c,"Received network error or non-101 status code.");return}if(n.length!==0&&!t.headersList.get("Sec-WebSocket-Protocol")){C(c,"Server did not respond with sent protocols.");return}if(t.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){C(c,'Server did not set Upgrade header to "websocket".');return}if(t.headersList.get("Connection")?.toLowerCase()!=="upgrade"){C(c,'Server did not set Connection header to "upgrade".');return}const i=t.headersList.get("Sec-WebSocket-Accept");const l=N.createHash("sha1").update(f+a).digest("base64");if(i!==l){C(c,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const d=t.headersList.get("Sec-WebSocket-Extensions");let g;if(d!==null){g=Q(d);if(!g.has("permessage-deflate")){C(c,"Sec-WebSocket-Extensions header does not match.");return}}const p=t.headersList.get("Sec-WebSocket-Protocol");if(p!==null){const t=D("sec-websocket-protocol",h.headersList);if(!t.includes(p)){C(c,"Protocol was not set in the opening handshake.");return}}t.socket.on("data",onSocketData);t.socket.on("close",onSocketClose);t.socket.on("error",onSocketError);if(w.open.hasSubscribers){w.open.publish({address:t.socket.address(),protocol:p,extensions:d})}A(t,g)}});return p}function closeWebSocketConnection(t,n,i,a){if(I(t)||y(t)){}else if(!B(t)){C(t,"Connection was closed before it was established.");t[h]=c.CLOSING}else if(t[f]===A.NOT_SENT){t[f]=A.PROCESSING;const g=new T;if(n!==undefined&&i===undefined){g.frameData=Buffer.allocUnsafe(2);g.frameData.writeUInt16BE(n,0)}else if(n!==undefined&&i!==undefined){g.frameData=Buffer.allocUnsafe(2+a);g.frameData.writeUInt16BE(n,0);g.frameData.write(i,2,"utf-8")}else{g.frameData=l}const p=t[m].socket;p.write(g.createFrame(d.CLOSE));t[f]=A.SENT;t[h]=c.CLOSING}else{t[h]=c.CLOSING}}function onSocketData(t){if(!this.ws[g].write(t)){this.pause()}}function onSocketClose(){const{ws:t}=this;const{[m]:n}=t;n.socket.off("data",onSocketData);n.socket.off("close",onSocketClose);n.socket.off("error",onSocketError);const i=t[f]===A.SENT&&t[p];let a=1005;let l="";const d=t[g].closingInfo;if(d&&!d.error){a=d.code??1005;l=d.reason}else if(!t[p]){a=1006}t[h]=c.CLOSED;E("close",t,(t,n)=>new S(t,n),{wasClean:i,code:a,reason:l});if(w.close.hasSubscribers){w.close.publish({websocket:t,code:a,reason:l})}}function onSocketError(t){const{ws:n}=this;n[h]=c.CLOSING;if(w.socketError.hasSubscribers){w.socketError.publish(t)}this.destroy()}t.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:t=>{const n="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const i={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const c={NOT_SENT:0,PROCESSING:1,SENT:2};const A={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const l=2**16-1;const d={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const h=Buffer.allocUnsafe(0);const f={string:1,typedArray:2,arrayBuffer:3,blob:4};t.exports={uid:n,sentCloseFrameState:c,staticPropertyDescriptors:i,states:a,opcodes:A,maxUnsigned16Bit:l,parserStates:d,emptyBuffer:h,sendHints:f}},5188:(t,n,i)=>{const{webidl:a}=i(5893);const{kEnumerableProperty:c}=i(3440);const{kConstruct:A}=i(6443);const{MessagePort:l}=i(5919);class MessageEvent extends Event{#j;constructor(t,n={}){if(t===A){super(arguments[1],arguments[2]);a.util.markAsUncloneable(this);return}const i="MessageEvent constructor";a.argumentLengthCheck(arguments,1,i);t=a.converters.DOMString(t,i,"type");n=a.converters.MessageEventInit(n,i,"eventInitDict");super(t,n);this.#j=n;a.util.markAsUncloneable(this)}get data(){a.brandCheck(this,MessageEvent);return this.#j.data}get origin(){a.brandCheck(this,MessageEvent);return this.#j.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#j.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#j.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#j.ports)){Object.freeze(this.#j.ports)}return this.#j.ports}initMessageEvent(t,n=false,i=false,c=null,A="",l="",d=null,h=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(t,{bubbles:n,cancelable:i,data:c,origin:A,lastEventId:l,source:d,ports:h})}static createFastMessageEvent(t,n){const i=new MessageEvent(A,t,n);i.#j=n;i.#j.data??=null;i.#j.origin??="";i.#j.lastEventId??="";i.#j.source??=null;i.#j.ports??=[];return i}}const{createFastMessageEvent:d}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#j;constructor(t,n={}){const i="CloseEvent constructor";a.argumentLengthCheck(arguments,1,i);t=a.converters.DOMString(t,i,"type");n=a.converters.CloseEventInit(n);super(t,n);this.#j=n;a.util.markAsUncloneable(this)}get wasClean(){a.brandCheck(this,CloseEvent);return this.#j.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#j.code}get reason(){a.brandCheck(this,CloseEvent);return this.#j.reason}}class ErrorEvent extends Event{#j;constructor(t,n){const i="ErrorEvent constructor";a.argumentLengthCheck(arguments,1,i);super(t,n);a.util.markAsUncloneable(this);t=a.converters.DOMString(t,i,"type");n=a.converters.ErrorEventInit(n??{});this.#j=n}get message(){a.brandCheck(this,ErrorEvent);return this.#j.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#j.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#j.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#j.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#j.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:c,origin:c,lastEventId:c,source:c,ports:c,initMessageEvent:c});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:c,code:c,wasClean:c});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:c,filename:c,lineno:c,colno:c,error:c});a.converters.MessagePort=a.interfaceConverter(l);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const h=[{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}];a.converters.MessageEventInit=a.dictionaryConverter([...h,{key:"data",converter:a.converters.any,defaultValue:()=>null},{key:"origin",converter:a.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:()=>""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:a.converters["sequence"],defaultValue:()=>new Array(0)}]);a.converters.CloseEventInit=a.dictionaryConverter([...h,{key:"wasClean",converter:a.converters.boolean,defaultValue:()=>false},{key:"code",converter:a.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:a.converters.USVString,defaultValue:()=>""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...h,{key:"message",converter:a.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:a.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:a.converters.any}]);t.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:d}},3264:(t,n,i)=>{const{maxUnsigned16Bit:a}=i(736);const c=16386;let A;let l=null;let d=c;try{A=i(7598)}catch{A={randomFillSync:function randomFillSync(t,n,i){for(let n=0;na){l+=8;A=127}else if(c>125){l+=2;A=126}const d=Buffer.allocUnsafe(c+l);d[0]=d[1]=0;d[0]|=128;d[0]=(d[0]&240)+t; +/*! ws. MIT License. Einar Otto Stangvik */d[l-4]=i[0];d[l-3]=i[1];d[l-2]=i[2];d[l-1]=i[3];d[1]=A;if(A===126){d.writeUInt16BE(c,2)}else if(A===127){d[2]=d[3]=0;d.writeUIntBE(c,4,6)}d[1]|=128;for(let t=0;t{const{createInflateRaw:a,Z_DEFAULT_WINDOWBITS:c}=i(8522);const{isValidClientWindowBits:A}=i(8625);const{MessageSizeExceededError:l}=i(8707);const d=Buffer.from([0,0,255,255]);const h=Symbol("kBuffer");const f=Symbol("kLength");class PerMessageDeflate{#z;#h={};#K=0;constructor(t,n){this.#h.serverNoContextTakeover=t.has("server_no_context_takeover");this.#h.serverMaxWindowBits=t.get("server_max_window_bits");this.#K=n.maxPayloadSize}decompress(t,n,i){if(!this.#z){let t=c;if(this.#h.serverMaxWindowBits){if(!A(this.#h.serverMaxWindowBits)){i(new Error("Invalid server_max_window_bits"));return}t=Number.parseInt(this.#h.serverMaxWindowBits)}try{this.#z=a({windowBits:t})}catch(t){i(t);return}this.#z[h]=[];this.#z[f]=0;this.#z.on("data",t=>{this.#z[f]+=t.length;if(this.#K>0&&this.#z[f]>this.#K){i(new l);this.#z.removeAllListeners();this.#z=null;return}this.#z[h].push(t)});this.#z.on("error",t=>{this.#z=null;i(t)})}this.#z.write(t);if(n){this.#z.write(d)}this.#z.flush(()=>{if(!this.#z){return}const t=Buffer.concat(this.#z[h],this.#z[f]);this.#z[h].length=0;this.#z[f]=0;i(null,t)})}}t.exports={PerMessageDeflate:PerMessageDeflate}},1652:(t,n,i)=>{const{Writable:a}=i(7075);const c=i(4589);const{parserStates:A,opcodes:l,states:d,emptyBuffer:h,sentCloseFrameState:f}=i(736);const{kReadyState:g,kSentClose:p,kResponse:m,kReceivedClose:E}=i(1216);const{channels:C}=i(2414);const{isValidStatusCode:I,isValidOpcode:y,failWebsocketConnection:B,websocketMessageReceived:Q,utf8Decode:w,isControlFrame:S,isTextBinaryFrame:b,isContinuationFrame:R}=i(8625);const{WebsocketFrameSend:v}=i(3264);const{closeWebSocketConnection:k}=i(6897);const{PerMessageDeflate:D}=i(9469);const{MessageSizeExceededError:T}=i(8707);function failWebsocketConnectionWithCode(t,n,i){k(t,n,i,Buffer.byteLength(i));B(t,i)}class ByteParser extends a{#Z=[];#X=0;#ee=0;#te=false;#I=A.INFO;#re={};#ne=[];#se;#oe;#K;constructor(t,n,i={}){super();this.ws=t;this.#se=n==null?new Map:n;this.#oe=i.maxFragments??0;this.#K=i.maxPayloadSize??0;if(this.#se.has("permessage-deflate")){this.#se.set("permessage-deflate",new D(n,i))}}_write(t,n,i){this.#Z.push(t);this.#ee+=t.length;this.#te=true;this.run(i)}#ie(){if(this.#K>0&&!S(this.#re.opcode)&&this.#re.payloadLength+this.#X>this.#K){failWebsocketConnectionWithCode(this.ws,1009,"Payload size exceeds maximum allowed size");return false}return true}run(t){while(this.#te){if(this.#I===A.INFO){if(this.#ee<2){return t()}const n=this.consume(2);const i=(n[0]&128)!==0;const a=n[0]&15;const c=(n[1]&128)===128;const d=!i&&a!==l.CONTINUATION;const h=n[1]&127;const f=n[0]&64;const g=n[0]&32;const p=n[0]&16;if(!y(a)){B(this.ws,"Invalid opcode received");return t()}if(c){B(this.ws,"Frame cannot be masked");return t()}if(f!==0&&!this.#se.has("permessage-deflate")){B(this.ws,"Expected RSV1 to be clear.");return}if(g!==0||p!==0){B(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(d&&!b(a)){B(this.ws,"Invalid frame type was fragmented.");return}if(b(a)&&this.#ne.length>0){B(this.ws,"Expected continuation frame");return}if(this.#re.fragmented&&d){B(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((h>125||d)&&S(a)){B(this.ws,"Control frame either too large or fragmented");return}if(R(a)&&this.#ne.length===0&&!this.#re.compressed){B(this.ws,"Unexpected continuation frame");return}if(h<=125){this.#re.payloadLength=h;this.#I=A.READ_DATA;if(!this.#ie()){return}}else if(h===126){this.#I=A.PAYLOADLENGTH_16}else if(h===127){this.#I=A.PAYLOADLENGTH_64}if(b(a)){this.#re.binaryType=a;this.#re.compressed=f!==0}this.#re.opcode=a;this.#re.masked=c;this.#re.fin=i;this.#re.fragmented=d}else if(this.#I===A.PAYLOADLENGTH_16){if(this.#ee<2){return t()}const n=this.consume(2);this.#re.payloadLength=n.readUInt16BE(0);this.#I=A.READ_DATA;if(!this.#ie()){return}}else if(this.#I===A.PAYLOADLENGTH_64){if(this.#ee<8){return t()}const n=this.consume(8);const i=n.readUInt32BE(0);const a=n.readUInt32BE(4);if(i!==0||a>2**31-1){B(this.ws,"Received payload length > 2^31 bytes.");return}this.#re.payloadLength=a;this.#I=A.READ_DATA;if(!this.#ie()){return}}else if(this.#I===A.READ_DATA){if(this.#ee0&&this.#X>this.#K){failWebsocketConnectionWithCode(this.ws,1009,(new T).message);return}if(!this.#re.fragmented&&this.#re.fin){Q(this.ws,this.#re.binaryType,this.consumeFragments())}this.#I=A.INFO}else{this.#se.get("permessage-deflate").decompress(n,this.#re.fin,(n,i)=>{if(n){const t=n instanceof T?1009:1007;failWebsocketConnectionWithCode(this.ws,t,n.message);return}if(!this.writeFragments(i)){return}if(this.#K>0&&this.#X>this.#K){failWebsocketConnectionWithCode(this.ws,1009,(new T).message);return}if(!this.#re.fin){this.#I=A.INFO;this.#te=true;this.run(t);return}Q(this.ws,this.#re.binaryType,this.consumeFragments());this.#te=true;this.#I=A.INFO;this.run(t)});this.#te=false;break}}}}}consume(t){if(t>this.#ee){throw new Error("Called consume() before buffers satiated.")}else if(t===0){return h}if(this.#Z[0].length===t){this.#ee-=this.#Z[0].length;return this.#Z.shift()}const n=Buffer.allocUnsafe(t);let i=0;while(i!==t){const a=this.#Z[0];const{length:c}=a;if(c+i===t){n.set(this.#Z.shift(),i);break}else if(c+i>t){n.set(a.subarray(0,t-i),i);this.#Z[0]=a.subarray(t-i);break}else{n.set(this.#Z.shift(),i);i+=a.length}}this.#ee-=t;return n}writeFragments(t){if(this.#oe>0&&this.#ne.length===this.#oe){failWebsocketConnectionWithCode(this.ws,1008,"Too many message fragments");return false}this.#X+=t.length;this.#ne.push(t);return true}consumeFragments(){const t=this.#ne;if(t.length===1){this.#X=0;return t.shift()}const n=Buffer.concat(t,this.#X);this.#ne=[];this.#X=0;return n}parseCloseBody(t){c(t.length!==1);let n;if(t.length>=2){n=t.readUInt16BE(0)}if(n!==undefined&&!I(n)){return{code:1002,reason:"Invalid status code",error:true}}let i=t.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}try{i=w(i)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:n,reason:i,error:false}}parseControlFrame(t){const{opcode:n,payloadLength:i}=this.#re;if(n===l.CLOSE){if(i===1){B(this.ws,"Received close frame with a 1-byte body.");return false}this.#re.closeInfo=this.parseCloseBody(t);if(this.#re.closeInfo.error){const{code:t,reason:n}=this.#re.closeInfo;k(this.ws,t,n,n.length);B(this.ws,n);return false}if(this.ws[p]!==f.SENT){let t=h;if(this.#re.closeInfo.code){t=Buffer.allocUnsafe(2);t.writeUInt16BE(this.#re.closeInfo.code,0)}const n=new v(t);this.ws[m].socket.write(n.createFrame(l.CLOSE),t=>{if(!t){this.ws[p]=f.SENT}})}this.ws[g]=d.CLOSING;this.ws[E]=true;return false}else if(n===l.PING){if(!this.ws[E]){const n=new v(t);this.ws[m].socket.write(n.createFrame(l.PONG));if(C.ping.hasSubscribers){C.ping.publish({payload:t})}}}else if(n===l.PONG){if(C.pong.hasSubscribers){C.pong.publish({payload:t})}}return true}get closingInfo(){return this.#re.closeInfo}}t.exports={ByteParser:ByteParser}},3900:(t,n,i)=>{const{WebsocketFrameSend:a}=i(3264);const{opcodes:c,sendHints:A}=i(736);const l=i(4660);const d=Buffer[Symbol.species];class SendQueue{#ae=new l;#ce=false;#Ae;constructor(t){this.#Ae=t}add(t,n,i){if(i!==A.blob){const a=createFrame(t,i);if(!this.#ce){this.#Ae.write(a,n)}else{const t={promise:null,callback:n,frame:a};this.#ae.push(t)}return}const a={promise:t.arrayBuffer().then(t=>{a.promise=null;a.frame=createFrame(t,i)}),callback:n,frame:null};this.#ae.push(a);if(!this.#ce){this.#le()}}async#le(){this.#ce=true;const t=this.#ae;while(!t.isEmpty()){const n=t.shift();if(n.promise!==null){await n.promise}this.#Ae.write(n.frame,n.callback);n.callback=n.frame=null}this.#ce=false}}function createFrame(t,n){return new a(toBuffer(t,n)).createFrame(n===A.string?c.TEXT:c.BINARY)}function toBuffer(t,n){switch(n){case A.string:return Buffer.from(t);case A.arrayBuffer:case A.blob:return new d(t);case A.typedArray:return new d(t.buffer,t.byteOffset,t.byteLength)}}t.exports={SendQueue:SendQueue}},1216:t=>{t.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(t,n,i)=>{const{kReadyState:a,kController:c,kResponse:A,kBinaryType:l,kWebSocketURL:d}=i(1216);const{states:h,opcodes:f}=i(736);const{ErrorEvent:g,createFastMessageEvent:p}=i(5188);const{isUtf8:m}=i(4573);const{collectASequenceOfCodePointsFast:E,removeHTTPWhitespace:C}=i(1900);function isConnecting(t){return t[a]===h.CONNECTING}function isEstablished(t){return t[a]===h.OPEN}function isClosing(t){return t[a]===h.CLOSING}function isClosed(t){return t[a]===h.CLOSED}function fireEvent(t,n,i=(t,n)=>new Event(t,n),a={}){const c=i(t,a);n.dispatchEvent(c)}function websocketMessageReceived(t,n,i){if(t[a]!==h.OPEN){return}let c;if(n===f.TEXT){try{c=B(i)}catch{failWebsocketConnection(t,"Received invalid UTF-8 in text frame.");return}}else if(n===f.BINARY){if(t[l]==="blob"){c=new Blob([i])}else{c=toArrayBuffer(i)}}fireEvent("message",t,p,{origin:t[d].origin,data:c})}function toArrayBuffer(t){if(t.byteLength===t.buffer.byteLength){return t.buffer}return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function isValidSubprotocol(t){if(t.length===0){return false}for(let n=0;n126||i===34||i===40||i===41||i===44||i===47||i===58||i===59||i===60||i===61||i===62||i===63||i===64||i===91||i===92||i===93||i===123||i===125){return false}}return true}function isValidStatusCode(t){if(t>=1e3&&t<1015){return t!==1004&&t!==1005&&t!==1006}return t>=3e3&&t<=4999}function failWebsocketConnection(t,n){const{[c]:i,[A]:a}=t;i.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(n){fireEvent("error",t,(t,n)=>new g(t,n),{error:new Error(n),message:n})}}function isControlFrame(t){return t===f.CLOSE||t===f.PING||t===f.PONG}function isContinuationFrame(t){return t===f.CONTINUATION}function isTextBinaryFrame(t){return t===f.TEXT||t===f.BINARY}function isValidOpcode(t){return isTextBinaryFrame(t)||isContinuationFrame(t)||isControlFrame(t)}function parseExtensions(t){const n={position:0};const i=new Map;while(n.position57){return false}}const n=Number.parseInt(t,10);return n>=8&&n<=15}const I=typeof process.versions.icu==="string";const y=I?new TextDecoder("utf-8",{fatal:true}):undefined;const B=I?y.decode.bind(y):function(t){if(m(t)){return t.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};t.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:B,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(t,n,i)=>{const{webidl:a}=i(5893);const{URLSerializer:c}=i(1900);const{environmentSettingsObject:A}=i(3168);const{staticPropertyDescriptors:l,states:d,sentCloseFrameState:h,sendHints:f}=i(736);const{kWebSocketURL:g,kReadyState:p,kController:m,kBinaryType:E,kResponse:C,kSentClose:I,kByteParser:y}=i(1216);const{isConnecting:B,isEstablished:Q,isClosing:w,isValidSubprotocol:S,fireEvent:b}=i(8625);const{establishWebSocketConnection:R,closeWebSocketConnection:v}=i(6897);const{ByteParser:k}=i(1652);const{kEnumerableProperty:D,isBlobLike:T}=i(3440);const{getGlobalDispatcher:N}=i(2581);const{types:M}=i(7975);const{ErrorEvent:F,CloseEvent:x}=i(5188);const{SendQueue:U}=i(3900);class WebSocket extends EventTarget{#x={open:null,error:null,close:null,message:null};#ue=0;#de="";#se="";#he;constructor(t,n=[]){super();a.util.markAsUncloneable(this);const i="WebSocket constructor";a.argumentLengthCheck(arguments,1,i);const c=a.converters["DOMString or sequence or WebSocketInit"](n,i,"options");t=a.converters.USVString(t,i,"url");n=c.protocols;const l=A.settingsObject.baseUrl;let d;try{d=new URL(t,l)}catch(t){throw new DOMException(t,"SyntaxError")}if(d.protocol==="http:"){d.protocol="ws:"}else if(d.protocol==="https:"){d.protocol="wss:"}if(d.protocol!=="ws:"&&d.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${d.protocol}`,"SyntaxError")}if(d.hash||d.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof n==="string"){n=[n]}if(n.length!==new Set(n.map(t=>t.toLowerCase())).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(n.length>0&&!n.every(t=>S(t))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[g]=new URL(d.href);const f=A.settingsObject;this[m]=R(d,n,f,this,(t,n)=>this.#fe(t,n),c);this[p]=WebSocket.CONNECTING;this[I]=h.NOT_SENT;this[E]="blob"}close(t=undefined,n=undefined){a.brandCheck(this,WebSocket);const i="WebSocket.close";if(t!==undefined){t=a.converters["unsigned short"](t,i,"code",{clamp:true})}if(n!==undefined){n=a.converters.USVString(n,i,"reason")}if(t!==undefined){if(t!==1e3&&(t<3e3||t>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let c=0;if(n!==undefined){c=Buffer.byteLength(n);if(c>123){throw new DOMException(`Reason must be less than 123 bytes; received ${c}`,"SyntaxError")}}v(this,t,n,c)}send(t){a.brandCheck(this,WebSocket);const n="WebSocket.send";a.argumentLengthCheck(arguments,1,n);t=a.converters.WebSocketSendData(t,n,"data");if(B(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!Q(this)||w(this)){return}if(typeof t==="string"){const n=Buffer.byteLength(t);this.#ue+=n;this.#he.add(t,()=>{this.#ue-=n},f.string)}else if(M.isArrayBuffer(t)){this.#ue+=t.byteLength;this.#he.add(t,()=>{this.#ue-=t.byteLength},f.arrayBuffer)}else if(ArrayBuffer.isView(t)){this.#ue+=t.byteLength;this.#he.add(t,()=>{this.#ue-=t.byteLength},f.typedArray)}else if(T(t)){this.#ue+=t.size;this.#he.add(t,()=>{this.#ue-=t.size},f.blob)}}get readyState(){a.brandCheck(this,WebSocket);return this[p]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#ue}get url(){a.brandCheck(this,WebSocket);return c(this[g])}get extensions(){a.brandCheck(this,WebSocket);return this.#se}get protocol(){a.brandCheck(this,WebSocket);return this.#de}get onopen(){a.brandCheck(this,WebSocket);return this.#x.open}set onopen(t){a.brandCheck(this,WebSocket);if(this.#x.open){this.removeEventListener("open",this.#x.open)}if(typeof t==="function"){this.#x.open=t;this.addEventListener("open",t)}else{this.#x.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#x.error}set onerror(t){a.brandCheck(this,WebSocket);if(this.#x.error){this.removeEventListener("error",this.#x.error)}if(typeof t==="function"){this.#x.error=t;this.addEventListener("error",t)}else{this.#x.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#x.close}set onclose(t){a.brandCheck(this,WebSocket);if(this.#x.close){this.removeEventListener("close",this.#x.close)}if(typeof t==="function"){this.#x.close=t;this.addEventListener("close",t)}else{this.#x.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#x.message}set onmessage(t){a.brandCheck(this,WebSocket);if(this.#x.message){this.removeEventListener("message",this.#x.message)}if(typeof t==="function"){this.#x.message=t;this.addEventListener("message",t)}else{this.#x.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[E]}set binaryType(t){a.brandCheck(this,WebSocket);if(t!=="blob"&&t!=="arraybuffer"){this[E]="blob"}else{this[E]=t}}#fe(t,n){this[C]=t;const i=this[m]?.dispatcher?.webSocketOptions;const a=i?.maxFragments;const c=i?.maxPayloadSize;const A=new k(this,n,{maxFragments:a,maxPayloadSize:c});A.on("drain",onParserDrain);A.on("error",onParserError.bind(this));t.socket.ws=this;this[y]=A;this.#he=new U(t.socket);this[p]=d.OPEN;const l=t.headersList.get("sec-websocket-extensions");if(l!==null){this.#se=l}const h=t.headersList.get("sec-websocket-protocol");if(h!==null){this.#de=h}b("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=d.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=d.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=d.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=d.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:l,OPEN:l,CLOSING:l,CLOSED:l,url:D,readyState:D,bufferedAmount:D,onopen:D,onerror:D,onclose:D,close:D,onmessage:D,binaryType:D,send:D,extensions:D,protocol:D,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:l,OPEN:l,CLOSING:l,CLOSED:l});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(t,n,i){if(a.util.Type(t)==="Object"&&Symbol.iterator in t){return a.converters["sequence"](t)}return a.converters.DOMString(t,n,i)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:a.converters.any,defaultValue:()=>N()},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(t){if(a.util.Type(t)==="Object"&&!(Symbol.iterator in t)){return a.converters.WebSocketInit(t)}return{protocols:a.converters["DOMString or sequence"](t)}};a.converters.WebSocketSendData=function(t){if(a.util.Type(t)==="Object"){if(T(t)){return a.converters.Blob(t,{strict:false})}if(ArrayBuffer.isView(t)||M.isArrayBuffer(t)){return a.converters.BufferSource(t)}}return a.converters.USVString(t)};function onParserDrain(){this.ws[C].socket.resume()}function onParserError(t){let n;let i;if(t instanceof x){n=t.reason;i=t.code}else{n=t.message}b("error",this,()=>new F("error",{error:t,message:n}));v(this,i)}t.exports={WebSocket:WebSocket}},2613:n=>{n.exports=t(import.meta.url)("assert")},4434:n=>{n.exports=t(import.meta.url)("events")},8611:n=>{n.exports=t(import.meta.url)("http")},5692:n=>{n.exports=t(import.meta.url)("https")},9278:n=>{n.exports=t(import.meta.url)("net")},4589:n=>{n.exports=t(import.meta.url)("node:assert")},6698:n=>{n.exports=t(import.meta.url)("node:async_hooks")},4573:n=>{n.exports=t(import.meta.url)("node:buffer")},1421:n=>{n.exports=t(import.meta.url)("node:child_process")},7540:n=>{n.exports=t(import.meta.url)("node:console")},7598:n=>{n.exports=t(import.meta.url)("node:crypto")},3053:n=>{n.exports=t(import.meta.url)("node:diagnostics_channel")},610:n=>{n.exports=t(import.meta.url)("node:dns")},8474:n=>{n.exports=t(import.meta.url)("node:events")},3024:n=>{n.exports=t(import.meta.url)("node:fs")},1455:n=>{n.exports=t(import.meta.url)("node:fs/promises")},7067:n=>{n.exports=t(import.meta.url)("node:http")},2467:n=>{n.exports=t(import.meta.url)("node:http2")},4708:n=>{n.exports=t(import.meta.url)("node:https")},7030:n=>{n.exports=t(import.meta.url)("node:net")},8161:n=>{n.exports=t(import.meta.url)("node:os")},6760:n=>{n.exports=t(import.meta.url)("node:path")},3916:n=>{n.exports=t(import.meta.url)("node:path/posix")},643:n=>{n.exports=t(import.meta.url)("node:perf_hooks")},1708:n=>{n.exports=t(import.meta.url)("node:process")},1792:n=>{n.exports=t(import.meta.url)("node:querystring")},7075:n=>{n.exports=t(import.meta.url)("node:stream")},1692:n=>{n.exports=t(import.meta.url)("node:tls")},3136:n=>{n.exports=t(import.meta.url)("node:url")},7975:n=>{n.exports=t(import.meta.url)("node:util")},3429:n=>{n.exports=t(import.meta.url)("node:util/types")},5919:n=>{n.exports=t(import.meta.url)("node:worker_threads")},8522:n=>{n.exports=t(import.meta.url)("node:zlib")},3193:n=>{n.exports=t(import.meta.url)("string_decoder")},4756:n=>{n.exports=t(import.meta.url)("tls")},9023:n=>{n.exports=t(import.meta.url)("util")},4352:(t,n,i)=>{const{normalizeIPv6:a,removeDotSegments:c,recomposeAuthority:A,normalizePercentEncoding:l,normalizePathEncoding:d,escapePreservingEscapes:h,reescapeHostDelimiters:f,isIPv4:g,nonSimpleDomain:p}=i(5077);const{SCHEMES:m,getSchemeHandler:E}=i(5300);function normalize(t,n){if(typeof t==="string"){t=normalizeString(t,n)}else if(typeof t==="object"){t=parse(serialize(t,n),n)}return t}function resolve(t,n,i){const a=i?Object.assign({scheme:"null"},i):{scheme:"null"};const c=resolveComponent(parse(t,a),parse(n,a),a,true);a.skipEscape=true;return serialize(c,a)}function resolveComponent(t,n,i,a){const A={};if(!a){t=parse(serialize(t,i),i);n=parse(serialize(n,i),i)}i=i||{};if(!i.tolerant&&n.scheme){A.scheme=n.scheme;A.userinfo=n.userinfo;A.host=n.host;A.port=n.port;A.path=c(n.path||"");A.query=n.query}else{if(n.userinfo!==undefined||n.host!==undefined||n.port!==undefined){A.userinfo=n.userinfo;A.host=n.host;A.port=n.port;A.path=c(n.path||"");A.query=n.query}else{if(!n.path){A.path=t.path;if(n.query!==undefined){A.query=n.query}else{A.query=t.query}}else{if(n.path[0]==="/"){A.path=c(n.path)}else{if((t.userinfo!==undefined||t.host!==undefined||t.port!==undefined)&&!t.path){A.path="/"+n.path}else if(!t.path){A.path=n.path}else{A.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+n.path}A.path=c(A.path)}A.query=n.query}A.userinfo=t.userinfo;A.host=t.host;A.port=t.port}A.scheme=t.scheme}A.fragment=n.fragment;return A}function equal(t,n,i){const a=normalizeComparableURI(t,i);const c=normalizeComparableURI(n,i);return a!==undefined&&c!==undefined&&a.toLowerCase()===c.toLowerCase()}function serialize(t,n){const i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""};const a=Object.assign({},n);const d=[];const f=E(a.scheme||i.scheme);if(f&&f.serialize)f.serialize(i,a);if(i.path!==undefined){if(!a.skipEscape){i.path=h(i.path);if(i.scheme!==undefined){i.path=i.path.split("%3A").join(":")}}else{i.path=l(i.path)}}if(a.reference!=="suffix"&&i.scheme){d.push(i.scheme,":")}const g=A(i);if(g!==undefined){if(a.reference!=="suffix"){d.push("//")}d.push(g);if(i.path&&i.path[0]!=="/"){d.push("/")}}if(i.path!==undefined){let t=i.path;if(!a.absolutePath&&(!f||!f.absolutePath)){t=c(t)}if(g===undefined&&t[0]==="/"&&t[1]==="/"){t="/%2F"+t.slice(2)}d.push(t)}if(i.query!==undefined){d.push("?",i.query)}if(i.fragment!==undefined){d.push("#",i.fragment)}return d.join("")}const C=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;const I=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/;function getParseError(t,n){if(n[2]!==undefined&&t.path&&t.path[0]!=="/"){return'URI path must start with "/" when authority is present.'}if(typeof t.port==="number"&&(t.port<0||t.port>65535)){return"URI port is malformed."}return undefined}function parseWithStatus(t,n){const i=Object.assign({},n);const c={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};let A=false;let l=false;if(i.reference==="suffix"){if(i.scheme){t=i.scheme+":"+t}else{t="//"+t}}const h=t.match(I);if(h!==null&&h[1].indexOf("\\")!==-1){c.error="URI authority must not contain a literal backslash.";A=true}const m=t.match(C);if(m){c.scheme=m[1];c.userinfo=m[3];c.host=m[4];c.port=parseInt(m[5],10);c.path=m[6]||"";c.query=m[7];c.fragment=m[8];if(isNaN(c.port)){c.port=m[5]}const n=getParseError(c,m);if(n!==undefined){c.error=c.error||n;A=true}if(c.host){const t=g(c.host);if(t===false){const t=a(c.host);c.host=t.host.toLowerCase();l=t.isIPV6}else{l=true}}if(c.scheme===undefined&&c.userinfo===undefined&&c.host===undefined&&c.port===undefined&&c.query===undefined&&!c.path){c.reference="same-document"}else if(c.scheme===undefined){c.reference="relative"}else if(c.fragment===undefined){c.reference="absolute"}else{c.reference="uri"}if(i.reference&&i.reference!=="suffix"&&i.reference!==c.reference){c.error=c.error||"URI is not a "+i.reference+" reference."}const h=E(i.scheme||c.scheme);if(!i.unicodeSupport&&(!h||!h.unicodeSupport)){if(c.host&&(i.domainHost||h&&h.domainHost)&&l===false&&p(c.host)){try{c.host=new URL("http://"+c.host).hostname}catch(t){c.error=c.error||"Host's domain name can not be converted to ASCII: "+t}}}if(!h||h&&!h.skipNormalize){if(t.indexOf("%")!==-1){if(c.scheme!==undefined){c.scheme=unescape(c.scheme)}if(c.host!==undefined){c.host=f(unescape(c.host),l)}}if(c.path){c.path=d(c.path)}if(c.fragment){try{c.fragment=encodeURI(decodeURIComponent(c.fragment))}catch{c.error=c.error||"URI malformed"}}}if(h&&h.parse){h.parse(c,i)}}else{c.error=c.error||"URI can not be parsed."}return{parsed:c,malformedAuthorityOrPort:A}}function parse(t,n){return parseWithStatus(t,n).parsed}function normalizeString(t,n){return normalizeStringWithStatus(t,n).normalized}function normalizeStringWithStatus(t,n){const{parsed:i,malformedAuthorityOrPort:a}=parseWithStatus(t,n);return{normalized:a?t:serialize(i,n),malformedAuthorityOrPort:a}}function normalizeComparableURI(t,n){if(typeof t==="string"){const{normalized:i,malformedAuthorityOrPort:a}=normalizeStringWithStatus(t,n);return a?undefined:i}if(typeof t==="object"){return serialize(t,n)}}const y={SCHEMES:m,normalize:normalize,resolve:resolve,resolveComponent:resolveComponent,equal:equal,serialize:serialize,parse:parse};t.exports=y;t.exports["default"]=y;t.exports.fastUri=y},5300:(t,n,i)=>{const{isUUID:a}=i(5077);const c=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;const A=["http","https","ws","wss","urn","urn:uuid"];function isValidSchemeName(t){return A.indexOf(t)!==-1}function wsIsSecure(t){if(t.secure===true){return true}else if(t.secure===false){return false}else if(t.scheme){return t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S")}else{return false}}function httpParse(t){if(!t.host){t.error=t.error||"HTTP URIs must have a host."}return t}function httpSerialize(t){const n=String(t.scheme).toLowerCase()==="https";if(t.port===(n?443:80)||t.port===""){t.port=undefined}if(!t.path){t.path="/"}return t}function wsParse(t){t.secure=wsIsSecure(t);t.resourceName=(t.path||"/")+(t.query?"?"+t.query:"");t.path=undefined;t.query=undefined;return t}function wsSerialize(t){if(t.port===(wsIsSecure(t)?443:80)||t.port===""){t.port=undefined}if(typeof t.secure==="boolean"){t.scheme=t.secure?"wss":"ws";t.secure=undefined}if(t.resourceName){const[n,i]=t.resourceName.split("?");t.path=n&&n!=="/"?n:undefined;t.query=i;t.resourceName=undefined}t.fragment=undefined;return t}function urnParse(t,n){if(!t.path){t.error="URN can not be parsed";return t}const i=t.path.match(c);if(i){const a=n.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase();t.nss=i[2];const c=`${a}:${n.nid||t.nid}`;const A=getSchemeHandler(c);t.path=undefined;if(A){t=A.parse(t,n)}}else{t.error=t.error||"URN can not be parsed."}return t}function urnSerialize(t,n){if(t.nid===undefined){throw new Error("URN without nid cannot be serialized")}const i=n.scheme||t.scheme||"urn";const a=t.nid.toLowerCase();const c=`${i}:${n.nid||a}`;const A=getSchemeHandler(c);if(A){t=A.serialize(t,n)}const l=t;const d=t.nss;l.path=`${a||n.nid}:${d}`;n.skipEscape=true;return l}function urnuuidParse(t,n){const i=t;i.uuid=i.nss;i.nss=undefined;if(!n.tolerant&&(!i.uuid||!a(i.uuid))){i.error=i.error||"UUID is not valid."}return i}function urnuuidSerialize(t){const n=t;n.nss=(t.uuid||"").toLowerCase();return n}const l={scheme:"http",domainHost:true,parse:httpParse,serialize:httpSerialize};const d={scheme:"https",domainHost:l.domainHost,parse:httpParse,serialize:httpSerialize};const h={scheme:"ws",domainHost:true,parse:wsParse,serialize:wsSerialize};const f={scheme:"wss",domainHost:h.domainHost,parse:h.parse,serialize:h.serialize};const g={scheme:"urn",parse:urnParse,serialize:urnSerialize,skipNormalize:true};const p={scheme:"urn:uuid",parse:urnuuidParse,serialize:urnuuidSerialize,skipNormalize:true};const m={http:l,https:d,ws:h,wss:f,urn:g,"urn:uuid":p};Object.setPrototypeOf(m,null);function getSchemeHandler(t){return t&&(m[t]||m[t.toLowerCase()])||undefined}t.exports={wsIsSecure:wsIsSecure,SCHEMES:m,isValidSchemeName:isValidSchemeName,getSchemeHandler:getSchemeHandler}},5077:t=>{const n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);const i=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);const a=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);const c=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);const A=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function stringArrayToHexStripped(t){let n="";let i=0;let a=0;for(a=0;a=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)){return""}n+=t[a];break}for(a+=1;a=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)){return""}n+=t[a]}return n}const l=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function consumeIsZone(t){t.length=0;return true}function consumeHextets(t,n,i){if(t.length){const a=stringArrayToHexStripped(t);if(a!==""){n.push(a)}else{i.error=true;return false}t.length=0}return true}function getIPV6(t){let n=0;const i={error:false,address:"",zone:""};const a=[];const c=[];let A=false;let l=false;let d=consumeHextets;for(let h=0;h7){i.error=true;break}if(h>0&&t[h-1]===":"){A=true}a.push(":");continue}else if(f==="%"){if(!d(c,a,i)){break}d=consumeIsZone}else{c.push(f);continue}}if(c.length){if(d===consumeIsZone){i.zone=c.join("")}else if(l){a.push(c.join(""))}else{a.push(stringArrayToHexStripped(c))}}i.address=a.join("");return i}function normalizeIPv6(t){if(findToken(t,":")<2){return{host:t,isIPV6:false}}const n=getIPV6(t);if(!n.error){let t=n.address;let i=n.address;if(n.zone){t+="%"+n.zone;i+="%25"+n.zone}return{host:t,isIPV6:true,escapedHost:i}}else{return{host:t,isIPV6:false}}}function findToken(t,n){let i=0;for(let a=0;ad[t])}function normalizePercentEncoding(t,n=false){if(t.indexOf("%")===-1){return t}let i="";for(let A=0;A{const hasContext=()=>{const{env:{GITHUB_ACTIONS:t}}=process;return!!t};const getContext=()=>{if(!hasContext()){throw new Error("GitHub context unavailable")}const{env:{GITHUB_REPOSITORY:t,GITHUB_WORKFLOW_REF:n,GITHUB_RUN_ID:i,GITHUB_RUN_ATTEMPT:a,GITHUB_HEAD_REF:c,GITHUB_REF:A,GITHUB_SHA:l}}=process;const[d,h]=t.split("/");const[f]=n.split("@");const g=new RegExp(`^${d}/${h}/.github/workflows/`);const p=c||A;return{github:{organization:d,repository:h,workflow:f.replace(g,""),runId:parseInt(i,10),runAttempt:parseInt(a,10)},git:{branch:p.replace(/^refs\/heads\//i,""),sha:l}}};t.exports={getContext:getContext,hasContext:hasContext}},8253:t=>{const flatten=t=>{const n={};for(const i in t){if(!Object.prototype.hasOwnProperty.call(t,i)){continue}if(typeof t[i]==="object"&&!Array.isArray(t[i])){const a=flatten(t[i]);for(const t in a){if(!Object.prototype.hasOwnProperty.call(a,t)){continue}const c=`${i}${t.charAt(0).toUpperCase()}${t.substring(1)}`;n[c]=a[t]}}else{n[i]=t[i]}}return n};const omit=(t,n)=>{const i={...t};for(const t of n){delete i[t]}return i};t.exports={flatten:flatten,omit:omit}},8758:(t,n,i)=>{const a=i(1121);const{flatten:c,omit:A}=i(8253);const l=i(3024);const{makeRelativeFilePath:d}=i(8123);const{resolve:h}=i(6760);const{formatErrorAjv:f,validateReportV1Ajv:g,validateReportV2Ajv:p,validateReportV3Ajv:m,validateReportV1ContextAjv:E,validateReportV2ContextAjv:C,validateReportV3ContextAjv:I,latestReportVersion:y}=a;const getReportVersion=t=>{const{reportVersion:n,version:i}=t;const a=n??i;switch(a){case null:case undefined:throw new Error("Unable to determine report version");default:return a}};const validateReport=(t,n="report")=>{const i=getReportVersion(t);let a;switch(i){case 1:if(!g(t)){a=g.errors}break;case 2:if(!p(t)){a=p.errors}break;case 3:if(!m(t)){a=m.errors}break;default:throw new Error(`Unknown report version '${i}'`)}if(a&&a.length!==0){throw new Error(f(a,{dataVar:n}))}};const injectReportV1Context=(t,n,i)=>{const{summary:a}=t;if(!a){throw new Error("Report is missing needed property 'summary'")}if(i||!E(a)){t.summary={...a,...c(n)}}return t};const injectReportV2Context=(t,n,i)=>{const{summary:a}=t;if(!a){throw new Error("Report is missing needed property 'summary'")}if(i||!C(a)){t.summary={...a,...n}}return t};const injectReportV3Context=(t,n,i)=>{const{summary:a}=t;if(!a){throw new Error("Report is missing needed property 'summary'")}if(i||!I(a)){t.summary={...a,...n}}return t};const injectReportContext=(t,n,i)=>{const a=getReportVersion(t);switch(a){case 1:return injectReportV1Context(t,n,i);case 2:return injectReportV2Context(t,n,i);case 3:return injectReportV3Context(t,n,i);default:throw new Error(`Unknown report version '${a}'`)}};const injectReportV1LmsInfo=(t,n)=>{const{summary:i}=t;if(!i){throw new Error("Report is missing needed property 'summary'")}const{buildNumber:a,instanceUrl:c}=n;if(a){if(!i.lmsBuildNumber){i.lmsBuildNumber=a}else{throw new Error("LMS build number already present")}}if(c){if(!i.lmsInstanceUrl){i.lmsInstanceUrl=c}else{throw new Error("LMS instance URL already present")}}t.summary=i;return t};const injectReportV2LmsInfo=(t,n)=>{const{summary:i}=t;if(!i){throw new Error("Report is missing needed property 'summary'")}i.lms=i.lms??{};const{buildNumber:a,instanceUrl:c}=n;if(a){if(!i.lms.buildNumber){i.lms.buildNumber=a}else{throw new Error("LMS build number already present")}}if(c){if(!i.lms.instanceUrl){i.lms.instanceUrl=c}else{throw new Error("LMS instance URL already present")}}t.summary=i;return t};const injectReportV3LmsInfo=(t,n)=>{const{summary:i}=t;if(!i){throw new Error("Report is missing needed property 'summary'")}i.lms=i.lms??{};const{buildNumber:a,instanceUrl:c}=n;if(a){if(!i.lms.buildNumber){i.lms.buildNumber=a}else{throw new Error("LMS build number already present")}}if(c){if(!i.lms.instanceUrl){i.lms.instanceUrl=c}else{throw new Error("LMS instance URL already present")}}t.summary=i;return t};const injectReportLmsInfo=(t,n)=>{const i=getReportVersion(t);switch(i){case 1:return injectReportV1LmsInfo(t,n);case 2:return injectReportV2LmsInfo(t,n);case 3:return injectReportV3LmsInfo(t,n);default:throw new Error(`Unknown report version '${i}'`)}};const upgradeReportV1ToV2=t=>{const{reportId:n,summary:i,details:a}=t;const{githubOrganization:c,githubRepository:l,githubWorkflow:d,githubRunId:h,githubRunAttempt:f,gitBranch:g,gitSha:p,totalDuration:m,countPassed:E,countFailed:C,countSkipped:I,countFlaky:y,lmsBuildNumber:B,lmsInstanceUrl:Q}=i;const w=A(i,["githubOrganization","githubRepository","githubWorkflow","githubRunId","githubRunAttempt","gitBranch","gitSha","totalDuration","countPassed","countFailed","countSkipped","countFlaky","lmsBuildNumber","lmsInstanceUrl"]);const S={...w,github:{organization:c,repository:l,workflow:d,runId:h,runAttempt:f},git:{branch:g,sha:p},count:{passed:E,failed:C,skipped:I,flaky:y},duration:{total:m}};if(B){S.lms=S.lms??{};S.lms.buildNumber=B}if(Q){S.lms=S.lms??{};S.lms.instanceUrl=Q}return{id:n,version:2,summary:S,details:a.map(t=>{const{location:n,duration:i,totalDuration:a}=t;const c=A(t,["totalDuration"]);return{...c,location:{file:n},duration:{total:a,final:i}}})}};const upgradeReportV2ToV3=t=>({...t,version:y,details:t.details.map(t=>{const{tool:n,experience:i,type:a,timeout:c,...A}=t;const l={...A};if(n!=null||a!=null){l.taxonomy={};if(n!=null){l.taxonomy.tool=n}if(a!=null){l.taxonomy.type=a}}if(c!=null){l.configuration={timeout:c}}return l})});const cleanReportV3=t=>({...t,details:t.details.map(t=>{const{config:n,tool:i,experience:a,type:c,...A}=t;const l={...A};if(n!=null&&l.configuration==null){l.configuration=n}if(l.taxonomy==null&&(i!=null||c!=null)){l.taxonomy={};if(i!=null){l.taxonomy.tool=i}if(c!=null){l.taxonomy.type=c}}return l})});const upgradeReportToV2=t=>{const n=getReportVersion(t);switch(n){case 1:return upgradeReportV1ToV2(t);case 2:case 3:return t;default:throw new Error(`Unknown report version: ${n}`)}};const upgradeReport=t=>{const n=getReportVersion(t);switch(n){case 1:return upgradeReportV2ToV3(upgradeReportV1ToV2(t));case 2:return upgradeReportV2ToV3(t);case 3:return cleanReportV3(t);default:throw new Error(`Unknown report version: ${n}`)}};class Report{#ge;#pe;#me;constructor(t,{context:n,lmsInfo:i,overrideContext:a=false}={}){let c;try{t=h(t);const n=l.readFileSync(t,"utf8");c=JSON.parse(n)}catch{throw new Error(`Unable to read/parse report at path ${t}`)}if(n){c=injectReportContext(c,n,a)}if(i){c=injectReportLmsInfo(c,i)}const A=getReportVersion(c);if(A===3){c=cleanReportV3(c)}validateReport(c,`report (v${A})`);this.#me=A;if(A<2){c=upgradeReportToV2(c);validateReport(c,`report (v${getReportVersion(c)})`)}if(getReportVersion(c)y){throw new Error(`Unsupported report version specified: ${A}`)}this.#ge=c;this.#pe=d(t)}getPath(){return this.#pe}getId(){return this.#ge.id}getVersionOriginal(){return this.#me}getVersion(){return this.#ge.version}getContext(){const{summary:{github:t,git:n}}=this.#ge;return{github:t,git:n}}toJSON(){return this.#ge}}t.exports={Report:Report}},1121:(t,n,i)=>{const a=i(878);const c=i(2815);const A=i(3966);const l=i(1763);const d=new a({verbose:true,strict:true,allErrors:true});A(d);c(d,["date-time","uri","uuid"]);d.addSchema(i(7428));d.addSchema(i(4993));d.addSchema(i(8189));d.addSchema(i(3760));d.addSchema(l);d.addSchema({$schema:"https://json-schema.org/draft/2019-09/schema",$id:"/test-reporting/schemas/report/v1/context/loose.json",$ref:"/test-reporting/schemas/report/v1/context.json",type:"object",unevaluatedProperties:true});d.addSchema({$schema:"https://json-schema.org/draft/2019-09/schema",$id:"/test-reporting/schemas/report/v2/context/loose.json",$ref:"/test-reporting/schemas/report/v2/context.json",type:"object",unevaluatedProperties:true});d.addSchema({$schema:"https://json-schema.org/draft/2019-09/schema",$id:"/test-reporting/schemas/report/v3/context/loose.json",$ref:"/test-reporting/schemas/report/v3/context.json",type:"object",unevaluatedProperties:true});const h=d.getSchema("/test-reporting/schemas/report-configuration/v1.json");const f=d.getSchema("/test-reporting/schemas/report-configuration/v2.json");const g=d.getSchema("/test-reporting/schemas/report/v1/context/loose.json");const p=d.getSchema("/test-reporting/schemas/report/v2/context/loose.json");const m=d.getSchema("/test-reporting/schemas/report/v3/context/loose.json");const E=d.getSchema("/test-reporting/schemas/report/v1.json");const C=d.getSchema("/test-reporting/schemas/report/v2.json");const I=d.getSchema("/test-reporting/schemas/report/v3.json");const decodeInstancePathAjv=(t="")=>{if(!t){return""}return t.replace(/\//g,".").replace(/~1/g,"/").replace(/~0/g,"~")};const formatErrorAjv=(t,n={})=>{const{dataVar:i="data"}=n;const a=[...new Set((t??[]).map(({instancePath:t,message:n})=>{const a=decodeInstancePathAjv(t);return`[${i}]${a}: ${n}`}))];return a.sort().reverse().join("\n")};const{properties:y}=l;const{version:{const:B}}=y;const{details:{items:{properties:{browser:{enum:Q}}}}}=y;t.exports={formatErrorAjv:formatErrorAjv,validateReportConfigurationV1Ajv:h,validateReportConfigurationV2Ajv:f,validateReportV1ContextAjv:g,validateReportV2ContextAjv:p,validateReportV3ContextAjv:m,validateReportV1Ajv:E,validateReportV2Ajv:C,validateReportV3Ajv:I,latestReportVersion:B,latestSupportedBrowsers:Q}},8123:(t,n,i)=>{const a=i(8161);const{relative:c,sep:A}=i(6760);const{join:l}=i(3916);const{fileURLToPath:d}=i(3136);const h=Date;const getNow=()=>new h;const getNowISOString=()=>(new h).toISOString();const getOperatingSystemType=()=>{switch(a.type()){case"Linux":return"linux";case"Darwin":return"macos";case"Windows_NT":return"windows";default:throw new Error("Unknown operating system")}};const makeRelativeFilePath=t=>{if(t.startsWith("file:")){t=d(t)}const n=c(process.cwd(),t);const i=n.split(A);return l(...i)};t.exports={getNow:getNow,getNowISOString:getNowISOString,getOperatingSystemType:getOperatingSystemType,makeRelativeFilePath:makeRelativeFilePath}},3837:t=>{t.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},4908:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/applicator":true},"$recursiveAnchor":true,"title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"additionalItems":{"$recursiveRef":"#"},"unevaluatedItems":{"$recursiveRef":"#"},"items":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"#/$defs/schemaArray"}]},"contains":{"$recursiveRef":"#"},"additionalProperties":{"$recursiveRef":"#"},"unevaluatedProperties":{"$recursiveRef":"#"},"properties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$recursiveRef":"#"}},"propertyNames":{"$recursiveRef":"#"},"if":{"$recursiveRef":"#"},"then":{"$recursiveRef":"#"},"else":{"$recursiveRef":"#"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$recursiveRef":"#"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$recursiveRef":"#"}}}}')},958:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/content","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"contentSchema":{"$recursiveRef":"#"}}}')},58:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/core","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true},"$recursiveAnchor":true,"title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"type":"string","format":"uri"},"$anchor":{"type":"string","pattern":"^[A-Za-z][-A-Za-z0-9.:_]*$"},"$ref":{"type":"string","format":"uri-reference"},"$recursiveRef":{"type":"string","format":"uri-reference"},"$recursiveAnchor":{"type":"boolean","default":false},"$vocabulary":{"type":"object","propertyNames":{"type":"string","format":"uri"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}}}}')},6534:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/format","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/format":true},"$recursiveAnchor":true,"title":"Format vocabulary meta-schema","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},711:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/meta-data":true},"$recursiveAnchor":true,"title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},8030:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/validation","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/validation":true},"$recursiveAnchor":true,"title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}},"const":true,"enum":{"type":"array","items":true},"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},8138:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/schema","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true,"https://json-schema.org/draft/2019-09/vocab/applicator":true,"https://json-schema.org/draft/2019-09/vocab/validation":true,"https://json-schema.org/draft/2019-09/vocab/meta-data":true,"https://json-schema.org/draft/2019-09/vocab/format":false,"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format"},{"$ref":"meta/content"}],"type":["object","boolean"],"properties":{"definitions":{"$comment":"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.","type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"dependencies":{"$comment":"\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"","type":"object","additionalProperties":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"meta/validation#/$defs/stringArray"}]}}}}')},2079:t=>{t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},7428:t=>{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report-configuration/v1.json","$ref":"#/$defs/taxonomyObject","type":"object","unevaluatedProperties":false,"errorMessage":{"type":"should be an object","unevaluatedProperties":"should only include supported report configuration properties"},"properties":{"ignorePatterns":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of ignore patterns","minItems":"should contain at least one ignore pattern","uniqueItems":"should not contain duplicate ignore patterns"},"items":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"overrides":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of override objects","minItems":"should contain at least one override","uniqueItems":"should not contain duplicate overrides"},"items":{"type":"object","unevaluatedProperties":false,"minProperties":2,"$ref":"#/$defs/taxonomyObject","errorMessage":{"type":"should be an object","minProperties":"should include pattern and at least one taxonomy override","required":{"pattern":"should include pattern and at least one taxonomy override"},"unevaluatedProperties":"should only include supported override properties"},"properties":{"pattern":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"required":["pattern"]}}},"allOf":[{"errorMessage":{"if":"should include type in each override when top-level type is null"},"if":{"properties":{"type":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"type":{"$ref":"#/$defs/taxonomyObject/properties/type"}},"errorMessage":{"required":{"type":"should include type in each override when top-level type is null"}},"required":["type"]}}}}},{"errorMessage":{"if":"should include tool in each override when top-level tool is null"},"if":{"properties":{"tool":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"tool":{"$ref":"#/$defs/taxonomyObject/properties/tool"}},"errorMessage":{"required":{"tool":"should include tool in each override when top-level tool is null"}},"required":["tool"]}}}}},{"errorMessage":{"if":"should include experience in each override when top-level experience is null"},"if":{"properties":{"experience":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"experience":{"$ref":"#/$defs/taxonomyObject/properties/experience"}},"errorMessage":{"required":{"experience":"should include experience in each override when top-level experience is null"}},"required":["experience"]}}}}},{"errorMessage":{"if":"should include overrides when all taxonomy properties are null"},"if":{"properties":{"type":{"const":null},"tool":{"const":null},"experience":{"const":null}}},"then":{"errorMessage":{"required":{"overrides":"should include overrides when all taxonomy properties are null"}},"required":["overrides"]}}],"$defs":{"nonEmptyUnpaddedString":{"type":"string","minLength":1,"pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report-configuration/v2.json","$ref":"#/$defs/taxonomyObject","type":"object","unevaluatedProperties":false,"errorMessage":{"type":"should be an object","unevaluatedProperties":"should only include supported report configuration properties"},"properties":{"ignorePatterns":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of ignore patterns","minItems":"should contain at least one ignore pattern","uniqueItems":"should not contain duplicate ignore patterns"},"items":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"overrides":{"type":"array","minItems":1,"uniqueItems":true,"errorMessage":{"type":"should be an array of override objects","minItems":"should contain at least one override","uniqueItems":"should not contain duplicate overrides"},"items":{"type":"object","unevaluatedProperties":false,"minProperties":2,"$ref":"#/$defs/taxonomyObject","errorMessage":{"type":"should be an object","minProperties":"should include pattern and at least one taxonomy override","required":{"pattern":"should include pattern and at least one taxonomy override"},"unevaluatedProperties":"should only include supported override properties"},"properties":{"pattern":{"$ref":"#/$defs/nonEmptyUnpaddedString"}},"required":["pattern"]}}},"allOf":[{"errorMessage":{"if":"should include type in each override when top-level type is null"},"if":{"properties":{"type":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"type":{"$ref":"#/$defs/taxonomyObject/properties/type"}},"errorMessage":{"required":{"type":"should include type in each override when top-level type is null"}},"required":["type"]}}}}},{"errorMessage":{"if":"should include tool in each override when top-level tool is null"},"if":{"properties":{"tool":{"const":null}}},"then":{"properties":{"overrides":{"type":"array","items":{"type":"object","properties":{"tool":{"$ref":"#/$defs/taxonomyObject/properties/tool"}},"errorMessage":{"required":{"tool":"should include tool in each override when top-level tool is null"}},"required":["tool"]}}}}},{"errorMessage":{"if":"should include overrides when all taxonomy properties are null"},"if":{"properties":{"type":{"const":null},"tool":{"const":null}}},"then":{"errorMessage":{"required":{"overrides":"should include overrides when all taxonomy properties are null"}},"required":["overrides"]}}],"$defs":{"nonEmptyUnpaddedString":{"type":"string","minLength":1,"pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v1.json","type":"object","unevaluatedProperties":false,"properties":{"reportId":{"type":"string","format":"uuid"},"reportVersion":{"type":"integer","const":1},"summary":{"$ref":"#/$defs/context","type":"object","unevaluatedProperties":false,"properties":{"framework":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"lmsBuildNumber":{"type":"string","pattern":"^([0-9]{2}\\\\.){2}[0-9]{1,2}\\\\.[0-9]{5}$","errorMessage":{"pattern":"should be a valid LMS build number (XX.XX.XX.XXXXX)"}},"lmsInstanceUrl":{"type":"string","format":"uri"},"operatingSystem":{"type":"string","enum":["windows","linux","mac"]},"started":{"type":"string","format":"date-time"},"totalDuration":{"type":"integer","minimum":0},"status":{"type":"string","enum":["passed","failed"]},"countPassed":{"type":"integer","minimum":0},"countFailed":{"type":"integer","minimum":0},"countSkipped":{"type":"integer","minimum":0},"countFlaky":{"type":"integer","minimum":0}},"required":["operatingSystem","framework","started","totalDuration","status","countPassed","countFailed","countSkipped","countFlaky"]},"details":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","unevaluatedProperties":false,"properties":{"name":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"location":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"tool":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"experience":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"type":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"started":{"type":"string","format":"date-time"},"duration":{"type":"integer","minimum":0},"totalDuration":{"type":"integer","minimum":0},"status":{"type":"string","enum":["passed","failed","skipped"]},"browser":{"type":"string","enum":["chromium","chrome","firefox","webkit","safari","edge"]},"retries":{"type":"integer","minimum":0}},"required":["name","location","started","duration","totalDuration","status","retries"]}}},"required":["reportId","reportVersion","summary","details"],"$defs":{"nonEmptyUnpaddedString":{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v1/non-empty-unpadded-string.json","type":"string","minLength":1,"pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v2.json","type":"object","unevaluatedProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","const":2},"summary":{"$ref":"#/$defs/context","type":"object","unevaluatedProperties":false,"properties":{"framework":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"lms":{"type":"object","unevaluatedProperties":false,"properties":{"buildNumber":{"type":"string","pattern":"^([0-9]{2}\\\\.){2}[0-9]{1,2}\\\\.[0-9]{5}$","errorMessage":{"pattern":"should be a valid LMS build number (XX.XX.XX.XXXXX)"}},"instanceUrl":{"type":"string","format":"uri"}}},"operatingSystem":{"type":"string","enum":["windows","linux","mac"]},"started":{"type":"string","format":"date-time"},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"total":{"type":"integer","minimum":0}},"required":["total"]},"status":{"type":"string","enum":["passed","failed"]},"count":{"type":"object","unevaluatedProperties":false,"properties":{"passed":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0},"flaky":{"type":"integer","minimum":0}},"required":["passed","failed","skipped","flaky"]}},"required":["operatingSystem","framework","started","duration","status","count"]},"details":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","unevaluatedProperties":false,"properties":{"name":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"location":{"type":"object","unevaluatedProperties":false,"properties":{"file":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"line":{"type":"integer","minimum":0},"column":{"type":"integer","minimum":0}},"required":["file"]},"tool":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"experience":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"type":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"started":{"type":"string","format":"date-time"},"timeout":{"type":"integer","minimum":0},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"final":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["final","total"]},"status":{"type":"string","enum":["passed","failed","skipped"]},"browser":{"type":"string","enum":["chromium","chrome","firefox","webkit","safari","edge"]},"retries":{"type":"integer","minimum":0}},"required":["name","location","started","duration","status","retries"]}}},"required":["id","version","summary","details"],"$defs":{"nonEmptyUnpaddedString":{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v2/non-empty-unpadded-string.json","type":"string","pattern":"^(?!\\\\s).+(?{t.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v3.json","type":"object","unevaluatedProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","const":3},"summary":{"$ref":"#/$defs/context","type":"object","unevaluatedProperties":false,"properties":{"framework":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"lms":{"type":"object","unevaluatedProperties":false,"properties":{"buildNumber":{"type":"string","pattern":"^([0-9]{2}\\\\.){2}[0-9]{1,2}\\\\.[0-9]{5}$","errorMessage":{"pattern":"should be a valid LMS build number (XX.XX.XX.XXXXX)"}},"instanceUrl":{"type":"string","format":"uri"}}},"operatingSystem":{"type":"string","enum":["windows","linux","mac"]},"started":{"type":"string","format":"date-time"},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"total":{"type":"integer","minimum":0}},"required":["total"]},"status":{"type":"string","enum":["passed","failed"]},"count":{"type":"object","unevaluatedProperties":false,"properties":{"passed":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0},"flaky":{"type":"integer","minimum":0}},"required":["passed","failed","skipped","flaky"]}},"required":["operatingSystem","framework","started","duration","status","count"]},"details":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","unevaluatedProperties":false,"properties":{"name":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"location":{"type":"object","unevaluatedProperties":false,"properties":{"file":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"line":{"type":"integer","minimum":0},"column":{"type":"integer","minimum":0}}},"taxonomy":{"type":"object","unevaluatedProperties":false,"properties":{"tool":{"$ref":"#/$defs/nonEmptyUnpaddedString"},"type":{"$ref":"#/$defs/nonEmptyUnpaddedString"}}},"started":{"type":"string","format":"date-time"},"configuration":{"type":"object","unevaluatedProperties":false,"properties":{"timeout":{"type":"integer","minimum":0}}},"duration":{"type":"object","unevaluatedProperties":false,"properties":{"final":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["final","total"]},"status":{"type":"string","enum":["passed","failed","skipped"]},"browser":{"type":"string","enum":["chromium","chrome","firefox","webkit","safari","edge"]},"retries":{"type":"integer","minimum":0},"github":{"type":"object","unevaluatedProperties":false,"properties":{"codeowners":{"type":"array","items":{"$ref":"#/$defs/githubCodeownerString"},"minItems":1}}}},"required":["name","started","duration","status","retries"]}}},"required":["id","version","summary","details"],"$defs":{"nonEmptyUnpaddedString":{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"/test-reporting/schemas/report/v3/non-empty-unpadded-string.json","type":"string","pattern":"^(?!\\\\s).+(?{var t=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;var n;__nccwpck_require__.t=function(i,a){if(a&1)i=this(i);if(a&8)return i;if(typeof i==="object"&&i){if(a&4&&i.__esModule)return i;if(a&16&&typeof i.then==="function")return i}var c=Object.create(null);__nccwpck_require__.r(c);var A={};n=n||[null,t({}),t([]),t(t)];for(var l=a&2&&i;typeof l=="object"&&!~n.indexOf(l);l=t(l)){Object.getOwnPropertyNames(l).forEach(t=>A[t]=()=>i[t])}A["default"]=()=>i;__nccwpck_require__.d(c,A);return c}})();(()=>{__nccwpck_require__.d=(t,n)=>{for(var i in n){if(__nccwpck_require__.o(n,i)&&!__nccwpck_require__.o(t,i)){Object.defineProperty(t,i,{enumerable:true,get:n[i]})}}}})();(()=>{__nccwpck_require__.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n)})();(()=>{__nccwpck_require__.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var a={};const c=t(import.meta.url)("os");function utils_toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}function utils_toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}function command_issueCommand(t,n,i){const a=new Command(t,n,i);process.stdout.write(a.toString()+c.EOL)}function command_issue(t,n=""){command_issueCommand(t,{},n)}const A="::";class Command{constructor(t,n,i){if(!t){t="missing.command"}this.command=t;this.properties=n;this.message=i}toString(){let t=A+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let n=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const a=this.properties[i];if(a){if(n){n=false}else{t+=","}t+=`${i}=${escapeProperty(a)}`}}}}t+=`${A}${escapeData(this.message)}`;return t}}function escapeData(t){return utils_toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return utils_toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}const l=t(import.meta.url)("crypto");const d=t(import.meta.url)("fs");function file_command_issueFileCommand(t,n){const i=process.env[`GITHUB_${t}`];if(!i){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!fs.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}fs.appendFileSync(i,`${toCommandValue(n)}${os.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(t,n){const i=`ghadelimiter_${crypto.randomUUID()}`;const a=toCommandValue(n);if(t.includes(i)){throw new Error(`Unexpected input: name should not contain the delimiter "${i}"`)}if(a.includes(i)){throw new Error(`Unexpected input: value should not contain the delimiter "${i}"`)}return`${t}<<${i}${os.EOL}${a}${os.EOL}${i}`}const h=t(import.meta.url)("path");var f=__nccwpck_require__(8611);var g=__nccwpck_require__(5692);function getProxyUrl(t){const n=t.protocol==="https:";if(checkBypass(t)){return undefined}const i=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(i){try{return new DecodedURL(i)}catch(t){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new DecodedURL(`http://${i}`)}}else{return undefined}}function checkBypass(t){if(!t.hostname){return false}const n=t.hostname;if(isLoopbackAddress(n)){return true}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(t.port){a=Number(t.port)}else if(t.protocol==="http:"){a=80}else if(t.protocol==="https:"){a=443}const c=[t.hostname.toUpperCase()];if(typeof a==="number"){c.push(`${c[0]}:${a}`)}for(const t of i.split(",").map(t=>t.trim().toUpperCase()).filter(t=>t)){if(t==="*"||c.some(n=>n===t||n.endsWith(`.${t}`)||t.startsWith(".")&&n.endsWith(`${t}`))){return true}}return false}function isLoopbackAddress(t){const n=t.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(t,n){super(t,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var p=__nccwpck_require__(770);var m=__nccwpck_require__(6752);var E=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};var C;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(C||(C={}));var I;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(I||(I={}));var y;(function(t){t["ApplicationJson"]="application/json"})(y||(y={}));function lib_getProxyUrl(t){const n=pm.getProxyUrl(new URL(t));return n?n.href:""}const B=[C.MovedPermanently,C.ResourceMoved,C.SeeOther,C.TemporaryRedirect,C.PermanentRedirect];const Q=[C.BadGateway,C.ServiceUnavailable,C.GatewayTimeout];const w=null&&["OPTIONS","GET","DELETE","HEAD"];const S=10;const b=5;class HttpClientError extends Error{constructor(t,n){super(t);this.name="HttpClientError";this.statusCode=n;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(t){this.message=t}readBody(){return E(this,void 0,void 0,function*(){return new Promise(t=>E(this,void 0,void 0,function*(){let n=Buffer.alloc(0);this.message.on("data",t=>{n=Buffer.concat([n,t])});this.message.on("end",()=>{t(n.toString())})}))})}readBodyBuffer(){return E(this,void 0,void 0,function*(){return new Promise(t=>E(this,void 0,void 0,function*(){const n=[];this.message.on("data",t=>{n.push(t)});this.message.on("end",()=>{t(Buffer.concat(n))})}))})}}function isHttps(t){const n=new URL(t);return n.protocol==="https:"}class lib_HttpClient{constructor(t,n,i){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=this._getUserAgentWithOrchestrationId(t);this.handlers=n||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(t,n){return E(this,void 0,void 0,function*(){return this.request("OPTIONS",t,null,n||{})})}get(t,n){return E(this,void 0,void 0,function*(){return this.request("GET",t,null,n||{})})}del(t,n){return E(this,void 0,void 0,function*(){return this.request("DELETE",t,null,n||{})})}post(t,n,i){return E(this,void 0,void 0,function*(){return this.request("POST",t,n,i||{})})}patch(t,n,i){return E(this,void 0,void 0,function*(){return this.request("PATCH",t,n,i||{})})}put(t,n,i){return E(this,void 0,void 0,function*(){return this.request("PUT",t,n,i||{})})}head(t,n){return E(this,void 0,void 0,function*(){return this.request("HEAD",t,null,n||{})})}sendStream(t,n,i,a){return E(this,void 0,void 0,function*(){return this.request(t,n,i,a)})}getJson(t){return E(this,arguments,void 0,function*(t,n={}){n[I.Accept]=this._getExistingOrDefaultHeader(n,I.Accept,y.ApplicationJson);const i=yield this.get(t,n);return this._processResponse(i,this.requestOptions)})}postJson(t,n){return E(this,arguments,void 0,function*(t,n,i={}){const a=JSON.stringify(n,null,2);i[I.Accept]=this._getExistingOrDefaultHeader(i,I.Accept,y.ApplicationJson);i[I.ContentType]=this._getExistingOrDefaultContentTypeHeader(i,y.ApplicationJson);const c=yield this.post(t,a,i);return this._processResponse(c,this.requestOptions)})}putJson(t,n){return E(this,arguments,void 0,function*(t,n,i={}){const a=JSON.stringify(n,null,2);i[I.Accept]=this._getExistingOrDefaultHeader(i,I.Accept,y.ApplicationJson);i[I.ContentType]=this._getExistingOrDefaultContentTypeHeader(i,y.ApplicationJson);const c=yield this.put(t,a,i);return this._processResponse(c,this.requestOptions)})}patchJson(t,n){return E(this,arguments,void 0,function*(t,n,i={}){const a=JSON.stringify(n,null,2);i[I.Accept]=this._getExistingOrDefaultHeader(i,I.Accept,y.ApplicationJson);i[I.ContentType]=this._getExistingOrDefaultContentTypeHeader(i,y.ApplicationJson);const c=yield this.patch(t,a,i);return this._processResponse(c,this.requestOptions)})}request(t,n,i,a){return E(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const c=new URL(n);let A=this._prepareRequest(t,c,a);const l=this._allowRetries&&w.includes(t)?this._maxRetries+1:1;let d=0;let h;do{h=yield this.requestRaw(A,i);if(h&&h.message&&h.message.statusCode===C.Unauthorized){let t;for(const n of this.handlers){if(n.canHandleAuthentication(h)){t=n;break}}if(t){return t.handleAuthentication(this,A,i)}else{return h}}let n=this._maxRedirects;while(h.message.statusCode&&B.includes(h.message.statusCode)&&this._allowRedirects&&n>0){const l=h.message.headers["location"];if(!l){break}const d=new URL(l);if(c.protocol==="https:"&&c.protocol!==d.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 h.readBody();if(d.hostname!==c.hostname){for(const t in a){if(t.toLowerCase()==="authorization"){delete a[t]}}}A=this._prepareRequest(t,d,a);h=yield this.requestRaw(A,i);n--}if(!h.message.statusCode||!Q.includes(h.message.statusCode)){return h}d+=1;if(d{function callbackForResult(t,n){if(t){a(t)}else if(!n){a(new Error("Unknown error"))}else{i(n)}}this.requestRawWithCallback(t,n,callbackForResult)})})}requestRawWithCallback(t,n,i){if(typeof n==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let a=false;function handleResult(t,n){if(!a){a=true;i(t,n)}}const c=t.httpModule.request(t.options,t=>{const n=new HttpClientResponse(t);handleResult(undefined,n)});let A;c.on("socket",t=>{A=t});c.setTimeout(this._socketTimeout||3*6e4,()=>{if(A){A.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))});c.on("error",function(t){handleResult(t)});if(n&&typeof n==="string"){c.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",function(){c.end()});n.pipe(c)}else{c.end()}}getAgent(t){const n=new URL(t);return this._getAgent(n)}getAgentDispatcher(t){const n=new URL(t);const i=pm.getProxyUrl(n);const a=i&&i.hostname;if(!a){return}return this._getProxyAgentDispatcher(n,i)}_prepareRequest(t,n,i){const a={};a.parsedUrl=n;const c=a.parsedUrl.protocol==="https:";a.httpModule=c?https:http;const A=c?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):A;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=t;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(a.options)}}return a}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,n,i){let a;if(this.requestOptions&&this.requestOptions.headers){const t=lowercaseKeys(this.requestOptions.headers)[n];if(t){a=typeof t==="number"?t.toString():t}}const c=t[n];if(c!==undefined){return typeof c==="number"?c.toString():c}if(a!==undefined){return a}return i}_getExistingOrDefaultContentTypeHeader(t,n){let i;if(this.requestOptions&&this.requestOptions.headers){const t=lowercaseKeys(this.requestOptions.headers)[I.ContentType];if(t){if(typeof t==="number"){i=String(t)}else if(Array.isArray(t)){i=t.join(", ")}else{i=t}}}const a=t[I.ContentType];if(a!==undefined){if(typeof a==="number"){return String(a)}else if(Array.isArray(a)){return a.join(", ")}else{return a}}if(i!==undefined){return i}return n}_getAgent(t){let n;const i=pm.getProxyUrl(t);const a=i&&i.hostname;if(this._keepAlive&&a){n=this._proxyAgent}if(!a){n=this._agent}if(n){return n}const c=t.protocol==="https:";let A=100;if(this.requestOptions){A=this.requestOptions.maxSockets||http.globalAgent.maxSockets}if(i&&i.hostname){const t={maxSockets:A,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`}),{host:i.hostname,port:i.port})};let a;const l=i.protocol==="https:";if(c){a=l?tunnel.httpsOverHttps:tunnel.httpsOverHttp}else{a=l?tunnel.httpOverHttps:tunnel.httpOverHttp}n=a(t);this._proxyAgent=n}if(!n){const t={keepAlive:this._keepAlive,maxSockets:A};n=c?new https.Agent(t):new http.Agent(t);this._agent=n}if(c&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(t,n){let i;if(this._keepAlive){i=this._proxyAgentDispatcher}if(i){return i}const a=t.protocol==="https:";i=new ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=i;if(a&&this._ignoreSslError){i.options=Object.assign(i.options.requestTls||{},{rejectUnauthorized:false})}return i}_getUserAgentWithOrchestrationId(t){const n=t||"actions/http-client";const i=process.env["ACTIONS_ORCHESTRATION_ID"];if(i){const t=i.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${t}`}return n}_performExponentialBackoff(t){return E(this,void 0,void 0,function*(){t=Math.min(S,t);const n=b*Math.pow(2,t);return new Promise(t=>setTimeout(()=>t(),n))})}_processResponse(t,n){return E(this,void 0,void 0,function*(){return new Promise((i,a)=>E(this,void 0,void 0,function*(){const c=t.message.statusCode||0;const A={statusCode:c,result:null,headers:{}};if(c===C.NotFound){i(A)}function dateTimeDeserializer(t,n){if(typeof n==="string"){const t=new Date(n);if(!isNaN(t.valueOf())){return t}}return n}let l;let d;try{d=yield t.readBody();if(d&&d.length>0){if(n&&n.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}A.result=l}A.headers=t.message.headers}catch(t){}if(c>299){let t;if(l&&l.message){t=l.message}else if(d&&d.length>0){t=d}else{t=`Failed request: (${c})`}const n=new HttpClientError(t,c);n.result=A.result;a(n)}else{i(A)}}))})}}const lowercaseKeys=t=>Object.keys(t).reduce((n,i)=>(n[i.toLowerCase()]=t[i],n),{});var R=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};class BasicCredentialHandler{constructor(t,n){this.username=t;this.password=n}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return R(this,void 0,void 0,function*(){throw new Error("not implemented")})}}class auth_BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return R(this,void 0,void 0,function*(){throw new Error("not implemented")})}}class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return R(this,void 0,void 0,function*(){throw new Error("not implemented")})}}var v=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};class oidc_utils_OidcClient{static createHttpClient(t=true,n=10){const i={allowRetries:t,maxRetries:n};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],i)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){return v(this,void 0,void 0,function*(){var n;const i=oidc_utils_OidcClient.createHttpClient();const a=yield i.getJson(t).catch(t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.message}`)});const c=(n=a.result)===null||n===void 0?void 0:n.value;if(!c){throw new Error("Response json body do not have ID Token field")}return c})}static getIDToken(t){return v(this,void 0,void 0,function*(){try{let n=oidc_utils_OidcClient.getIDTokenUrl();if(t){const i=encodeURIComponent(t);n=`${n}&audience=${i}`}debug(`ID token url is ${n}`);const i=yield oidc_utils_OidcClient.getCall(n);setSecret(i);return i}catch(t){throw new Error(`Error message: ${t.message}`)}})}}var k=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const{access:D,appendFile:T,writeFile:N}=d.promises;const M="GITHUB_STEP_SUMMARY";const F="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return k(this,void 0,void 0,function*(){if(this._filePath){return this._filePath}const t=process.env[M];if(!t){throw new Error(`Unable to find environment variable for $${M}. Check if your runtime environment supports job summaries.`)}try{yield D(t,d.constants.R_OK|d.constants.W_OK)}catch(n){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}this._filePath=t;return this._filePath})}wrap(t,n,i={}){const a=Object.entries(i).map(([t,n])=>` ${t}="${n}"`).join("");if(!n){return`<${t}${a}>`}return`<${t}${a}>${n}`}write(t){return k(this,void 0,void 0,function*(){const n=!!(t===null||t===void 0?void 0:t.overwrite);const i=yield this.filePath();const a=n?N:T;yield a(i,this._buffer,{encoding:"utf8"});return this.emptyBuffer()})}clear(){return k(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(t,n=false){this._buffer+=t;return n?this.addEOL():this}addEOL(){return this.addRaw(c.EOL)}addCodeBlock(t,n){const i=Object.assign({},n&&{lang:n});const a=this.wrap("pre",this.wrap("code",t),i);return this.addRaw(a).addEOL()}addList(t,n=false){const i=n?"ol":"ul";const a=t.map(t=>this.wrap("li",t)).join("");const c=this.wrap(i,a);return this.addRaw(c).addEOL()}addTable(t){const n=t.map(t=>{const n=t.map(t=>{if(typeof t==="string"){return this.wrap("td",t)}const{header:n,data:i,colspan:a,rowspan:c}=t;const A=n?"th":"td";const l=Object.assign(Object.assign({},a&&{colspan:a}),c&&{rowspan:c});return this.wrap(A,i,l)}).join("");return this.wrap("tr",n)}).join("");const i=this.wrap("table",n);return this.addRaw(i).addEOL()}addDetails(t,n){const i=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(i).addEOL()}addImage(t,n,i){const{width:a,height:c}=i||{};const A=Object.assign(Object.assign({},a&&{width:a}),c&&{height:c});const l=this.wrap("img",null,Object.assign({src:t,alt:n},A));return this.addRaw(l).addEOL()}addHeading(t,n){const i=`h${n}`;const a=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1";const c=this.wrap(a,t);return this.addRaw(c).addEOL()}addSeparator(){const t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){const t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,n){const i=Object.assign({},n&&{cite:n});const a=this.wrap("blockquote",t,i);return this.addRaw(a).addEOL()}addLink(t,n){const i=this.wrap("a",t,{href:n});return this.addRaw(i).addEOL()}}const x=new Summary;const U=null&&x;const P=x;function toPosixPath(t){return t.replace(/[\\]/g,"/")}function toWin32Path(t){return t.replace(/[/]/g,"\\")}function toPlatformPath(t){return t.replace(/[/\\]/g,path.sep)}var L=__nccwpck_require__(3193);var O=__nccwpck_require__(4434);const H=t(import.meta.url)("child_process");var $=__nccwpck_require__(2613);var V=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const{chmod:G,copyFile:Y,lstat:J,mkdir:W,open:q,readdir:j,rename:z,rm:K,rmdir:Z,stat:X,symlink:ee,unlink:te}=d.promises;const re=process.platform==="win32";function readlink(t){return V(this,void 0,void 0,function*(){const n=yield fs.promises.readlink(t);if(re&&!n.endsWith("\\")){return`${n}\\`}return n})}const ne=268435456;const se=d.constants.O_RDONLY;function exists(t){return V(this,void 0,void 0,function*(){try{yield X(t)}catch(t){if(t.code==="ENOENT"){return false}throw t}return true})}function isDirectory(t){return V(this,arguments,void 0,function*(t,n=false){const i=n?yield X(t):yield J(t);return i.isDirectory()})}function isRooted(t){t=normalizeSeparators(t);if(!t){throw new Error('isRooted() parameter "p" cannot be empty')}if(re){return t.startsWith("\\")||/^[A-Z]:/i.test(t)}return t.startsWith("/")}function tryGetExecutablePath(t,n){return V(this,void 0,void 0,function*(){let i=undefined;try{i=yield X(t)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}}if(i&&i.isFile()){if(re){const i=h.extname(t).toUpperCase();if(n.some(t=>t.toUpperCase()===i)){return t}}else{if(isUnixExecutable(i)){return t}}}const a=t;for(const c of n){t=a+c;i=undefined;try{i=yield X(t)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}}if(i&&i.isFile()){if(re){try{const n=h.dirname(t);const i=h.basename(t).toUpperCase();for(const a of yield j(n)){if(i===a.toUpperCase()){t=h.join(n,a);break}}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else{if(isUnixExecutable(i)){return t}}}}return""})}function normalizeSeparators(t){t=t||"";if(re){t=t.replace(/\//g,"\\");return t.replace(/\\\\+/g,"\\")}return t.replace(/\/\/+/g,"/")}function isUnixExecutable(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==undefined&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==undefined&&t.uid===process.getuid()}function getCmdPath(){var t;return(t=process.env["COMSPEC"])!==null&&t!==void 0?t:`cmd.exe`}var oe=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};function cp(t,n){return oe(this,arguments,void 0,function*(t,n,i={}){const{force:a,recursive:c,copySourceDirectory:A}=readCopyOptions(i);const l=(yield ioUtil.exists(n))?yield ioUtil.stat(n):null;if(l&&l.isFile()&&!a){return}const d=l&&l.isDirectory()&&A?path.join(n,path.basename(t)):n;if(!(yield ioUtil.exists(t))){throw new Error(`no such file or directory: ${t}`)}const h=yield ioUtil.stat(t);if(h.isDirectory()){if(!c){throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(t,d,0,a)}}else{if(path.relative(t,d)===""){throw new Error(`'${d}' and '${t}' are the same file`)}yield io_copyFile(t,d,a)}})}function mv(t,n){return oe(this,arguments,void 0,function*(t,n,i={}){if(yield ioUtil.exists(n)){let a=true;if(yield ioUtil.isDirectory(n)){n=path.join(n,path.basename(t));a=yield ioUtil.exists(n)}if(a){if(i.force==null||i.force){yield rmRF(n)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(n));yield ioUtil.rename(t,n)})}function rmRF(t){return oe(this,void 0,void 0,function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(t)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(t,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(t){throw new Error(`File was unable to be removed ${t}`)}})}function mkdirP(t){return oe(this,void 0,void 0,function*(){ok(t,"a path argument must be provided");yield ioUtil.mkdir(t,{recursive:true})})}function which(t,n){return oe(this,void 0,void 0,function*(){if(!t){throw new Error("parameter 'tool' is required")}if(n){const n=yield which(t,false);if(!n){if(re){throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return n}const i=yield findInPath(t);if(i&&i.length>0){return i[0]}return""})}function findInPath(t){return oe(this,void 0,void 0,function*(){if(!t){throw new Error("parameter 'tool' is required")}const n=[];if(re&&process.env["PATHEXT"]){for(const t of process.env["PATHEXT"].split(h.delimiter)){if(t){n.push(t)}}}if(isRooted(t)){const i=yield tryGetExecutablePath(t,n);if(i){return[i]}return[]}if(t.includes(h.sep)){return[]}const i=[];if(process.env.PATH){for(const t of process.env.PATH.split(h.delimiter)){if(t){i.push(t)}}}const a=[];for(const c of i){const i=yield tryGetExecutablePath(h.join(c,t),n);if(i){a.push(i)}}return a})}function readCopyOptions(t){const n=t.force==null?true:t.force;const i=Boolean(t.recursive);const a=t.copySourceDirectory==null?true:Boolean(t.copySourceDirectory);return{force:n,recursive:i,copySourceDirectory:a}}function cpDirRecursive(t,n,i,a){return oe(this,void 0,void 0,function*(){if(i>=255)return;i++;yield mkdirP(n);const c=yield ioUtil.readdir(t);for(const A of c){const c=`${t}/${A}`;const l=`${n}/${A}`;const d=yield ioUtil.lstat(c);if(d.isDirectory()){yield cpDirRecursive(c,l,i,a)}else{yield io_copyFile(c,l,a)}}yield ioUtil.chmod(n,(yield ioUtil.stat(t)).mode)})}function io_copyFile(t,n,i){return oe(this,void 0,void 0,function*(){if((yield ioUtil.lstat(t)).isSymbolicLink()){try{yield ioUtil.lstat(n);yield ioUtil.unlink(n)}catch(t){if(t.code==="EPERM"){yield ioUtil.chmod(n,"0666");yield ioUtil.unlink(n)}}const i=yield ioUtil.readlink(t);yield ioUtil.symlink(i,n,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(n))||i){yield ioUtil.copyFile(t,n)}})}const ie=t(import.meta.url)("timers");var ae=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const ce=process.platform==="win32";class ToolRunner extends O.EventEmitter{constructor(t,n,i){super();if(!t){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=t;this.args=n||[];this.options=i||{}}_debug(t){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(t)}}_getCommandString(t,n){const i=this._getSpawnFileName();const a=this._getSpawnArgs(t);let c=n?"":"[command]";if(ce){if(this._isCmdFile()){c+=i;for(const t of a){c+=` ${t}`}}else if(t.windowsVerbatimArguments){c+=`"${i}"`;for(const t of a){c+=` ${t}`}}else{c+=this._windowsQuoteCmdArg(i);for(const t of a){c+=` ${this._windowsQuoteCmdArg(t)}`}}}else{c+=i;for(const t of a){c+=` ${t}`}}return c}_processLineBuffer(t,n,i){try{let a=n+t.toString();let A=a.indexOf(c.EOL);while(A>-1){const t=a.substring(0,A);i(t);a=a.substring(A+c.EOL.length);A=a.indexOf(c.EOL)}return a}catch(t){this._debug(`error processing line. Failed with error ${t}`);return""}}_getSpawnFileName(){if(ce){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(t){if(ce){if(this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){n+=" ";n+=t.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}n+='"';return[n]}}return this.args}_endsWith(t,n){return t.endsWith(n)}_isCmdFile(){const t=this.toolPath.toUpperCase();return this._endsWith(t,".CMD")||this._endsWith(t,".BAT")}_windowsQuoteCmdArg(t){if(!this._isCmdFile()){return this._uvQuoteCmdArg(t)}if(!t){return'""'}const n=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const a of t){if(n.some(t=>t===a)){i=true;break}}if(!i){return t}let a='"';let c=true;for(let n=t.length;n>0;n--){a+=t[n-1];if(c&&t[n-1]==="\\"){a+="\\"}else if(t[n-1]==='"'){c=true;a+='"'}else{c=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(t){if(!t){return'""'}if(!t.includes(" ")&&!t.includes("\t")&&!t.includes('"')){return t}if(!t.includes('"')&&!t.includes("\\")){return`"${t}"`}let n='"';let i=true;for(let a=t.length;a>0;a--){n+=t[a-1];if(i&&t[a-1]==="\\"){n+="\\"}else if(t[a-1]==='"'){i=true;n+="\\"}else{i=false}}n+='"';return n.split("").reverse().join("")}_cloneExecOptions(t){t=t||{};const n={cwd:t.cwd||process.cwd(),env:t.env||process.env,silent:t.silent||false,windowsVerbatimArguments:t.windowsVerbatimArguments||false,failOnStdErr:t.failOnStdErr||false,ignoreReturnCode:t.ignoreReturnCode||false,delay:t.delay||1e4};n.outStream=t.outStream||process.stdout;n.errStream=t.errStream||process.stderr;return n}_getSpawnOptions(t,n){t=t||{};const i={};i.cwd=t.cwd;i.env=t.env;i["windowsVerbatimArguments"]=t.windowsVerbatimArguments||this._isCmdFile();if(t.windowsVerbatimArguments){i.argv0=`"${n}"`}return i}exec(){return ae(this,void 0,void 0,function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||ce&&this.toolPath.includes("\\"))){this.toolPath=h.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise((t,n)=>ae(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const t of this.args){this._debug(` ${t}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+c.EOL)}const a=new ExecState(i,this.toolPath);a.on("debug",t=>{this._debug(t)});if(this.options.cwd&&!(yield exists(this.options.cwd))){return n(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const A=this._getSpawnFileName();const l=H.spawn(A,this._getSpawnArgs(i),this._getSpawnOptions(this.options,A));let d="";if(l.stdout){l.stdout.on("data",t=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(t)}if(!i.silent&&i.outStream){i.outStream.write(t)}d=this._processLineBuffer(t,d,t=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(t)}})})}let h="";if(l.stderr){l.stderr.on("data",t=>{a.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(t)}if(!i.silent&&i.errStream&&i.outStream){const n=i.failOnStdErr?i.errStream:i.outStream;n.write(t)}h=this._processLineBuffer(t,h,t=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(t)}})})}l.on("error",t=>{a.processError=t.message;a.processExited=true;a.processClosed=true;a.CheckComplete()});l.on("exit",t=>{a.processExitCode=t;a.processExited=true;this._debug(`Exit code ${t} received from tool '${this.toolPath}'`);a.CheckComplete()});l.on("close",t=>{a.processExitCode=t;a.processExited=true;a.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);a.CheckComplete()});a.on("done",(i,a)=>{if(d.length>0){this.emit("stdline",d)}if(h.length>0){this.emit("errline",h)}l.removeAllListeners();if(i){n(i)}else{t(a)}});if(this.options.input){if(!l.stdin){throw new Error("child process missing stdin")}l.stdin.end(this.options.input)}}))})}}function argStringToArray(t){const n=[];let i=false;let a=false;let c="";function append(t){if(a&&t!=='"'){c+="\\"}c+=t;a=false}for(let A=0;A0){n.push(c);c=""}continue}append(l)}if(c.length>0){n.push(c.trim())}return n}class ExecState extends O.EventEmitter{constructor(t,n){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!n){throw new Error("toolPath must not be empty")}this.options=t;this.toolPath=n;if(t.delay){this.delay=t.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,ie.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(t){this.emit("debug",t)}_setResult(){let t;if(this.processExited){if(this.processError){t=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){t=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){t=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",t,this.processExitCode)}static HandleTimeout(t){if(t.done){return}if(!t.processClosed&&t.processExited){const n=`The STDIO streams did not close within ${t.delay/1e3} seconds of the exit event from process '${t.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;t._debug(n)}t._setResult()}}var Ae=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};function exec_exec(t,n,i){return Ae(this,void 0,void 0,function*(){const a=tr.argStringToArray(t);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const c=a[0];n=a.slice(1).concat(n||[]);const A=new tr.ToolRunner(c,n,i);return A.exec()})}function getExecOutput(t,n,i){return Ae(this,void 0,void 0,function*(){var a,c;let A="";let l="";const d=new StringDecoder("utf8");const h=new StringDecoder("utf8");const f=(a=i===null||i===void 0?void 0:i.listeners)===null||a===void 0?void 0:a.stdout;const g=(c=i===null||i===void 0?void 0:i.listeners)===null||c===void 0?void 0:c.stderr;const stdErrListener=t=>{l+=h.write(t);if(g){g(t)}};const stdOutListener=t=>{A+=d.write(t);if(f){f(t)}};const p=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const m=yield exec_exec(t,n,Object.assign(Object.assign({},i),{listeners:p}));A+=d.end();l+=h.end();return{exitCode:m,stdout:A,stderr:l}})}var le=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};const getWindowsInfo=()=>le(void 0,void 0,void 0,function*(){const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:n}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:n.trim(),version:t.trim()}});const getMacOsInfo=()=>le(void 0,void 0,void 0,function*(){var t,n,i,a;const{stdout:c}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const A=(n=(t=c.match(/ProductVersion:\s*(.+)/))===null||t===void 0?void 0:t[1])!==null&&n!==void 0?n:"";const l=(a=(i=c.match(/ProductName:\s*(.+)/))===null||i===void 0?void 0:i[1])!==null&&a!==void 0?a:"";return{name:l,version:A}});const getLinuxInfo=()=>le(void 0,void 0,void 0,function*(){const{stdout:t}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[n,i]=t.trim().split("\n");return{name:n,version:i}});const ue=c.platform();const de=c.arch();const he=ue==="win32";const fe=ue==="darwin";const ge=ue==="linux";function getDetails(){return le(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he?getWindowsInfo():fe?getMacOsInfo():getLinuxInfo()),{platform:ue,arch:de,isWindows:he,isMacOS:fe,isLinux:ge})})}var pe=undefined&&undefined.__awaiter||function(t,n,i,a){function adopt(t){return t instanceof i?t:new i(function(n){n(t)})}return new(i||(i=Promise))(function(i,c){function fulfilled(t){try{step(a.next(t))}catch(t){c(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){c(t)}}function step(t){t.done?i(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})};var me;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(me||(me={}));function exportVariable(t,n){const i=toCommandValue(n);process.env[t]=i;const a=process.env["GITHUB_ENV"]||"";if(a){return issueFileCommand("ENV",prepareKeyValueMessage(t,n))}issueCommand("set-env",{name:t},i)}function core_setSecret(t){issueCommand("add-mask",{},t)}function addPath(t){const n=process.env["GITHUB_PATH"]||"";if(n){issueFileCommand("PATH",t)}else{issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${path.delimiter}${process.env["PATH"]}`}function getInput(t,n){const i=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!i){throw new Error(`Input required and not supplied: ${t}`)}if(n&&n.trimWhitespace===false){return i}return i.trim()}function getMultilineInput(t,n){const i=getInput(t,n).split("\n").filter(t=>t!=="");if(n&&n.trimWhitespace===false){return i}return i.map(t=>t.trim())}function getBooleanInput(t,n){const i=["true","True","TRUE"];const a=["false","False","FALSE"];const c=getInput(t,n);if(i.includes(c))return true;if(a.includes(c))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(t,n){const i=process.env["GITHUB_OUTPUT"]||"";if(i){return issueFileCommand("OUTPUT",prepareKeyValueMessage(t,n))}process.stdout.write(os.EOL);issueCommand("set-output",{name:t},toCommandValue(n))}function setCommandEcho(t){issue("echo",t?"on":"off")}function setFailed(t){process.exitCode=me.Failure;error(t)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(t){issueCommand("debug",{},t)}function error(t,n={}){command_issueCommand("error",utils_toCommandProperties(n),t instanceof Error?t.toString():t)}function warning(t,n={}){command_issueCommand("warning",utils_toCommandProperties(n),t instanceof Error?t.toString():t)}function notice(t,n={}){issueCommand("notice",toCommandProperties(n),t instanceof Error?t.toString():t)}function info(t){process.stdout.write(t+c.EOL)}function startGroup(t){command_issue("group",t)}function endGroup(){command_issue("endgroup")}function group(t,n){return pe(this,void 0,void 0,function*(){startGroup(t);let i;try{i=yield n()}finally{endGroup()}return i})}function saveState(t,n){const i=process.env["GITHUB_STATE"]||"";if(i){return issueFileCommand("STATE",prepareKeyValueMessage(t,n))}issueCommand("save-state",{name:t},toCommandValue(n))}function getState(t){return process.env[`STATE_${t}`]||""}function getIDToken(t){return pe(this,void 0,void 0,function*(){return yield OidcClient.getIDToken(t)})}var Ee=__nccwpck_require__(7605);const Ce=t(import.meta.url)("fs/promises");const Ie="https://test-reporting.d2l.dev";const ye=["main","master"];const makeLogger=()=>({startGroup:startGroup,endGroup:endGroup,info:info,warning:warning,error:error});const getStringInput=(t,{required:n=true,lowerCase:i=false}={})=>{const a=getInput(t,{required:n});if(a===""&&n){throw new Error(`Input '${t}' must be a non-empty string`)}return i?a.toLowerCase():a};const getContext=t=>{t.startGroup("Gather GitHub context");let n;try{n=(0,Ee.getContext)()}catch{throw new Error("Unable to gather github context")}const{github:i,git:a}=n;const{organization:c,repository:A,workflow:l,runId:d,runAttempt:h}=i;const{branch:f,sha:g}=a;t.info(`GitHub organization: ${c}`);t.info(`GitHub repository: ${A}`);t.info(`GitHub workflow: ${l}`);t.info(`GitHub run ID: ${d}`);t.info(`GitHub run attempt: ${h}`);t.info(`Git branch: ${f}`);t.info(`Git SHA: ${g}`);t.endGroup();return n};const getInputs=async t=>{t.startGroup("Gather GitHub inputs");t.info("Gather credentials");const n=getStringInput("aws-access-key-id");const i=getStringInput("aws-secret-access-key");const a=getStringInput("aws-session-token");const c=getStringInput("role-to-assume");t.info("Determine report path");const A=(0,h.resolve)(getStringInput("report-path"));try{await Ce.access(A)}catch{throw new Error("Report path must exists")}t.info(`Report path: ${A}`);t.info("Determine LMS information");let l=getStringInput("lms-build-number",{required:false});let d=getStringInput("lms-instance-url",{required:false});if(l!==""){t.info(`LMS build number: ${l}`)}else{l=undefined}if(d!==""){t.info(`LMS instance URL: ${d}`)}else{d=undefined}t.info("Determine inject context mode");const f=getStringInput("inject-github-context",{lowerCase:true});if(!["auto","force","off"].includes(f)){throw new Error("Inject context mode invalid")}t.info(`Inject context mode: ${f}`);const g=getBooleanInput("post-summary",{required:true});t.info(`Post summary: ${g}`);const p=getBooleanInput("dry-run",{required:true});t.info(`Dry run: ${p}`);const m=getBooleanInput("debug",{required:true});t.info(`Debug: ${m}`);t.endGroup();return{awsAccessKeyId:n,awsSecretAccessKey:i,awsSessionToken:a,roleToAssume:c,reportPath:A,lmsBuildNumber:l,lmsInstanceUrl:d,injectGitHubContext:f,postSummary:g,dryRun:p,debug:m}};const updateSummary=(t,n,i)=>{t.startGroup("Update GitHub Actions summary");const{postSummary:a}=i;if(!a){t.info("Skip GitHub Action summary update");t.endGroup();return}P.addHeading("Test Reporting",2);P.addRaw("The overview of data submitted can be found ");const c=new URL("analytics/metrics",Ie);const{searchParams:A}=c;const{github:{organization:l,repository:d,branch:h}}=n;const f=!ye.includes(h);A.set("var-githubOrganizations",l);A.set("var-githubRepositories",d);if(f){A.set("var-branchType","All")}P.addLink("here",c.toString());P.addEOL();P.addRaw("A more detailed view of data submitted can be found ");const g=new URL("analytics/drill-down",Ie);const{searchParams:p}=g;p.set("var-githubOrganizations",l);p.set("var-githubRepositories",d);if(f){p.set("var-branchType","All")}P.addLink("here",g.toString());P.addEOL();const{debug:m,dryRun:E}=i;if(m){t.info("Generated summary\n");t.info(`${P.stringify()}\n`)}if(E){t.info("Dry run, skipping GitHub Action summary update");t.endGroup();return}P.write();t.endGroup()};var Be=__nccwpck_require__(1695);var Qe=__nccwpck_require__(4316);var we=__nccwpck_require__(3024);var Se=__nccwpck_require__(8758);const be="us-east-1";const Re="test_reporting";const ve="https://github.com/Brightspace/repo-settings/blob/main/docs/test-reporting.md#analytics";const{BIGINT:ke,VARCHAR:De,MULTI:Te}=Qe.Q3;const{MILLISECONDS:Ne}=Qe.yr;const Me=new WeakMap;const captureExperience=(t,n)=>{const i=JSON.parse(we.readFileSync(n,"utf8"));const a=i.version??i.reportVersion;if(a!==1&&a!==2){return}const c=new Map;for(const t of i.details){const{name:n,location:i,experience:a}=t;if(!a){continue}const A=typeof i==="string"?i:i.file;c.set(`${n}|${A}`,a)}if(c.size>0){Me.set(t,c)}};const applyExperienceDimensions=(t,n)=>{const i=Me.get(t);if(!i){return}Me.delete(t);for(const t of n){for(const n of t.Records){const t=n.Dimensions.find(t=>t.Name==="name")?.Value;const a=n.Dimensions.find(t=>t.Name==="location_file")?.Value;const c=i.get(`${t}|${a}`);if(c){n.Dimensions.push({Name:"experience",Value:c})}}}};const makeSummaryWriteRequest=t=>{const{id:n,version:i,summary:a}=t;const{github:{organization:c,repository:A,workflow:l,runId:d,runAttempt:h},git:{branch:f,sha:g},operatingSystem:p,framework:m,started:E,duration:{total:C},status:I,count:{passed:y,failed:B,skipped:Q,flaky:w},lms:S}=a;const b=[{Name:"report_id",Value:n},{Name:"github_organization",Value:c},{Name:"github_repository",Value:A},{Name:"github_workflow",Value:l},{Name:"github_run_id",Value:d.toString()},{Name:"github_run_attempt",Value:h.toString()},{Name:"git_branch",Value:f},{Name:"git_sha",Value:g},{Name:"operating_system",Value:p},{Name:"framework",Value:m}];if(S){const{buildNumber:t,instanceUrl:n}=S;if(t){b.push({Name:"lms_build_number",Value:t})}if(n){b.push({Name:"lms_instance_url",Value:n})}}return{DatabaseName:Re,TableName:"summary",Records:[{Version:1,Time:Date.parse(E).toString(),TimeUnit:Ne,MeasureName:`report_v${i}_bc`,MeasureValueType:Te,MeasureValues:[{Name:"duration_total",Value:C.toString(),Type:ke},{Name:"status",Value:I,Type:De},{Name:"count_passed",Value:y.toString(),Type:ke},{Name:"count_failed",Value:B.toString(),Type:ke},{Name:"count_skipped",Value:Q.toString(),Type:ke},{Name:"count_flaky",Value:w.toString(),Type:ke}],Dimensions:b}]}};const makeDetailRecord=t=>{const{name:n,started:i,location:a,retries:c,config:A,configuration:l,github:d,duration:{total:h,final:f},status:g,browser:p,taxonomy:m}=t;const{file:E,line:C,column:I}=a;const{timeout:y}=l??A??{};const{codeowners:B}=d??{};const{type:Q,tool:w}=m??{};const S=[{Name:"duration_final",Value:f.toString(),Type:ke},{Name:"duration_total",Value:h.toString(),Type:ke},{Name:"retries",Value:c.toString(),Type:ke},{Name:"status",Value:g,Type:De}];const b=[{Name:"name",Value:n},{Name:"location_file",Value:E}];if(y){b.push({Name:"timeout",Value:y.toString()});S.push({Name:"configuration_timeout",Value:y.toString(),Type:ke})}if(C){b.push({Name:"location_line",Value:C.toString()})}if(I){b.push({Name:"location_column",Value:I.toString()})}if(p){b.push({Name:"browser",Value:p})}if(Q){b.push({Name:"type",Value:Q});b.push({Name:"taxonomy_type",Value:Q})}if(w){b.push({Name:"tool",Value:w});b.push({Name:"taxonomy_tool",Value:w})}if(B){b.push({Name:"github_codeowners",Value:B.join(",")})}return{Time:Date.parse(i).toString(),TimeUnit:Ne,MeasureValues:S,Dimensions:b}};const makeDetailWriteRequests=t=>{const{id:n,version:i,details:a}=t;const c=100;const A=Array.from({length:Math.ceil(a.length/c)},(t,A)=>{const l=a.slice(A*c,A*c+c).map(makeDetailRecord);return{DatabaseName:Re,TableName:"details",Records:l,CommonAttributes:{Version:1,MeasureName:`report_v${i}_bc`,MeasureValueType:Te,Dimensions:[{Name:"report_id",Value:n,Type:De}]}}});return A};const assumeRole=async(t,n,i,a,c,A,l)=>{const d=new Be.iM({region:n,credentials:i});const h=new Be.QL({RoleArn:a,RoleSessionName:c,DurationSeconds:A,Tags:l});let f;try{f=await d.send(h)}catch(n){const{name:i,message:a,$metadata:c={}}=n;const{httpStatusCode:A="[unknown]",requestId:l="[unknown]"}=c;t.error(`AWS ${i} (HTTP ${A}, request ${l}): ${a}`);if(i==="AccessDenied"){t.info(`Hint: Possibly missing repo-settings set-up. See ${ve} for details`)}throw new Error("Unable to assume required role")}const{AccessKeyId:g,SecretAccessKey:p,SessionToken:m}=f.Credentials;return{accessKeyId:g,secretAccessKey:p,sessionToken:m}};const writeTimestream=async(t,n,i,a,c)=>{const{debug:A}=n;const l=new Qe.Go({credentials:a,region:i});for(const[n,i]of c.entries()){try{t.info(`Sending batch ${n+1} of ${c.length} (${i.Records.length} records)`);if(A){t.info(`${JSON.stringify(i,null,2)}\n`)}const a=new Qe.Nj(i);await l.send(a)}catch(a){const{name:A,message:l,$metadata:d={},RejectedRecords:h}=a;const{httpStatusCode:f="[unknown]",requestId:g="[unknown]"}=d;t.error(`AWS ${A} on batch ${n+1}/${c.length} (HTTP ${f}, request ${g}): ${l}`);if(Array.isArray(h)){for(const n of h){const a=JSON.stringify(i.Records[n.RecordIndex]);t.error(`Rejected record ${n.RecordIndex} (${n.Reason}): ${a}`)}}throw new Error("Unable to submit write requests")}}};const finalize=(t,n,i)=>{t.startGroup("Finalize test report");const{reportPath:a,injectGitHubContext:c,lmsBuildNumber:A,lmsInstanceUrl:l,debug:d}=i;const h={};if(A){h.buildNumber=A}if(l){h.instanceUrl=l}let f={lmsInfo:h,upgradeToLatest:true};if(c==="force"){t.info("Forcefully inject GitHub context");f={...f,context:n,overrideContext:true}}else if(c==="auto"){t.info("Allow injection of GitHub context");f={...f,context:n}}else{t.info("Not injecting GitHub context")}const g=new Se.Report(a,f);captureExperience(g,a);if(Me.has(g)){t.info("Captured experience dimension from source report for backwards compatibility");if(d){const n=Me.get(g);t.info(`Experience map (${n.size} entries)\n`);t.info(`${JSON.stringify(Object.fromEntries(n),null,2)}\n`)}}if(d){t.info("Loaded report\n");t.info(`${JSON.stringify(g,null,2)}\n`)}t.info(`Report ID: ${g.getId()}`);const p=g.getVersionOriginal();const m=g.getVersion();if(p!==m){t.info(`Report Version: ${m} (Upgrade from ${p})`)}else{t.info(`Report Version: ${m}`)}t.endGroup();return g};const report_submit=async(t,n,i,a)=>{t.startGroup("Submit report");t.info("Generate summary write request");let c=a.toJSON();const A=makeSummaryWriteRequest(c);t.info("Generate detail write requests");const l=makeDetailWriteRequests(c);c=null;if(Me.has(a)){t.info("Restoring experience dimension onto detail records")}applyExperienceDimensions(a,l);t.info("Merge write requests");const d=[A,...l];t.info("Assume required role");const{github:{organization:h,repository:f}}=n;const{awsAccessKeyId:g,awsSecretAccessKey:p,awsSessionToken:m,roleToAssume:E}=i;const C=await assumeRole(t,be,{accessKeyId:g,secretAccessKey:p,sessionToken:m},E,`test-reporting-${(new Date).getTime()}`,3600,[{Key:"Org",Value:h},{Key:"Repo",Value:f}]);const{dryRun:I}=i;if(I){t.info("Dry run, skipping records submit");return}t.info("Executing write requests");await writeTimestream(t,i,be,C,d);t.endGroup()};(async()=>{const t=makeLogger();try{const n=getContext(t);const i=await getInputs(t);const a=finalize(t,n,i);const c=a.getContext();await report_submit(t,n,i,a);updateSummary(t,c,i)}catch({message:n}){setFailed(n);t.endGroup()}})(); \ No newline at end of file