From 112ee5f00fee38ce85ffc275ae6279f78fb08a2b Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 15:10:05 +0800 Subject: [PATCH 01/18] feat: add sfw input to wrap vp install with Socket Firewall Free When `sfw: true`, the action downloads the matching `sfw` binary from github.com/SocketDev/sfw-free/releases (auto-detected per OS/arch, with musl support on Alpine) and runs `sfw vp install ...` so the underlying package manager's network fetches are inspected before install. Other `vp` commands run unwrapped. CI: new `test-sfw` (Ubuntu/macOS/Windows x latest/alpha) and `test-sfw-alpine` (alpine:3.23, musl branch) jobs exercise the new input end-to-end. --- .github/workflows/test.yml | 69 +++++++++++++++++++ README.md | 17 +++++ action.yml | 4 ++ dist/index.mjs | 124 +++++++++++++++++------------------ src/index.ts | 8 ++- src/inputs.test.ts | 13 ++++ src/inputs.ts | 1 + src/install-sfw.test.ts | 60 +++++++++++++++++ src/install-sfw.ts | 109 ++++++++++++++++++++++++++++++ src/install-viteplus.test.ts | 1 + src/run-install.ts | 10 +-- src/types.ts | 1 + src/utils.test.ts | 5 ++ 13 files changed, 355 insertions(+), 67 deletions(-) create mode 100644 src/install-sfw.test.ts create mode 100644 src/install-sfw.ts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 805e952..4f0f54f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -292,6 +292,75 @@ jobs: - name: Verify vp exec works run: vp exec node -e "console.log('vp exec works in Alpine')" + test-sfw: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + version: [latest, alpha] + runs-on: ${{ matrix.os }} + steps: + - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 + + - name: Create test project with a real dependency + shell: bash + run: | + mkdir -p test-project + cd test-project + echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json + + - name: Setup Vite+ (${{ matrix.version }}) with sfw + uses: ./ + with: + version: ${{ matrix.version }} + sfw: true + run-install: | + - cwd: test-project + cache: false + + - name: Verify sfw is on PATH + run: sfw --version + + - name: Verify dependency installed under sfw + working-directory: test-project + run: vp exec node -e "console.log(require('is-odd')(3))" + + test-sfw-alpine: + strategy: + fail-fast: false + matrix: + version: [latest, alpha] + runs-on: ubuntu-latest + container: + image: alpine:3.23 + steps: + - name: Install Alpine dependencies + run: apk add --no-cache bash curl gcompat libstdc++ + + - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 + + - name: Create test project with a real dependency + run: | + mkdir -p test-project + cd test-project + echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json + + - name: Setup Vite+ (${{ matrix.version }}) with sfw (musl) + uses: ./ + with: + version: ${{ matrix.version }} + sfw: true + run-install: | + - cwd: test-project + cache: false + + - name: Verify sfw is on PATH (musl) + run: sfw --version + + - name: Verify dependency installed under sfw (musl) + working-directory: test-project + run: vp exec node -e "console.log(require('is-odd')(3))" + build: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 48a4119..bea74a6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ GitHub Action to set up [Vite+](https://viteplus.dev) (`vp`) with dependency cac - Optionally set up a specific Node.js version via `vp env use` - Cache project dependencies with auto-detection of lock files - Optionally run `vp install` after setup +- Optionally wrap `vp install` with [Socket Firewall Free (`sfw`)](https://docs.socket.dev/docs/socket-firewall-free) to block malicious dependencies - Support for all major package managers (npm, pnpm, yarn, bun) ## Usage @@ -135,6 +136,21 @@ steps: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ``` +### With Socket Firewall Free (sfw) + +Set `sfw: true` to wrap `vp install` with [Socket Firewall Free](https://docs.socket.dev/docs/socket-firewall-free). The action downloads the matching `sfw` binary from the upstream [releases](https://github.com/SocketDev/sfw-free/releases) (auto-detected per OS/arch, with musl support on Alpine) and runs `sfw vp install …` so the underlying npm / pnpm / yarn fetches are inspected before packages are installed: + +```yaml +steps: + - uses: actions/checkout@v6 + - uses: voidzero-dev/setup-vp@v1 + with: + sfw: true + run-install: true +``` + +`sfw` is only applied when `run-install` is enabled; other `vp` commands (e.g. `vp env use`, `vp --version`) run unwrapped. + ### Alpine Container Alpine Linux uses musl libc instead of glibc. Install compatibility packages before using the action: @@ -178,6 +194,7 @@ jobs: | `node-version-file` | Path to file containing Node.js version (`.nvmrc`, `.node-version`, `.tool-versions`, `package.json`) | No | | | `working-directory` | Project directory used for relative paths, lockfile auto-detection, environment checks, and default install | No | Workspace root | | `run-install` | Run `vp install` after setup. Accepts boolean or YAML object with `cwd`/`args` | No | `true` | +| `sfw` | Wrap `vp install` with [Socket Firewall Free](https://docs.socket.dev/docs/socket-firewall-free) (`sfw`) | No | `false` | | `cache` | Enable caching of project dependencies | No | `false` | | `cache-dependency-path` | Path to lock file for cache key generation | No | Auto-detected | | `registry-url` | Optional registry to set up for auth. Sets the registry in `.npmrc` and reads auth from `NODE_AUTH_TOKEN` | No | | diff --git a/action.yml b/action.yml index 7fe9aba..044964b 100644 --- a/action.yml +++ b/action.yml @@ -14,6 +14,10 @@ inputs: description: "Run `vp install` after setup. Accepts boolean or YAML object with cwd/args." required: false default: "true" + sfw: + description: "Wrap `vp install` with Socket Firewall Free (sfw) to block malicious dependency fetches. Downloads the sfw binary from https://github.com/SocketDev/sfw-free/releases. See https://docs.socket.dev/docs/socket-firewall-free." + required: false + default: "false" node-version: description: "Node.js version to install via `vp env use`. Defaults to Node.js latest LTS version." required: false diff --git a/dist/index.mjs b/dist/index.mjs index 8ec566e..4ddd642 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1,27 +1,27 @@ -import{createRequire as e}from"node:module";import*as t from"os";import n,{EOL as r}from"os";import*as i from"crypto";import*as a from"fs";import{constants as o,existsSync as s,promises as c,writeFileSync as l}from"fs";import*as u from"path";import*as d from"http";import*as f from"https";import*as p from"events";import{EventEmitter as m}from"events";import h,{ok as g}from"assert";import*as _ from"util";import v from"node:http";import{Readable as y,Transform as b}from"node:stream";import x from"node:buffer";import S,{inspect as C}from"node:util";import w from"node:zlib";import{createHmac as T}from"node:crypto";import{StringDecoder as E}from"string_decoder";import*as D from"child_process";import{setTimeout as O}from"timers";import*as k from"buffer";import{Buffer as A}from"buffer";import{basename as j,dirname as M,isAbsolute as ee,join as N,resolve as te}from"node:path";import{setTimeout as ne}from"node:timers/promises";import re,{existsSync as ie,readFileSync as ae,readdirSync as oe,statSync as se,writeFileSync as ce}from"node:fs";import le,{EOL as ue,arch as de,homedir as fe,platform as pe}from"node:os";import*as me from"stream";import{Readable as he}from"stream";import{URL as ge}from"url";import _e from"node:process";import ve from"node:https";var ye=Object.create,be=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,Se=Object.getOwnPropertyNames,Ce=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,P=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Te=(e,t)=>{let n={};for(var r in e)be(n,r,{get:e[r],enumerable:!0});return t||be(n,Symbol.toStringTag,{value:`Module`}),n},Ee=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Se(t),a=0,o=i.length,s;at[e]).bind(null,s),enumerable:!(r=xe(t,s))||r.enumerable});return e},De=(e,t,n)=>(n=e==null?{}:ye(Ce(e)),Ee(t||!e||!e.__esModule?be(n,`default`,{value:e,enumerable:!0}):n,e)),F=e(import.meta.url);function Oe(e){return e==null?``:typeof e==`string`||e instanceof String?e:JSON.stringify(e)}function ke(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function Ae(e,n,r){let i=new Me(e,n,r);process.stdout.write(i.toString()+t.EOL)}function je(e,t=``){Ae(e,{},t)}var Me=class{constructor(e,t,n){e||=`missing.command`,this.command=e,this.properties=t,this.message=n}toString(){let e=`::`+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${Pe(r)}`)}}return e+=`::${Ne(this.message)}`,e}};function Ne(e){return Oe(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function Pe(e){return Oe(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function Fe(e,n){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!a.existsSync(r))throw Error(`Missing file at path: ${r}`);a.appendFileSync(r,`${Oe(n)}${t.EOL}`,{encoding:`utf8`})}function Ie(e,n){let r=`ghadelimiter_${i.randomUUID()}`,a=Oe(n);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(a.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${t.EOL}${a}${t.EOL}${r}`}function Le(e){let t=e.protocol===`https:`;if(Re(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new Be(n)}catch{if(!n.startsWith(`http://`)&&!n.startsWith(`https://`))return new Be(`http://${n}`)}else return}function Re(e){if(!e.hostname)return!1;let t=e.hostname;if(ze(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let r;e.port?r=Number(e.port):e.protocol===`http:`?r=80:e.protocol===`https:`&&(r=443);let i=[e.hostname.toUpperCase()];typeof r==`number`&&i.push(`${i[0]}:${r}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function ze(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var Be=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}},Ve=P((e=>{F(`net`);var t=F(`tls`),n=F(`http`),r=F(`https`),i=F(`events`);F(`assert`);var a=F(`util`);e.httpOverHttp=o,e.httpsOverHttp=s,e.httpOverHttps=c,e.httpsOverHttps=l;function o(e){var t=new u(e);return t.request=n.request,t}function s(e){var t=new u(e);return t.request=n.request,t.createSocket=d,t.defaultPort=443,t}function c(e){var t=new u(e);return t.request=r.request,t}function l(e){var t=new u(e);return t.request=r.request,t.createSocket=d,t.defaultPort=443,t}function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on(`free`,function(e,n,r,i){for(var a=f(n,r,i),o=0,s=t.requests.length;o=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(t){t.on(`free`,n),t.on(`close`,r),t.on(`agentRemove`,r),e.onSocket(t);function n(){i.emit(`free`,t,a)}function r(e){i.removeSocket(t),t.removeListener(`free`,n),t.removeListener(`close`,r),t.removeListener(`agentRemove`,r)}})},u.prototype.createSocket=function(e,t){var n=this,r={};n.sockets.push(r);var i=p({},n.proxyOptions,{method:`CONNECT`,path:e.host+`:`+e.port,agent:!1,headers:{host:e.host+`:`+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers[`Proxy-Authorization`]=`Basic `+new Buffer(i.proxyAuth).toString(`base64`)),m(`making CONNECT request`);var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once(`response`,o),a.once(`upgrade`,s),a.once(`connect`,c),a.once(`error`,l),a.end();function o(e){e.upgrade=!0}function s(e,t,n){process.nextTick(function(){c(e,t,n)})}function c(i,o,s){if(a.removeAllListeners(),o.removeAllListeners(),i.statusCode!==200){m(`tunneling socket could not be established, statusCode=%d`,i.statusCode),o.destroy();var c=Error(`tunneling socket could not be established, statusCode=`+i.statusCode);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}if(s.length>0){m(`got illegal response body from proxy`),o.destroy();var c=Error(`got illegal response body from proxy`);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}return m(`tunneling connection has established`),n.sockets[n.sockets.indexOf(r)]=o,t(o)}function l(t){a.removeAllListeners(),m(`tunneling socket could not be established, cause=%s -`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function d(e,n){var r=this;u.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=p({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=t.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,n(s)})}function f(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function p(e){for(var t=1,n=arguments.length;t{t.exports=Ve()})),Ue=P(((e,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`)}})),I=P(((e,t)=>{let n=Symbol.for(`undici.error.UND_ERR`);var r=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}static[Symbol.hasInstance](e){return e&&e[n]===!0}[n]=!0};let i=Symbol.for(`undici.error.UND_ERR_CONNECT_TIMEOUT`);var a=class extends r{constructor(e){super(e),this.name=`ConnectTimeoutError`,this.message=e||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[i]===!0}[i]=!0};let o=Symbol.for(`undici.error.UND_ERR_HEADERS_TIMEOUT`);var s=class extends r{constructor(e){super(e),this.name=`HeadersTimeoutError`,this.message=e||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[o]===!0}[o]=!0};let c=Symbol.for(`undici.error.UND_ERR_HEADERS_OVERFLOW`);var l=class extends r{constructor(e){super(e),this.name=`HeadersOverflowError`,this.message=e||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}static[Symbol.hasInstance](e){return e&&e[c]===!0}[c]=!0};let u=Symbol.for(`undici.error.UND_ERR_BODY_TIMEOUT`);var d=class extends r{constructor(e){super(e),this.name=`BodyTimeoutError`,this.message=e||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[u]===!0}[u]=!0};let f=Symbol.for(`undici.error.UND_ERR_RESPONSE_STATUS_CODE`);var p=class extends r{constructor(e,t,n,r){super(e),this.name=`ResponseStatusCodeError`,this.message=e||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=r,this.status=t,this.statusCode=t,this.headers=n}static[Symbol.hasInstance](e){return e&&e[f]===!0}[f]=!0};let m=Symbol.for(`undici.error.UND_ERR_INVALID_ARG`);var h=class extends r{constructor(e){super(e),this.name=`InvalidArgumentError`,this.message=e||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}static[Symbol.hasInstance](e){return e&&e[m]===!0}[m]=!0};let g=Symbol.for(`undici.error.UND_ERR_INVALID_RETURN_VALUE`);var _=class extends r{constructor(e){super(e),this.name=`InvalidReturnValueError`,this.message=e||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}static[Symbol.hasInstance](e){return e&&e[g]===!0}[g]=!0};let v=Symbol.for(`undici.error.UND_ERR_ABORT`);var y=class extends r{constructor(e){super(e),this.name=`AbortError`,this.message=e||`The operation was aborted`,this.code=`UND_ERR_ABORT`}static[Symbol.hasInstance](e){return e&&e[v]===!0}[v]=!0};let b=Symbol.for(`undici.error.UND_ERR_ABORTED`);var x=class extends y{constructor(e){super(e),this.name=`AbortError`,this.message=e||`Request aborted`,this.code=`UND_ERR_ABORTED`}static[Symbol.hasInstance](e){return e&&e[b]===!0}[b]=!0};let S=Symbol.for(`undici.error.UND_ERR_INFO`);var C=class extends r{constructor(e){super(e),this.name=`InformationalError`,this.message=e||`Request information`,this.code=`UND_ERR_INFO`}static[Symbol.hasInstance](e){return e&&e[S]===!0}[S]=!0};let w=Symbol.for(`undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`);var T=class extends r{constructor(e){super(e),this.name=`RequestContentLengthMismatchError`,this.message=e||`Request body length does not match content-length header`,this.code=`UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[w]===!0}[w]=!0};let E=Symbol.for(`undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH`);var D=class extends r{constructor(e){super(e),this.name=`ResponseContentLengthMismatchError`,this.message=e||`Response body length does not match content-length header`,this.code=`UND_ERR_RES_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[E]===!0}[E]=!0};let O=Symbol.for(`undici.error.UND_ERR_DESTROYED`);var k=class extends r{constructor(e){super(e),this.name=`ClientDestroyedError`,this.message=e||`The client is destroyed`,this.code=`UND_ERR_DESTROYED`}static[Symbol.hasInstance](e){return e&&e[O]===!0}[O]=!0};let A=Symbol.for(`undici.error.UND_ERR_CLOSED`);var j=class extends r{constructor(e){super(e),this.name=`ClientClosedError`,this.message=e||`The client is closed`,this.code=`UND_ERR_CLOSED`}static[Symbol.hasInstance](e){return e&&e[A]===!0}[A]=!0};let M=Symbol.for(`undici.error.UND_ERR_SOCKET`);var ee=class extends r{constructor(e,t){super(e),this.name=`SocketError`,this.message=e||`Socket error`,this.code=`UND_ERR_SOCKET`,this.socket=t}static[Symbol.hasInstance](e){return e&&e[M]===!0}[M]=!0};let N=Symbol.for(`undici.error.UND_ERR_NOT_SUPPORTED`);var te=class extends r{constructor(e){super(e),this.name=`NotSupportedError`,this.message=e||`Not supported error`,this.code=`UND_ERR_NOT_SUPPORTED`}static[Symbol.hasInstance](e){return e&&e[N]===!0}[N]=!0};let ne=Symbol.for(`undici.error.UND_ERR_BPL_MISSING_UPSTREAM`);var re=class extends r{constructor(e){super(e),this.name=`MissingUpstreamError`,this.message=e||`No upstream has been added to the BalancedPool`,this.code=`UND_ERR_BPL_MISSING_UPSTREAM`}static[Symbol.hasInstance](e){return e&&e[ne]===!0}[ne]=!0};let ie=Symbol.for(`undici.error.UND_ERR_HTTP_PARSER`);var ae=class extends Error{constructor(e,t,n){super(e),this.name=`HTTPParserError`,this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[ie]===!0}[ie]=!0};let oe=Symbol.for(`undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE`);var se=class extends r{constructor(e){super(e),this.name=`ResponseExceededMaxSizeError`,this.message=e||`Response content exceeded max size`,this.code=`UND_ERR_RES_EXCEEDED_MAX_SIZE`}static[Symbol.hasInstance](e){return e&&e[oe]===!0}[oe]=!0};let ce=Symbol.for(`undici.error.UND_ERR_REQ_RETRY`);var le=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`RequestRetryError`,this.message=e||`Request retry error`,this.code=`UND_ERR_REQ_RETRY`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ce]===!0}[ce]=!0};let ue=Symbol.for(`undici.error.UND_ERR_RESPONSE`);var de=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`ResponseError`,this.message=e||`Response error`,this.code=`UND_ERR_RESPONSE`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ue]===!0}[ue]=!0};let fe=Symbol.for(`undici.error.UND_ERR_PRX_TLS`);var pe=class extends r{constructor(e,t,n){super(t,{cause:e,...n??{}}),this.name=`SecureProxyConnectionError`,this.message=t||`Secure Proxy Connection failed`,this.code=`UND_ERR_PRX_TLS`,this.cause=e}static[Symbol.hasInstance](e){return e&&e[fe]===!0}[fe]=!0};let me=Symbol.for(`undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`);t.exports={AbortError:y,HTTPParserError:ae,UndiciError:r,HeadersTimeoutError:s,HeadersOverflowError:l,BodyTimeoutError:d,RequestContentLengthMismatchError:T,ConnectTimeoutError:a,ResponseStatusCodeError:p,InvalidArgumentError:h,InvalidReturnValueError:_,RequestAbortedError:x,ClientDestroyedError:k,ClientClosedError:j,InformationalError:C,SocketError:ee,NotSupportedError:te,ResponseContentLengthMismatchError:D,BalancedPoolMissingUpstreamError:re,ResponseExceededMaxSizeError:se,RequestRetryError:le,ResponseError:de,SecureProxyConnectionError:pe,MessageSizeExceededError:class extends r{constructor(e){super(e),this.name=`MessageSizeExceededError`,this.message=e||`Max decompressed message size exceeded`,this.code=`UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`}static[Symbol.hasInstance](e){return e&&e[me]===!0}get[me](){return!0}}}})),We=P(((e,t)=>{let n={},r=`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`.split(`.`);for(let e=0;e{let{wellknownHeaderNames:n,headerNameLowerCasedRecord:r}=We();var i=class e{value=null;left=null;middle=null;right=null;code;constructor(t,n,r){if(r===void 0||r>=t.length)throw TypeError(`Unreachable`);if((this.code=t.charCodeAt(r))>127)throw TypeError(`key must be ascii string`);t.length===++r?this.value=n:this.middle=new e(t,n,r)}add(t,n){let r=t.length;if(r===0)throw TypeError(`Unreachable`);let i=0,a=this;for(;;){let o=t.charCodeAt(i);if(o>127)throw TypeError(`key must be ascii string`);if(a.code===o)if(r===++i){a.value=n;break}else if(a.middle!==null)a=a.middle;else{a.middle=new e(t,n,i);break}else if(a.code=65&&(i|=32);r!==null;){if(i===r.code){if(t===++n)return r;r=r.middle;break}r=r.code{let n=F(`node:assert`),{kDestroyed:r,kBodyUsed:i,kListeners:a,kBody:o}=Ue(),{IncomingMessage:s}=F(`node:http`),c=F(`node:stream`),l=F(`node:net`),{Blob:u}=F(`node:buffer`),d=F(`node:util`),{stringify:f}=F(`node:querystring`),{EventEmitter:p}=F(`node:events`),{InvalidArgumentError:m}=I(),{headerNameLowerCasedRecord:h}=We(),{tree:g}=Ge(),[_,v]=process.versions.node.split(`.`).map(e=>Number(e));var y=class{constructor(e){this[o]=e,this[i]=!1}async*[Symbol.asyncIterator](){n(!this[i],`disturbed`),this[i]=!0,yield*this[o]}};function b(e){return S(e)?(N(e)===0&&e.on(`data`,function(){n(!1)}),typeof e.readableDidRead!=`boolean`&&(e[i]=!1,p.prototype.on.call(e,`data`,function(){this[i]=!0})),e):e&&typeof e.pipeTo==`function`||e&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&ee(e)?new y(e):e}function x(){}function S(e){return e&&typeof e==`object`&&typeof e.pipe==`function`&&typeof e.on==`function`}function C(e){if(e===null)return!1;if(e instanceof u)return!0;if(typeof e!=`object`)return!1;{let t=e[Symbol.toStringTag];return(t===`Blob`||t===`File`)&&(`stream`in e&&typeof e.stream==`function`||`arrayBuffer`in e&&typeof e.arrayBuffer==`function`)}}function w(e,t){if(e.includes(`?`)||e.includes(`#`))throw Error(`Query params cannot be passed when url already contains "?" or "#".`);let n=f(t);return n&&(e+=`?`+n),e}function T(e){let t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function E(e){return e!=null&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&(e[4]===`:`||e[4]===`s`&&e[5]===`:`)}function D(e){if(typeof e==`string`){if(e=new URL(e),!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||typeof e!=`object`)throw new m(`Invalid URL: The URL argument must be a non-null object.`);if(!(e instanceof URL)){if(e.port!=null&&e.port!==``&&T(e.port)===!1)throw new m(`Invalid URL: port must be a valid integer or a string representation of an integer.`);if(e.path!=null&&typeof e.path!=`string`)throw new m(`Invalid URL path: the path must be a string or null/undefined.`);if(e.pathname!=null&&typeof e.pathname!=`string`)throw new m(`Invalid URL pathname: the pathname must be a string or null/undefined.`);if(e.hostname!=null&&typeof e.hostname!=`string`)throw new m(`Invalid URL hostname: the hostname must be a string or null/undefined.`);if(e.origin!=null&&typeof e.origin!=`string`)throw new m(`Invalid URL origin: the origin must be a string or null/undefined.`);if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");let t=e.port==null?e.protocol===`https:`?443:80:e.port,n=e.origin==null?`${e.protocol||``}//${e.hostname||``}:${t}`:e.origin,r=e.path==null?`${e.pathname||``}${e.search||``}`:e.path;return n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),r&&r[0]!==`/`&&(r=`/${r}`),new URL(`${n}${r}`)}if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}function O(e){if(e=D(e),e.pathname!==`/`||e.search||e.hash)throw new m(`invalid url`);return e}function k(e){if(e[0]===`[`){let t=e.indexOf(`]`);return n(t!==-1),e.substring(1,t)}let t=e.indexOf(`:`);return t===-1?e:e.substring(0,t)}function A(e){if(!e)return null;n(typeof e==`string`);let t=k(e);return l.isIP(t)?``:t}function j(e){return JSON.parse(JSON.stringify(e))}function M(e){return e!=null&&typeof e[Symbol.asyncIterator]==`function`}function ee(e){return e!=null&&(typeof e[Symbol.iterator]==`function`||typeof e[Symbol.asyncIterator]==`function`)}function N(e){if(e==null)return 0;if(S(e)){let t=e._readableState;return t&&t.objectMode===!1&&t.ended===!0&&Number.isFinite(t.length)?t.length:null}else if(C(e))return e.size==null?null:e.size;else if(le(e))return e.byteLength;return null}function te(e){return e&&!!(e.destroyed||e[r]||c.isDestroyed?.(e))}function ne(e,t){e==null||!S(e)||te(e)||(typeof e.destroy==`function`?(Object.getPrototypeOf(e).constructor===s&&(e.socket=null),e.destroy(t)):t&&queueMicrotask(()=>{e.emit(`error`,t)}),e.destroyed!==!0&&(e[r]=!0))}let re=/timeout=(\d+)/;function ie(e){let t=e.toString().match(re);return t?parseInt(t[1],10)*1e3:null}function ae(e){return typeof e==`string`?h[e]??e.toLowerCase():g.lookup(e)??e.toString(`latin1`).toLowerCase()}function oe(e){return g.lookup(e)??e.toString(`latin1`).toLowerCase()}function se(e,t){t===void 0&&(t={});for(let n=0;ne.toString(`utf8`)):i.toString(`utf8`)}}return`content-length`in t&&`content-disposition`in t&&(t[`content-disposition`]=Buffer.from(t[`content-disposition`]).toString(`latin1`)),t}function ce(e){let t=e.length,n=Array(t),r=!1,i=-1,a,o,s=0;for(let t=0;t{e.close(),e.byobRequest?.respond(0)});else{let t=Buffer.isBuffer(r)?r:Buffer.from(r);t.byteLength&&e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}function ge(e){return e&&typeof e==`object`&&typeof e.append==`function`&&typeof e.delete==`function`&&typeof e.get==`function`&&typeof e.getAll==`function`&&typeof e.has==`function`&&typeof e.set==`function`&&e[Symbol.toStringTag]===`FormData`}function _e(e,t){return`addEventListener`in e?(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)):(e.addListener(`abort`,t),()=>e.removeListener(`abort`,t))}let ve=typeof String.prototype.toWellFormed==`function`,ye=typeof String.prototype.isWellFormed==`function`;function be(e){return ve?`${e}`.toWellFormed():d.toUSVString(e)}function xe(e){return ye?`${e}`.isWellFormed():be(e)===`${e}`}function Se(e){switch(e){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!1;default:return e>=33&&e<=126}}function Ce(e){if(e.length===0)return!1;for(let t=0;t{let n=F(`node:diagnostics_channel`),r=F(`node:util`),i=r.debuglog(`undici`),a=r.debuglog(`fetch`),o=r.debuglog(`websocket`),s=!1,c={beforeConnect:n.channel(`undici:client:beforeConnect`),connected:n.channel(`undici:client:connected`),connectError:n.channel(`undici:client:connectError`),sendHeaders:n.channel(`undici:client:sendHeaders`),create:n.channel(`undici:request:create`),bodySent:n.channel(`undici:request:bodySent`),headers:n.channel(`undici:request:headers`),trailers:n.channel(`undici:request:trailers`),error:n.channel(`undici:request:error`),open:n.channel(`undici:websocket:open`),close:n.channel(`undici:websocket:close`),socketError:n.channel(`undici:websocket:socket_error`),ping:n.channel(`undici:websocket:ping`),pong:n.channel(`undici:websocket:pong`)};if(i.enabled||a.enabled){let e=a.enabled?a:i;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s using %s%s errored - %s`,`${a}${i?`:${i}`:``}`,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)}),n.channel(`undici:request:headers`).subscribe(t=>{let{request:{method:n,path:r,origin:i},response:{statusCode:a}}=t;e(`received response to %s %s/%s - HTTP %d`,n,i,r,a)}),n.channel(`undici:request:trailers`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`trailers received from %s %s/%s`,n,i,r)}),n.channel(`undici:request:error`).subscribe(t=>{let{request:{method:n,path:r,origin:i},error:a}=t;e(`request to %s %s/%s errored - %s`,n,i,r,a.message)}),s=!0}if(o.enabled){if(!s){let e=i.enabled?i:o;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s%s using %s%s errored - %s`,a,i?`:${i}`:``,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)})}n.channel(`undici:websocket:open`).subscribe(e=>{let{address:{address:t,port:n}}=e;o(`connection opened %s%s`,t,n?`:${n}`:``)}),n.channel(`undici:websocket:close`).subscribe(e=>{let{websocket:t,code:n,reason:r}=e;o(`closed connection to %s - %s %s`,t.url,n,r)}),n.channel(`undici:websocket:socket_error`).subscribe(e=>{o(`connection errored - %s`,e.message)}),n.channel(`undici:websocket:ping`).subscribe(e=>{o(`ping received`)}),n.channel(`undici:websocket:pong`).subscribe(e=>{o(`pong received`)})}t.exports={channels:c}})),qe=P(((e,t)=>{let{InvalidArgumentError:n,NotSupportedError:r}=I(),i=F(`node:assert`),{isValidHTTPToken:a,isValidHeaderValue:o,isStream:s,destroy:c,isBuffer:l,isFormDataLike:u,isIterable:d,isBlobLike:f,buildURL:p,validateHandler:m,getServerName:h,normalizedMethodRecords:g}=L(),{channels:_}=Ke(),{headerNameLowerCasedRecord:v}=We(),y=/[^\u0021-\u00ff]/,b=Symbol(`handler`);var x=class{constructor(e,{path:t,method:r,body:i,headers:v,query:x,idempotent:C,blocking:w,upgrade:T,headersTimeout:E,bodyTimeout:D,reset:O,throwOnError:k,expectContinue:A,servername:j},M){if(typeof t!=`string`)throw new n(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&r!==`CONNECT`)throw new n(`path must be an absolute URL or start with a slash`);if(y.test(t))throw new n(`invalid request path`);if(typeof r!=`string`)throw new n(`method must be a string`);if(g[r]===void 0&&!a(r))throw new n(`invalid request method`);if(T&&typeof T!=`string`)throw new n(`upgrade must be a string`);if(T&&!o(T))throw new n(`invalid upgrade header`);if(E!=null&&(!Number.isFinite(E)||E<0))throw new n(`invalid headersTimeout`);if(D!=null&&(!Number.isFinite(D)||D<0))throw new n(`invalid bodyTimeout`);if(O!=null&&typeof O!=`boolean`)throw new n(`invalid reset`);if(A!=null&&typeof A!=`boolean`)throw new n(`invalid expectContinue`);if(this.headersTimeout=E,this.bodyTimeout=D,this.throwOnError=k===!0,this.method=r,this.abort=null,i==null)this.body=null;else if(s(i)){this.body=i;let e=this.body._readableState;(!e||!e.autoDestroy)&&(this.endHandler=function(){c(this)},this.body.on(`end`,this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on(`error`,this.errorHandler)}else if(l(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i==`string`)this.body=i.length?Buffer.from(i):null;else if(u(i)||d(i)||f(i))this.body=i;else throw new n(`body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable`);if(this.completed=!1,this.aborted=!1,this.upgrade=T||null,this.path=x?p(t,x):t,this.origin=e,this.idempotent=C??(r===`HEAD`||r===`GET`),this.blocking=w??!1,this.reset=O??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=A??!1,Array.isArray(v)){if(v.length%2!=0)throw new n(`headers array must be even`);for(let e=0;e{let n=F(`node:events`);var r=class extends n{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}compose(...e){let t=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let e of t)if(e!=null){if(typeof e!=`function`)throw TypeError(`invalid interceptor, expected function received ${typeof e}`);if(n=e(n),n==null||typeof n!=`function`||n.length!==2)throw TypeError(`invalid interceptor`)}return new i(this,n)}},i=class extends r{#e=null;#t=null;constructor(e,t){super(),this.#e=e,this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};t.exports=r})),Ye=P(((e,t)=>{let n=Je(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=I(),{kDestroy:o,kClose:s,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=Ue(),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`),h=Symbol(`webSocketOptions`);t.exports=class extends n{constructor(e){super(),this[l]=!1,this[f]=null,this[c]=!1,this[p]=[],this[h]=e?.webSocket??{}}get webSocketOptions(){return{maxPayloadSize:this[h].maxPayloadSize??128*1024*1024}}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[d][t]!=`function`)throw new a(`interceptor must be an function`)}this[d]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[l]){queueMicrotask(()=>e(new r,null));return}if(this[c]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[c]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;tthis.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[l]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[l]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t{queueMicrotask(n)})}[m](e,t){if(!this[d]||this[d].length===0)return this[m]=this[u],this[u](e,t);let n=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--)n=this[d][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[l]||this[f])throw new r;if(this[c])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}}})),Xe=P(((e,t)=>{let n=0,r=1e3;(r>>1)-1;let i,a=Symbol(`kFastTimer`),o=[];function s(){n+=499;let e=0,t=o.length;for(;e=r._idleStart+r._idleTimeout&&(r._state=-1,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===-1?(r._state=-2,--t!==0&&(o[e]=o[t])):++e}o.length=t,o.length!==0&&c()}function c(){i?i.refresh():(clearTimeout(i),i=setTimeout(s,499),i.unref&&i.unref())}var l=class{[a]=!0;_state=-2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e,this._idleTimeout=t,this._timerArg=n,this.refresh()}refresh(){this._state===-2&&o.push(this),(!i||o.length===1)&&c(),this._state=0}clear(){this._state=-1,this._idleStart=-1}};t.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new l(e,t,n)},clearTimeout(e){e[a]?e.clear():clearTimeout(e)},setFastTimeout(e,t,n){return new l(e,t,n)},clearFastTimeout(e){e.clear()},now(){return n},tick(e=0){n+=e-r+1,s(),s()},reset(){n=0,o.length=0,clearTimeout(i),i=null},kFastTimer:a}})),Ze=P(((e,t)=>{let n=F(`node:net`),r=F(`node:assert`),i=L(),{InvalidArgumentError:a,ConnectTimeoutError:o}=I(),s=Xe();function c(){}let l,u;u=global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function d({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:s,session:c,...d}){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxCachedSessions must be a positive integer or zero`);let p={path:o,...d},m=new u(t??100);return s??=1e4,e??=!1,function({hostname:t,host:a,protocol:o,port:u,servername:d,localAddress:h,httpSocket:g},_){let v;if(o===`https:`){l||=F(`node:tls`),d=d||p.servername||i.getServerName(a)||null;let n=d||t;r(n);let o=c||m.get(n)||null;u||=443,v=l.connect({highWaterMark:16384,...p,servername:d,session:o,localAddress:h,ALPNProtocols:e?[`http/1.1`,`h2`]:[`http/1.1`],socket:g,port:u,host:t}),v.on(`session`,function(e){m.set(n,e)})}else r(!g,`httpSocket can only be sent on TLS update`),u||=80,v=n.connect({highWaterMark:64*1024,...p,localAddress:h,port:u,host:t});if(p.keepAlive==null||p.keepAlive){let e=p.keepAliveInitialDelay===void 0?6e4:p.keepAliveInitialDelay;v.setKeepAlive(!0,e)}let y=f(new WeakRef(v),{timeout:s,hostname:t,port:u});return v.setNoDelay(!0).once(o===`https:`?`secureConnect`:`connect`,function(){if(queueMicrotask(y),_){let e=_;_=null,e(null,this)}}).on(`error`,function(e){if(queueMicrotask(y),_){let t=_;_=null,t(e)}}),v}}let f=process.platform===`win32`?(e,t)=>{if(!t.timeout)return c;let n=null,r=null,i=s.setFastTimeout(()=>{n=setImmediate(()=>{r=setImmediate(()=>p(e.deref(),t))})},t.timeout);return()=>{s.clearFastTimeout(i),clearImmediate(n),clearImmediate(r)}}:(e,t)=>{if(!t.timeout)return c;let n=null,r=s.setFastTimeout(()=>{n=setImmediate(()=>{p(e.deref(),t)})},t.timeout);return()=>{s.clearFastTimeout(r),clearImmediate(n)}};function p(e,t){if(e==null)return;let n=`Connect Timeout Error`;Array.isArray(e.autoSelectFamilyAttemptedAddresses)?n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(`, `)},`:n+=` (attempted address: ${t.hostname}:${t.port},`,n+=` timeout: ${t.timeout}ms)`,i.destroy(e,new o(n))}t.exports=d})),Qe=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.enumToMap=void 0;function t(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`number`&&(t[n]=r)}),t}e.enumToMap=t})),$e=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;let t=Qe();(function(e){e[e.OK=0]=`OK`,e[e.INTERNAL=1]=`INTERNAL`,e[e.STRICT=2]=`STRICT`,e[e.LF_EXPECTED=3]=`LF_EXPECTED`,e[e.UNEXPECTED_CONTENT_LENGTH=4]=`UNEXPECTED_CONTENT_LENGTH`,e[e.CLOSED_CONNECTION=5]=`CLOSED_CONNECTION`,e[e.INVALID_METHOD=6]=`INVALID_METHOD`,e[e.INVALID_URL=7]=`INVALID_URL`,e[e.INVALID_CONSTANT=8]=`INVALID_CONSTANT`,e[e.INVALID_VERSION=9]=`INVALID_VERSION`,e[e.INVALID_HEADER_TOKEN=10]=`INVALID_HEADER_TOKEN`,e[e.INVALID_CONTENT_LENGTH=11]=`INVALID_CONTENT_LENGTH`,e[e.INVALID_CHUNK_SIZE=12]=`INVALID_CHUNK_SIZE`,e[e.INVALID_STATUS=13]=`INVALID_STATUS`,e[e.INVALID_EOF_STATE=14]=`INVALID_EOF_STATE`,e[e.INVALID_TRANSFER_ENCODING=15]=`INVALID_TRANSFER_ENCODING`,e[e.CB_MESSAGE_BEGIN=16]=`CB_MESSAGE_BEGIN`,e[e.CB_HEADERS_COMPLETE=17]=`CB_HEADERS_COMPLETE`,e[e.CB_MESSAGE_COMPLETE=18]=`CB_MESSAGE_COMPLETE`,e[e.CB_CHUNK_HEADER=19]=`CB_CHUNK_HEADER`,e[e.CB_CHUNK_COMPLETE=20]=`CB_CHUNK_COMPLETE`,e[e.PAUSED=21]=`PAUSED`,e[e.PAUSED_UPGRADE=22]=`PAUSED_UPGRADE`,e[e.PAUSED_H2_UPGRADE=23]=`PAUSED_H2_UPGRADE`,e[e.USER=24]=`USER`})(e.ERROR||={}),(function(e){e[e.BOTH=0]=`BOTH`,e[e.REQUEST=1]=`REQUEST`,e[e.RESPONSE=2]=`RESPONSE`})(e.TYPE||={}),(function(e){e[e.CONNECTION_KEEP_ALIVE=1]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=2]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=4]=`CONNECTION_UPGRADE`,e[e.CHUNKED=8]=`CHUNKED`,e[e.UPGRADE=16]=`UPGRADE`,e[e.CONTENT_LENGTH=32]=`CONTENT_LENGTH`,e[e.SKIPBODY=64]=`SKIPBODY`,e[e.TRAILING=128]=`TRAILING`,e[e.TRANSFER_ENCODING=512]=`TRANSFER_ENCODING`})(e.FLAGS||={}),(function(e){e[e.HEADERS=1]=`HEADERS`,e[e.CHUNKED_LENGTH=2]=`CHUNKED_LENGTH`,e[e.KEEP_ALIVE=4]=`KEEP_ALIVE`})(e.LENIENT_FLAGS||={});var n;(function(e){e[e.DELETE=0]=`DELETE`,e[e.GET=1]=`GET`,e[e.HEAD=2]=`HEAD`,e[e.POST=3]=`POST`,e[e.PUT=4]=`PUT`,e[e.CONNECT=5]=`CONNECT`,e[e.OPTIONS=6]=`OPTIONS`,e[e.TRACE=7]=`TRACE`,e[e.COPY=8]=`COPY`,e[e.LOCK=9]=`LOCK`,e[e.MKCOL=10]=`MKCOL`,e[e.MOVE=11]=`MOVE`,e[e.PROPFIND=12]=`PROPFIND`,e[e.PROPPATCH=13]=`PROPPATCH`,e[e.SEARCH=14]=`SEARCH`,e[e.UNLOCK=15]=`UNLOCK`,e[e.BIND=16]=`BIND`,e[e.REBIND=17]=`REBIND`,e[e.UNBIND=18]=`UNBIND`,e[e.ACL=19]=`ACL`,e[e.REPORT=20]=`REPORT`,e[e.MKACTIVITY=21]=`MKACTIVITY`,e[e.CHECKOUT=22]=`CHECKOUT`,e[e.MERGE=23]=`MERGE`,e[e[`M-SEARCH`]=24]=`M-SEARCH`,e[e.NOTIFY=25]=`NOTIFY`,e[e.SUBSCRIBE=26]=`SUBSCRIBE`,e[e.UNSUBSCRIBE=27]=`UNSUBSCRIBE`,e[e.PATCH=28]=`PATCH`,e[e.PURGE=29]=`PURGE`,e[e.MKCALENDAR=30]=`MKCALENDAR`,e[e.LINK=31]=`LINK`,e[e.UNLINK=32]=`UNLINK`,e[e.SOURCE=33]=`SOURCE`,e[e.PRI=34]=`PRI`,e[e.DESCRIBE=35]=`DESCRIBE`,e[e.ANNOUNCE=36]=`ANNOUNCE`,e[e.SETUP=37]=`SETUP`,e[e.PLAY=38]=`PLAY`,e[e.PAUSE=39]=`PAUSE`,e[e.TEARDOWN=40]=`TEARDOWN`,e[e.GET_PARAMETER=41]=`GET_PARAMETER`,e[e.SET_PARAMETER=42]=`SET_PARAMETER`,e[e.REDIRECT=43]=`REDIRECT`,e[e.RECORD=44]=`RECORD`,e[e.FLUSH=45]=`FLUSH`})(n=e.METHODS||={}),e.METHODS_HTTP=[n.DELETE,n.GET,n.HEAD,n.POST,n.PUT,n.CONNECT,n.OPTIONS,n.TRACE,n.COPY,n.LOCK,n.MKCOL,n.MOVE,n.PROPFIND,n.PROPPATCH,n.SEARCH,n.UNLOCK,n.BIND,n.REBIND,n.UNBIND,n.ACL,n.REPORT,n.MKACTIVITY,n.CHECKOUT,n.MERGE,n[`M-SEARCH`],n.NOTIFY,n.SUBSCRIBE,n.UNSUBSCRIBE,n.PATCH,n.PURGE,n.MKCALENDAR,n.LINK,n.UNLINK,n.PRI,n.SOURCE],e.METHODS_ICE=[n.SOURCE],e.METHODS_RTSP=[n.OPTIONS,n.DESCRIBE,n.ANNOUNCE,n.SETUP,n.PLAY,n.PAUSE,n.TEARDOWN,n.GET_PARAMETER,n.SET_PARAMETER,n.REDIRECT,n.RECORD,n.FLUSH,n.GET,n.POST],e.METHOD_MAP=t.enumToMap(n),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])}),(function(e){e[e.SAFE=0]=`SAFE`,e[e.SAFE_WITH_CB=1]=`SAFE_WITH_CB`,e[e.UNSAFE=2]=`UNSAFE`})(e.FINISH||={}),e.ALPHA=[];for(let t=65;t<=90;t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.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},e.NUM=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=[`-`,`_`,`.`,`!`,`~`,`*`,`'`,`(`,`)`],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat([`%`,`;`,`:`,`&`,`=`,`+`,`$`,`,`]),e.STRICT_URL_CHAR=`!"$%&'()*+,-./:;<=>@[\\]^_\`{|}~`.split(``).concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat([` `,`\f`]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat([`a`,`b`,`c`,`d`,`e`,`f`,`A`,`B`,`C`,`D`,`E`,`F`]),e.STRICT_TOKEN=[`!`,`#`,`$`,`%`,`&`,`'`,`*`,`+`,`-`,`.`,`^`,`_`,"`",`|`,`~`].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([` `]),e.HEADER_CHARS=[` `];for(let t=32;t<=255;t++)t!==127&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter(e=>e!==44),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR;var r;(function(e){e[e.GENERAL=0]=`GENERAL`,e[e.CONNECTION=1]=`CONNECTION`,e[e.CONTENT_LENGTH=2]=`CONTENT_LENGTH`,e[e.TRANSFER_ENCODING=3]=`TRANSFER_ENCODING`,e[e.UPGRADE=4]=`UPGRADE`,e[e.CONNECTION_KEEP_ALIVE=5]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=6]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=7]=`CONNECTION_UPGRADE`,e[e.TRANSFER_ENCODING_CHUNKED=8]=`TRANSFER_ENCODING_CHUNKED`})(r=e.HEADER_STATE||={}),e.SPECIAL_HEADERS={connection:r.CONNECTION,"content-length":r.CONTENT_LENGTH,"proxy-connection":r.CONNECTION,"transfer-encoding":r.TRANSFER_ENCODING,upgrade:r.UPGRADE}})),et=P(((e,t)=>{let{Buffer:n}=F(`node:buffer`);t.exports=n.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK07MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtXACAAQRhqQgA3AwAgAEIANwMAIABBOGpCADcDACAAQTBqQgA3AwAgAEEoakIANwMAIABBIGpCADcDACAAQRBqQgA3AwAgAEEIakIANwMAIABB3QE2AhwLBgAgABAyC5otAQt/IwBBEGsiCiQAQaTQACgCACIJRQRAQeTTACgCACIFRQRAQfDTAEJ/NwIAQejTAEKAgISAgIDAADcCAEHk0wAgCkEIakFwcUHYqtWqBXMiBTYCAEH40wBBADYCAEHI0wBBADYCAAtBzNMAQYDUBDYCAEGc0ABBgNQENgIAQbDQACAFNgIAQazQAEF/NgIAQdDTAEGArAM2AgADQCABQcjQAGogAUG80ABqIgI2AgAgAiABQbTQAGoiAzYCACABQcDQAGogAzYCACABQdDQAGogAUHE0ABqIgM2AgAgAyACNgIAIAFB2NAAaiABQczQAGoiAjYCACACIAM2AgAgAUHU0ABqIAI2AgAgAUEgaiIBQYACRw0AC0GM1ARBwasDNgIAQajQAEH00wAoAgA2AgBBmNAAQcCrAzYCAEGk0ABBiNQENgIAQcz/B0E4NgIAQYjUBCEJCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFNBEBBjNAAKAIAIgZBECAAQRNqQXBxIABBC0kbIgRBA3YiAHYiAUEDcQRAAkAgAUEBcSAAckEBcyICQQN0IgBBtNAAaiIBIABBvNAAaigCACIAKAIIIgNGBEBBjNAAIAZBfiACd3E2AgAMAQsgASADNgIIIAMgATYCDAsgAEEIaiEBIAAgAkEDdCICQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDBELQZTQACgCACIIIARPDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxaCIAQQN0IgJBtNAAaiIBIAJBvNAAaigCACICKAIIIgNGBEBBjNAAIAZBfiAAd3EiBjYCAAwBCyABIAM2AgggAyABNgIMCyACIARBA3I2AgQgAEEDdCIAIARrIQUgACACaiAFNgIAIAIgBGoiBCAFQQFyNgIEIAgEQCAIQXhxQbTQAGohAEGg0AAoAgAhAwJ/QQEgCEEDdnQiASAGcUUEQEGM0AAgASAGcjYCACAADAELIAAoAggLIgEgAzYCDCAAIAM2AgggAyAANgIMIAMgATYCCAsgAkEIaiEBQaDQACAENgIAQZTQACAFNgIADBELQZDQACgCACILRQ0BIAtoQQJ0QbzSAGooAgAiACgCBEF4cSAEayEFIAAhAgNAAkAgAigCECIBRQRAIAJBFGooAgAiAUUNAQsgASgCBEF4cSAEayIDIAVJIQIgAyAFIAIbIQUgASAAIAIbIQAgASECDAELCyAAKAIYIQkgACgCDCIDIABHBEBBnNAAKAIAGiADIAAoAggiATYCCCABIAM2AgwMEAsgAEEUaiICKAIAIgFFBEAgACgCECIBRQ0DIABBEGohAgsDQCACIQcgASIDQRRqIgIoAgAiAQ0AIANBEGohAiADKAIQIgENAAsgB0EANgIADA8LQX8hBCAAQb9/Sw0AIABBE2oiAUFwcSEEQZDQACgCACIIRQ0AQQAgBGshBQJAAkACQAJ/QQAgBEGAAkkNABpBHyAEQf///wdLDQAaIARBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgZBAnRBvNIAaigCACICRQRAQQAhAUEAIQMMAQtBACEBIARBGSAGQQF2a0EAIAZBH0cbdCEAQQAhAwNAAkAgAigCBEF4cSAEayIHIAVPDQAgAiEDIAciBQ0AQQAhBSACIQEMAwsgASACQRRqKAIAIgcgByACIABBHXZBBHFqQRBqKAIAIgJGGyABIAcbIQEgAEEBdCEAIAINAAsLIAEgA3JFBEBBACEDQQIgBnQiAEEAIABrciAIcSIARQ0DIABoQQJ0QbzSAGooAgAhAQsgAUUNAQsDQCABKAIEQXhxIARrIgIgBUkhACACIAUgABshBSABIAMgABshAyABKAIQIgAEfyAABSABQRRqKAIACyIBDQALCyADRQ0AIAVBlNAAKAIAIARrTw0AIAMoAhghByADIAMoAgwiAEcEQEGc0AAoAgAaIAAgAygCCCIBNgIIIAEgADYCDAwOCyADQRRqIgIoAgAiAUUEQCADKAIQIgFFDQMgA0EQaiECCwNAIAIhBiABIgBBFGoiAigCACIBDQAgAEEQaiECIAAoAhAiAQ0ACyAGQQA2AgAMDQtBlNAAKAIAIgMgBE8EQEGg0AAoAgAhAQJAIAMgBGsiAkEQTwRAIAEgBGoiACACQQFyNgIEIAEgA2ogAjYCACABIARBA3I2AgQMAQsgASADQQNyNgIEIAEgA2oiACAAKAIEQQFyNgIEQQAhAEEAIQILQZTQACACNgIAQaDQACAANgIAIAFBCGohAQwPC0GY0AAoAgAiAyAESwRAIAQgCWoiACADIARrIgFBAXI2AgRBpNAAIAA2AgBBmNAAIAE2AgAgCSAEQQNyNgIEIAlBCGohAQwPC0EAIQEgBAJ/QeTTACgCAARAQezTACgCAAwBC0Hw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBDGpBcHFB2KrVqgVzNgIAQfjTAEEANgIAQcjTAEEANgIAQYCABAsiACAEQccAaiIFaiIGQQAgAGsiB3EiAk8EQEH80wBBMDYCAAwPCwJAQcTTACgCACIBRQ0AQbzTACgCACIIIAJqIQAgACABTSAAIAhLcQ0AQQAhAUH80wBBMDYCAAwPC0HI0wAtAABBBHENBAJAAkAgCQRAQczTACEBA0AgASgCACIAIAlNBEAgACABKAIEaiAJSw0DCyABKAIIIgENAAsLQQAQMyIAQX9GDQUgAiEGQejTACgCACIBQQFrIgMgAHEEQCACIABrIAAgA2pBACABa3FqIQYLIAQgBk8NBSAGQf7///8HSw0FQcTTACgCACIDBEBBvNMAKAIAIgcgBmohASABIAdNDQYgASADSw0GCyAGEDMiASAARw0BDAcLIAYgA2sgB3EiBkH+////B0sNBCAGEDMhACAAIAEoAgAgASgCBGpGDQMgACEBCwJAIAYgBEHIAGpPDQAgAUF/Rg0AQezTACgCACIAIAUgBmtqQQAgAGtxIgBB/v///wdLBEAgASEADAcLIAAQM0F/RwRAIAAgBmohBiABIQAMBwtBACAGaxAzGgwECyABIgBBf0cNBQwDC0EAIQMMDAtBACEADAoLIABBf0cNAgtByNMAQcjTACgCAEEEcjYCAAsgAkH+////B0sNASACEDMhAEEAEDMhASAAQX9GDQEgAUF/Rg0BIAAgAU8NASABIABrIgYgBEE4ak0NAQtBvNMAQbzTACgCACAGaiIBNgIAQcDTACgCACABSQRAQcDTACABNgIACwJAAkACQEGk0AAoAgAiAgRAQczTACEBA0AgACABKAIAIgMgASgCBCIFakYNAiABKAIIIgENAAsMAgtBnNAAKAIAIgFBAEcgACABT3FFBEBBnNAAIAA2AgALQQAhAUHQ0wAgBjYCAEHM0wAgADYCAEGs0ABBfzYCAEGw0ABB5NMAKAIANgIAQdjTAEEANgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBeCAAa0EPcSIBIABqIgIgBkE4ayIDIAFrIgFBAXI2AgRBqNAAQfTTACgCADYCAEGY0AAgATYCAEGk0AAgAjYCACAAIANqQTg2AgQMAgsgACACTQ0AIAIgA0kNACABKAIMQQhxDQBBeCACa0EPcSIAIAJqIgNBmNAAKAIAIAZqIgcgAGsiAEEBcjYCBCABIAUgBmo2AgRBqNAAQfTTACgCADYCAEGY0AAgADYCAEGk0AAgAzYCACACIAdqQTg2AgQMAQsgAEGc0AAoAgBJBEBBnNAAIAA2AgALIAAgBmohA0HM0wAhAQJAAkACQANAIAMgASgCAEcEQCABKAIIIgENAQwCCwsgAS0ADEEIcUUNAQtBzNMAIQEDQCABKAIAIgMgAk0EQCADIAEoAgRqIgUgAksNAwsgASgCCCEBDAALAAsgASAANgIAIAEgASgCBCAGajYCBCAAQXggAGtBD3FqIgkgBEEDcjYCBCADQXggA2tBD3FqIgYgBCAJaiIEayEBIAIgBkYEQEGk0AAgBDYCAEGY0ABBmNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEDAgLQaDQACgCACAGRgRAQaDQACAENgIAQZTQAEGU0AAoAgAgAWoiADYCACAEIABBAXI2AgQgACAEaiAANgIADAgLIAYoAgQiBUEDcUEBRw0GIAVBeHEhCCAFQf8BTQRAIAVBA3YhAyAGKAIIIgAgBigCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBwsgAiAANgIIIAAgAjYCDAwGCyAGKAIYIQcgBiAGKAIMIgBHBEAgACAGKAIIIgI2AgggAiAANgIMDAULIAZBFGoiAigCACIFRQRAIAYoAhAiBUUNBCAGQRBqIQILA0AgAiEDIAUiAEEUaiICKAIAIgUNACAAQRBqIQIgACgCECIFDQALIANBADYCAAwEC0F4IABrQQ9xIgEgAGoiByAGQThrIgMgAWsiAUEBcjYCBCAAIANqQTg2AgQgAiAFQTcgBWtBD3FqQT9rIgMgAyACQRBqSRsiA0EjNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAc2AgAgA0EQakHU0wApAgA3AgAgA0HM0wApAgA3AghB1NMAIANBCGo2AgBB0NMAIAY2AgBBzNMAIAA2AgBB2NMAQQA2AgAgA0EkaiEBA0AgAUEHNgIAIAUgAUEEaiIBSw0ACyACIANGDQAgAyADKAIEQX5xNgIEIAMgAyACayIFNgIAIAIgBUEBcjYCBCAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIDcUUEQEGM0AAgASADcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEGQ0AAoAgAiA0EBIAF0IgZxRQRAIAAgAjYCAEGQ0AAgAyAGcjYCACACIAA2AhggAiACNgIIIAIgAjYCDAwBCyAFQRkgAUEBdmtBACABQR9HG3QhASAAKAIAIQMCQANAIAMiACgCBEF4cSAFRg0BIAFBHXYhAyABQQF0IQEgACADQQRxakEQaiIGKAIAIgMNAAsgBiACNgIAIAIgADYCGCACIAI2AgwgAiACNgIIDAELIAAoAggiASACNgIMIAAgAjYCCCACQQA2AhggAiAANgIMIAIgATYCCAtBmNAAKAIAIgEgBE0NAEGk0AAoAgAiACAEaiICIAEgBGsiAUEBcjYCBEGY0AAgATYCAEGk0AAgAjYCACAAIARBA3I2AgQgAEEIaiEBDAgLQQAhAUH80wBBMDYCAAwHC0EAIQALIAdFDQACQCAGKAIcIgJBAnRBvNIAaiIDKAIAIAZGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAdBEEEUIAcoAhAgBkYbaiAANgIAIABFDQELIAAgBzYCGCAGKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAGQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAIaiEBIAYgCGoiBigCBCEFCyAGIAVBfnE2AgQgASAEaiABNgIAIAQgAUEBcjYCBCABQf8BTQRAIAFBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASABQQN2dCIBcUUEQEGM0AAgASACcjYCACAADAELIAAoAggLIgEgBDYCDCAAIAQ2AgggBCAANgIMIAQgATYCCAwBC0EfIQUgAUH///8HTQRAIAFBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmohBQsgBCAFNgIcIARCADcCECAFQQJ0QbzSAGohAEGQ0AAoAgAiAkEBIAV0IgNxRQRAIAAgBDYCAEGQ0AAgAiADcjYCACAEIAA2AhggBCAENgIIIAQgBDYCDAwBCyABQRkgBUEBdmtBACAFQR9HG3QhBSAAKAIAIQACQANAIAAiAigCBEF4cSABRg0BIAVBHXYhACAFQQF0IQUgAiAAQQRxakEQaiIDKAIAIgANAAsgAyAENgIAIAQgAjYCGCAEIAQ2AgwgBCAENgIIDAELIAIoAggiACAENgIMIAIgBDYCCCAEQQA2AhggBCACNgIMIAQgADYCCAsgCUEIaiEBDAILAkAgB0UNAAJAIAMoAhwiAUECdEG80gBqIgIoAgAgA0YEQCACIAA2AgAgAA0BQZDQACAIQX4gAXdxIgg2AgAMAgsgB0EQQRQgBygCECADRhtqIAA2AgAgAEUNAQsgACAHNgIYIAMoAhAiAQRAIAAgATYCECABIAA2AhgLIANBFGooAgAiAUUNACAAQRRqIAE2AgAgASAANgIYCwJAIAVBD00EQCADIAQgBWoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAwBCyADIARqIgIgBUEBcjYCBCADIARBA3I2AgQgAiAFaiAFNgIAIAVB/wFNBEAgBUF4cUG00ABqIQACf0GM0AAoAgAiAUEBIAVBA3Z0IgVxRQRAQYzQACABIAVyNgIAIAAMAQsgACgCCAsiASACNgIMIAAgAjYCCCACIAA2AgwgAiABNgIIDAELQR8hASAFQf///wdNBEAgBUEmIAVBCHZnIgBrdkEBcSAAQQF0a0E+aiEBCyACIAE2AhwgAkIANwIQIAFBAnRBvNIAaiEAQQEgAXQiBCAIcUUEQCAAIAI2AgBBkNAAIAQgCHI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEEAkADQCAEIgAoAgRBeHEgBUYNASABQR12IQQgAUEBdCEBIAAgBEEEcWpBEGoiBigCACIEDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLIANBCGohAQwBCwJAIAlFDQACQCAAKAIcIgFBAnRBvNIAaiICKAIAIABGBEAgAiADNgIAIAMNAUGQ0AAgC0F+IAF3cTYCAAwCCyAJQRBBFCAJKAIQIABGG2ogAzYCACADRQ0BCyADIAk2AhggACgCECIBBEAgAyABNgIQIAEgAzYCGAsgAEEUaigCACIBRQ0AIANBFGogATYCACABIAM2AhgLAkAgBUEPTQRAIAAgBCAFaiIBQQNyNgIEIAAgAWoiASABKAIEQQFyNgIEDAELIAAgBGoiByAFQQFyNgIEIAAgBEEDcjYCBCAFIAdqIAU2AgAgCARAIAhBeHFBtNAAaiEBQaDQACgCACEDAn9BASAIQQN2dCICIAZxRQRAQYzQACACIAZyNgIAIAEMAQsgASgCCAsiAiADNgIMIAEgAzYCCCADIAE2AgwgAyACNgIIC0Gg0AAgBzYCAEGU0AAgBTYCAAsgAEEIaiEBCyAKQRBqJAAgAQtDACAARQRAPwBBEHQPCwJAIABB//8DcQ0AIABBAEgNACAAQRB2QAAiAEF/RgRAQfzTAEEwNgIAQX8PCyAAQRB0DwsACwvcPyIAQYAICwkBAAAAAgAAAAMAQZQICwUEAAAABQBBpAgLCQYAAAAHAAAACABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv`,`base64`)})),tt=P(((e,t)=>{let{Buffer:n}=F(`node:buffer`);t.exports=n.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK77MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtzACAAQRBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAA/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQTBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQSBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQd0BNgIcCwYAIAAQMguaLQELfyMAQRBrIgokAEGk0AAoAgAiCUUEQEHk0wAoAgAiBUUEQEHw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBCGpBcHFB2KrVqgVzIgU2AgBB+NMAQQA2AgBByNMAQQA2AgALQczTAEGA1AQ2AgBBnNAAQYDUBDYCAEGw0AAgBTYCAEGs0ABBfzYCAEHQ0wBBgKwDNgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBjNQEQcGrAzYCAEGo0ABB9NMAKAIANgIAQZjQAEHAqwM2AgBBpNAAQYjUBDYCAEHM/wdBODYCAEGI1AQhCQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQewBTQRAQYzQACgCACIGQRAgAEETakFwcSAAQQtJGyIEQQN2IgB2IgFBA3EEQAJAIAFBAXEgAHJBAXMiAkEDdCIAQbTQAGoiASAAQbzQAGooAgAiACgCCCIDRgRAQYzQACAGQX4gAndxNgIADAELIAEgAzYCCCADIAE2AgwLIABBCGohASAAIAJBA3QiAkEDcjYCBCAAIAJqIgAgACgCBEEBcjYCBAwRC0GU0AAoAgAiCCAETw0BIAEEQAJAQQIgAHQiAkEAIAJrciABIAB0cWgiAEEDdCICQbTQAGoiASACQbzQAGooAgAiAigCCCIDRgRAQYzQACAGQX4gAHdxIgY2AgAMAQsgASADNgIIIAMgATYCDAsgAiAEQQNyNgIEIABBA3QiACAEayEFIAAgAmogBTYCACACIARqIgQgBUEBcjYCBCAIBEAgCEF4cUG00ABqIQBBoNAAKAIAIQMCf0EBIAhBA3Z0IgEgBnFFBEBBjNAAIAEgBnI2AgAgAAwBCyAAKAIICyIBIAM2AgwgACADNgIIIAMgADYCDCADIAE2AggLIAJBCGohAUGg0AAgBDYCAEGU0AAgBTYCAAwRC0GQ0AAoAgAiC0UNASALaEECdEG80gBqKAIAIgAoAgRBeHEgBGshBSAAIQIDQAJAIAIoAhAiAUUEQCACQRRqKAIAIgFFDQELIAEoAgRBeHEgBGsiAyAFSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAIAkgBEEDcjYCBCAJQQhqIQEMDwtBACEBIAQCf0Hk0wAoAgAEQEHs0wAoAgAMAQtB8NMAQn83AgBB6NMAQoCAhICAgMAANwIAQeTTACAKQQxqQXBxQdiq1aoFczYCAEH40wBBADYCAEHI0wBBADYCAEGAgAQLIgAgBEHHAGoiBWoiBkEAIABrIgdxIgJPBEBB/NMAQTA2AgAMDwsCQEHE0wAoAgAiAUUNAEG80wAoAgAiCCACaiEAIAAgAU0gACAIS3ENAEEAIQFB/NMAQTA2AgAMDwtByNMALQAAQQRxDQQCQAJAIAkEQEHM0wAhAQNAIAEoAgAiACAJTQRAIAAgASgCBGogCUsNAwsgASgCCCIBDQALC0EAEDMiAEF/Rg0FIAIhBkHo0wAoAgAiAUEBayIDIABxBEAgAiAAayAAIANqQQAgAWtxaiEGCyAEIAZPDQUgBkH+////B0sNBUHE0wAoAgAiAwRAQbzTACgCACIHIAZqIQEgASAHTQ0GIAEgA0sNBgsgBhAzIgEgAEcNAQwHCyAGIANrIAdxIgZB/v///wdLDQQgBhAzIQAgACABKAIAIAEoAgRqRg0DIAAhAQsCQCAGIARByABqTw0AIAFBf0YNAEHs0wAoAgAiACAFIAZrakEAIABrcSIAQf7///8HSwRAIAEhAAwHCyAAEDNBf0cEQCAAIAZqIQYgASEADAcLQQAgBmsQMxoMBAsgASIAQX9HDQUMAwtBACEDDAwLQQAhAAwKCyAAQX9HDQILQcjTAEHI0wAoAgBBBHI2AgALIAJB/v///wdLDQEgAhAzIQBBABAzIQEgAEF/Rg0BIAFBf0YNASAAIAFPDQEgASAAayIGIARBOGpNDQELQbzTAEG80wAoAgAgBmoiATYCAEHA0wAoAgAgAUkEQEHA0wAgATYCAAsCQAJAAkBBpNAAKAIAIgIEQEHM0wAhAQNAIAAgASgCACIDIAEoAgQiBWpGDQIgASgCCCIBDQALDAILQZzQACgCACIBQQBHIAAgAU9xRQRAQZzQACAANgIAC0EAIQFB0NMAIAY2AgBBzNMAIAA2AgBBrNAAQX82AgBBsNAAQeTTACgCADYCAEHY0wBBADYCAANAIAFByNAAaiABQbzQAGoiAjYCACACIAFBtNAAaiIDNgIAIAFBwNAAaiADNgIAIAFB0NAAaiABQcTQAGoiAzYCACADIAI2AgAgAUHY0ABqIAFBzNAAaiICNgIAIAIgAzYCACABQdTQAGogAjYCACABQSBqIgFBgAJHDQALQXggAGtBD3EiASAAaiICIAZBOGsiAyABayIBQQFyNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAI2AgAgACADakE4NgIEDAILIAAgAk0NACACIANJDQAgASgCDEEIcQ0AQXggAmtBD3EiACACaiIDQZjQACgCACAGaiIHIABrIgBBAXI2AgQgASAFIAZqNgIEQajQAEH00wAoAgA2AgBBmNAAIAA2AgBBpNAAIAM2AgAgAiAHakE4NgIEDAELIABBnNAAKAIASQRAQZzQACAANgIACyAAIAZqIQNBzNMAIQECQAJAAkADQCADIAEoAgBHBEAgASgCCCIBDQEMAgsLIAEtAAxBCHFFDQELQczTACEBA0AgASgCACIDIAJNBEAgAyABKAIEaiIFIAJLDQMLIAEoAgghAQwACwALIAEgADYCACABIAEoAgQgBmo2AgQgAEF4IABrQQ9xaiIJIARBA3I2AgQgA0F4IANrQQ9xaiIGIAQgCWoiBGshASACIAZGBEBBpNAAIAQ2AgBBmNAAQZjQACgCACABaiIANgIAIAQgAEEBcjYCBAwIC0Gg0AAoAgAgBkYEQEGg0AAgBDYCAEGU0ABBlNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEIAAgBGogADYCAAwICyAGKAIEIgVBA3FBAUcNBiAFQXhxIQggBUH/AU0EQCAFQQN2IQMgBigCCCIAIAYoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAcLIAIgADYCCCAAIAI2AgwMBgsgBigCGCEHIAYgBigCDCIARwRAIAAgBigCCCICNgIIIAIgADYCDAwFCyAGQRRqIgIoAgAiBUUEQCAGKAIQIgVFDQQgBkEQaiECCwNAIAIhAyAFIgBBFGoiAigCACIFDQAgAEEQaiECIAAoAhAiBQ0ACyADQQA2AgAMBAtBeCAAa0EPcSIBIABqIgcgBkE4ayIDIAFrIgFBAXI2AgQgACADakE4NgIEIAIgBUE3IAVrQQ9xakE/ayIDIAMgAkEQakkbIgNBIzYCBEGo0ABB9NMAKAIANgIAQZjQACABNgIAQaTQACAHNgIAIANBEGpB1NMAKQIANwIAIANBzNMAKQIANwIIQdTTACADQQhqNgIAQdDTACAGNgIAQczTACAANgIAQdjTAEEANgIAIANBJGohAQNAIAFBBzYCACAFIAFBBGoiAUsNAAsgAiADRg0AIAMgAygCBEF+cTYCBCADIAMgAmsiBTYCACACIAVBAXI2AgQgBUH/AU0EQCAFQXhxQbTQAGohAAJ/QYzQACgCACIBQQEgBUEDdnQiA3FFBEBBjNAAIAEgA3I2AgAgAAwBCyAAKAIICyIBIAI2AgwgACACNgIIIAIgADYCDCACIAE2AggMAQtBHyEBIAVB////B00EQCAFQSYgBUEIdmciAGt2QQFxIABBAXRrQT5qIQELIAIgATYCHCACQgA3AhAgAUECdEG80gBqIQBBkNAAKAIAIgNBASABdCIGcUUEQCAAIAI2AgBBkNAAIAMgBnI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEDAkADQCADIgAoAgRBeHEgBUYNASABQR12IQMgAUEBdCEBIAAgA0EEcWpBEGoiBigCACIDDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLQZjQACgCACIBIARNDQBBpNAAKAIAIgAgBGoiAiABIARrIgFBAXI2AgRBmNAAIAE2AgBBpNAAIAI2AgAgACAEQQNyNgIEIABBCGohAQwIC0EAIQFB/NMAQTA2AgAMBwtBACEACyAHRQ0AAkAgBigCHCICQQJ0QbzSAGoiAygCACAGRgRAIAMgADYCACAADQFBkNAAQZDQACgCAEF+IAJ3cTYCAAwCCyAHQRBBFCAHKAIQIAZGG2ogADYCACAARQ0BCyAAIAc2AhggBigCECICBEAgACACNgIQIAIgADYCGAsgBkEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgCGohASAGIAhqIgYoAgQhBQsgBiAFQX5xNgIEIAEgBGogATYCACAEIAFBAXI2AgQgAUH/AU0EQCABQXhxQbTQAGohAAJ/QYzQACgCACICQQEgAUEDdnQiAXFFBEBBjNAAIAEgAnI2AgAgAAwBCyAAKAIICyIBIAQ2AgwgACAENgIIIAQgADYCDCAEIAE2AggMAQtBHyEFIAFB////B00EQCABQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qIQULIAQgBTYCHCAEQgA3AhAgBUECdEG80gBqIQBBkNAAKAIAIgJBASAFdCIDcUUEQCAAIAQ2AgBBkNAAIAIgA3I2AgAgBCAANgIYIAQgBDYCCCAEIAQ2AgwMAQsgAUEZIAVBAXZrQQAgBUEfRxt0IQUgACgCACEAAkADQCAAIgIoAgRBeHEgAUYNASAFQR12IQAgBUEBdCEFIAIgAEEEcWpBEGoiAygCACIADQALIAMgBDYCACAEIAI2AhggBCAENgIMIAQgBDYCCAwBCyACKAIIIgAgBDYCDCACIAQ2AgggBEEANgIYIAQgAjYCDCAEIAA2AggLIAlBCGohAQwCCwJAIAdFDQACQCADKAIcIgFBAnRBvNIAaiICKAIAIANGBEAgAiAANgIAIAANAUGQ0AAgCEF+IAF3cSIINgIADAILIAdBEEEUIAcoAhAgA0YbaiAANgIAIABFDQELIAAgBzYCGCADKAIQIgEEQCAAIAE2AhAgASAANgIYCyADQRRqKAIAIgFFDQAgAEEUaiABNgIAIAEgADYCGAsCQCAFQQ9NBEAgAyAEIAVqIgBBA3I2AgQgACADaiIAIAAoAgRBAXI2AgQMAQsgAyAEaiICIAVBAXI2AgQgAyAEQQNyNgIEIAIgBWogBTYCACAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIFcUUEQEGM0AAgASAFcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEEBIAF0IgQgCHFFBEAgACACNgIAQZDQACAEIAhyNgIAIAIgADYCGCACIAI2AgggAiACNgIMDAELIAVBGSABQQF2a0EAIAFBH0cbdCEBIAAoAgAhBAJAA0AgBCIAKAIEQXhxIAVGDQEgAUEddiEEIAFBAXQhASAAIARBBHFqQRBqIgYoAgAiBA0ACyAGIAI2AgAgAiAANgIYIAIgAjYCDCACIAI2AggMAQsgACgCCCIBIAI2AgwgACACNgIIIAJBADYCGCACIAA2AgwgAiABNgIICyADQQhqIQEMAQsCQCAJRQ0AAkAgACgCHCIBQQJ0QbzSAGoiAigCACAARgRAIAIgAzYCACADDQFBkNAAIAtBfiABd3E2AgAMAgsgCUEQQRQgCSgCECAARhtqIAM2AgAgA0UNAQsgAyAJNgIYIAAoAhAiAQRAIAMgATYCECABIAM2AhgLIABBFGooAgAiAUUNACADQRRqIAE2AgAgASADNgIYCwJAIAVBD00EQCAAIAQgBWoiAUEDcjYCBCAAIAFqIgEgASgCBEEBcjYCBAwBCyAAIARqIgcgBUEBcjYCBCAAIARBA3I2AgQgBSAHaiAFNgIAIAgEQCAIQXhxQbTQAGohAUGg0AAoAgAhAwJ/QQEgCEEDdnQiAiAGcUUEQEGM0AAgAiAGcjYCACABDAELIAEoAggLIgIgAzYCDCABIAM2AgggAyABNgIMIAMgAjYCCAtBoNAAIAc2AgBBlNAAIAU2AgALIABBCGohAQsgCkEQaiQAIAELQwAgAEUEQD8AQRB0DwsCQCAAQf//A3ENACAAQQBIDQAgAEEQdkAAIgBBf0YEQEH80wBBMDYCAEF/DwsgAEEQdA8LAAsL3D8iAEGACAsJAQAAAAIAAAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==`,`base64`)})),nt=P(((e,t)=>{let n=[`GET`,`HEAD`,`POST`],r=new Set(n),i=[101,204,205,304],a=[301,302,303,307,308],o=new Set(a),s=`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`.split(`.`),c=new Set(s),l=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],u=new Set(l),d=[`follow`,`manual`,`error`],f=[`GET`,`HEAD`,`OPTIONS`,`TRACE`],p=new Set(f),m=[`navigate`,`same-origin`,`no-cors`,`cors`],h=[`omit`,`same-origin`,`include`],g=[`default`,`no-store`,`reload`,`no-cache`,`force-cache`,`only-if-cached`],_=[`content-encoding`,`content-language`,`content-location`,`content-type`,`content-length`],v=[`half`],y=[`CONNECT`,`TRACE`,`TRACK`],b=new Set(y),x=[`audio`,`audioworklet`,`font`,`image`,`manifest`,`paintworklet`,`script`,`style`,`track`,`video`,`xslt`,``];t.exports={subresource:x,forbiddenMethods:y,requestBodyHeader:_,referrerPolicy:l,requestRedirect:d,requestMode:m,requestCredentials:h,requestCache:g,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:i,safeMethods:f,badPorts:s,requestDuplex:v,subresourceSet:new Set(x),badPortsSet:c,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:p,forbiddenMethodsSet:b,referrerPolicySet:u}})),rt=P(((e,t)=>{let n=Symbol.for(`undici.globalOrigin.1`);function r(){return globalThis[n]}function i(e){if(e===void 0){Object.defineProperty(globalThis,n,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,n,{value:t,writable:!0,enumerable:!1,configurable:!1})}t.exports={getGlobalOrigin:r,setGlobalOrigin:i}})),it=P(((e,t)=>{let n=F(`node:assert`),r=new TextEncoder,i=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,a=/[\u000A\u000D\u0009\u0020]/,o=/[\u0009\u000A\u000C\u000D\u0020]/g,s=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function c(e){n(e.protocol===`data:`);let t=l(e,!0);t=t.slice(5);let r={position:0},i=d(`,`,t,r),a=i.length;if(i=C(i,!0,!0),r.position>=t.length)return`failure`;r.position++;let o=f(t.slice(a+1));if(/;(\u0020){0,}base64$/i.test(i)){if(o=_(T(o)),o===`failure`)return`failure`;i=i.slice(0,-6),i=i.replace(/(\u0020)+$/,``),i=i.slice(0,-1)}i.startsWith(`;`)&&(i=`text/plain`+i);let s=g(i);return s===`failure`&&(s=g(`text/plain;charset=US-ASCII`)),{mimeType:s,body:o}}function l(e,t=!1){if(!t)return e.href;let n=e.href,r=e.hash.length,i=r===0?n:n.substring(0,n.length-r);return!r&&n.endsWith(`#`)?i.slice(0,-1):i}function u(e,t,n){let r=``;for(;n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function m(e){return e>=48&&e<=57?e-48:(e&223)-55}function h(e){let t=e.length,n=new Uint8Array(t),r=0;for(let i=0;ie.length)return`failure`;t.position++;let r=d(`;`,e,t);if(r=x(r,!1,!0),r.length===0||!i.test(r))return`failure`;let o=n.toLowerCase(),c=r.toLowerCase(),l={type:o,subtype:c,parameters:new Map,essence:`${o}/${c}`};for(;t.positiona.test(e),e,t);let n=u(e=>e!==`;`&&e!==`=`,e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if(e[t.position]===`"`)r=v(e,t,!0),d(`;`,e,t);else if(r=d(`;`,e,t),r=x(r,!1,!0),r.length===0)continue;n.length!==0&&i.test(n)&&(r.length===0||s.test(r))&&!l.parameters.has(n)&&l.parameters.set(n,r)}return l}function _(e){e=e.replace(o,``);let t=e.length;if(t%4==0&&e.charCodeAt(t-1)===61&&(--t,e.charCodeAt(t-1)===61&&--t),t%4==1||/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t)))return`failure`;let n=Buffer.from(e,`base64`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function v(e,t,r){let i=t.position,a=``;for(n(e[t.position]===`"`),t.position++;a+=u(e=>e!==`"`&&e!==`\\`,e,t),!(t.position>=e.length);){let r=e[t.position];if(t.position++,r===`\\`){if(t.position>=e.length){a+=`\\`;break}a+=e[t.position],t.position++}else{n(r===`"`);break}}return r?a:e.slice(i,t.position)}function y(e){n(e!==`failure`);let{parameters:t,essence:r}=e,a=r;for(let[e,n]of t.entries())a+=`;`,a+=e,a+=`=`,i.test(n)||(n=n.replace(/(\\|")/g,`\\$1`),n=`"`+n,n+=`"`),a+=n;return a}function b(e){return e===13||e===10||e===9||e===32}function x(e,t=!0,n=!0){return w(e,t,n,b)}function S(e){return e===13||e===10||e===9||e===12||e===32}function C(e,t=!0,n=!0){return w(e,t,n,S)}function w(e,t,n,r){let i=0,a=e.length-1;if(t)for(;i0&&r(e.charCodeAt(a));)a--;return i===0&&a===e.length-1?e:e.slice(i,a+1)}function T(e){let t=e.length;if(65535>t)return String.fromCharCode.apply(null,e);let n=``,r=0,i=65535;for(;rt&&(i=t-r),n+=String.fromCharCode.apply(null,e.subarray(r,r+=i));return n}function E(e){switch(e.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`}return e.subtype.endsWith(`+json`)?`application/json`:e.subtype.endsWith(`+xml`)?`application/xml`:``}t.exports={dataURLProcessor:c,URLSerializer:l,collectASequenceOfCodePoints:u,collectASequenceOfCodePointsFast:d,stringPercentDecode:f,parseMIMEType:g,collectAnHTTPQuotedString:v,serializeAMimeType:y,removeChars:w,removeHTTPWhitespace:x,minimizeSupportedMimeType:E,HTTP_TOKEN_CODEPOINTS:i,isomorphicDecode:T}})),at=P(((e,t)=>{let{types:n,inspect:r}=F(`node:util`),{markAsUncloneable:i}=F(`node:worker_threads`),{toUSVString:a}=L(),o={};o.converters={},o.util={},o.errors={},o.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`)},o.errors.conversionFailed=function(e){let t=e.types.length===1?``:` one of`,n=`${e.argument} could not be converted to${t}: ${e.types.join(`, `)}.`;return o.errors.exception({header:e.prefix,message:n})},o.errors.invalidArgument=function(e){return o.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},o.brandCheck=function(e,t,n){if(n?.strict!==!1){if(!(e instanceof t)){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}}else if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}},o.argumentLengthCheck=function({length:e},t,n){if(e{}),o.util.ConvertToInt=function(e,t,n,r){let i,a;t===64?(i=2**53-1,a=n===`unsigned`?0:-9007199254740991):n===`unsigned`?(a=0,i=2**t-1):(a=(-2)**t-1,i=2**(t-1)-1);let s=Number(e);if(s===0&&(s=0),r?.enforceRange===!0){if(Number.isNaN(s)||s===1/0||s===-1/0)throw o.errors.exception({header:`Integer conversion`,message:`Could not convert ${o.util.Stringify(e)} to an integer.`});if(s=o.util.IntegerPart(s),si)throw o.errors.exception({header:`Integer conversion`,message:`Value must be between ${a}-${i}, got ${s}.`});return s}return!Number.isNaN(s)&&r?.clamp===!0?(s=Math.min(Math.max(s,a),i),s=Math.floor(s)%2==0?Math.floor(s):Math.ceil(s),s):Number.isNaN(s)||s===0&&Object.is(0,s)||s===1/0||s===-1/0?0:(s=o.util.IntegerPart(s),s%=2**t,n===`signed`&&s>=2**t-1?s-2**t:s)},o.util.IntegerPart=function(e){let t=Math.floor(Math.abs(e));return e<0?-1*t:t},o.util.Stringify=function(e){switch(o.util.Type(e)){case`Symbol`:return`Symbol(${e.description})`;case`Object`:return r(e);case`String`:return`"${e}"`;default:return`${e}`}},o.sequenceConverter=function(e){return(t,n,r,i)=>{if(o.util.Type(t)!==`Object`)throw o.errors.exception({header:n,message:`${r} (${o.util.Stringify(t)}) is not iterable.`});let a=typeof i==`function`?i():t?.[Symbol.iterator]?.(),s=[],c=0;if(a===void 0||typeof a.next!=`function`)throw o.errors.exception({header:n,message:`${r} is not iterable.`});for(;;){let{done:t,value:i}=a.next();if(t)break;s.push(e(i,n,`${r}[${c++}]`))}return s}},o.recordConverter=function(e,t){return(r,i,a)=>{if(o.util.Type(r)!==`Object`)throw o.errors.exception({header:i,message:`${a} ("${o.util.Type(r)}") is not an Object.`});let s={};if(!n.isProxy(r)){let n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n){let n=e(o,i,a);s[n]=t(r[o],i,a)}return s}let c=Reflect.ownKeys(r);for(let n of c)if(Reflect.getOwnPropertyDescriptor(r,n)?.enumerable){let o=e(n,i,a);s[o]=t(r[n],i,a)}return s}},o.interfaceConverter=function(e){return(t,n,r,i)=>{if(i?.strict!==!1&&!(t instanceof e))throw o.errors.exception({header:n,message:`Expected ${r} ("${o.util.Stringify(t)}") to be an instance of ${e.name}.`});return t}},o.dictionaryConverter=function(e){return(t,n,r)=>{let i=o.util.Type(t),a={};if(i===`Null`||i===`Undefined`)return a;if(i!==`Object`)throw o.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(let i of e){let{key:e,defaultValue:s,required:c,converter:l}=i;if(c===!0&&!Object.hasOwn(t,e))throw o.errors.exception({header:n,message:`Missing required key "${e}".`});let u=t[e],d=Object.hasOwn(i,`defaultValue`);if(d&&u!==null&&(u??=s()),c||d||u!==void 0){if(u=l(u,n,`${r}.${e}`),i.allowedValues&&!i.allowedValues.includes(u))throw o.errors.exception({header:n,message:`${u} is not an accepted type. Expected one of ${i.allowedValues.join(`, `)}.`});a[e]=u}}return a}},o.nullableConverter=function(e){return(t,n,r)=>t===null?t:e(t,n,r)},o.converters.DOMString=function(e,t,n,r){if(e===null&&r?.legacyNullToEmptyString)return``;if(typeof e==`symbol`)throw o.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`});return String(e)},o.converters.ByteString=function(e,t,n){let r=o.converters.DOMString(e,t,n);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r.charCodeAt(e)} which is greater than 255.`);return r},o.converters.USVString=a,o.converters.boolean=function(e){return!!e},o.converters.any=function(e){return e},o.converters[`long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`signed`,void 0,t,n)},o.converters[`unsigned long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`unsigned`,void 0,t,n)},o.converters[`unsigned long`]=function(e,t,n){return o.util.ConvertToInt(e,32,`unsigned`,void 0,t,n)},o.converters[`unsigned short`]=function(e,t,n,r){return o.util.ConvertToInt(e,16,`unsigned`,r,t,n)},o.converters.ArrayBuffer=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isAnyArrayBuffer(e))throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`ArrayBuffer`]});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.resizable||e.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.TypedArray=function(e,t,r,i,a){if(o.util.Type(e)!==`Object`||!n.isTypedArray(e)||e.constructor.name!==t.name)throw o.errors.conversionFailed({prefix:r,argument:`${i} ("${o.util.Stringify(e)}")`,types:[t.name]});if(a?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.DataView=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isDataView(e))throw o.errors.exception({header:t,message:`${r} is not a DataView.`});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.BufferSource=function(e,t,r,i){if(n.isAnyArrayBuffer(e))return o.converters.ArrayBuffer(e,t,r,{...i,allowShared:!1});if(n.isTypedArray(e))return o.converters.TypedArray(e,e.constructor,t,r,{...i,allowShared:!1});if(n.isDataView(e))return o.converters.DataView(e,t,r,{...i,allowShared:!1});throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`BufferSource`]})},o.converters[`sequence`]=o.sequenceConverter(o.converters.ByteString),o.converters[`sequence>`]=o.sequenceConverter(o.converters[`sequence`]),o.converters[`record`]=o.recordConverter(o.converters.ByteString,o.converters.ByteString),t.exports={webidl:o}})),ot=P(((e,t)=>{let{Transform:n}=F(`node:stream`),r=F(`node:zlib`),{redirectStatusSet:i,referrerPolicySet:a,badPortsSet:o}=nt(),{getGlobalOrigin:s}=rt(),{collectASequenceOfCodePoints:c,collectAnHTTPQuotedString:l,removeChars:u,parseMIMEType:d}=it(),{performance:f}=F(`node:perf_hooks`),{isBlobLike:p,ReadableStreamFrom:m,isValidHTTPToken:h,normalizedMethodRecordsBase:g}=L(),_=F(`node:assert`),{isUint8Array:v}=F(`node:util/types`),{webidl:y}=at(),b=[],x;try{x=F(`node:crypto`);let e=[`sha256`,`sha384`,`sha512`];b=x.getHashes().filter(t=>e.includes(t))}catch{}function S(e){let t=e.urlList,n=t.length;return n===0?null:t[n-1].toString()}function C(e,t){if(!i.has(e.status))return null;let n=e.headersList.get(`location`,!0);return n!==null&&j(n)&&(w(n)||(n=T(n)),n=new URL(n,S(e))),n&&!n.hash&&(n.hash=t),n}function w(e){for(let t=0;t126||n<32)return!1}return!0}function T(e){return Buffer.from(e,`binary`).toString(`utf8`)}function E(e){return e.urlList[e.urlList.length-1]}function D(e){let t=E(e);return Ie(t)&&o.has(t.port)?`blocked`:`allowed`}function O(e){return e instanceof Error||e?.constructor?.name===`Error`||e?.constructor?.name===`DOMException`}function k(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0}let A=h;function j(e){return(e[0]===` `||e[0]===` `||e[e.length-1]===` `||e[e.length-1]===` `||e.includes(` -`)||e.includes(`\r`)||e.includes(`\0`))===!1}function M(e,t){let{headersList:n}=t,r=(n.get(`referrer-policy`,!0)??``).split(`,`),i=``;if(r.length>0)for(let e=r.length;e!==0;e--){let t=r[e-1].trim();if(a.has(t)){i=t;break}}i!==``&&(e.referrerPolicy=i)}function ee(){return`allowed`}function N(){return`success`}function te(){return`success`}function ne(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t,!0)}function re(e){let t=e.origin;if(!(t===`client`||t===void 0)){if(e.responseTainting===`cors`||e.mode===`websocket`)e.headersList.append(`origin`,t,!0);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&Fe(e.origin)&&!Fe(E(e))&&(t=null);break;case`same-origin`:be(e,E(e))||(t=null);break;default:}e.headersList.append(`origin`,t,!0)}}}function ie(e,t){return e}function ae(e,t,n){return!e?.startTime||e.startTime4096&&(r=i);let a=be(e,r),o=fe(r)&&!fe(e.url);switch(t){case`origin`:return i??de(n,!0);case`unsafe-url`:return r;case`same-origin`:return a?i:`no-referrer`;case`origin-when-cross-origin`:return a?r:i;case`strict-origin-when-cross-origin`:{let t=E(e);return be(r,t)?r:fe(r)&&!fe(t)?`no-referrer`:i}default:return o?`no-referrer`:i}}function de(e,t){return _(e instanceof URL),e=new URL(e),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function fe(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function pe(e,t){if(x===void 0)return!0;let n=he(t);if(n===`no metadata`||n.length===0)return!0;let r=_e(n,ge(n));for(let t of r){let n=t.algo,r=t.hash,i=x.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),ve(i,r))return!0}return!1}let me=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function he(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=me.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();b.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function ge(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n{e=n,t=r}),resolve:e,reject:t}}function Se(e){return e.controller.state===`aborted`}function Ce(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}function we(e){return g[e.toLowerCase()]??e}function P(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return _(typeof t==`string`),t}let Te=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ee(e,t,n=0,r=1){class i{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=0}next(){if(typeof this!=`object`||this===null||!(#e in this))throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let i=this.#n,a=this.#e[t];if(i>=a.length)return{value:void 0,done:!0};let{[n]:o,[r]:s}=a[i];this.#n=i+1;let c;switch(this.#t){case`key`:c=o;break;case`value`:c=s;break;case`key+value`:c=[o,s];break}return{value:c,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,Te),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${e} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(e,t){return new i(e,t)}}function De(e,t,n,r=0,i=1){let a=Ee(e,n,r,i),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key`)}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`value`)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key+value`)}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(n,r=globalThis){if(y.brandCheck(this,t),y.argumentLengthCheck(arguments,1,`${e}.forEach`),typeof n!=`function`)throw TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`);for(let{0:e,1:t}of a(this,`key+value`))n.call(r,t,e,this)}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:o.entries.value}})}async function Oe(e,t,n){let r=t,i=n,a;try{a=e.stream.getReader()}catch(e){i(e);return}try{r(await Ne(a))}catch(e){i(e)}}function ke(e){return e instanceof ReadableStream||e[Symbol.toStringTag]===`ReadableStream`&&typeof e.tee==`function`}function Ae(e){try{e.close(),e.byobRequest?.respond(0)}catch(e){if(!e.message.includes(`Controller is already closed`)&&!e.message.includes(`ReadableStream is already closed`))throw e}}let je=/[^\x00-\xFF]/;function Me(e){return _(!je.test(e)),e}async function Ne(e){let t=[],n=0;for(;;){let{done:r,value:i}=await e.read();if(r)return Buffer.concat(t,n);if(!v(i))throw TypeError(`Received non-Uint8Array chunk`);t.push(i),n+=i.length}}function Pe(e){_(`protocol`in e);let t=e.protocol;return t===`about:`||t===`blob:`||t===`data:`}function Fe(e){return typeof e==`string`&&e[5]===`:`&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&e[4]===`s`||e.protocol===`https:`}function Ie(e){_(`protocol`in e);let t=e.protocol;return t===`http:`||t===`https:`}function Le(e,t){let n=e;if(!n.startsWith(`bytes`))return`failure`;let r={position:5};if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==61)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let i=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),a=i.length?Number(i):null;if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==45)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let o=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),s=o.length?Number(o):null;return r.positions?`failure`:{rangeStartValue:a,rangeEndValue:s}}function Re(e,t,n){let r=`bytes `;return r+=Me(`${e}`),r+=`-`,r+=Me(`${t}`),r+=`/`,r+=Me(`${n}`),r}var ze=class extends n{#e;constructor(e){super(),this.#e=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)==8?r.createInflate(this.#e):r.createInflateRaw(this.#e),this._inflateStream.on(`data`,this.push.bind(this)),this._inflateStream.on(`end`,()=>this.push(null)),this._inflateStream.on(`error`,e=>this.destroy(e))}this._inflateStream.write(e,t,n)}_final(e){this._inflateStream&&=(this._inflateStream.end(),null),e()}};function Be(e){return new ze(e)}function Ve(e){let t=null,n=null,r=null,i=Ue(`content-type`,e);if(i===null)return`failure`;for(let e of i){let i=d(e);i===`failure`||i.essence===`*/*`||(r=i,r.essence===n?!r.parameters.has(`charset`)&&t!==null&&r.parameters.set(`charset`,t):(t=null,r.parameters.has(`charset`)&&(t=r.parameters.get(`charset`)),n=r.essence))}return r??`failure`}function He(e){let t=e,n={position:0},r=[],i=``;for(;n.positione!==`"`&&e!==`,`,t,n),n.positione===9||e===32),r.push(i),i=``}return r}function Ue(e,t){let n=t.get(e,!0);return n===null?null:He(n)}let I=new TextDecoder;function We(e){return e.length===0?``:(e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3)),I.decode(e))}var Ge=class{get baseUrl(){return s()}get origin(){return this.baseUrl?.origin}policyContainer=ce()};t.exports={isAborted:Se,isCancelled:Ce,isValidEncodedURL:w,createDeferredPromise:xe,ReadableStreamFrom:m,tryUpgradeRequestToAPotentiallyTrustworthyURL:ye,clampAndCoarsenConnectionTimingInfo:ae,coarsenedSharedCurrentTime:oe,determineRequestsReferrer:ue,makePolicyContainer:ce,clonePolicyContainer:le,appendFetchMetadata:ne,appendRequestOriginHeader:re,TAOCheck:te,corsCheck:N,crossOriginResourcePolicyCheck:ee,createOpaqueTimingInfo:se,setRequestReferrerPolicyOnRedirect:M,isValidHTTPToken:h,requestBadPort:D,requestCurrentURL:E,responseURL:S,responseLocationURL:C,isBlobLike:p,isURLPotentiallyTrustworthy:fe,isValidReasonPhrase:k,sameOrigin:be,normalizeMethod:we,serializeJavascriptValueToJSONString:P,iteratorMixin:De,createIterator:Ee,isValidHeaderName:A,isValidHeaderValue:j,isErrorLike:O,fullyReadBody:Oe,bytesMatch:pe,isReadableStreamLike:ke,readableStreamClose:Ae,isomorphicEncode:Me,urlIsLocal:Pe,urlHasHttpsScheme:Fe,urlIsHttpHttpsScheme:Ie,readAllBytes:Ne,simpleRangeHeaderValue:Le,buildContentRange:Re,parseMetadata:he,createInflate:Be,extractMimeType:Ve,getDecodeSplit:Ue,utf8DecodeBytes:We,environmentSettingsObject:new class{settingsObject=new Ge}}})),st=P(((e,t)=>{t.exports={kUrl:Symbol(`url`),kHeaders:Symbol(`headers`),kSignal:Symbol(`signal`),kState:Symbol(`state`),kDispatcher:Symbol(`dispatcher`)}})),ct=P(((e,t)=>{let{Blob:n,File:r}=F(`node:buffer`),{kState:i}=st(),{webidl:a}=at();var o=class e{constructor(e,t,n={}){let r=t,a=n.type,o=n.lastModified??Date.now();this[i]={blobLike:e,name:r,type:a,lastModified:o}}stream(...t){return a.brandCheck(this,e),this[i].blobLike.stream(...t)}arrayBuffer(...t){return a.brandCheck(this,e),this[i].blobLike.arrayBuffer(...t)}slice(...t){return a.brandCheck(this,e),this[i].blobLike.slice(...t)}text(...t){return a.brandCheck(this,e),this[i].blobLike.text(...t)}get size(){return a.brandCheck(this,e),this[i].blobLike.size}get type(){return a.brandCheck(this,e),this[i].blobLike.type}get name(){return a.brandCheck(this,e),this[i].name}get lastModified(){return a.brandCheck(this,e),this[i].lastModified}get[Symbol.toStringTag](){return`File`}};a.converters.Blob=a.interfaceConverter(n);function s(e){return e instanceof r||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}t.exports={FileLike:o,isFileLike:s}})),lt=P(((e,t)=>{let{isBlobLike:n,iteratorMixin:r}=ot(),{kState:i}=st(),{kEnumerableProperty:a}=L(),{FileLike:o,isFileLike:s}=ct(),{webidl:c}=at(),{File:l}=F(`node:buffer`),u=F(`node:util`),d=globalThis.File??l;var f=class e{constructor(e){if(c.util.markAsUncloneable(this),e!==void 0)throw c.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[i]=[]}append(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.append`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`value`,{strict:!1}):c.converters.USVString(r,o,`value`),a=arguments.length===3?c.converters.USVString(a,o,`filename`):void 0;let s=p(t,r,a);this[i].push(s)}delete(t){c.brandCheck(this,e);let n=`FormData.delete`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i]=this[i].filter(e=>e.name!==t)}get(t){c.brandCheck(this,e);let n=`FormData.get`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`);let r=this[i].findIndex(e=>e.name===t);return r===-1?null:this[i][r].value}getAll(t){c.brandCheck(this,e);let n=`FormData.getAll`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].filter(e=>e.name===t).map(e=>e.value)}has(t){c.brandCheck(this,e);let n=`FormData.has`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].findIndex(e=>e.name===t)!==-1}set(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.set`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`name`,{strict:!1}):c.converters.USVString(r,o,`name`),a=arguments.length===3?c.converters.USVString(a,o,`name`):void 0;let s=p(t,r,a),l=this[i].findIndex(e=>e.name===t);l===-1?this[i].push(s):this[i]=[...this[i].slice(0,l),s,...this[i].slice(l+1).filter(e=>e.name!==t)]}[u.inspect.custom](e,t){let n=this[i].reduce((e,t)=>(e[t.name]?Array.isArray(e[t.name])?e[t.name].push(t.value):e[t.name]=[e[t.name],t.value]:e[t.name]=t.value,e),{__proto__:null});t.depth??=e,t.colors??=!0;let r=u.formatWithOptions(t,n);return`FormData ${r.slice(r.indexOf(`]`)+2)}`}};r(`FormData`,f,i,`name`,`value`),Object.defineProperties(f.prototype,{append:a,delete:a,get:a,getAll:a,has:a,set:a,[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function p(e,t,n){if(typeof t!=`string`&&(s(t)||(t=t instanceof Blob?new d([t],`blob`,{type:t.type}):new o(t,`blob`,{type:t.type})),n!==void 0)){let e={type:t.type,lastModified:t.lastModified};t=t instanceof l?new d([t],n,e):new o(t,n,e)}return{name:e,value:t}}t.exports={FormData:f,makeEntry:p}})),ut=P(((e,t)=>{let{isUSVString:n,bufferToLowerCasedHeaderName:r}=L(),{utf8DecodeBytes:i}=ot(),{HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:o}=it(),{isFileLike:s}=ct(),{makeEntry:c}=lt(),l=F(`node:assert`),{File:u}=F(`node:buffer`),d=globalThis.File??u,f=Buffer.from(`form-data; name="`),p=Buffer.from(`; filename`),m=Buffer.from(`--`),h=Buffer.from(`--\r +import{createRequire as e}from"node:module";import*as t from"os";import n,{EOL as r}from"os";import*as i from"crypto";import*as a from"fs";import{constants as o,existsSync as s,promises as c,writeFileSync as l}from"fs";import*as u from"path";import*as d from"http";import*as f from"https";import*as p from"events";import{EventEmitter as m}from"events";import h,{ok as g}from"assert";import*as _ from"util";import v from"node:http";import{Readable as y,Transform as b}from"node:stream";import x from"node:buffer";import S,{inspect as C}from"node:util";import w from"node:zlib";import{createHmac as T}from"node:crypto";import{StringDecoder as E}from"string_decoder";import*as D from"child_process";import{setTimeout as O}from"timers";import*as k from"buffer";import{Buffer as A}from"buffer";import{basename as j,dirname as M,isAbsolute as ee,join as N,resolve as te}from"node:path";import{setTimeout as ne}from"node:timers/promises";import re,{chmodSync as ie,existsSync as ae,mkdirSync as oe,readFileSync as se,readdirSync as ce,statSync as le,writeFileSync as ue}from"node:fs";import de,{EOL as fe,arch as pe,homedir as me,platform as he}from"node:os";import*as ge from"stream";import{Readable as _e}from"stream";import{URL as ve}from"url";import ye from"node:process";import be from"node:https";var xe=Object.create,Se=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,we=Object.getOwnPropertyNames,Te=Object.getPrototypeOf,Ee=Object.prototype.hasOwnProperty,P=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),De=(e,t)=>{let n={};for(var r in e)Se(n,r,{get:e[r],enumerable:!0});return t||Se(n,Symbol.toStringTag,{value:`Module`}),n},Oe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=we(t),a=0,o=i.length,s;at[e]).bind(null,s),enumerable:!(r=Ce(t,s))||r.enumerable});return e},ke=(e,t,n)=>(n=e==null?{}:xe(Te(e)),Oe(t||!e||!e.__esModule?Se(n,`default`,{value:e,enumerable:!0}):n,e)),F=e(import.meta.url);function Ae(e){return e==null?``:typeof e==`string`||e instanceof String?e:JSON.stringify(e)}function je(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function Me(e,n,r){let i=new Pe(e,n,r);process.stdout.write(i.toString()+t.EOL)}function Ne(e,t=``){Me(e,{},t)}var Pe=class{constructor(e,t,n){e||=`missing.command`,this.command=e,this.properties=t,this.message=n}toString(){let e=`::`+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${Ie(r)}`)}}return e+=`::${Fe(this.message)}`,e}};function Fe(e){return Ae(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function Ie(e){return Ae(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function Le(e,n){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!a.existsSync(r))throw Error(`Missing file at path: ${r}`);a.appendFileSync(r,`${Ae(n)}${t.EOL}`,{encoding:`utf8`})}function Re(e,n){let r=`ghadelimiter_${i.randomUUID()}`,a=Ae(n);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(a.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${t.EOL}${a}${t.EOL}${r}`}function ze(e){let t=e.protocol===`https:`;if(Be(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new He(n)}catch{if(!n.startsWith(`http://`)&&!n.startsWith(`https://`))return new He(`http://${n}`)}else return}function Be(e){if(!e.hostname)return!1;let t=e.hostname;if(Ve(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let r;e.port?r=Number(e.port):e.protocol===`http:`?r=80:e.protocol===`https:`&&(r=443);let i=[e.hostname.toUpperCase()];typeof r==`number`&&i.push(`${i[0]}:${r}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function Ve(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var He=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}},Ue=P((e=>{F(`net`);var t=F(`tls`),n=F(`http`),r=F(`https`),i=F(`events`);F(`assert`);var a=F(`util`);e.httpOverHttp=o,e.httpsOverHttp=s,e.httpOverHttps=c,e.httpsOverHttps=l;function o(e){var t=new u(e);return t.request=n.request,t}function s(e){var t=new u(e);return t.request=n.request,t.createSocket=d,t.defaultPort=443,t}function c(e){var t=new u(e);return t.request=r.request,t}function l(e){var t=new u(e);return t.request=r.request,t.createSocket=d,t.defaultPort=443,t}function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on(`free`,function(e,n,r,i){for(var a=f(n,r,i),o=0,s=t.requests.length;o=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(t){t.on(`free`,n),t.on(`close`,r),t.on(`agentRemove`,r),e.onSocket(t);function n(){i.emit(`free`,t,a)}function r(e){i.removeSocket(t),t.removeListener(`free`,n),t.removeListener(`close`,r),t.removeListener(`agentRemove`,r)}})},u.prototype.createSocket=function(e,t){var n=this,r={};n.sockets.push(r);var i=p({},n.proxyOptions,{method:`CONNECT`,path:e.host+`:`+e.port,agent:!1,headers:{host:e.host+`:`+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers[`Proxy-Authorization`]=`Basic `+new Buffer(i.proxyAuth).toString(`base64`)),m(`making CONNECT request`);var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once(`response`,o),a.once(`upgrade`,s),a.once(`connect`,c),a.once(`error`,l),a.end();function o(e){e.upgrade=!0}function s(e,t,n){process.nextTick(function(){c(e,t,n)})}function c(i,o,s){if(a.removeAllListeners(),o.removeAllListeners(),i.statusCode!==200){m(`tunneling socket could not be established, statusCode=%d`,i.statusCode),o.destroy();var c=Error(`tunneling socket could not be established, statusCode=`+i.statusCode);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}if(s.length>0){m(`got illegal response body from proxy`),o.destroy();var c=Error(`got illegal response body from proxy`);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}return m(`tunneling connection has established`),n.sockets[n.sockets.indexOf(r)]=o,t(o)}function l(t){a.removeAllListeners(),m(`tunneling socket could not be established, cause=%s +`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function d(e,n){var r=this;u.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=p({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=t.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,n(s)})}function f(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function p(e){for(var t=1,n=arguments.length;t{t.exports=Ue()})),Ge=P(((e,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`)}})),I=P(((e,t)=>{let n=Symbol.for(`undici.error.UND_ERR`);var r=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}static[Symbol.hasInstance](e){return e&&e[n]===!0}[n]=!0};let i=Symbol.for(`undici.error.UND_ERR_CONNECT_TIMEOUT`);var a=class extends r{constructor(e){super(e),this.name=`ConnectTimeoutError`,this.message=e||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[i]===!0}[i]=!0};let o=Symbol.for(`undici.error.UND_ERR_HEADERS_TIMEOUT`);var s=class extends r{constructor(e){super(e),this.name=`HeadersTimeoutError`,this.message=e||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[o]===!0}[o]=!0};let c=Symbol.for(`undici.error.UND_ERR_HEADERS_OVERFLOW`);var l=class extends r{constructor(e){super(e),this.name=`HeadersOverflowError`,this.message=e||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}static[Symbol.hasInstance](e){return e&&e[c]===!0}[c]=!0};let u=Symbol.for(`undici.error.UND_ERR_BODY_TIMEOUT`);var d=class extends r{constructor(e){super(e),this.name=`BodyTimeoutError`,this.message=e||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[u]===!0}[u]=!0};let f=Symbol.for(`undici.error.UND_ERR_RESPONSE_STATUS_CODE`);var p=class extends r{constructor(e,t,n,r){super(e),this.name=`ResponseStatusCodeError`,this.message=e||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=r,this.status=t,this.statusCode=t,this.headers=n}static[Symbol.hasInstance](e){return e&&e[f]===!0}[f]=!0};let m=Symbol.for(`undici.error.UND_ERR_INVALID_ARG`);var h=class extends r{constructor(e){super(e),this.name=`InvalidArgumentError`,this.message=e||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}static[Symbol.hasInstance](e){return e&&e[m]===!0}[m]=!0};let g=Symbol.for(`undici.error.UND_ERR_INVALID_RETURN_VALUE`);var _=class extends r{constructor(e){super(e),this.name=`InvalidReturnValueError`,this.message=e||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}static[Symbol.hasInstance](e){return e&&e[g]===!0}[g]=!0};let v=Symbol.for(`undici.error.UND_ERR_ABORT`);var y=class extends r{constructor(e){super(e),this.name=`AbortError`,this.message=e||`The operation was aborted`,this.code=`UND_ERR_ABORT`}static[Symbol.hasInstance](e){return e&&e[v]===!0}[v]=!0};let b=Symbol.for(`undici.error.UND_ERR_ABORTED`);var x=class extends y{constructor(e){super(e),this.name=`AbortError`,this.message=e||`Request aborted`,this.code=`UND_ERR_ABORTED`}static[Symbol.hasInstance](e){return e&&e[b]===!0}[b]=!0};let S=Symbol.for(`undici.error.UND_ERR_INFO`);var C=class extends r{constructor(e){super(e),this.name=`InformationalError`,this.message=e||`Request information`,this.code=`UND_ERR_INFO`}static[Symbol.hasInstance](e){return e&&e[S]===!0}[S]=!0};let w=Symbol.for(`undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`);var T=class extends r{constructor(e){super(e),this.name=`RequestContentLengthMismatchError`,this.message=e||`Request body length does not match content-length header`,this.code=`UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[w]===!0}[w]=!0};let E=Symbol.for(`undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH`);var D=class extends r{constructor(e){super(e),this.name=`ResponseContentLengthMismatchError`,this.message=e||`Response body length does not match content-length header`,this.code=`UND_ERR_RES_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[E]===!0}[E]=!0};let O=Symbol.for(`undici.error.UND_ERR_DESTROYED`);var k=class extends r{constructor(e){super(e),this.name=`ClientDestroyedError`,this.message=e||`The client is destroyed`,this.code=`UND_ERR_DESTROYED`}static[Symbol.hasInstance](e){return e&&e[O]===!0}[O]=!0};let A=Symbol.for(`undici.error.UND_ERR_CLOSED`);var j=class extends r{constructor(e){super(e),this.name=`ClientClosedError`,this.message=e||`The client is closed`,this.code=`UND_ERR_CLOSED`}static[Symbol.hasInstance](e){return e&&e[A]===!0}[A]=!0};let M=Symbol.for(`undici.error.UND_ERR_SOCKET`);var ee=class extends r{constructor(e,t){super(e),this.name=`SocketError`,this.message=e||`Socket error`,this.code=`UND_ERR_SOCKET`,this.socket=t}static[Symbol.hasInstance](e){return e&&e[M]===!0}[M]=!0};let N=Symbol.for(`undici.error.UND_ERR_NOT_SUPPORTED`);var te=class extends r{constructor(e){super(e),this.name=`NotSupportedError`,this.message=e||`Not supported error`,this.code=`UND_ERR_NOT_SUPPORTED`}static[Symbol.hasInstance](e){return e&&e[N]===!0}[N]=!0};let ne=Symbol.for(`undici.error.UND_ERR_BPL_MISSING_UPSTREAM`);var re=class extends r{constructor(e){super(e),this.name=`MissingUpstreamError`,this.message=e||`No upstream has been added to the BalancedPool`,this.code=`UND_ERR_BPL_MISSING_UPSTREAM`}static[Symbol.hasInstance](e){return e&&e[ne]===!0}[ne]=!0};let ie=Symbol.for(`undici.error.UND_ERR_HTTP_PARSER`);var ae=class extends Error{constructor(e,t,n){super(e),this.name=`HTTPParserError`,this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[ie]===!0}[ie]=!0};let oe=Symbol.for(`undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE`);var se=class extends r{constructor(e){super(e),this.name=`ResponseExceededMaxSizeError`,this.message=e||`Response content exceeded max size`,this.code=`UND_ERR_RES_EXCEEDED_MAX_SIZE`}static[Symbol.hasInstance](e){return e&&e[oe]===!0}[oe]=!0};let ce=Symbol.for(`undici.error.UND_ERR_REQ_RETRY`);var le=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`RequestRetryError`,this.message=e||`Request retry error`,this.code=`UND_ERR_REQ_RETRY`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ce]===!0}[ce]=!0};let ue=Symbol.for(`undici.error.UND_ERR_RESPONSE`);var de=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`ResponseError`,this.message=e||`Response error`,this.code=`UND_ERR_RESPONSE`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ue]===!0}[ue]=!0};let fe=Symbol.for(`undici.error.UND_ERR_PRX_TLS`);var pe=class extends r{constructor(e,t,n){super(t,{cause:e,...n??{}}),this.name=`SecureProxyConnectionError`,this.message=t||`Secure Proxy Connection failed`,this.code=`UND_ERR_PRX_TLS`,this.cause=e}static[Symbol.hasInstance](e){return e&&e[fe]===!0}[fe]=!0};let me=Symbol.for(`undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`);t.exports={AbortError:y,HTTPParserError:ae,UndiciError:r,HeadersTimeoutError:s,HeadersOverflowError:l,BodyTimeoutError:d,RequestContentLengthMismatchError:T,ConnectTimeoutError:a,ResponseStatusCodeError:p,InvalidArgumentError:h,InvalidReturnValueError:_,RequestAbortedError:x,ClientDestroyedError:k,ClientClosedError:j,InformationalError:C,SocketError:ee,NotSupportedError:te,ResponseContentLengthMismatchError:D,BalancedPoolMissingUpstreamError:re,ResponseExceededMaxSizeError:se,RequestRetryError:le,ResponseError:de,SecureProxyConnectionError:pe,MessageSizeExceededError:class extends r{constructor(e){super(e),this.name=`MessageSizeExceededError`,this.message=e||`Max decompressed message size exceeded`,this.code=`UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`}static[Symbol.hasInstance](e){return e&&e[me]===!0}get[me](){return!0}}}})),Ke=P(((e,t)=>{let n={},r=`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`.split(`.`);for(let e=0;e{let{wellknownHeaderNames:n,headerNameLowerCasedRecord:r}=Ke();var i=class e{value=null;left=null;middle=null;right=null;code;constructor(t,n,r){if(r===void 0||r>=t.length)throw TypeError(`Unreachable`);if((this.code=t.charCodeAt(r))>127)throw TypeError(`key must be ascii string`);t.length===++r?this.value=n:this.middle=new e(t,n,r)}add(t,n){let r=t.length;if(r===0)throw TypeError(`Unreachable`);let i=0,a=this;for(;;){let o=t.charCodeAt(i);if(o>127)throw TypeError(`key must be ascii string`);if(a.code===o)if(r===++i){a.value=n;break}else if(a.middle!==null)a=a.middle;else{a.middle=new e(t,n,i);break}else if(a.code=65&&(i|=32);r!==null;){if(i===r.code){if(t===++n)return r;r=r.middle;break}r=r.code{let n=F(`node:assert`),{kDestroyed:r,kBodyUsed:i,kListeners:a,kBody:o}=Ge(),{IncomingMessage:s}=F(`node:http`),c=F(`node:stream`),l=F(`node:net`),{Blob:u}=F(`node:buffer`),d=F(`node:util`),{stringify:f}=F(`node:querystring`),{EventEmitter:p}=F(`node:events`),{InvalidArgumentError:m}=I(),{headerNameLowerCasedRecord:h}=Ke(),{tree:g}=qe(),[_,v]=process.versions.node.split(`.`).map(e=>Number(e));var y=class{constructor(e){this[o]=e,this[i]=!1}async*[Symbol.asyncIterator](){n(!this[i],`disturbed`),this[i]=!0,yield*this[o]}};function b(e){return S(e)?(N(e)===0&&e.on(`data`,function(){n(!1)}),typeof e.readableDidRead!=`boolean`&&(e[i]=!1,p.prototype.on.call(e,`data`,function(){this[i]=!0})),e):e&&typeof e.pipeTo==`function`||e&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&ee(e)?new y(e):e}function x(){}function S(e){return e&&typeof e==`object`&&typeof e.pipe==`function`&&typeof e.on==`function`}function C(e){if(e===null)return!1;if(e instanceof u)return!0;if(typeof e!=`object`)return!1;{let t=e[Symbol.toStringTag];return(t===`Blob`||t===`File`)&&(`stream`in e&&typeof e.stream==`function`||`arrayBuffer`in e&&typeof e.arrayBuffer==`function`)}}function w(e,t){if(e.includes(`?`)||e.includes(`#`))throw Error(`Query params cannot be passed when url already contains "?" or "#".`);let n=f(t);return n&&(e+=`?`+n),e}function T(e){let t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function E(e){return e!=null&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&(e[4]===`:`||e[4]===`s`&&e[5]===`:`)}function D(e){if(typeof e==`string`){if(e=new URL(e),!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||typeof e!=`object`)throw new m(`Invalid URL: The URL argument must be a non-null object.`);if(!(e instanceof URL)){if(e.port!=null&&e.port!==``&&T(e.port)===!1)throw new m(`Invalid URL: port must be a valid integer or a string representation of an integer.`);if(e.path!=null&&typeof e.path!=`string`)throw new m(`Invalid URL path: the path must be a string or null/undefined.`);if(e.pathname!=null&&typeof e.pathname!=`string`)throw new m(`Invalid URL pathname: the pathname must be a string or null/undefined.`);if(e.hostname!=null&&typeof e.hostname!=`string`)throw new m(`Invalid URL hostname: the hostname must be a string or null/undefined.`);if(e.origin!=null&&typeof e.origin!=`string`)throw new m(`Invalid URL origin: the origin must be a string or null/undefined.`);if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");let t=e.port==null?e.protocol===`https:`?443:80:e.port,n=e.origin==null?`${e.protocol||``}//${e.hostname||``}:${t}`:e.origin,r=e.path==null?`${e.pathname||``}${e.search||``}`:e.path;return n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),r&&r[0]!==`/`&&(r=`/${r}`),new URL(`${n}${r}`)}if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}function O(e){if(e=D(e),e.pathname!==`/`||e.search||e.hash)throw new m(`invalid url`);return e}function k(e){if(e[0]===`[`){let t=e.indexOf(`]`);return n(t!==-1),e.substring(1,t)}let t=e.indexOf(`:`);return t===-1?e:e.substring(0,t)}function A(e){if(!e)return null;n(typeof e==`string`);let t=k(e);return l.isIP(t)?``:t}function j(e){return JSON.parse(JSON.stringify(e))}function M(e){return e!=null&&typeof e[Symbol.asyncIterator]==`function`}function ee(e){return e!=null&&(typeof e[Symbol.iterator]==`function`||typeof e[Symbol.asyncIterator]==`function`)}function N(e){if(e==null)return 0;if(S(e)){let t=e._readableState;return t&&t.objectMode===!1&&t.ended===!0&&Number.isFinite(t.length)?t.length:null}else if(C(e))return e.size==null?null:e.size;else if(le(e))return e.byteLength;return null}function te(e){return e&&!!(e.destroyed||e[r]||c.isDestroyed?.(e))}function ne(e,t){e==null||!S(e)||te(e)||(typeof e.destroy==`function`?(Object.getPrototypeOf(e).constructor===s&&(e.socket=null),e.destroy(t)):t&&queueMicrotask(()=>{e.emit(`error`,t)}),e.destroyed!==!0&&(e[r]=!0))}let re=/timeout=(\d+)/;function ie(e){let t=e.toString().match(re);return t?parseInt(t[1],10)*1e3:null}function ae(e){return typeof e==`string`?h[e]??e.toLowerCase():g.lookup(e)??e.toString(`latin1`).toLowerCase()}function oe(e){return g.lookup(e)??e.toString(`latin1`).toLowerCase()}function se(e,t){t===void 0&&(t={});for(let n=0;ne.toString(`utf8`)):i.toString(`utf8`)}}return`content-length`in t&&`content-disposition`in t&&(t[`content-disposition`]=Buffer.from(t[`content-disposition`]).toString(`latin1`)),t}function ce(e){let t=e.length,n=Array(t),r=!1,i=-1,a,o,s=0;for(let t=0;t{e.close(),e.byobRequest?.respond(0)});else{let t=Buffer.isBuffer(r)?r:Buffer.from(r);t.byteLength&&e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}function ge(e){return e&&typeof e==`object`&&typeof e.append==`function`&&typeof e.delete==`function`&&typeof e.get==`function`&&typeof e.getAll==`function`&&typeof e.has==`function`&&typeof e.set==`function`&&e[Symbol.toStringTag]===`FormData`}function _e(e,t){return`addEventListener`in e?(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)):(e.addListener(`abort`,t),()=>e.removeListener(`abort`,t))}let ve=typeof String.prototype.toWellFormed==`function`,ye=typeof String.prototype.isWellFormed==`function`;function be(e){return ve?`${e}`.toWellFormed():d.toUSVString(e)}function xe(e){return ye?`${e}`.isWellFormed():be(e)===`${e}`}function Se(e){switch(e){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!1;default:return e>=33&&e<=126}}function Ce(e){if(e.length===0)return!1;for(let t=0;t{let n=F(`node:diagnostics_channel`),r=F(`node:util`),i=r.debuglog(`undici`),a=r.debuglog(`fetch`),o=r.debuglog(`websocket`),s=!1,c={beforeConnect:n.channel(`undici:client:beforeConnect`),connected:n.channel(`undici:client:connected`),connectError:n.channel(`undici:client:connectError`),sendHeaders:n.channel(`undici:client:sendHeaders`),create:n.channel(`undici:request:create`),bodySent:n.channel(`undici:request:bodySent`),headers:n.channel(`undici:request:headers`),trailers:n.channel(`undici:request:trailers`),error:n.channel(`undici:request:error`),open:n.channel(`undici:websocket:open`),close:n.channel(`undici:websocket:close`),socketError:n.channel(`undici:websocket:socket_error`),ping:n.channel(`undici:websocket:ping`),pong:n.channel(`undici:websocket:pong`)};if(i.enabled||a.enabled){let e=a.enabled?a:i;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s using %s%s errored - %s`,`${a}${i?`:${i}`:``}`,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)}),n.channel(`undici:request:headers`).subscribe(t=>{let{request:{method:n,path:r,origin:i},response:{statusCode:a}}=t;e(`received response to %s %s/%s - HTTP %d`,n,i,r,a)}),n.channel(`undici:request:trailers`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`trailers received from %s %s/%s`,n,i,r)}),n.channel(`undici:request:error`).subscribe(t=>{let{request:{method:n,path:r,origin:i},error:a}=t;e(`request to %s %s/%s errored - %s`,n,i,r,a.message)}),s=!0}if(o.enabled){if(!s){let e=i.enabled?i:o;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s%s using %s%s errored - %s`,a,i?`:${i}`:``,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)})}n.channel(`undici:websocket:open`).subscribe(e=>{let{address:{address:t,port:n}}=e;o(`connection opened %s%s`,t,n?`:${n}`:``)}),n.channel(`undici:websocket:close`).subscribe(e=>{let{websocket:t,code:n,reason:r}=e;o(`closed connection to %s - %s %s`,t.url,n,r)}),n.channel(`undici:websocket:socket_error`).subscribe(e=>{o(`connection errored - %s`,e.message)}),n.channel(`undici:websocket:ping`).subscribe(e=>{o(`ping received`)}),n.channel(`undici:websocket:pong`).subscribe(e=>{o(`pong received`)})}t.exports={channels:c}})),Ye=P(((e,t)=>{let{InvalidArgumentError:n,NotSupportedError:r}=I(),i=F(`node:assert`),{isValidHTTPToken:a,isValidHeaderValue:o,isStream:s,destroy:c,isBuffer:l,isFormDataLike:u,isIterable:d,isBlobLike:f,buildURL:p,validateHandler:m,getServerName:h,normalizedMethodRecords:g}=L(),{channels:_}=Je(),{headerNameLowerCasedRecord:v}=Ke(),y=/[^\u0021-\u00ff]/,b=Symbol(`handler`);var x=class{constructor(e,{path:t,method:r,body:i,headers:v,query:x,idempotent:C,blocking:w,upgrade:T,headersTimeout:E,bodyTimeout:D,reset:O,throwOnError:k,expectContinue:A,servername:j},M){if(typeof t!=`string`)throw new n(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&r!==`CONNECT`)throw new n(`path must be an absolute URL or start with a slash`);if(y.test(t))throw new n(`invalid request path`);if(typeof r!=`string`)throw new n(`method must be a string`);if(g[r]===void 0&&!a(r))throw new n(`invalid request method`);if(T&&typeof T!=`string`)throw new n(`upgrade must be a string`);if(T&&!o(T))throw new n(`invalid upgrade header`);if(E!=null&&(!Number.isFinite(E)||E<0))throw new n(`invalid headersTimeout`);if(D!=null&&(!Number.isFinite(D)||D<0))throw new n(`invalid bodyTimeout`);if(O!=null&&typeof O!=`boolean`)throw new n(`invalid reset`);if(A!=null&&typeof A!=`boolean`)throw new n(`invalid expectContinue`);if(this.headersTimeout=E,this.bodyTimeout=D,this.throwOnError=k===!0,this.method=r,this.abort=null,i==null)this.body=null;else if(s(i)){this.body=i;let e=this.body._readableState;(!e||!e.autoDestroy)&&(this.endHandler=function(){c(this)},this.body.on(`end`,this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on(`error`,this.errorHandler)}else if(l(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i==`string`)this.body=i.length?Buffer.from(i):null;else if(u(i)||d(i)||f(i))this.body=i;else throw new n(`body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable`);if(this.completed=!1,this.aborted=!1,this.upgrade=T||null,this.path=x?p(t,x):t,this.origin=e,this.idempotent=C??(r===`HEAD`||r===`GET`),this.blocking=w??!1,this.reset=O??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=A??!1,Array.isArray(v)){if(v.length%2!=0)throw new n(`headers array must be even`);for(let e=0;e{let n=F(`node:events`);var r=class extends n{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}compose(...e){let t=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let e of t)if(e!=null){if(typeof e!=`function`)throw TypeError(`invalid interceptor, expected function received ${typeof e}`);if(n=e(n),n==null||typeof n!=`function`||n.length!==2)throw TypeError(`invalid interceptor`)}return new i(this,n)}},i=class extends r{#e=null;#t=null;constructor(e,t){super(),this.#e=e,this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};t.exports=r})),Ze=P(((e,t)=>{let n=Xe(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=I(),{kDestroy:o,kClose:s,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=Ge(),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`),h=Symbol(`webSocketOptions`);t.exports=class extends n{constructor(e){super(),this[l]=!1,this[f]=null,this[c]=!1,this[p]=[],this[h]=e?.webSocket??{}}get webSocketOptions(){return{maxPayloadSize:this[h].maxPayloadSize??128*1024*1024}}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[d][t]!=`function`)throw new a(`interceptor must be an function`)}this[d]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[l]){queueMicrotask(()=>e(new r,null));return}if(this[c]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[c]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;tthis.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[l]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[l]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t{queueMicrotask(n)})}[m](e,t){if(!this[d]||this[d].length===0)return this[m]=this[u],this[u](e,t);let n=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--)n=this[d][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[l]||this[f])throw new r;if(this[c])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}}})),Qe=P(((e,t)=>{let n=0,r=1e3;(r>>1)-1;let i,a=Symbol(`kFastTimer`),o=[];function s(){n+=499;let e=0,t=o.length;for(;e=r._idleStart+r._idleTimeout&&(r._state=-1,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===-1?(r._state=-2,--t!==0&&(o[e]=o[t])):++e}o.length=t,o.length!==0&&c()}function c(){i?i.refresh():(clearTimeout(i),i=setTimeout(s,499),i.unref&&i.unref())}var l=class{[a]=!0;_state=-2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e,this._idleTimeout=t,this._timerArg=n,this.refresh()}refresh(){this._state===-2&&o.push(this),(!i||o.length===1)&&c(),this._state=0}clear(){this._state=-1,this._idleStart=-1}};t.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new l(e,t,n)},clearTimeout(e){e[a]?e.clear():clearTimeout(e)},setFastTimeout(e,t,n){return new l(e,t,n)},clearFastTimeout(e){e.clear()},now(){return n},tick(e=0){n+=e-r+1,s(),s()},reset(){n=0,o.length=0,clearTimeout(i),i=null},kFastTimer:a}})),$e=P(((e,t)=>{let n=F(`node:net`),r=F(`node:assert`),i=L(),{InvalidArgumentError:a,ConnectTimeoutError:o}=I(),s=Qe();function c(){}let l,u;u=global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function d({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:s,session:c,...d}){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxCachedSessions must be a positive integer or zero`);let p={path:o,...d},m=new u(t??100);return s??=1e4,e??=!1,function({hostname:t,host:a,protocol:o,port:u,servername:d,localAddress:h,httpSocket:g},_){let v;if(o===`https:`){l||=F(`node:tls`),d=d||p.servername||i.getServerName(a)||null;let n=d||t;r(n);let o=c||m.get(n)||null;u||=443,v=l.connect({highWaterMark:16384,...p,servername:d,session:o,localAddress:h,ALPNProtocols:e?[`http/1.1`,`h2`]:[`http/1.1`],socket:g,port:u,host:t}),v.on(`session`,function(e){m.set(n,e)})}else r(!g,`httpSocket can only be sent on TLS update`),u||=80,v=n.connect({highWaterMark:64*1024,...p,localAddress:h,port:u,host:t});if(p.keepAlive==null||p.keepAlive){let e=p.keepAliveInitialDelay===void 0?6e4:p.keepAliveInitialDelay;v.setKeepAlive(!0,e)}let y=f(new WeakRef(v),{timeout:s,hostname:t,port:u});return v.setNoDelay(!0).once(o===`https:`?`secureConnect`:`connect`,function(){if(queueMicrotask(y),_){let e=_;_=null,e(null,this)}}).on(`error`,function(e){if(queueMicrotask(y),_){let t=_;_=null,t(e)}}),v}}let f=process.platform===`win32`?(e,t)=>{if(!t.timeout)return c;let n=null,r=null,i=s.setFastTimeout(()=>{n=setImmediate(()=>{r=setImmediate(()=>p(e.deref(),t))})},t.timeout);return()=>{s.clearFastTimeout(i),clearImmediate(n),clearImmediate(r)}}:(e,t)=>{if(!t.timeout)return c;let n=null,r=s.setFastTimeout(()=>{n=setImmediate(()=>{p(e.deref(),t)})},t.timeout);return()=>{s.clearFastTimeout(r),clearImmediate(n)}};function p(e,t){if(e==null)return;let n=`Connect Timeout Error`;Array.isArray(e.autoSelectFamilyAttemptedAddresses)?n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(`, `)},`:n+=` (attempted address: ${t.hostname}:${t.port},`,n+=` timeout: ${t.timeout}ms)`,i.destroy(e,new o(n))}t.exports=d})),et=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.enumToMap=void 0;function t(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`number`&&(t[n]=r)}),t}e.enumToMap=t})),tt=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;let t=et();(function(e){e[e.OK=0]=`OK`,e[e.INTERNAL=1]=`INTERNAL`,e[e.STRICT=2]=`STRICT`,e[e.LF_EXPECTED=3]=`LF_EXPECTED`,e[e.UNEXPECTED_CONTENT_LENGTH=4]=`UNEXPECTED_CONTENT_LENGTH`,e[e.CLOSED_CONNECTION=5]=`CLOSED_CONNECTION`,e[e.INVALID_METHOD=6]=`INVALID_METHOD`,e[e.INVALID_URL=7]=`INVALID_URL`,e[e.INVALID_CONSTANT=8]=`INVALID_CONSTANT`,e[e.INVALID_VERSION=9]=`INVALID_VERSION`,e[e.INVALID_HEADER_TOKEN=10]=`INVALID_HEADER_TOKEN`,e[e.INVALID_CONTENT_LENGTH=11]=`INVALID_CONTENT_LENGTH`,e[e.INVALID_CHUNK_SIZE=12]=`INVALID_CHUNK_SIZE`,e[e.INVALID_STATUS=13]=`INVALID_STATUS`,e[e.INVALID_EOF_STATE=14]=`INVALID_EOF_STATE`,e[e.INVALID_TRANSFER_ENCODING=15]=`INVALID_TRANSFER_ENCODING`,e[e.CB_MESSAGE_BEGIN=16]=`CB_MESSAGE_BEGIN`,e[e.CB_HEADERS_COMPLETE=17]=`CB_HEADERS_COMPLETE`,e[e.CB_MESSAGE_COMPLETE=18]=`CB_MESSAGE_COMPLETE`,e[e.CB_CHUNK_HEADER=19]=`CB_CHUNK_HEADER`,e[e.CB_CHUNK_COMPLETE=20]=`CB_CHUNK_COMPLETE`,e[e.PAUSED=21]=`PAUSED`,e[e.PAUSED_UPGRADE=22]=`PAUSED_UPGRADE`,e[e.PAUSED_H2_UPGRADE=23]=`PAUSED_H2_UPGRADE`,e[e.USER=24]=`USER`})(e.ERROR||={}),(function(e){e[e.BOTH=0]=`BOTH`,e[e.REQUEST=1]=`REQUEST`,e[e.RESPONSE=2]=`RESPONSE`})(e.TYPE||={}),(function(e){e[e.CONNECTION_KEEP_ALIVE=1]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=2]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=4]=`CONNECTION_UPGRADE`,e[e.CHUNKED=8]=`CHUNKED`,e[e.UPGRADE=16]=`UPGRADE`,e[e.CONTENT_LENGTH=32]=`CONTENT_LENGTH`,e[e.SKIPBODY=64]=`SKIPBODY`,e[e.TRAILING=128]=`TRAILING`,e[e.TRANSFER_ENCODING=512]=`TRANSFER_ENCODING`})(e.FLAGS||={}),(function(e){e[e.HEADERS=1]=`HEADERS`,e[e.CHUNKED_LENGTH=2]=`CHUNKED_LENGTH`,e[e.KEEP_ALIVE=4]=`KEEP_ALIVE`})(e.LENIENT_FLAGS||={});var n;(function(e){e[e.DELETE=0]=`DELETE`,e[e.GET=1]=`GET`,e[e.HEAD=2]=`HEAD`,e[e.POST=3]=`POST`,e[e.PUT=4]=`PUT`,e[e.CONNECT=5]=`CONNECT`,e[e.OPTIONS=6]=`OPTIONS`,e[e.TRACE=7]=`TRACE`,e[e.COPY=8]=`COPY`,e[e.LOCK=9]=`LOCK`,e[e.MKCOL=10]=`MKCOL`,e[e.MOVE=11]=`MOVE`,e[e.PROPFIND=12]=`PROPFIND`,e[e.PROPPATCH=13]=`PROPPATCH`,e[e.SEARCH=14]=`SEARCH`,e[e.UNLOCK=15]=`UNLOCK`,e[e.BIND=16]=`BIND`,e[e.REBIND=17]=`REBIND`,e[e.UNBIND=18]=`UNBIND`,e[e.ACL=19]=`ACL`,e[e.REPORT=20]=`REPORT`,e[e.MKACTIVITY=21]=`MKACTIVITY`,e[e.CHECKOUT=22]=`CHECKOUT`,e[e.MERGE=23]=`MERGE`,e[e[`M-SEARCH`]=24]=`M-SEARCH`,e[e.NOTIFY=25]=`NOTIFY`,e[e.SUBSCRIBE=26]=`SUBSCRIBE`,e[e.UNSUBSCRIBE=27]=`UNSUBSCRIBE`,e[e.PATCH=28]=`PATCH`,e[e.PURGE=29]=`PURGE`,e[e.MKCALENDAR=30]=`MKCALENDAR`,e[e.LINK=31]=`LINK`,e[e.UNLINK=32]=`UNLINK`,e[e.SOURCE=33]=`SOURCE`,e[e.PRI=34]=`PRI`,e[e.DESCRIBE=35]=`DESCRIBE`,e[e.ANNOUNCE=36]=`ANNOUNCE`,e[e.SETUP=37]=`SETUP`,e[e.PLAY=38]=`PLAY`,e[e.PAUSE=39]=`PAUSE`,e[e.TEARDOWN=40]=`TEARDOWN`,e[e.GET_PARAMETER=41]=`GET_PARAMETER`,e[e.SET_PARAMETER=42]=`SET_PARAMETER`,e[e.REDIRECT=43]=`REDIRECT`,e[e.RECORD=44]=`RECORD`,e[e.FLUSH=45]=`FLUSH`})(n=e.METHODS||={}),e.METHODS_HTTP=[n.DELETE,n.GET,n.HEAD,n.POST,n.PUT,n.CONNECT,n.OPTIONS,n.TRACE,n.COPY,n.LOCK,n.MKCOL,n.MOVE,n.PROPFIND,n.PROPPATCH,n.SEARCH,n.UNLOCK,n.BIND,n.REBIND,n.UNBIND,n.ACL,n.REPORT,n.MKACTIVITY,n.CHECKOUT,n.MERGE,n[`M-SEARCH`],n.NOTIFY,n.SUBSCRIBE,n.UNSUBSCRIBE,n.PATCH,n.PURGE,n.MKCALENDAR,n.LINK,n.UNLINK,n.PRI,n.SOURCE],e.METHODS_ICE=[n.SOURCE],e.METHODS_RTSP=[n.OPTIONS,n.DESCRIBE,n.ANNOUNCE,n.SETUP,n.PLAY,n.PAUSE,n.TEARDOWN,n.GET_PARAMETER,n.SET_PARAMETER,n.REDIRECT,n.RECORD,n.FLUSH,n.GET,n.POST],e.METHOD_MAP=t.enumToMap(n),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])}),(function(e){e[e.SAFE=0]=`SAFE`,e[e.SAFE_WITH_CB=1]=`SAFE_WITH_CB`,e[e.UNSAFE=2]=`UNSAFE`})(e.FINISH||={}),e.ALPHA=[];for(let t=65;t<=90;t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.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},e.NUM=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=[`-`,`_`,`.`,`!`,`~`,`*`,`'`,`(`,`)`],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat([`%`,`;`,`:`,`&`,`=`,`+`,`$`,`,`]),e.STRICT_URL_CHAR=`!"$%&'()*+,-./:;<=>@[\\]^_\`{|}~`.split(``).concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat([` `,`\f`]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat([`a`,`b`,`c`,`d`,`e`,`f`,`A`,`B`,`C`,`D`,`E`,`F`]),e.STRICT_TOKEN=[`!`,`#`,`$`,`%`,`&`,`'`,`*`,`+`,`-`,`.`,`^`,`_`,"`",`|`,`~`].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([` `]),e.HEADER_CHARS=[` `];for(let t=32;t<=255;t++)t!==127&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter(e=>e!==44),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR;var r;(function(e){e[e.GENERAL=0]=`GENERAL`,e[e.CONNECTION=1]=`CONNECTION`,e[e.CONTENT_LENGTH=2]=`CONTENT_LENGTH`,e[e.TRANSFER_ENCODING=3]=`TRANSFER_ENCODING`,e[e.UPGRADE=4]=`UPGRADE`,e[e.CONNECTION_KEEP_ALIVE=5]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=6]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=7]=`CONNECTION_UPGRADE`,e[e.TRANSFER_ENCODING_CHUNKED=8]=`TRANSFER_ENCODING_CHUNKED`})(r=e.HEADER_STATE||={}),e.SPECIAL_HEADERS={connection:r.CONNECTION,"content-length":r.CONTENT_LENGTH,"proxy-connection":r.CONNECTION,"transfer-encoding":r.TRANSFER_ENCODING,upgrade:r.UPGRADE}})),nt=P(((e,t)=>{let{Buffer:n}=F(`node:buffer`);t.exports=n.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK07MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtXACAAQRhqQgA3AwAgAEIANwMAIABBOGpCADcDACAAQTBqQgA3AwAgAEEoakIANwMAIABBIGpCADcDACAAQRBqQgA3AwAgAEEIakIANwMAIABB3QE2AhwLBgAgABAyC5otAQt/IwBBEGsiCiQAQaTQACgCACIJRQRAQeTTACgCACIFRQRAQfDTAEJ/NwIAQejTAEKAgISAgIDAADcCAEHk0wAgCkEIakFwcUHYqtWqBXMiBTYCAEH40wBBADYCAEHI0wBBADYCAAtBzNMAQYDUBDYCAEGc0ABBgNQENgIAQbDQACAFNgIAQazQAEF/NgIAQdDTAEGArAM2AgADQCABQcjQAGogAUG80ABqIgI2AgAgAiABQbTQAGoiAzYCACABQcDQAGogAzYCACABQdDQAGogAUHE0ABqIgM2AgAgAyACNgIAIAFB2NAAaiABQczQAGoiAjYCACACIAM2AgAgAUHU0ABqIAI2AgAgAUEgaiIBQYACRw0AC0GM1ARBwasDNgIAQajQAEH00wAoAgA2AgBBmNAAQcCrAzYCAEGk0ABBiNQENgIAQcz/B0E4NgIAQYjUBCEJCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFNBEBBjNAAKAIAIgZBECAAQRNqQXBxIABBC0kbIgRBA3YiAHYiAUEDcQRAAkAgAUEBcSAAckEBcyICQQN0IgBBtNAAaiIBIABBvNAAaigCACIAKAIIIgNGBEBBjNAAIAZBfiACd3E2AgAMAQsgASADNgIIIAMgATYCDAsgAEEIaiEBIAAgAkEDdCICQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDBELQZTQACgCACIIIARPDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxaCIAQQN0IgJBtNAAaiIBIAJBvNAAaigCACICKAIIIgNGBEBBjNAAIAZBfiAAd3EiBjYCAAwBCyABIAM2AgggAyABNgIMCyACIARBA3I2AgQgAEEDdCIAIARrIQUgACACaiAFNgIAIAIgBGoiBCAFQQFyNgIEIAgEQCAIQXhxQbTQAGohAEGg0AAoAgAhAwJ/QQEgCEEDdnQiASAGcUUEQEGM0AAgASAGcjYCACAADAELIAAoAggLIgEgAzYCDCAAIAM2AgggAyAANgIMIAMgATYCCAsgAkEIaiEBQaDQACAENgIAQZTQACAFNgIADBELQZDQACgCACILRQ0BIAtoQQJ0QbzSAGooAgAiACgCBEF4cSAEayEFIAAhAgNAAkAgAigCECIBRQRAIAJBFGooAgAiAUUNAQsgASgCBEF4cSAEayIDIAVJIQIgAyAFIAIbIQUgASAAIAIbIQAgASECDAELCyAAKAIYIQkgACgCDCIDIABHBEBBnNAAKAIAGiADIAAoAggiATYCCCABIAM2AgwMEAsgAEEUaiICKAIAIgFFBEAgACgCECIBRQ0DIABBEGohAgsDQCACIQcgASIDQRRqIgIoAgAiAQ0AIANBEGohAiADKAIQIgENAAsgB0EANgIADA8LQX8hBCAAQb9/Sw0AIABBE2oiAUFwcSEEQZDQACgCACIIRQ0AQQAgBGshBQJAAkACQAJ/QQAgBEGAAkkNABpBHyAEQf///wdLDQAaIARBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgZBAnRBvNIAaigCACICRQRAQQAhAUEAIQMMAQtBACEBIARBGSAGQQF2a0EAIAZBH0cbdCEAQQAhAwNAAkAgAigCBEF4cSAEayIHIAVPDQAgAiEDIAciBQ0AQQAhBSACIQEMAwsgASACQRRqKAIAIgcgByACIABBHXZBBHFqQRBqKAIAIgJGGyABIAcbIQEgAEEBdCEAIAINAAsLIAEgA3JFBEBBACEDQQIgBnQiAEEAIABrciAIcSIARQ0DIABoQQJ0QbzSAGooAgAhAQsgAUUNAQsDQCABKAIEQXhxIARrIgIgBUkhACACIAUgABshBSABIAMgABshAyABKAIQIgAEfyAABSABQRRqKAIACyIBDQALCyADRQ0AIAVBlNAAKAIAIARrTw0AIAMoAhghByADIAMoAgwiAEcEQEGc0AAoAgAaIAAgAygCCCIBNgIIIAEgADYCDAwOCyADQRRqIgIoAgAiAUUEQCADKAIQIgFFDQMgA0EQaiECCwNAIAIhBiABIgBBFGoiAigCACIBDQAgAEEQaiECIAAoAhAiAQ0ACyAGQQA2AgAMDQtBlNAAKAIAIgMgBE8EQEGg0AAoAgAhAQJAIAMgBGsiAkEQTwRAIAEgBGoiACACQQFyNgIEIAEgA2ogAjYCACABIARBA3I2AgQMAQsgASADQQNyNgIEIAEgA2oiACAAKAIEQQFyNgIEQQAhAEEAIQILQZTQACACNgIAQaDQACAANgIAIAFBCGohAQwPC0GY0AAoAgAiAyAESwRAIAQgCWoiACADIARrIgFBAXI2AgRBpNAAIAA2AgBBmNAAIAE2AgAgCSAEQQNyNgIEIAlBCGohAQwPC0EAIQEgBAJ/QeTTACgCAARAQezTACgCAAwBC0Hw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBDGpBcHFB2KrVqgVzNgIAQfjTAEEANgIAQcjTAEEANgIAQYCABAsiACAEQccAaiIFaiIGQQAgAGsiB3EiAk8EQEH80wBBMDYCAAwPCwJAQcTTACgCACIBRQ0AQbzTACgCACIIIAJqIQAgACABTSAAIAhLcQ0AQQAhAUH80wBBMDYCAAwPC0HI0wAtAABBBHENBAJAAkAgCQRAQczTACEBA0AgASgCACIAIAlNBEAgACABKAIEaiAJSw0DCyABKAIIIgENAAsLQQAQMyIAQX9GDQUgAiEGQejTACgCACIBQQFrIgMgAHEEQCACIABrIAAgA2pBACABa3FqIQYLIAQgBk8NBSAGQf7///8HSw0FQcTTACgCACIDBEBBvNMAKAIAIgcgBmohASABIAdNDQYgASADSw0GCyAGEDMiASAARw0BDAcLIAYgA2sgB3EiBkH+////B0sNBCAGEDMhACAAIAEoAgAgASgCBGpGDQMgACEBCwJAIAYgBEHIAGpPDQAgAUF/Rg0AQezTACgCACIAIAUgBmtqQQAgAGtxIgBB/v///wdLBEAgASEADAcLIAAQM0F/RwRAIAAgBmohBiABIQAMBwtBACAGaxAzGgwECyABIgBBf0cNBQwDC0EAIQMMDAtBACEADAoLIABBf0cNAgtByNMAQcjTACgCAEEEcjYCAAsgAkH+////B0sNASACEDMhAEEAEDMhASAAQX9GDQEgAUF/Rg0BIAAgAU8NASABIABrIgYgBEE4ak0NAQtBvNMAQbzTACgCACAGaiIBNgIAQcDTACgCACABSQRAQcDTACABNgIACwJAAkACQEGk0AAoAgAiAgRAQczTACEBA0AgACABKAIAIgMgASgCBCIFakYNAiABKAIIIgENAAsMAgtBnNAAKAIAIgFBAEcgACABT3FFBEBBnNAAIAA2AgALQQAhAUHQ0wAgBjYCAEHM0wAgADYCAEGs0ABBfzYCAEGw0ABB5NMAKAIANgIAQdjTAEEANgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBeCAAa0EPcSIBIABqIgIgBkE4ayIDIAFrIgFBAXI2AgRBqNAAQfTTACgCADYCAEGY0AAgATYCAEGk0AAgAjYCACAAIANqQTg2AgQMAgsgACACTQ0AIAIgA0kNACABKAIMQQhxDQBBeCACa0EPcSIAIAJqIgNBmNAAKAIAIAZqIgcgAGsiAEEBcjYCBCABIAUgBmo2AgRBqNAAQfTTACgCADYCAEGY0AAgADYCAEGk0AAgAzYCACACIAdqQTg2AgQMAQsgAEGc0AAoAgBJBEBBnNAAIAA2AgALIAAgBmohA0HM0wAhAQJAAkACQANAIAMgASgCAEcEQCABKAIIIgENAQwCCwsgAS0ADEEIcUUNAQtBzNMAIQEDQCABKAIAIgMgAk0EQCADIAEoAgRqIgUgAksNAwsgASgCCCEBDAALAAsgASAANgIAIAEgASgCBCAGajYCBCAAQXggAGtBD3FqIgkgBEEDcjYCBCADQXggA2tBD3FqIgYgBCAJaiIEayEBIAIgBkYEQEGk0AAgBDYCAEGY0ABBmNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEDAgLQaDQACgCACAGRgRAQaDQACAENgIAQZTQAEGU0AAoAgAgAWoiADYCACAEIABBAXI2AgQgACAEaiAANgIADAgLIAYoAgQiBUEDcUEBRw0GIAVBeHEhCCAFQf8BTQRAIAVBA3YhAyAGKAIIIgAgBigCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBwsgAiAANgIIIAAgAjYCDAwGCyAGKAIYIQcgBiAGKAIMIgBHBEAgACAGKAIIIgI2AgggAiAANgIMDAULIAZBFGoiAigCACIFRQRAIAYoAhAiBUUNBCAGQRBqIQILA0AgAiEDIAUiAEEUaiICKAIAIgUNACAAQRBqIQIgACgCECIFDQALIANBADYCAAwEC0F4IABrQQ9xIgEgAGoiByAGQThrIgMgAWsiAUEBcjYCBCAAIANqQTg2AgQgAiAFQTcgBWtBD3FqQT9rIgMgAyACQRBqSRsiA0EjNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAc2AgAgA0EQakHU0wApAgA3AgAgA0HM0wApAgA3AghB1NMAIANBCGo2AgBB0NMAIAY2AgBBzNMAIAA2AgBB2NMAQQA2AgAgA0EkaiEBA0AgAUEHNgIAIAUgAUEEaiIBSw0ACyACIANGDQAgAyADKAIEQX5xNgIEIAMgAyACayIFNgIAIAIgBUEBcjYCBCAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIDcUUEQEGM0AAgASADcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEGQ0AAoAgAiA0EBIAF0IgZxRQRAIAAgAjYCAEGQ0AAgAyAGcjYCACACIAA2AhggAiACNgIIIAIgAjYCDAwBCyAFQRkgAUEBdmtBACABQR9HG3QhASAAKAIAIQMCQANAIAMiACgCBEF4cSAFRg0BIAFBHXYhAyABQQF0IQEgACADQQRxakEQaiIGKAIAIgMNAAsgBiACNgIAIAIgADYCGCACIAI2AgwgAiACNgIIDAELIAAoAggiASACNgIMIAAgAjYCCCACQQA2AhggAiAANgIMIAIgATYCCAtBmNAAKAIAIgEgBE0NAEGk0AAoAgAiACAEaiICIAEgBGsiAUEBcjYCBEGY0AAgATYCAEGk0AAgAjYCACAAIARBA3I2AgQgAEEIaiEBDAgLQQAhAUH80wBBMDYCAAwHC0EAIQALIAdFDQACQCAGKAIcIgJBAnRBvNIAaiIDKAIAIAZGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAdBEEEUIAcoAhAgBkYbaiAANgIAIABFDQELIAAgBzYCGCAGKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAGQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAIaiEBIAYgCGoiBigCBCEFCyAGIAVBfnE2AgQgASAEaiABNgIAIAQgAUEBcjYCBCABQf8BTQRAIAFBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASABQQN2dCIBcUUEQEGM0AAgASACcjYCACAADAELIAAoAggLIgEgBDYCDCAAIAQ2AgggBCAANgIMIAQgATYCCAwBC0EfIQUgAUH///8HTQRAIAFBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmohBQsgBCAFNgIcIARCADcCECAFQQJ0QbzSAGohAEGQ0AAoAgAiAkEBIAV0IgNxRQRAIAAgBDYCAEGQ0AAgAiADcjYCACAEIAA2AhggBCAENgIIIAQgBDYCDAwBCyABQRkgBUEBdmtBACAFQR9HG3QhBSAAKAIAIQACQANAIAAiAigCBEF4cSABRg0BIAVBHXYhACAFQQF0IQUgAiAAQQRxakEQaiIDKAIAIgANAAsgAyAENgIAIAQgAjYCGCAEIAQ2AgwgBCAENgIIDAELIAIoAggiACAENgIMIAIgBDYCCCAEQQA2AhggBCACNgIMIAQgADYCCAsgCUEIaiEBDAILAkAgB0UNAAJAIAMoAhwiAUECdEG80gBqIgIoAgAgA0YEQCACIAA2AgAgAA0BQZDQACAIQX4gAXdxIgg2AgAMAgsgB0EQQRQgBygCECADRhtqIAA2AgAgAEUNAQsgACAHNgIYIAMoAhAiAQRAIAAgATYCECABIAA2AhgLIANBFGooAgAiAUUNACAAQRRqIAE2AgAgASAANgIYCwJAIAVBD00EQCADIAQgBWoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAwBCyADIARqIgIgBUEBcjYCBCADIARBA3I2AgQgAiAFaiAFNgIAIAVB/wFNBEAgBUF4cUG00ABqIQACf0GM0AAoAgAiAUEBIAVBA3Z0IgVxRQRAQYzQACABIAVyNgIAIAAMAQsgACgCCAsiASACNgIMIAAgAjYCCCACIAA2AgwgAiABNgIIDAELQR8hASAFQf///wdNBEAgBUEmIAVBCHZnIgBrdkEBcSAAQQF0a0E+aiEBCyACIAE2AhwgAkIANwIQIAFBAnRBvNIAaiEAQQEgAXQiBCAIcUUEQCAAIAI2AgBBkNAAIAQgCHI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEEAkADQCAEIgAoAgRBeHEgBUYNASABQR12IQQgAUEBdCEBIAAgBEEEcWpBEGoiBigCACIEDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLIANBCGohAQwBCwJAIAlFDQACQCAAKAIcIgFBAnRBvNIAaiICKAIAIABGBEAgAiADNgIAIAMNAUGQ0AAgC0F+IAF3cTYCAAwCCyAJQRBBFCAJKAIQIABGG2ogAzYCACADRQ0BCyADIAk2AhggACgCECIBBEAgAyABNgIQIAEgAzYCGAsgAEEUaigCACIBRQ0AIANBFGogATYCACABIAM2AhgLAkAgBUEPTQRAIAAgBCAFaiIBQQNyNgIEIAAgAWoiASABKAIEQQFyNgIEDAELIAAgBGoiByAFQQFyNgIEIAAgBEEDcjYCBCAFIAdqIAU2AgAgCARAIAhBeHFBtNAAaiEBQaDQACgCACEDAn9BASAIQQN2dCICIAZxRQRAQYzQACACIAZyNgIAIAEMAQsgASgCCAsiAiADNgIMIAEgAzYCCCADIAE2AgwgAyACNgIIC0Gg0AAgBzYCAEGU0AAgBTYCAAsgAEEIaiEBCyAKQRBqJAAgAQtDACAARQRAPwBBEHQPCwJAIABB//8DcQ0AIABBAEgNACAAQRB2QAAiAEF/RgRAQfzTAEEwNgIAQX8PCyAAQRB0DwsACwvcPyIAQYAICwkBAAAAAgAAAAMAQZQICwUEAAAABQBBpAgLCQYAAAAHAAAACABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv`,`base64`)})),rt=P(((e,t)=>{let{Buffer:n}=F(`node:buffer`);t.exports=n.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK77MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtzACAAQRBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAA/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQTBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQSBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQd0BNgIcCwYAIAAQMguaLQELfyMAQRBrIgokAEGk0AAoAgAiCUUEQEHk0wAoAgAiBUUEQEHw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBCGpBcHFB2KrVqgVzIgU2AgBB+NMAQQA2AgBByNMAQQA2AgALQczTAEGA1AQ2AgBBnNAAQYDUBDYCAEGw0AAgBTYCAEGs0ABBfzYCAEHQ0wBBgKwDNgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBjNQEQcGrAzYCAEGo0ABB9NMAKAIANgIAQZjQAEHAqwM2AgBBpNAAQYjUBDYCAEHM/wdBODYCAEGI1AQhCQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQewBTQRAQYzQACgCACIGQRAgAEETakFwcSAAQQtJGyIEQQN2IgB2IgFBA3EEQAJAIAFBAXEgAHJBAXMiAkEDdCIAQbTQAGoiASAAQbzQAGooAgAiACgCCCIDRgRAQYzQACAGQX4gAndxNgIADAELIAEgAzYCCCADIAE2AgwLIABBCGohASAAIAJBA3QiAkEDcjYCBCAAIAJqIgAgACgCBEEBcjYCBAwRC0GU0AAoAgAiCCAETw0BIAEEQAJAQQIgAHQiAkEAIAJrciABIAB0cWgiAEEDdCICQbTQAGoiASACQbzQAGooAgAiAigCCCIDRgRAQYzQACAGQX4gAHdxIgY2AgAMAQsgASADNgIIIAMgATYCDAsgAiAEQQNyNgIEIABBA3QiACAEayEFIAAgAmogBTYCACACIARqIgQgBUEBcjYCBCAIBEAgCEF4cUG00ABqIQBBoNAAKAIAIQMCf0EBIAhBA3Z0IgEgBnFFBEBBjNAAIAEgBnI2AgAgAAwBCyAAKAIICyIBIAM2AgwgACADNgIIIAMgADYCDCADIAE2AggLIAJBCGohAUGg0AAgBDYCAEGU0AAgBTYCAAwRC0GQ0AAoAgAiC0UNASALaEECdEG80gBqKAIAIgAoAgRBeHEgBGshBSAAIQIDQAJAIAIoAhAiAUUEQCACQRRqKAIAIgFFDQELIAEoAgRBeHEgBGsiAyAFSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAIAkgBEEDcjYCBCAJQQhqIQEMDwtBACEBIAQCf0Hk0wAoAgAEQEHs0wAoAgAMAQtB8NMAQn83AgBB6NMAQoCAhICAgMAANwIAQeTTACAKQQxqQXBxQdiq1aoFczYCAEH40wBBADYCAEHI0wBBADYCAEGAgAQLIgAgBEHHAGoiBWoiBkEAIABrIgdxIgJPBEBB/NMAQTA2AgAMDwsCQEHE0wAoAgAiAUUNAEG80wAoAgAiCCACaiEAIAAgAU0gACAIS3ENAEEAIQFB/NMAQTA2AgAMDwtByNMALQAAQQRxDQQCQAJAIAkEQEHM0wAhAQNAIAEoAgAiACAJTQRAIAAgASgCBGogCUsNAwsgASgCCCIBDQALC0EAEDMiAEF/Rg0FIAIhBkHo0wAoAgAiAUEBayIDIABxBEAgAiAAayAAIANqQQAgAWtxaiEGCyAEIAZPDQUgBkH+////B0sNBUHE0wAoAgAiAwRAQbzTACgCACIHIAZqIQEgASAHTQ0GIAEgA0sNBgsgBhAzIgEgAEcNAQwHCyAGIANrIAdxIgZB/v///wdLDQQgBhAzIQAgACABKAIAIAEoAgRqRg0DIAAhAQsCQCAGIARByABqTw0AIAFBf0YNAEHs0wAoAgAiACAFIAZrakEAIABrcSIAQf7///8HSwRAIAEhAAwHCyAAEDNBf0cEQCAAIAZqIQYgASEADAcLQQAgBmsQMxoMBAsgASIAQX9HDQUMAwtBACEDDAwLQQAhAAwKCyAAQX9HDQILQcjTAEHI0wAoAgBBBHI2AgALIAJB/v///wdLDQEgAhAzIQBBABAzIQEgAEF/Rg0BIAFBf0YNASAAIAFPDQEgASAAayIGIARBOGpNDQELQbzTAEG80wAoAgAgBmoiATYCAEHA0wAoAgAgAUkEQEHA0wAgATYCAAsCQAJAAkBBpNAAKAIAIgIEQEHM0wAhAQNAIAAgASgCACIDIAEoAgQiBWpGDQIgASgCCCIBDQALDAILQZzQACgCACIBQQBHIAAgAU9xRQRAQZzQACAANgIAC0EAIQFB0NMAIAY2AgBBzNMAIAA2AgBBrNAAQX82AgBBsNAAQeTTACgCADYCAEHY0wBBADYCAANAIAFByNAAaiABQbzQAGoiAjYCACACIAFBtNAAaiIDNgIAIAFBwNAAaiADNgIAIAFB0NAAaiABQcTQAGoiAzYCACADIAI2AgAgAUHY0ABqIAFBzNAAaiICNgIAIAIgAzYCACABQdTQAGogAjYCACABQSBqIgFBgAJHDQALQXggAGtBD3EiASAAaiICIAZBOGsiAyABayIBQQFyNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAI2AgAgACADakE4NgIEDAILIAAgAk0NACACIANJDQAgASgCDEEIcQ0AQXggAmtBD3EiACACaiIDQZjQACgCACAGaiIHIABrIgBBAXI2AgQgASAFIAZqNgIEQajQAEH00wAoAgA2AgBBmNAAIAA2AgBBpNAAIAM2AgAgAiAHakE4NgIEDAELIABBnNAAKAIASQRAQZzQACAANgIACyAAIAZqIQNBzNMAIQECQAJAAkADQCADIAEoAgBHBEAgASgCCCIBDQEMAgsLIAEtAAxBCHFFDQELQczTACEBA0AgASgCACIDIAJNBEAgAyABKAIEaiIFIAJLDQMLIAEoAgghAQwACwALIAEgADYCACABIAEoAgQgBmo2AgQgAEF4IABrQQ9xaiIJIARBA3I2AgQgA0F4IANrQQ9xaiIGIAQgCWoiBGshASACIAZGBEBBpNAAIAQ2AgBBmNAAQZjQACgCACABaiIANgIAIAQgAEEBcjYCBAwIC0Gg0AAoAgAgBkYEQEGg0AAgBDYCAEGU0ABBlNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEIAAgBGogADYCAAwICyAGKAIEIgVBA3FBAUcNBiAFQXhxIQggBUH/AU0EQCAFQQN2IQMgBigCCCIAIAYoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAcLIAIgADYCCCAAIAI2AgwMBgsgBigCGCEHIAYgBigCDCIARwRAIAAgBigCCCICNgIIIAIgADYCDAwFCyAGQRRqIgIoAgAiBUUEQCAGKAIQIgVFDQQgBkEQaiECCwNAIAIhAyAFIgBBFGoiAigCACIFDQAgAEEQaiECIAAoAhAiBQ0ACyADQQA2AgAMBAtBeCAAa0EPcSIBIABqIgcgBkE4ayIDIAFrIgFBAXI2AgQgACADakE4NgIEIAIgBUE3IAVrQQ9xakE/ayIDIAMgAkEQakkbIgNBIzYCBEGo0ABB9NMAKAIANgIAQZjQACABNgIAQaTQACAHNgIAIANBEGpB1NMAKQIANwIAIANBzNMAKQIANwIIQdTTACADQQhqNgIAQdDTACAGNgIAQczTACAANgIAQdjTAEEANgIAIANBJGohAQNAIAFBBzYCACAFIAFBBGoiAUsNAAsgAiADRg0AIAMgAygCBEF+cTYCBCADIAMgAmsiBTYCACACIAVBAXI2AgQgBUH/AU0EQCAFQXhxQbTQAGohAAJ/QYzQACgCACIBQQEgBUEDdnQiA3FFBEBBjNAAIAEgA3I2AgAgAAwBCyAAKAIICyIBIAI2AgwgACACNgIIIAIgADYCDCACIAE2AggMAQtBHyEBIAVB////B00EQCAFQSYgBUEIdmciAGt2QQFxIABBAXRrQT5qIQELIAIgATYCHCACQgA3AhAgAUECdEG80gBqIQBBkNAAKAIAIgNBASABdCIGcUUEQCAAIAI2AgBBkNAAIAMgBnI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEDAkADQCADIgAoAgRBeHEgBUYNASABQR12IQMgAUEBdCEBIAAgA0EEcWpBEGoiBigCACIDDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLQZjQACgCACIBIARNDQBBpNAAKAIAIgAgBGoiAiABIARrIgFBAXI2AgRBmNAAIAE2AgBBpNAAIAI2AgAgACAEQQNyNgIEIABBCGohAQwIC0EAIQFB/NMAQTA2AgAMBwtBACEACyAHRQ0AAkAgBigCHCICQQJ0QbzSAGoiAygCACAGRgRAIAMgADYCACAADQFBkNAAQZDQACgCAEF+IAJ3cTYCAAwCCyAHQRBBFCAHKAIQIAZGG2ogADYCACAARQ0BCyAAIAc2AhggBigCECICBEAgACACNgIQIAIgADYCGAsgBkEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgCGohASAGIAhqIgYoAgQhBQsgBiAFQX5xNgIEIAEgBGogATYCACAEIAFBAXI2AgQgAUH/AU0EQCABQXhxQbTQAGohAAJ/QYzQACgCACICQQEgAUEDdnQiAXFFBEBBjNAAIAEgAnI2AgAgAAwBCyAAKAIICyIBIAQ2AgwgACAENgIIIAQgADYCDCAEIAE2AggMAQtBHyEFIAFB////B00EQCABQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qIQULIAQgBTYCHCAEQgA3AhAgBUECdEG80gBqIQBBkNAAKAIAIgJBASAFdCIDcUUEQCAAIAQ2AgBBkNAAIAIgA3I2AgAgBCAANgIYIAQgBDYCCCAEIAQ2AgwMAQsgAUEZIAVBAXZrQQAgBUEfRxt0IQUgACgCACEAAkADQCAAIgIoAgRBeHEgAUYNASAFQR12IQAgBUEBdCEFIAIgAEEEcWpBEGoiAygCACIADQALIAMgBDYCACAEIAI2AhggBCAENgIMIAQgBDYCCAwBCyACKAIIIgAgBDYCDCACIAQ2AgggBEEANgIYIAQgAjYCDCAEIAA2AggLIAlBCGohAQwCCwJAIAdFDQACQCADKAIcIgFBAnRBvNIAaiICKAIAIANGBEAgAiAANgIAIAANAUGQ0AAgCEF+IAF3cSIINgIADAILIAdBEEEUIAcoAhAgA0YbaiAANgIAIABFDQELIAAgBzYCGCADKAIQIgEEQCAAIAE2AhAgASAANgIYCyADQRRqKAIAIgFFDQAgAEEUaiABNgIAIAEgADYCGAsCQCAFQQ9NBEAgAyAEIAVqIgBBA3I2AgQgACADaiIAIAAoAgRBAXI2AgQMAQsgAyAEaiICIAVBAXI2AgQgAyAEQQNyNgIEIAIgBWogBTYCACAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIFcUUEQEGM0AAgASAFcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEEBIAF0IgQgCHFFBEAgACACNgIAQZDQACAEIAhyNgIAIAIgADYCGCACIAI2AgggAiACNgIMDAELIAVBGSABQQF2a0EAIAFBH0cbdCEBIAAoAgAhBAJAA0AgBCIAKAIEQXhxIAVGDQEgAUEddiEEIAFBAXQhASAAIARBBHFqQRBqIgYoAgAiBA0ACyAGIAI2AgAgAiAANgIYIAIgAjYCDCACIAI2AggMAQsgACgCCCIBIAI2AgwgACACNgIIIAJBADYCGCACIAA2AgwgAiABNgIICyADQQhqIQEMAQsCQCAJRQ0AAkAgACgCHCIBQQJ0QbzSAGoiAigCACAARgRAIAIgAzYCACADDQFBkNAAIAtBfiABd3E2AgAMAgsgCUEQQRQgCSgCECAARhtqIAM2AgAgA0UNAQsgAyAJNgIYIAAoAhAiAQRAIAMgATYCECABIAM2AhgLIABBFGooAgAiAUUNACADQRRqIAE2AgAgASADNgIYCwJAIAVBD00EQCAAIAQgBWoiAUEDcjYCBCAAIAFqIgEgASgCBEEBcjYCBAwBCyAAIARqIgcgBUEBcjYCBCAAIARBA3I2AgQgBSAHaiAFNgIAIAgEQCAIQXhxQbTQAGohAUGg0AAoAgAhAwJ/QQEgCEEDdnQiAiAGcUUEQEGM0AAgAiAGcjYCACABDAELIAEoAggLIgIgAzYCDCABIAM2AgggAyABNgIMIAMgAjYCCAtBoNAAIAc2AgBBlNAAIAU2AgALIABBCGohAQsgCkEQaiQAIAELQwAgAEUEQD8AQRB0DwsCQCAAQf//A3ENACAAQQBIDQAgAEEQdkAAIgBBf0YEQEH80wBBMDYCAEF/DwsgAEEQdA8LAAsL3D8iAEGACAsJAQAAAAIAAAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==`,`base64`)})),it=P(((e,t)=>{let n=[`GET`,`HEAD`,`POST`],r=new Set(n),i=[101,204,205,304],a=[301,302,303,307,308],o=new Set(a),s=`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`.split(`.`),c=new Set(s),l=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],u=new Set(l),d=[`follow`,`manual`,`error`],f=[`GET`,`HEAD`,`OPTIONS`,`TRACE`],p=new Set(f),m=[`navigate`,`same-origin`,`no-cors`,`cors`],h=[`omit`,`same-origin`,`include`],g=[`default`,`no-store`,`reload`,`no-cache`,`force-cache`,`only-if-cached`],_=[`content-encoding`,`content-language`,`content-location`,`content-type`,`content-length`],v=[`half`],y=[`CONNECT`,`TRACE`,`TRACK`],b=new Set(y),x=[`audio`,`audioworklet`,`font`,`image`,`manifest`,`paintworklet`,`script`,`style`,`track`,`video`,`xslt`,``];t.exports={subresource:x,forbiddenMethods:y,requestBodyHeader:_,referrerPolicy:l,requestRedirect:d,requestMode:m,requestCredentials:h,requestCache:g,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:i,safeMethods:f,badPorts:s,requestDuplex:v,subresourceSet:new Set(x),badPortsSet:c,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:p,forbiddenMethodsSet:b,referrerPolicySet:u}})),at=P(((e,t)=>{let n=Symbol.for(`undici.globalOrigin.1`);function r(){return globalThis[n]}function i(e){if(e===void 0){Object.defineProperty(globalThis,n,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,n,{value:t,writable:!0,enumerable:!1,configurable:!1})}t.exports={getGlobalOrigin:r,setGlobalOrigin:i}})),ot=P(((e,t)=>{let n=F(`node:assert`),r=new TextEncoder,i=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,a=/[\u000A\u000D\u0009\u0020]/,o=/[\u0009\u000A\u000C\u000D\u0020]/g,s=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function c(e){n(e.protocol===`data:`);let t=l(e,!0);t=t.slice(5);let r={position:0},i=d(`,`,t,r),a=i.length;if(i=C(i,!0,!0),r.position>=t.length)return`failure`;r.position++;let o=f(t.slice(a+1));if(/;(\u0020){0,}base64$/i.test(i)){if(o=_(T(o)),o===`failure`)return`failure`;i=i.slice(0,-6),i=i.replace(/(\u0020)+$/,``),i=i.slice(0,-1)}i.startsWith(`;`)&&(i=`text/plain`+i);let s=g(i);return s===`failure`&&(s=g(`text/plain;charset=US-ASCII`)),{mimeType:s,body:o}}function l(e,t=!1){if(!t)return e.href;let n=e.href,r=e.hash.length,i=r===0?n:n.substring(0,n.length-r);return!r&&n.endsWith(`#`)?i.slice(0,-1):i}function u(e,t,n){let r=``;for(;n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function m(e){return e>=48&&e<=57?e-48:(e&223)-55}function h(e){let t=e.length,n=new Uint8Array(t),r=0;for(let i=0;ie.length)return`failure`;t.position++;let r=d(`;`,e,t);if(r=x(r,!1,!0),r.length===0||!i.test(r))return`failure`;let o=n.toLowerCase(),c=r.toLowerCase(),l={type:o,subtype:c,parameters:new Map,essence:`${o}/${c}`};for(;t.positiona.test(e),e,t);let n=u(e=>e!==`;`&&e!==`=`,e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if(e[t.position]===`"`)r=v(e,t,!0),d(`;`,e,t);else if(r=d(`;`,e,t),r=x(r,!1,!0),r.length===0)continue;n.length!==0&&i.test(n)&&(r.length===0||s.test(r))&&!l.parameters.has(n)&&l.parameters.set(n,r)}return l}function _(e){e=e.replace(o,``);let t=e.length;if(t%4==0&&e.charCodeAt(t-1)===61&&(--t,e.charCodeAt(t-1)===61&&--t),t%4==1||/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t)))return`failure`;let n=Buffer.from(e,`base64`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function v(e,t,r){let i=t.position,a=``;for(n(e[t.position]===`"`),t.position++;a+=u(e=>e!==`"`&&e!==`\\`,e,t),!(t.position>=e.length);){let r=e[t.position];if(t.position++,r===`\\`){if(t.position>=e.length){a+=`\\`;break}a+=e[t.position],t.position++}else{n(r===`"`);break}}return r?a:e.slice(i,t.position)}function y(e){n(e!==`failure`);let{parameters:t,essence:r}=e,a=r;for(let[e,n]of t.entries())a+=`;`,a+=e,a+=`=`,i.test(n)||(n=n.replace(/(\\|")/g,`\\$1`),n=`"`+n,n+=`"`),a+=n;return a}function b(e){return e===13||e===10||e===9||e===32}function x(e,t=!0,n=!0){return w(e,t,n,b)}function S(e){return e===13||e===10||e===9||e===12||e===32}function C(e,t=!0,n=!0){return w(e,t,n,S)}function w(e,t,n,r){let i=0,a=e.length-1;if(t)for(;i0&&r(e.charCodeAt(a));)a--;return i===0&&a===e.length-1?e:e.slice(i,a+1)}function T(e){let t=e.length;if(65535>t)return String.fromCharCode.apply(null,e);let n=``,r=0,i=65535;for(;rt&&(i=t-r),n+=String.fromCharCode.apply(null,e.subarray(r,r+=i));return n}function E(e){switch(e.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`}return e.subtype.endsWith(`+json`)?`application/json`:e.subtype.endsWith(`+xml`)?`application/xml`:``}t.exports={dataURLProcessor:c,URLSerializer:l,collectASequenceOfCodePoints:u,collectASequenceOfCodePointsFast:d,stringPercentDecode:f,parseMIMEType:g,collectAnHTTPQuotedString:v,serializeAMimeType:y,removeChars:w,removeHTTPWhitespace:x,minimizeSupportedMimeType:E,HTTP_TOKEN_CODEPOINTS:i,isomorphicDecode:T}})),st=P(((e,t)=>{let{types:n,inspect:r}=F(`node:util`),{markAsUncloneable:i}=F(`node:worker_threads`),{toUSVString:a}=L(),o={};o.converters={},o.util={},o.errors={},o.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`)},o.errors.conversionFailed=function(e){let t=e.types.length===1?``:` one of`,n=`${e.argument} could not be converted to${t}: ${e.types.join(`, `)}.`;return o.errors.exception({header:e.prefix,message:n})},o.errors.invalidArgument=function(e){return o.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},o.brandCheck=function(e,t,n){if(n?.strict!==!1){if(!(e instanceof t)){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}}else if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}},o.argumentLengthCheck=function({length:e},t,n){if(e{}),o.util.ConvertToInt=function(e,t,n,r){let i,a;t===64?(i=2**53-1,a=n===`unsigned`?0:-9007199254740991):n===`unsigned`?(a=0,i=2**t-1):(a=(-2)**t-1,i=2**(t-1)-1);let s=Number(e);if(s===0&&(s=0),r?.enforceRange===!0){if(Number.isNaN(s)||s===1/0||s===-1/0)throw o.errors.exception({header:`Integer conversion`,message:`Could not convert ${o.util.Stringify(e)} to an integer.`});if(s=o.util.IntegerPart(s),si)throw o.errors.exception({header:`Integer conversion`,message:`Value must be between ${a}-${i}, got ${s}.`});return s}return!Number.isNaN(s)&&r?.clamp===!0?(s=Math.min(Math.max(s,a),i),s=Math.floor(s)%2==0?Math.floor(s):Math.ceil(s),s):Number.isNaN(s)||s===0&&Object.is(0,s)||s===1/0||s===-1/0?0:(s=o.util.IntegerPart(s),s%=2**t,n===`signed`&&s>=2**t-1?s-2**t:s)},o.util.IntegerPart=function(e){let t=Math.floor(Math.abs(e));return e<0?-1*t:t},o.util.Stringify=function(e){switch(o.util.Type(e)){case`Symbol`:return`Symbol(${e.description})`;case`Object`:return r(e);case`String`:return`"${e}"`;default:return`${e}`}},o.sequenceConverter=function(e){return(t,n,r,i)=>{if(o.util.Type(t)!==`Object`)throw o.errors.exception({header:n,message:`${r} (${o.util.Stringify(t)}) is not iterable.`});let a=typeof i==`function`?i():t?.[Symbol.iterator]?.(),s=[],c=0;if(a===void 0||typeof a.next!=`function`)throw o.errors.exception({header:n,message:`${r} is not iterable.`});for(;;){let{done:t,value:i}=a.next();if(t)break;s.push(e(i,n,`${r}[${c++}]`))}return s}},o.recordConverter=function(e,t){return(r,i,a)=>{if(o.util.Type(r)!==`Object`)throw o.errors.exception({header:i,message:`${a} ("${o.util.Type(r)}") is not an Object.`});let s={};if(!n.isProxy(r)){let n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n){let n=e(o,i,a);s[n]=t(r[o],i,a)}return s}let c=Reflect.ownKeys(r);for(let n of c)if(Reflect.getOwnPropertyDescriptor(r,n)?.enumerable){let o=e(n,i,a);s[o]=t(r[n],i,a)}return s}},o.interfaceConverter=function(e){return(t,n,r,i)=>{if(i?.strict!==!1&&!(t instanceof e))throw o.errors.exception({header:n,message:`Expected ${r} ("${o.util.Stringify(t)}") to be an instance of ${e.name}.`});return t}},o.dictionaryConverter=function(e){return(t,n,r)=>{let i=o.util.Type(t),a={};if(i===`Null`||i===`Undefined`)return a;if(i!==`Object`)throw o.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(let i of e){let{key:e,defaultValue:s,required:c,converter:l}=i;if(c===!0&&!Object.hasOwn(t,e))throw o.errors.exception({header:n,message:`Missing required key "${e}".`});let u=t[e],d=Object.hasOwn(i,`defaultValue`);if(d&&u!==null&&(u??=s()),c||d||u!==void 0){if(u=l(u,n,`${r}.${e}`),i.allowedValues&&!i.allowedValues.includes(u))throw o.errors.exception({header:n,message:`${u} is not an accepted type. Expected one of ${i.allowedValues.join(`, `)}.`});a[e]=u}}return a}},o.nullableConverter=function(e){return(t,n,r)=>t===null?t:e(t,n,r)},o.converters.DOMString=function(e,t,n,r){if(e===null&&r?.legacyNullToEmptyString)return``;if(typeof e==`symbol`)throw o.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`});return String(e)},o.converters.ByteString=function(e,t,n){let r=o.converters.DOMString(e,t,n);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r.charCodeAt(e)} which is greater than 255.`);return r},o.converters.USVString=a,o.converters.boolean=function(e){return!!e},o.converters.any=function(e){return e},o.converters[`long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`signed`,void 0,t,n)},o.converters[`unsigned long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`unsigned`,void 0,t,n)},o.converters[`unsigned long`]=function(e,t,n){return o.util.ConvertToInt(e,32,`unsigned`,void 0,t,n)},o.converters[`unsigned short`]=function(e,t,n,r){return o.util.ConvertToInt(e,16,`unsigned`,r,t,n)},o.converters.ArrayBuffer=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isAnyArrayBuffer(e))throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`ArrayBuffer`]});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.resizable||e.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.TypedArray=function(e,t,r,i,a){if(o.util.Type(e)!==`Object`||!n.isTypedArray(e)||e.constructor.name!==t.name)throw o.errors.conversionFailed({prefix:r,argument:`${i} ("${o.util.Stringify(e)}")`,types:[t.name]});if(a?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.DataView=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isDataView(e))throw o.errors.exception({header:t,message:`${r} is not a DataView.`});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.BufferSource=function(e,t,r,i){if(n.isAnyArrayBuffer(e))return o.converters.ArrayBuffer(e,t,r,{...i,allowShared:!1});if(n.isTypedArray(e))return o.converters.TypedArray(e,e.constructor,t,r,{...i,allowShared:!1});if(n.isDataView(e))return o.converters.DataView(e,t,r,{...i,allowShared:!1});throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`BufferSource`]})},o.converters[`sequence`]=o.sequenceConverter(o.converters.ByteString),o.converters[`sequence>`]=o.sequenceConverter(o.converters[`sequence`]),o.converters[`record`]=o.recordConverter(o.converters.ByteString,o.converters.ByteString),t.exports={webidl:o}})),ct=P(((e,t)=>{let{Transform:n}=F(`node:stream`),r=F(`node:zlib`),{redirectStatusSet:i,referrerPolicySet:a,badPortsSet:o}=it(),{getGlobalOrigin:s}=at(),{collectASequenceOfCodePoints:c,collectAnHTTPQuotedString:l,removeChars:u,parseMIMEType:d}=ot(),{performance:f}=F(`node:perf_hooks`),{isBlobLike:p,ReadableStreamFrom:m,isValidHTTPToken:h,normalizedMethodRecordsBase:g}=L(),_=F(`node:assert`),{isUint8Array:v}=F(`node:util/types`),{webidl:y}=st(),b=[],x;try{x=F(`node:crypto`);let e=[`sha256`,`sha384`,`sha512`];b=x.getHashes().filter(t=>e.includes(t))}catch{}function S(e){let t=e.urlList,n=t.length;return n===0?null:t[n-1].toString()}function C(e,t){if(!i.has(e.status))return null;let n=e.headersList.get(`location`,!0);return n!==null&&j(n)&&(w(n)||(n=T(n)),n=new URL(n,S(e))),n&&!n.hash&&(n.hash=t),n}function w(e){for(let t=0;t126||n<32)return!1}return!0}function T(e){return Buffer.from(e,`binary`).toString(`utf8`)}function E(e){return e.urlList[e.urlList.length-1]}function D(e){let t=E(e);return Ie(t)&&o.has(t.port)?`blocked`:`allowed`}function O(e){return e instanceof Error||e?.constructor?.name===`Error`||e?.constructor?.name===`DOMException`}function k(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0}let A=h;function j(e){return(e[0]===` `||e[0]===` `||e[e.length-1]===` `||e[e.length-1]===` `||e.includes(` +`)||e.includes(`\r`)||e.includes(`\0`))===!1}function M(e,t){let{headersList:n}=t,r=(n.get(`referrer-policy`,!0)??``).split(`,`),i=``;if(r.length>0)for(let e=r.length;e!==0;e--){let t=r[e-1].trim();if(a.has(t)){i=t;break}}i!==``&&(e.referrerPolicy=i)}function ee(){return`allowed`}function N(){return`success`}function te(){return`success`}function ne(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t,!0)}function re(e){let t=e.origin;if(!(t===`client`||t===void 0)){if(e.responseTainting===`cors`||e.mode===`websocket`)e.headersList.append(`origin`,t,!0);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&Fe(e.origin)&&!Fe(E(e))&&(t=null);break;case`same-origin`:be(e,E(e))||(t=null);break;default:}e.headersList.append(`origin`,t,!0)}}}function ie(e,t){return e}function ae(e,t,n){return!e?.startTime||e.startTime4096&&(r=i);let a=be(e,r),o=fe(r)&&!fe(e.url);switch(t){case`origin`:return i??de(n,!0);case`unsafe-url`:return r;case`same-origin`:return a?i:`no-referrer`;case`origin-when-cross-origin`:return a?r:i;case`strict-origin-when-cross-origin`:{let t=E(e);return be(r,t)?r:fe(r)&&!fe(t)?`no-referrer`:i}default:return o?`no-referrer`:i}}function de(e,t){return _(e instanceof URL),e=new URL(e),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function fe(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function pe(e,t){if(x===void 0)return!0;let n=he(t);if(n===`no metadata`||n.length===0)return!0;let r=_e(n,ge(n));for(let t of r){let n=t.algo,r=t.hash,i=x.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),ve(i,r))return!0}return!1}let me=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function he(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=me.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();b.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function ge(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n{e=n,t=r}),resolve:e,reject:t}}function Se(e){return e.controller.state===`aborted`}function Ce(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}function we(e){return g[e.toLowerCase()]??e}function Te(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return _(typeof t==`string`),t}let Ee=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function P(e,t,n=0,r=1){class i{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=0}next(){if(typeof this!=`object`||this===null||!(#e in this))throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let i=this.#n,a=this.#e[t];if(i>=a.length)return{value:void 0,done:!0};let{[n]:o,[r]:s}=a[i];this.#n=i+1;let c;switch(this.#t){case`key`:c=o;break;case`value`:c=s;break;case`key+value`:c=[o,s];break}return{value:c,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,Ee),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${e} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(e,t){return new i(e,t)}}function De(e,t,n,r=0,i=1){let a=P(e,n,r,i),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key`)}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`value`)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key+value`)}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(n,r=globalThis){if(y.brandCheck(this,t),y.argumentLengthCheck(arguments,1,`${e}.forEach`),typeof n!=`function`)throw TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`);for(let{0:e,1:t}of a(this,`key+value`))n.call(r,t,e,this)}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:o.entries.value}})}async function Oe(e,t,n){let r=t,i=n,a;try{a=e.stream.getReader()}catch(e){i(e);return}try{r(await Ne(a))}catch(e){i(e)}}function ke(e){return e instanceof ReadableStream||e[Symbol.toStringTag]===`ReadableStream`&&typeof e.tee==`function`}function Ae(e){try{e.close(),e.byobRequest?.respond(0)}catch(e){if(!e.message.includes(`Controller is already closed`)&&!e.message.includes(`ReadableStream is already closed`))throw e}}let je=/[^\x00-\xFF]/;function Me(e){return _(!je.test(e)),e}async function Ne(e){let t=[],n=0;for(;;){let{done:r,value:i}=await e.read();if(r)return Buffer.concat(t,n);if(!v(i))throw TypeError(`Received non-Uint8Array chunk`);t.push(i),n+=i.length}}function Pe(e){_(`protocol`in e);let t=e.protocol;return t===`about:`||t===`blob:`||t===`data:`}function Fe(e){return typeof e==`string`&&e[5]===`:`&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&e[4]===`s`||e.protocol===`https:`}function Ie(e){_(`protocol`in e);let t=e.protocol;return t===`http:`||t===`https:`}function Le(e,t){let n=e;if(!n.startsWith(`bytes`))return`failure`;let r={position:5};if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==61)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let i=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),a=i.length?Number(i):null;if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==45)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let o=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),s=o.length?Number(o):null;return r.positions?`failure`:{rangeStartValue:a,rangeEndValue:s}}function Re(e,t,n){let r=`bytes `;return r+=Me(`${e}`),r+=`-`,r+=Me(`${t}`),r+=`/`,r+=Me(`${n}`),r}var ze=class extends n{#e;constructor(e){super(),this.#e=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)==8?r.createInflate(this.#e):r.createInflateRaw(this.#e),this._inflateStream.on(`data`,this.push.bind(this)),this._inflateStream.on(`end`,()=>this.push(null)),this._inflateStream.on(`error`,e=>this.destroy(e))}this._inflateStream.write(e,t,n)}_final(e){this._inflateStream&&=(this._inflateStream.end(),null),e()}};function Be(e){return new ze(e)}function Ve(e){let t=null,n=null,r=null,i=Ue(`content-type`,e);if(i===null)return`failure`;for(let e of i){let i=d(e);i===`failure`||i.essence===`*/*`||(r=i,r.essence===n?!r.parameters.has(`charset`)&&t!==null&&r.parameters.set(`charset`,t):(t=null,r.parameters.has(`charset`)&&(t=r.parameters.get(`charset`)),n=r.essence))}return r??`failure`}function He(e){let t=e,n={position:0},r=[],i=``;for(;n.positione!==`"`&&e!==`,`,t,n),n.positione===9||e===32),r.push(i),i=``}return r}function Ue(e,t){let n=t.get(e,!0);return n===null?null:He(n)}let We=new TextDecoder;function Ge(e){return e.length===0?``:(e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3)),We.decode(e))}var I=class{get baseUrl(){return s()}get origin(){return this.baseUrl?.origin}policyContainer=ce()};t.exports={isAborted:Se,isCancelled:Ce,isValidEncodedURL:w,createDeferredPromise:xe,ReadableStreamFrom:m,tryUpgradeRequestToAPotentiallyTrustworthyURL:ye,clampAndCoarsenConnectionTimingInfo:ae,coarsenedSharedCurrentTime:oe,determineRequestsReferrer:ue,makePolicyContainer:ce,clonePolicyContainer:le,appendFetchMetadata:ne,appendRequestOriginHeader:re,TAOCheck:te,corsCheck:N,crossOriginResourcePolicyCheck:ee,createOpaqueTimingInfo:se,setRequestReferrerPolicyOnRedirect:M,isValidHTTPToken:h,requestBadPort:D,requestCurrentURL:E,responseURL:S,responseLocationURL:C,isBlobLike:p,isURLPotentiallyTrustworthy:fe,isValidReasonPhrase:k,sameOrigin:be,normalizeMethod:we,serializeJavascriptValueToJSONString:Te,iteratorMixin:De,createIterator:P,isValidHeaderName:A,isValidHeaderValue:j,isErrorLike:O,fullyReadBody:Oe,bytesMatch:pe,isReadableStreamLike:ke,readableStreamClose:Ae,isomorphicEncode:Me,urlIsLocal:Pe,urlHasHttpsScheme:Fe,urlIsHttpHttpsScheme:Ie,readAllBytes:Ne,simpleRangeHeaderValue:Le,buildContentRange:Re,parseMetadata:he,createInflate:Be,extractMimeType:Ve,getDecodeSplit:Ue,utf8DecodeBytes:Ge,environmentSettingsObject:new class{settingsObject=new I}}})),lt=P(((e,t)=>{t.exports={kUrl:Symbol(`url`),kHeaders:Symbol(`headers`),kSignal:Symbol(`signal`),kState:Symbol(`state`),kDispatcher:Symbol(`dispatcher`)}})),ut=P(((e,t)=>{let{Blob:n,File:r}=F(`node:buffer`),{kState:i}=lt(),{webidl:a}=st();var o=class e{constructor(e,t,n={}){let r=t,a=n.type,o=n.lastModified??Date.now();this[i]={blobLike:e,name:r,type:a,lastModified:o}}stream(...t){return a.brandCheck(this,e),this[i].blobLike.stream(...t)}arrayBuffer(...t){return a.brandCheck(this,e),this[i].blobLike.arrayBuffer(...t)}slice(...t){return a.brandCheck(this,e),this[i].blobLike.slice(...t)}text(...t){return a.brandCheck(this,e),this[i].blobLike.text(...t)}get size(){return a.brandCheck(this,e),this[i].blobLike.size}get type(){return a.brandCheck(this,e),this[i].blobLike.type}get name(){return a.brandCheck(this,e),this[i].name}get lastModified(){return a.brandCheck(this,e),this[i].lastModified}get[Symbol.toStringTag](){return`File`}};a.converters.Blob=a.interfaceConverter(n);function s(e){return e instanceof r||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}t.exports={FileLike:o,isFileLike:s}})),dt=P(((e,t)=>{let{isBlobLike:n,iteratorMixin:r}=ct(),{kState:i}=lt(),{kEnumerableProperty:a}=L(),{FileLike:o,isFileLike:s}=ut(),{webidl:c}=st(),{File:l}=F(`node:buffer`),u=F(`node:util`),d=globalThis.File??l;var f=class e{constructor(e){if(c.util.markAsUncloneable(this),e!==void 0)throw c.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[i]=[]}append(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.append`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`value`,{strict:!1}):c.converters.USVString(r,o,`value`),a=arguments.length===3?c.converters.USVString(a,o,`filename`):void 0;let s=p(t,r,a);this[i].push(s)}delete(t){c.brandCheck(this,e);let n=`FormData.delete`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i]=this[i].filter(e=>e.name!==t)}get(t){c.brandCheck(this,e);let n=`FormData.get`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`);let r=this[i].findIndex(e=>e.name===t);return r===-1?null:this[i][r].value}getAll(t){c.brandCheck(this,e);let n=`FormData.getAll`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].filter(e=>e.name===t).map(e=>e.value)}has(t){c.brandCheck(this,e);let n=`FormData.has`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].findIndex(e=>e.name===t)!==-1}set(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.set`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`name`,{strict:!1}):c.converters.USVString(r,o,`name`),a=arguments.length===3?c.converters.USVString(a,o,`name`):void 0;let s=p(t,r,a),l=this[i].findIndex(e=>e.name===t);l===-1?this[i].push(s):this[i]=[...this[i].slice(0,l),s,...this[i].slice(l+1).filter(e=>e.name!==t)]}[u.inspect.custom](e,t){let n=this[i].reduce((e,t)=>(e[t.name]?Array.isArray(e[t.name])?e[t.name].push(t.value):e[t.name]=[e[t.name],t.value]:e[t.name]=t.value,e),{__proto__:null});t.depth??=e,t.colors??=!0;let r=u.formatWithOptions(t,n);return`FormData ${r.slice(r.indexOf(`]`)+2)}`}};r(`FormData`,f,i,`name`,`value`),Object.defineProperties(f.prototype,{append:a,delete:a,get:a,getAll:a,has:a,set:a,[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function p(e,t,n){if(typeof t!=`string`&&(s(t)||(t=t instanceof Blob?new d([t],`blob`,{type:t.type}):new o(t,`blob`,{type:t.type})),n!==void 0)){let e={type:t.type,lastModified:t.lastModified};t=t instanceof l?new d([t],n,e):new o(t,n,e)}return{name:e,value:t}}t.exports={FormData:f,makeEntry:p}})),ft=P(((e,t)=>{let{isUSVString:n,bufferToLowerCasedHeaderName:r}=L(),{utf8DecodeBytes:i}=ct(),{HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:o}=ot(),{isFileLike:s}=ut(),{makeEntry:c}=dt(),l=F(`node:assert`),{File:u}=F(`node:buffer`),d=globalThis.File??u,f=Buffer.from(`form-data; name="`),p=Buffer.from(`; filename`),m=Buffer.from(`--`),h=Buffer.from(`--\r `);function g(e){for(let t=0;t70)return!1;for(let n=0;n=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95))return!1}return!0}function v(e,t){l(t!==`failure`&&t.essence===`multipart/form-data`);let r=t.parameters.get(`boundary`);if(r===void 0)return`failure`;let a=Buffer.from(`--${r}`,`utf8`),o=[],u={position:0};for(;e[u.position]===13&&e[u.position+1]===10;)u.position+=2;let f=e.length;for(;e[f-1]===10&&e[f-2]===13;)f-=2;for(f!==e.length&&(e=e.subarray(0,f));;){if(e.subarray(u.position,u.position+a.length).equals(a))u.position+=a.length;else return`failure`;if(u.position===e.length-2&&C(e,m,u)||u.position===e.length-4&&C(e,h,u))return o;if(e[u.position]!==13||e[u.position+1]!==10)return`failure`;u.position+=2;let t=y(e,u);if(t===`failure`)return`failure`;let{name:r,filename:f,contentType:p,encoding:_}=t;u.position+=2;let v;{let t=e.indexOf(a.subarray(2),u.position);if(t===-1)return`failure`;v=e.subarray(u.position,t-4),u.position+=v.length,_===`base64`&&(v=Buffer.from(v.toString(),`base64`))}if(e[u.position]!==13||e[u.position+1]!==10)return`failure`;u.position+=2;let b;f===null?b=i(Buffer.from(v)):(p??=`text/plain`,g(p)||(p=``),b=new d([v],f,{type:p})),l(n(r)),l(typeof b==`string`&&n(b)||s(b)),o.push(c(r,b,f))}}function y(e,t){let n=null,i=null,s=null,c=null;for(;;){if(e[t.position]===13&&e[t.position+1]===10)return n===null?`failure`:{name:n,filename:i,contentType:s,encoding:c};let l=x(e=>e!==10&&e!==13&&e!==58,e,t);if(l=S(l,!0,!0,e=>e===9||e===32),!a.test(l.toString())||e[t.position]!==58)return`failure`;switch(t.position++,x(e=>e===32||e===9,e,t),r(l)){case`content-disposition`:if(n=i=null,!C(e,f,t)||(t.position+=17,n=b(e,t),n===null))return`failure`;if(C(e,p,t)){let n=t.position+p.length;if(e[n]===42&&(t.position+=1,n+=1),e[n]!==61||e[n+1]!==34||(t.position+=12,i=b(e,t),i===null))return`failure`}break;case`content-type`:{let n=x(e=>e!==10&&e!==13,e,t);n=S(n,!1,!0,e=>e===9||e===32),s=o(n);break}case`content-transfer-encoding`:{let n=x(e=>e!==10&&e!==13,e,t);n=S(n,!1,!0,e=>e===9||e===32),c=o(n);break}default:x(e=>e!==10&&e!==13,e,t)}if(e[t.position]!==13&&e[t.position+1]!==10)return`failure`;t.position+=2}}function b(e,t){l(e[t.position-1]===34);let n=x(e=>e!==10&&e!==13&&e!==34,e,t);return e[t.position]===34?(t.position++,n=new TextDecoder().decode(n).replace(/%0A/gi,` -`).replace(/%0D/gi,`\r`).replace(/%22/g,`"`),n):null}function x(e,t,n){let r=n.position;for(;r0&&r(e[a]);)a--;return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function C(e,t,n){if(e.length{let n=L(),{ReadableStreamFrom:r,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:o,createDeferredPromise:s,fullyReadBody:c,extractMimeType:l,utf8DecodeBytes:u}=ot(),{FormData:d}=lt(),{kState:f}=st(),{webidl:p}=at(),{Blob:m}=F(`node:buffer`),h=F(`node:assert`),{isErrored:g,isDisturbed:_}=F(`node:stream`),{isArrayBuffer:v}=F(`node:util/types`),{serializeAMimeType:y}=it(),{multipartFormDataParser:b}=ut(),x;try{let e=F(`node:crypto`);x=t=>e.randomInt(0,t)}catch{x=e=>Math.floor(Math.random(e))}let S=new TextEncoder;function C(){}let w=globalThis.FinalizationRegistry&&process.version.indexOf(`v18`)!==0,T;w&&(T=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&!_(t)&&!g(t)&&t.cancel(`Response object has been garbage collected`).catch(C)}));function E(e,t=!1){let s=null;s=e instanceof ReadableStream?e:i(e)?e.stream():new ReadableStream({async pull(e){let t=typeof l==`string`?S.encode(l):l;t.byteLength&&e.enqueue(t),queueMicrotask(()=>o(e))},start(){},type:`bytes`}),h(a(s));let c=null,l=null,u=null,d=null;if(typeof e==`string`)l=e,d=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),d=`application/x-www-form-urlencoded;charset=UTF-8`;else if(v(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(n.isFormDataLike(e)){let t=`----formdata-undici-0${`${x(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r +`).replace(/%0D/gi,`\r`).replace(/%22/g,`"`),n):null}function x(e,t,n){let r=n.position;for(;r0&&r(e[a]);)a--;return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function C(e,t,n){if(e.length{let n=L(),{ReadableStreamFrom:r,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:o,createDeferredPromise:s,fullyReadBody:c,extractMimeType:l,utf8DecodeBytes:u}=ct(),{FormData:d}=dt(),{kState:f}=lt(),{webidl:p}=st(),{Blob:m}=F(`node:buffer`),h=F(`node:assert`),{isErrored:g,isDisturbed:_}=F(`node:stream`),{isArrayBuffer:v}=F(`node:util/types`),{serializeAMimeType:y}=ot(),{multipartFormDataParser:b}=ft(),x;try{let e=F(`node:crypto`);x=t=>e.randomInt(0,t)}catch{x=e=>Math.floor(Math.random(e))}let S=new TextEncoder;function C(){}let w=globalThis.FinalizationRegistry&&process.version.indexOf(`v18`)!==0,T;w&&(T=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&!_(t)&&!g(t)&&t.cancel(`Response object has been garbage collected`).catch(C)}));function E(e,t=!1){let s=null;s=e instanceof ReadableStream?e:i(e)?e.stream():new ReadableStream({async pull(e){let t=typeof l==`string`?S.encode(l):l;t.byteLength&&e.enqueue(t),queueMicrotask(()=>o(e))},start(){},type:`bytes`}),h(a(s));let c=null,l=null,u=null,d=null;if(typeof e==`string`)l=e,d=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),d=`application/x-www-form-urlencoded;charset=UTF-8`;else if(v(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(n.isFormDataLike(e)){let t=`----formdata-undici-0${`${x(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r `),a=[],o=new Uint8Array([13,10]);u=0;let s=!1;for(let[t,c]of e)if(typeof c==`string`){let e=S.encode(n+`; name="${r(i(t))}"\r\n\r\n${i(c)}\r\n`);a.push(e),u+=e.byteLength}else{let e=S.encode(`${n}; name="${r(i(t))}"`+(c.name?`; filename="${r(c.name)}"`:``)+`\r -Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?u+=e.byteLength+c.size+o.byteLength:s=!0}let f=S.encode(`--${t}--\r\n`);a.push(f),u+=f.byteLength,s&&(u=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},d=`multipart/form-data; boundary=${t}`}else if(i(e))l=e,u=e.size,e.type&&(d=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(n.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);s=e instanceof ReadableStream?e:r(e)}if((typeof l==`string`||n.isBuffer(l))&&(u=Buffer.byteLength(l)),c!=null){let t;s=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:n,done:r}=await t.next();if(r)queueMicrotask(()=>{e.close(),e.byobRequest?.respond(0)});else if(!g(s)){let t=new Uint8Array(n);t.byteLength&&e.enqueue(t)}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}return[{stream:s,source:l,length:u},d]}function D(e,t=!1){return e instanceof ReadableStream&&(h(!n.isDisturbed(e),`The body has already been consumed.`),h(!e.locked,`The stream is locked.`)),E(e,t)}function O(e,t){let[n,r]=t.stream.tee();return t.stream=n,{stream:r,length:t.length,source:t.source}}function k(e){if(e.aborted)throw new DOMException(`The operation was aborted.`,`AbortError`)}function A(e){return{blob(){return M(this,e=>{let t=te(this);return t===null?t=``:t&&=y(t),new m([e],{type:t})},e)},arrayBuffer(){return M(this,e=>new Uint8Array(e).buffer,e)},text(){return M(this,u,e)},json(){return M(this,N,e)},formData(){return M(this,e=>{let t=te(this);if(t!==null)switch(t.essence){case`multipart/form-data`:{let n=b(e,t);if(n===`failure`)throw TypeError(`Failed to parse body as FormData.`);let r=new d;return r[f]=n,r}case`application/x-www-form-urlencoded`:{let t=new URLSearchParams(e.toString()),n=new d;for(let[e,r]of t)n.append(e,r);return n}}throw TypeError(`Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".`)},e)},bytes(){return M(this,e=>new Uint8Array(e),e)}}}function j(e){Object.assign(e.prototype,A(e))}async function M(e,t,n){if(p.brandCheck(e,n),ee(e))throw TypeError(`Body is unusable: Body has already been read`);k(e[f]);let r=s(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[f].body==null?(a(Buffer.allocUnsafe(0)),r.promise):(await c(e[f].body,a,i),r.promise)}function ee(e){let t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function N(e){return JSON.parse(u(e))}function te(e){let t=e[f].headersList,n=l(t);return n===`failure`?null:n}t.exports={extractBody:E,safelyExtractBody:D,cloneBody:O,mixinBody:j,streamRegistry:T,hasFinalizationRegistry:w,bodyUnusable:ee}})),ft=P(((e,t)=>{let n=F(`node:assert`),r=L(),{channels:i}=Ke(),a=Xe(),{RequestContentLengthMismatchError:o,ResponseContentLengthMismatchError:s,RequestAbortedError:c,HeadersTimeoutError:l,HeadersOverflowError:u,SocketError:d,InformationalError:f,BodyTimeoutError:p,HTTPParserError:m,ResponseExceededMaxSizeError:h}=I(),{kUrl:g,kReset:_,kClient:v,kParser:y,kBlocking:b,kRunning:x,kPending:S,kSize:C,kWriting:w,kQueue:T,kNoRef:E,kKeepAliveDefaultTimeout:D,kHostHeader:O,kPendingIdx:k,kRunningIdx:A,kError:j,kPipelining:M,kSocket:ee,kKeepAliveTimeoutValue:N,kMaxHeadersSize:te,kKeepAliveMaxTimeout:ne,kKeepAliveTimeoutThreshold:re,kHeadersTimeout:ie,kBodyTimeout:ae,kStrictContentLength:oe,kMaxRequests:se,kCounter:ce,kMaxResponseSize:le,kOnError:ue,kResume:de,kHTTPContext:fe}=Ue(),pe=$e(),me=Buffer.alloc(0),he=Buffer[Symbol.species],ge=r.addListener,_e=r.removeAllListeners,ve;async function ye(){let e=process.env.JEST_WORKER_ID?et():void 0,t;try{t=await WebAssembly.compile(tt())}catch{t=await WebAssembly.compile(e||et())}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,r)=>{n(Se.ptr===e);let i=t-P+Ce.byteOffset;return Se.onStatus(new he(Ce.buffer,i,r))||0},wasm_on_message_begin:e=>(n(Se.ptr===e),Se.onMessageBegin()||0),wasm_on_header_field:(e,t,r)=>{n(Se.ptr===e);let i=t-P+Ce.byteOffset;return Se.onHeaderField(new he(Ce.buffer,i,r))||0},wasm_on_header_value:(e,t,r)=>{n(Se.ptr===e);let i=t-P+Ce.byteOffset;return Se.onHeaderValue(new he(Ce.buffer,i,r))||0},wasm_on_headers_complete:(e,t,r,i)=>(n(Se.ptr===e),Se.onHeadersComplete(t,!!r,!!i)||0),wasm_on_body:(e,t,r)=>{n(Se.ptr===e);let i=t-P+Ce.byteOffset;return Se.onBody(new he(Ce.buffer,i,r))||0},wasm_on_message_complete:e=>(n(Se.ptr===e),Se.onMessageComplete()||0)}})}let be=null,xe=ye();xe.catch();let Se=null,Ce=null,we=0,P=null;var Te=class{constructor(e,t,{exports:r}){n(Number.isFinite(e[te])&&e[te]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(pe.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText=``,this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[te],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive=``,this.contentLength=``,this.connection=``,this.maxResponseSize=e[le]}setTimeout(e,t){e!==this.timeoutValue||t&1^this.timeoutType&1?(this.timeout&&=(a.clearTimeout(this.timeout),null),e&&(t&1?this.timeout=a.setFastTimeout(Ee,e,new WeakRef(this)):(this.timeout=setTimeout(Ee,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=t}resume(){this.socket.destroyed||!this.paused||(n(this.ptr!=null),n(Se==null),this.llhttp.llhttp_resume(this.ptr),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||me),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){n(this.ptr!=null),n(Se==null),n(!this.paused);let{socket:t,llhttp:i}=this;e.length>we&&(P&&i.free(P),we=Math.ceil(e.length/4096)*4096,P=i.malloc(we)),new Uint8Array(i.memory.buffer,P,we).set(e);try{let n;try{Ce=e,Se=this,n=i.llhttp_execute(this.ptr,P,e.length)}catch(e){throw e}finally{Se=null,Ce=null}let r=i.llhttp_get_error_pos(this.ptr)-P;if(n===pe.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(r));else if(n===pe.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(r));else if(n!==pe.ERROR.OK){let t=i.llhttp_get_error_reason(this.ptr),a=``;if(t){let e=new Uint8Array(i.memory.buffer,t).indexOf(0);a=`Response does not match the HTTP/1.1 protocol (`+Buffer.from(i.memory.buffer,t,e).toString()+`)`}throw new m(a,pe.ERROR[n],e.slice(r))}}catch(e){r.destroy(t,e)}}destroy(){n(this.ptr!=null),n(Se==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&a.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:t}=this;if(e.destroyed)return-1;let n=t[T][t[A]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let t=this.headers.length;t&1?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;(t&1)==1?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);let n=this.headers[t-2];if(n.length===10){let t=r.bufferToLowerCasedHeaderName(n);t===`keep-alive`?this.keepAlive+=e.toString():t===`connection`&&(this.connection+=e.toString())}else n.length===14&&r.bufferToLowerCasedHeaderName(n)===`content-length`&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new u)}onUpgrade(e){let{upgrade:t,client:i,socket:a,headers:o,statusCode:s}=this;n(t),n(i[ee]===a),n(!a.destroyed),n(!this.paused),n((o.length&1)==0);let c=i[T][i[A]];n(c),n(c.upgrade||c.method===`CONNECT`),this.statusCode=null,this.statusText=``,this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,a.unshift(e),a[y].destroy(),a[y]=null,a[v]=null,a[j]=null,_e(a),i[ee]=null,i[fe]=null,i[T][i[A]++]=null,i.emit(`disconnect`,i[g],[i],new f(`upgrade`));try{c.onUpgrade(s,o,a)}catch(e){r.destroy(a,e)}i[de]()}onHeadersComplete(e,t,i){let{client:a,socket:o,headers:s,statusText:c}=this;if(o.destroyed)return-1;let l=a[T][a[A]];if(!l)return-1;if(n(!this.upgrade),n(this.statusCode<200),e===100)return r.destroy(o,new d(`bad response`,r.getSocketInfo(o))),-1;if(t&&!l.upgrade)return r.destroy(o,new d(`bad upgrade`,r.getSocketInfo(o))),-1;if(n(this.timeoutType===3),this.statusCode=e,this.shouldKeepAlive=i||l.method===`HEAD`&&!o[_]&&this.connection.toLowerCase()===`keep-alive`,this.statusCode>=200){let e=l.bodyTimeout==null?a[ae]:l.bodyTimeout;this.setTimeout(e,5)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method===`CONNECT`||t)return n(a[x]===1),this.upgrade=!0,2;if(n((this.headers.length&1)==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&a[M]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){let t=Math.min(e-a[re],a[ne]);t<=0?o[_]=!0:a[N]=t}else a[N]=a[D]}else o[_]=!0;let u=l.onHeaders(e,s,this.resume,c)===!1;return l.aborted?-1:l.method===`HEAD`||e<200?1:(o[b]&&(o[b]=!1,a[de]()),u?pe.ERROR.PAUSED:0)}onBody(e){let{client:t,socket:i,statusCode:a,maxResponseSize:o}=this;if(i.destroyed)return-1;let s=t[T][t[A]];if(n(s),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),n(a>=200),o>-1&&this.bytesRead+e.length>o)return r.destroy(i,new h),-1;if(this.bytesRead+=e.length,s.onData(e)===!1)return pe.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:t,statusCode:i,upgrade:a,headers:o,contentLength:c,bytesRead:l,shouldKeepAlive:u}=this;if(t.destroyed&&(!i||u))return-1;if(a)return;n(i>=100),n((this.headers.length&1)==0);let d=e[T][e[A]];if(n(d),this.statusCode=null,this.statusText=``,this.bytesRead=0,this.contentLength=``,this.keepAlive=``,this.connection=``,this.headers=[],this.headersSize=0,!(i<200)){if(d.method!==`HEAD`&&c&&l!==parseInt(c,10))return r.destroy(t,new s),-1;if(d.onComplete(o),e[T][e[A]++]=null,t[w])return n(e[x]===0),r.destroy(t,new f(`reset`)),pe.ERROR.PAUSED;if(!u||t[_]&&e[x]===0)return r.destroy(t,new f(`reset`)),pe.ERROR.PAUSED;e[M]==null||e[M]===1?setImmediate(()=>e[de]()):e[de]()}}};function Ee(e){let{socket:t,timeoutType:i,client:a,paused:o}=e.deref();i===3?(!t[w]||t.writableNeedDrain||a[x]>1)&&(n(!o,`cannot be paused while waiting for headers`),r.destroy(t,new l)):i===5?o||r.destroy(t,new p):i===8&&(n(a[x]===0&&a[N]),r.destroy(t,new f(`socket idle timeout`)))}async function De(e,t){e[ee]=t,be||(be=await xe,xe=null),t[E]=!1,t[w]=!1,t[_]=!1,t[b]=!1,t[y]=new Te(e,t,be),ge(t,`error`,function(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`);let t=this[y];if(e.code===`ECONNRESET`&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[j]=e,this[v][ue](e)}),ge(t,`readable`,function(){let e=this[y];e&&e.readMore()}),ge(t,`end`,function(){let e=this[y];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}r.destroy(this,new d(`other side closed`,r.getSocketInfo(this)))}),ge(t,`close`,function(){let e=this[v],t=this[y];t&&(!this[j]&&t.statusCode&&!t.shouldKeepAlive&&t.onMessageComplete(),this[y].destroy(),this[y]=null);let i=this[j]||new d(`closed`,r.getSocketInfo(this));if(e[ee]=null,e[fe]=null,e.destroyed){n(e[S]===0);let t=e[T].splice(e[A]);for(let n=0;n0&&i.code!==`UND_ERR_INFO`){let t=e[T][e[A]];e[T][e[A]++]=null,r.errorRequest(e,t,i)}e[k]=e[A],n(e[x]===0),e.emit(`disconnect`,e[g],[e],i),e[de]()});let i=!1;return t.on(`close`,()=>{i=!0}),{version:`h1`,defaultPipelining:1,write(...t){return Ae(e,...t)},resume(){Oe(e)},destroy(e,n){i?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(n){return!!(t[w]||t[_]||t[b]||n&&(e[x]>0&&!n.idempotent||e[x]>0&&(n.upgrade||n.method===`CONNECT`)||e[x]>0&&r.bodyLength(n.body)!==0&&(r.isStream(n.body)||r.isAsyncIterable(n.body)||r.isFormDataLike(n.body))))}}}function Oe(e){let t=e[ee];if(t&&!t.destroyed){if(e[C]===0?!t[E]&&t.unref&&(t.unref(),t[E]=!0):t[E]&&t.ref&&(t.ref(),t[E]=!1),e[C]===0)t[y].timeoutType!==8&&t[y].setTimeout(e[N],8);else if(e[x]>0&&t[y].statusCode<200&&t[y].timeoutType!==3){let n=e[T][e[A]],r=n.headersTimeout==null?e[ie]:n.headersTimeout;t[y].setTimeout(r,3)}}}function ke(e){return e!==`GET`&&e!==`HEAD`&&e!==`OPTIONS`&&e!==`TRACE`&&e!==`CONNECT`}function Ae(e,t){let{method:a,path:s,host:l,upgrade:u,blocking:d,reset:p}=t,{body:m,headers:h,contentLength:g}=t,v=a===`PUT`||a===`POST`||a===`PATCH`||a===`QUERY`||a===`PROPFIND`||a===`PROPPATCH`;if(r.isFormDataLike(m)){ve||=dt().extractBody;let[e,n]=ve(m);t.contentType??h.push(`content-type`,n),m=e.stream,g=e.length}else r.isBlobLike(m)&&t.contentType==null&&m.type&&h.push(`content-type`,m.type);m&&typeof m.read==`function`&&m.read(0);let y=r.bodyLength(m);if(g=y??g,g===null&&(g=t.contentLength),g===0&&!v&&(g=null),ke(a)&&g>0&&t.contentLength!==null&&t.contentLength!==g){if(e[oe])return r.errorRequest(e,t,new o),!1;process.emitWarning(new o)}let x=e[ee],S=n=>{t.aborted||t.completed||(r.errorRequest(e,t,n||new c),r.destroy(m),r.destroy(x,new f(`aborted`)))};try{t.onConnect(S)}catch(n){r.errorRequest(e,t,n)}if(t.aborted)return!1;a===`HEAD`&&(x[_]=!0),(u||a===`CONNECT`)&&(x[_]=!0),p!=null&&(x[_]=p),e[se]&&x[ce]++>=e[se]&&(x[_]=!0),d&&(x[b]=!0);let C=`${a} ${s} HTTP/1.1\r\n`;if(typeof l==`string`?C+=`host: ${l}\r\n`:C+=e[O],u?C+=`connection: upgrade\r\nupgrade: ${u}\r\n`:e[M]&&!x[_]?C+=`connection: keep-alive\r +Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?u+=e.byteLength+c.size+o.byteLength:s=!0}let f=S.encode(`--${t}--\r\n`);a.push(f),u+=f.byteLength,s&&(u=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},d=`multipart/form-data; boundary=${t}`}else if(i(e))l=e,u=e.size,e.type&&(d=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(n.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);s=e instanceof ReadableStream?e:r(e)}if((typeof l==`string`||n.isBuffer(l))&&(u=Buffer.byteLength(l)),c!=null){let t;s=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:n,done:r}=await t.next();if(r)queueMicrotask(()=>{e.close(),e.byobRequest?.respond(0)});else if(!g(s)){let t=new Uint8Array(n);t.byteLength&&e.enqueue(t)}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}return[{stream:s,source:l,length:u},d]}function D(e,t=!1){return e instanceof ReadableStream&&(h(!n.isDisturbed(e),`The body has already been consumed.`),h(!e.locked,`The stream is locked.`)),E(e,t)}function O(e,t){let[n,r]=t.stream.tee();return t.stream=n,{stream:r,length:t.length,source:t.source}}function k(e){if(e.aborted)throw new DOMException(`The operation was aborted.`,`AbortError`)}function A(e){return{blob(){return M(this,e=>{let t=te(this);return t===null?t=``:t&&=y(t),new m([e],{type:t})},e)},arrayBuffer(){return M(this,e=>new Uint8Array(e).buffer,e)},text(){return M(this,u,e)},json(){return M(this,N,e)},formData(){return M(this,e=>{let t=te(this);if(t!==null)switch(t.essence){case`multipart/form-data`:{let n=b(e,t);if(n===`failure`)throw TypeError(`Failed to parse body as FormData.`);let r=new d;return r[f]=n,r}case`application/x-www-form-urlencoded`:{let t=new URLSearchParams(e.toString()),n=new d;for(let[e,r]of t)n.append(e,r);return n}}throw TypeError(`Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".`)},e)},bytes(){return M(this,e=>new Uint8Array(e),e)}}}function j(e){Object.assign(e.prototype,A(e))}async function M(e,t,n){if(p.brandCheck(e,n),ee(e))throw TypeError(`Body is unusable: Body has already been read`);k(e[f]);let r=s(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[f].body==null?(a(Buffer.allocUnsafe(0)),r.promise):(await c(e[f].body,a,i),r.promise)}function ee(e){let t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function N(e){return JSON.parse(u(e))}function te(e){let t=e[f].headersList,n=l(t);return n===`failure`?null:n}t.exports={extractBody:E,safelyExtractBody:D,cloneBody:O,mixinBody:j,streamRegistry:T,hasFinalizationRegistry:w,bodyUnusable:ee}})),mt=P(((e,t)=>{let n=F(`node:assert`),r=L(),{channels:i}=Je(),a=Qe(),{RequestContentLengthMismatchError:o,ResponseContentLengthMismatchError:s,RequestAbortedError:c,HeadersTimeoutError:l,HeadersOverflowError:u,SocketError:d,InformationalError:f,BodyTimeoutError:p,HTTPParserError:m,ResponseExceededMaxSizeError:h}=I(),{kUrl:g,kReset:_,kClient:v,kParser:y,kBlocking:b,kRunning:x,kPending:S,kSize:C,kWriting:w,kQueue:T,kNoRef:E,kKeepAliveDefaultTimeout:D,kHostHeader:O,kPendingIdx:k,kRunningIdx:A,kError:j,kPipelining:M,kSocket:ee,kKeepAliveTimeoutValue:N,kMaxHeadersSize:te,kKeepAliveMaxTimeout:ne,kKeepAliveTimeoutThreshold:re,kHeadersTimeout:ie,kBodyTimeout:ae,kStrictContentLength:oe,kMaxRequests:se,kCounter:ce,kMaxResponseSize:le,kOnError:ue,kResume:de,kHTTPContext:fe}=Ge(),pe=tt(),me=Buffer.alloc(0),he=Buffer[Symbol.species],ge=r.addListener,_e=r.removeAllListeners,ve;async function ye(){let e=process.env.JEST_WORKER_ID?nt():void 0,t;try{t=await WebAssembly.compile(rt())}catch{t=await WebAssembly.compile(e||nt())}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,r)=>{n(Se.ptr===e);let i=t-Te+Ce.byteOffset;return Se.onStatus(new he(Ce.buffer,i,r))||0},wasm_on_message_begin:e=>(n(Se.ptr===e),Se.onMessageBegin()||0),wasm_on_header_field:(e,t,r)=>{n(Se.ptr===e);let i=t-Te+Ce.byteOffset;return Se.onHeaderField(new he(Ce.buffer,i,r))||0},wasm_on_header_value:(e,t,r)=>{n(Se.ptr===e);let i=t-Te+Ce.byteOffset;return Se.onHeaderValue(new he(Ce.buffer,i,r))||0},wasm_on_headers_complete:(e,t,r,i)=>(n(Se.ptr===e),Se.onHeadersComplete(t,!!r,!!i)||0),wasm_on_body:(e,t,r)=>{n(Se.ptr===e);let i=t-Te+Ce.byteOffset;return Se.onBody(new he(Ce.buffer,i,r))||0},wasm_on_message_complete:e=>(n(Se.ptr===e),Se.onMessageComplete()||0)}})}let be=null,xe=ye();xe.catch();let Se=null,Ce=null,we=0,Te=null;var Ee=class{constructor(e,t,{exports:r}){n(Number.isFinite(e[te])&&e[te]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(pe.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText=``,this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[te],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive=``,this.contentLength=``,this.connection=``,this.maxResponseSize=e[le]}setTimeout(e,t){e!==this.timeoutValue||t&1^this.timeoutType&1?(this.timeout&&=(a.clearTimeout(this.timeout),null),e&&(t&1?this.timeout=a.setFastTimeout(P,e,new WeakRef(this)):(this.timeout=setTimeout(P,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=t}resume(){this.socket.destroyed||!this.paused||(n(this.ptr!=null),n(Se==null),this.llhttp.llhttp_resume(this.ptr),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||me),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){n(this.ptr!=null),n(Se==null),n(!this.paused);let{socket:t,llhttp:i}=this;e.length>we&&(Te&&i.free(Te),we=Math.ceil(e.length/4096)*4096,Te=i.malloc(we)),new Uint8Array(i.memory.buffer,Te,we).set(e);try{let n;try{Ce=e,Se=this,n=i.llhttp_execute(this.ptr,Te,e.length)}catch(e){throw e}finally{Se=null,Ce=null}let r=i.llhttp_get_error_pos(this.ptr)-Te;if(n===pe.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(r));else if(n===pe.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(r));else if(n!==pe.ERROR.OK){let t=i.llhttp_get_error_reason(this.ptr),a=``;if(t){let e=new Uint8Array(i.memory.buffer,t).indexOf(0);a=`Response does not match the HTTP/1.1 protocol (`+Buffer.from(i.memory.buffer,t,e).toString()+`)`}throw new m(a,pe.ERROR[n],e.slice(r))}}catch(e){r.destroy(t,e)}}destroy(){n(this.ptr!=null),n(Se==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&a.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:t}=this;if(e.destroyed)return-1;let n=t[T][t[A]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let t=this.headers.length;t&1?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;(t&1)==1?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);let n=this.headers[t-2];if(n.length===10){let t=r.bufferToLowerCasedHeaderName(n);t===`keep-alive`?this.keepAlive+=e.toString():t===`connection`&&(this.connection+=e.toString())}else n.length===14&&r.bufferToLowerCasedHeaderName(n)===`content-length`&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new u)}onUpgrade(e){let{upgrade:t,client:i,socket:a,headers:o,statusCode:s}=this;n(t),n(i[ee]===a),n(!a.destroyed),n(!this.paused),n((o.length&1)==0);let c=i[T][i[A]];n(c),n(c.upgrade||c.method===`CONNECT`),this.statusCode=null,this.statusText=``,this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,a.unshift(e),a[y].destroy(),a[y]=null,a[v]=null,a[j]=null,_e(a),i[ee]=null,i[fe]=null,i[T][i[A]++]=null,i.emit(`disconnect`,i[g],[i],new f(`upgrade`));try{c.onUpgrade(s,o,a)}catch(e){r.destroy(a,e)}i[de]()}onHeadersComplete(e,t,i){let{client:a,socket:o,headers:s,statusText:c}=this;if(o.destroyed)return-1;let l=a[T][a[A]];if(!l)return-1;if(n(!this.upgrade),n(this.statusCode<200),e===100)return r.destroy(o,new d(`bad response`,r.getSocketInfo(o))),-1;if(t&&!l.upgrade)return r.destroy(o,new d(`bad upgrade`,r.getSocketInfo(o))),-1;if(n(this.timeoutType===3),this.statusCode=e,this.shouldKeepAlive=i||l.method===`HEAD`&&!o[_]&&this.connection.toLowerCase()===`keep-alive`,this.statusCode>=200){let e=l.bodyTimeout==null?a[ae]:l.bodyTimeout;this.setTimeout(e,5)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method===`CONNECT`||t)return n(a[x]===1),this.upgrade=!0,2;if(n((this.headers.length&1)==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&a[M]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){let t=Math.min(e-a[re],a[ne]);t<=0?o[_]=!0:a[N]=t}else a[N]=a[D]}else o[_]=!0;let u=l.onHeaders(e,s,this.resume,c)===!1;return l.aborted?-1:l.method===`HEAD`||e<200?1:(o[b]&&(o[b]=!1,a[de]()),u?pe.ERROR.PAUSED:0)}onBody(e){let{client:t,socket:i,statusCode:a,maxResponseSize:o}=this;if(i.destroyed)return-1;let s=t[T][t[A]];if(n(s),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),n(a>=200),o>-1&&this.bytesRead+e.length>o)return r.destroy(i,new h),-1;if(this.bytesRead+=e.length,s.onData(e)===!1)return pe.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:t,statusCode:i,upgrade:a,headers:o,contentLength:c,bytesRead:l,shouldKeepAlive:u}=this;if(t.destroyed&&(!i||u))return-1;if(a)return;n(i>=100),n((this.headers.length&1)==0);let d=e[T][e[A]];if(n(d),this.statusCode=null,this.statusText=``,this.bytesRead=0,this.contentLength=``,this.keepAlive=``,this.connection=``,this.headers=[],this.headersSize=0,!(i<200)){if(d.method!==`HEAD`&&c&&l!==parseInt(c,10))return r.destroy(t,new s),-1;if(d.onComplete(o),e[T][e[A]++]=null,t[w])return n(e[x]===0),r.destroy(t,new f(`reset`)),pe.ERROR.PAUSED;if(!u||t[_]&&e[x]===0)return r.destroy(t,new f(`reset`)),pe.ERROR.PAUSED;e[M]==null||e[M]===1?setImmediate(()=>e[de]()):e[de]()}}};function P(e){let{socket:t,timeoutType:i,client:a,paused:o}=e.deref();i===3?(!t[w]||t.writableNeedDrain||a[x]>1)&&(n(!o,`cannot be paused while waiting for headers`),r.destroy(t,new l)):i===5?o||r.destroy(t,new p):i===8&&(n(a[x]===0&&a[N]),r.destroy(t,new f(`socket idle timeout`)))}async function De(e,t){e[ee]=t,be||(be=await xe,xe=null),t[E]=!1,t[w]=!1,t[_]=!1,t[b]=!1,t[y]=new Ee(e,t,be),ge(t,`error`,function(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`);let t=this[y];if(e.code===`ECONNRESET`&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[j]=e,this[v][ue](e)}),ge(t,`readable`,function(){let e=this[y];e&&e.readMore()}),ge(t,`end`,function(){let e=this[y];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}r.destroy(this,new d(`other side closed`,r.getSocketInfo(this)))}),ge(t,`close`,function(){let e=this[v],t=this[y];t&&(!this[j]&&t.statusCode&&!t.shouldKeepAlive&&t.onMessageComplete(),this[y].destroy(),this[y]=null);let i=this[j]||new d(`closed`,r.getSocketInfo(this));if(e[ee]=null,e[fe]=null,e.destroyed){n(e[S]===0);let t=e[T].splice(e[A]);for(let n=0;n0&&i.code!==`UND_ERR_INFO`){let t=e[T][e[A]];e[T][e[A]++]=null,r.errorRequest(e,t,i)}e[k]=e[A],n(e[x]===0),e.emit(`disconnect`,e[g],[e],i),e[de]()});let i=!1;return t.on(`close`,()=>{i=!0}),{version:`h1`,defaultPipelining:1,write(...t){return Ae(e,...t)},resume(){Oe(e)},destroy(e,n){i?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(n){return!!(t[w]||t[_]||t[b]||n&&(e[x]>0&&!n.idempotent||e[x]>0&&(n.upgrade||n.method===`CONNECT`)||e[x]>0&&r.bodyLength(n.body)!==0&&(r.isStream(n.body)||r.isAsyncIterable(n.body)||r.isFormDataLike(n.body))))}}}function Oe(e){let t=e[ee];if(t&&!t.destroyed){if(e[C]===0?!t[E]&&t.unref&&(t.unref(),t[E]=!0):t[E]&&t.ref&&(t.ref(),t[E]=!1),e[C]===0)t[y].timeoutType!==8&&t[y].setTimeout(e[N],8);else if(e[x]>0&&t[y].statusCode<200&&t[y].timeoutType!==3){let n=e[T][e[A]],r=n.headersTimeout==null?e[ie]:n.headersTimeout;t[y].setTimeout(r,3)}}}function ke(e){return e!==`GET`&&e!==`HEAD`&&e!==`OPTIONS`&&e!==`TRACE`&&e!==`CONNECT`}function Ae(e,t){let{method:a,path:s,host:l,upgrade:u,blocking:d,reset:p}=t,{body:m,headers:h,contentLength:g}=t,v=a===`PUT`||a===`POST`||a===`PATCH`||a===`QUERY`||a===`PROPFIND`||a===`PROPPATCH`;if(r.isFormDataLike(m)){ve||=pt().extractBody;let[e,n]=ve(m);t.contentType??h.push(`content-type`,n),m=e.stream,g=e.length}else r.isBlobLike(m)&&t.contentType==null&&m.type&&h.push(`content-type`,m.type);m&&typeof m.read==`function`&&m.read(0);let y=r.bodyLength(m);if(g=y??g,g===null&&(g=t.contentLength),g===0&&!v&&(g=null),ke(a)&&g>0&&t.contentLength!==null&&t.contentLength!==g){if(e[oe])return r.errorRequest(e,t,new o),!1;process.emitWarning(new o)}let x=e[ee],S=n=>{t.aborted||t.completed||(r.errorRequest(e,t,n||new c),r.destroy(m),r.destroy(x,new f(`aborted`)))};try{t.onConnect(S)}catch(n){r.errorRequest(e,t,n)}if(t.aborted)return!1;a===`HEAD`&&(x[_]=!0),(u||a===`CONNECT`)&&(x[_]=!0),p!=null&&(x[_]=p),e[se]&&x[ce]++>=e[se]&&(x[_]=!0),d&&(x[b]=!0);let C=`${a} ${s} HTTP/1.1\r\n`;if(typeof l==`string`?C+=`host: ${l}\r\n`:C+=e[O],u?C+=`connection: upgrade\r\nupgrade: ${u}\r\n`:e[M]&&!x[_]?C+=`connection: keep-alive\r `:C+=`connection: close\r `,Array.isArray(h))for(let e=0;e{t.removeListener(`error`,g)}),!d){let e=new c;queueMicrotask(()=>g(e))}},g=function(e){if(!d){if(d=!0,n(o.destroyed||o[w]&&i[x]<=1),o.off(`drain`,m).off(`error`,g),t.removeListener(`data`,p).removeListener(`end`,g).removeListener(`close`,h),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?r.destroy(t,e):r.destroy(t)}};t.on(`data`,p).on(`end`,g).on(`error`,g).on(`close`,h),t.resume&&t.resume(),o.on(`drain`,m).on(`error`,g),t.errorEmitted??t.errored?setImmediate(()=>g(t.errored)):(t.endEmitted??t.readableEnded)&&setImmediate(()=>g(null)),(t.closeEmitted??t.closed)&&setImmediate(h)}function Me(e,t,i,a,o,s,c,l){try{t?r.isBuffer(t)&&(n(s===t.byteLength,`buffer body must have content length`),o.cork(),o.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),o.write(t),o.uncork(),a.onBodySent(t),!l&&a.reset!==!1&&(o[_]=!0)):s===0?o.write(`${c}content-length: 0\r\n\r\n`,`latin1`):(n(s===null,`no body must not have content length`),o.write(`${c}\r\n`,`latin1`)),a.onRequestSent(),i[de]()}catch(t){e(t)}}async function Ne(e,t,r,i,a,s,c,l){n(s===t.size,`blob body must have content length`);try{if(s!=null&&s!==t.size)throw new o;let e=Buffer.from(await t.arrayBuffer());a.cork(),a.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),a.write(e),a.uncork(),i.onBodySent(e),i.onRequestSent(),!l&&i.reset!==!1&&(a[_]=!0),r[de]()}catch(t){e(t)}}async function Pe(e,t,r,i,a,o,s,c){n(o!==0||r[x]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let d=()=>new Promise((e,t)=>{n(l===null),a[j]?t(a[j]):l=e});a.on(`close`,u).on(`drain`,u);let f=new Fe({abort:e,socket:a,request:i,contentLength:o,client:r,expectsPayload:c,header:s});try{for await(let e of t){if(a[j])throw a[j];f.write(e)||await d()}f.end()}catch(e){f.destroy(e)}finally{a.off(`close`,u).off(`drain`,u)}}var Fe=class{constructor({abort:e,socket:t,request:n,contentLength:r,client:i,expectsPayload:a,header:o}){this.socket=t,this.request=n,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=o,this.abort=e,t[w]=!0}write(e){let{socket:t,request:n,contentLength:r,client:i,bytesWritten:a,expectsPayload:s,header:c}=this;if(t[j])throw t[j];if(t.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(r!==null&&a+l>r){if(i[oe])throw new o;process.emitWarning(new o)}t.cork(),a===0&&(!s&&n.reset!==!1&&(t[_]=!0),r===null?t.write(`${c}transfer-encoding: chunked\r\n`,`latin1`):t.write(`${c}content-length: ${r}\r\n\r\n`,`latin1`)),r===null&&t.write(`\r\n${l.toString(16)}\r\n`,`latin1`),this.bytesWritten+=l;let u=t.write(e);return t.uncork(),n.onBodySent(e),u||t[y].timeout&&t[y].timeoutType===3&&t[y].timeout.refresh&&t[y].timeout.refresh(),u}end(){let{socket:e,contentLength:t,client:n,bytesWritten:r,expectsPayload:i,header:a,request:s}=this;if(s.onRequestSent(),e[w]=!1,e[j])throw e[j];if(!e.destroyed){if(r===0?i?e.write(`${a}content-length: 0\r\n\r\n`,`latin1`):e.write(`${a}\r\n`,`latin1`):t===null&&e.write(`\r 0\r \r -`,`latin1`),t!==null&&r!==t){if(n[oe])throw new o;process.emitWarning(new o)}e[y].timeout&&e[y].timeoutType===3&&e[y].timeout.refresh&&e[y].timeout.refresh(),n[de]()}}destroy(e){let{socket:t,client:r,abort:i}=this;t[w]=!1,e&&(n(r[x]<=1,`pipeline should only contain this request`),i(e))}};t.exports=De})),pt=P(((e,t)=>{let n=F(`node:assert`),{pipeline:r}=F(`node:stream`),i=L(),{RequestContentLengthMismatchError:a,RequestAbortedError:o,SocketError:s,InformationalError:c}=I(),{kUrl:l,kReset:u,kClient:d,kRunning:f,kPending:p,kQueue:m,kPendingIdx:h,kRunningIdx:g,kError:_,kSocket:v,kStrictContentLength:y,kOnError:b,kMaxConcurrentStreams:x,kHTTP2Session:S,kResume:C,kSize:w,kHTTPContext:T}=Ue(),E=Symbol(`open streams`),D,O=!1,k;try{k=F(`node:http2`)}catch{k={constants:{}}}let{constants:{HTTP2_HEADER_AUTHORITY:A,HTTP2_HEADER_METHOD:j,HTTP2_HEADER_PATH:M,HTTP2_HEADER_SCHEME:ee,HTTP2_HEADER_CONTENT_LENGTH:N,HTTP2_HEADER_EXPECT:te,HTTP2_HEADER_STATUS:ne}}=k;function re(e){let t=[];for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.push(Buffer.from(n),Buffer.from(e));else t.push(Buffer.from(n),Buffer.from(r));return t}async function ie(e,t){e[v]=t,O||(O=!0,process.emitWarning(`H2 support is experimental, expect them to change at any time.`,{code:`UNDICI-H2`}));let r=k.connect(e[l],{createConnection:()=>t,peerMaxConcurrentStreams:e[x]});r[E]=0,r[d]=e,r[v]=t,i.addListener(r,`error`,oe),i.addListener(r,`frameError`,se),i.addListener(r,`end`,ce),i.addListener(r,`goaway`,le),i.addListener(r,`close`,function(){let{[d]:e}=this,{[v]:t}=e,r=this[v][_]||this[_]||new s(`closed`,i.getSocketInfo(t));if(e[S]=null,e.destroyed){n(e[p]===0);let t=e[m].splice(e[g]);for(let n=0;n{a=!0}),{version:`h2`,defaultPipelining:1/0,write(...t){return de(e,...t)},resume(){ae(e)},destroy(e,n){a?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(){return!1}}}function ae(e){let t=e[v];t?.destroyed===!1&&(e[w]===0&&e[x]===0?(t.unref(),e[S].unref()):(t.ref(),e[S].ref()))}function oe(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`),this[v][_]=e,this[d][b](e)}function se(e,t,n){if(n===0){let n=new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[v][_]=n,this[d][b](n)}}function ce(){let e=new s(`other side closed`,i.getSocketInfo(this[v]));this.destroy(e),i.destroy(this[v],e)}function le(e){let t=this[_]||new s(`HTTP/2: "GOAWAY" frame received with code ${e}`,i.getSocketInfo(this)),r=this[d];if(r[v]=null,r[T]=null,this[S]!=null&&(this[S].destroy(t),this[S]=null),i.destroy(this[v],t),r[g]{t.aborted||t.completed||(n||=new o,i.errorRequest(e,t,n),T!=null&&i.destroy(T,n),i.destroy(x,n),e[m][e[g]++]=null,e[C]())};try{t.onConnect(ie)}catch(n){i.errorRequest(e,t,n)}if(t.aborted)return!1;if(s===`CONNECT`)return r.ref(),T=r.request(w,{endStream:!1,signal:_}),T.id&&!T.pending?(t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null):T.once(`ready`,()=>{t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),!0;w[M]=u,w[ee]=`https`;let ae=s===`PUT`||s===`POST`||s===`PATCH`;x&&typeof x.read==`function`&&x.read(0);let oe=i.bodyLength(x);if(i.isFormDataLike(x)){D??=dt().extractBody;let[e,t]=D(x);w[`content-type`]=t,x=e.stream,oe=e.length}if(oe??=t.contentLength,(oe===0||!ae)&&(oe=null),ue(s)&&oe>0&&t.contentLength!=null&&t.contentLength!==oe){if(e[y])return i.errorRequest(e,t,new a),!1;process.emitWarning(new a)}oe!=null&&(n(x,`no body must not have content length`),w[N]=`${oe}`),r.ref();let se=s===`GET`||s===`HEAD`||x===null;return p?(w[te]=`100-continue`,T=r.request(w,{endStream:se,signal:_}),T.once(`continue`,ce)):(T=r.request(w,{endStream:se,signal:_}),ce()),++r[E],T.once(`response`,n=>{let{[ne]:r,...a}=n;if(t.onResponseStarted(),t.aborted){let n=new o;i.errorRequest(e,t,n),i.destroy(T,n);return}t.onHeaders(Number(r),re(a),T.resume.bind(T),``)===!1&&T.pause(),T.on(`data`,e=>{t.onData(e)===!1&&T.pause()})}),T.once(`end`,()=>{(T.state?.state==null||T.state.state<6)&&t.onComplete([]),r[E]===0&&r.unref(),ie(new c(`HTTP/2: stream half-closed (remote)`)),e[m][e[g]++]=null,e[h]=e[g],e[C]()}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),T.once(`error`,function(e){ie(e)}),T.once(`frameError`,(e,t)=>{ie(new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}),!0;function ce(){!x||oe===0?fe(ie,T,null,e,t,e[v],oe,ae):i.isBuffer(x)?fe(ie,T,x,e,t,e[v],oe,ae):i.isBlobLike(x)?typeof x.stream==`function`?he(ie,T,x.stream(),e,t,e[v],oe,ae):me(ie,T,x,e,t,e[v],oe,ae):i.isStream(x)?pe(ie,e[v],ae,T,x,e,t,oe):i.isIterable(x)?he(ie,T,x,e,t,e[v],oe,ae):n(!1)}}function fe(e,t,r,a,o,s,c,l){try{r!=null&&i.isBuffer(r)&&(n(c===r.byteLength,`buffer body must have content length`),t.cork(),t.write(r),t.uncork(),t.end(),o.onBodySent(r)),l||(s[u]=!0),o.onRequestSent(),a[C]()}catch(t){e(t)}}function pe(e,t,a,o,s,c,l,d){n(d!==0||c[f]===0,`stream body cannot be pipelined`);let p=r(s,o,n=>{n?(i.destroy(p,n),e(n)):(i.removeAllListeners(p),l.onRequestSent(),a||(t[u]=!0),c[C]())});i.addListener(p,`data`,m);function m(e){l.onBodySent(e)}}async function me(e,t,r,i,o,s,c,l){n(c===r.size,`blob body must have content length`);try{if(c!=null&&c!==r.size)throw new a;let e=Buffer.from(await r.arrayBuffer());t.cork(),t.write(e),t.uncork(),t.end(),o.onBodySent(e),o.onRequestSent(),l||(s[u]=!0),i[C]()}catch(t){e(t)}}async function he(e,t,r,i,a,o,s,c){n(s!==0||i[f]===0,`iterator body cannot be pipelined`);let l=null;function d(){if(l){let e=l;l=null,e()}}let p=()=>new Promise((e,t)=>{n(l===null),o[_]?t(o[_]):l=e});t.on(`close`,d).on(`drain`,d);try{for await(let e of r){if(o[_])throw o[_];let n=t.write(e);a.onBodySent(e),n||await p()}t.end(),a.onRequestSent(),c||(o[u]=!0),i[C]()}catch(t){e(t)}finally{t.off(`close`,d).off(`drain`,d)}}t.exports=ie})),mt=P(((e,t)=>{let n=L(),{kBodyUsed:r}=Ue(),i=F(`node:assert`),{InvalidArgumentError:a}=I(),o=F(`node:events`),s=[300,301,302,303,307,308],c=Symbol(`body`);var l=class{constructor(e){this[c]=e,this[r]=!1}async*[Symbol.asyncIterator](){i(!this[r],`disturbed`),this[r]=!0,yield*this[c]}},u=class{constructor(e,t,s,c){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxRedirections must be a positive number`);n.validateHandler(c,s.method,s.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...s,maxRedirections:0},this.maxRedirections=t,this.handler=c,this.history=[],this.redirectionLimitReached=!1,n.isStream(this.opts.body)?(n.bodyLength(this.opts.body)===0&&this.opts.body.on(`data`,function(){i(!1)}),typeof this.opts.body.readableDidRead!=`boolean`&&(this.opts.body[r]=!1,o.prototype.on.call(this.opts.body,`data`,function(){this[r]=!0}))):(this.opts.body&&typeof this.opts.body.pipeTo==`function`||this.opts.body&&typeof this.opts.body!=`string`&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body))&&(this.opts.body=new l(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,i){if(this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:d(e,t),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(Error(`max redirects`)),this.redirectionLimitReached=!0,this.abort(Error(`max redirects`));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,r,i);let{origin:a,pathname:o,search:s}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),c=s?`${o}${s}`:o;this.opts.headers=p(this.opts.headers,e===303,this.opts.origin!==a),this.opts.path=c,this.opts.origin=a,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!==`HEAD`&&(this.opts.method=`GET`,this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function d(e,t){if(s.indexOf(e)===-1)return null;for(let e=0;e{let n=mt();function r({maxRedirections:e}){return t=>function(r,i){let{maxRedirections:a=e}=r;if(!a)return t(r,i);let o=new n(t,a,r,i);return r={...r,maxRedirections:0},t(r,o)}}t.exports=r})),gt=P(((e,t)=>{let n=F(`node:assert`),r=F(`node:net`),i=F(`node:http`),a=L(),{channels:o}=Ke(),s=qe(),c=Ye(),{InvalidArgumentError:l,InformationalError:u,ClientDestroyedError:d}=I(),f=Ze(),{kUrl:p,kServerName:m,kClient:h,kBusy:g,kConnect:_,kResuming:v,kRunning:y,kPending:b,kSize:x,kQueue:S,kConnected:C,kConnecting:w,kNeedDrain:T,kKeepAliveDefaultTimeout:E,kHostHeader:D,kPendingIdx:O,kRunningIdx:k,kError:A,kPipelining:j,kKeepAliveTimeoutValue:M,kMaxHeadersSize:ee,kKeepAliveMaxTimeout:N,kKeepAliveTimeoutThreshold:te,kHeadersTimeout:ne,kBodyTimeout:re,kStrictContentLength:ie,kConnector:ae,kMaxRedirections:oe,kMaxRequests:se,kCounter:ce,kClose:le,kDestroy:ue,kDispatch:de,kInterceptors:fe,kLocalAddress:pe,kMaxResponseSize:me,kOnError:he,kHTTPContext:ge,kMaxConcurrentStreams:_e,kResume:ve}=Ue(),ye=ft(),be=pt(),xe=!1,Se=Symbol(`kClosedResolve`),Ce=()=>{};function we(e){return e[j]??e[ge]?.defaultPipelining??1}var P=class extends c{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:s,requestTimeout:c,connectTimeout:u,bodyTimeout:d,idleTimeout:h,keepAlive:g,keepAliveTimeout:_,maxKeepAliveTimeout:y,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:x,socketPath:C,pipelining:w,tls:A,strictContentLength:ce,maxCachedSessions:le,maxRedirections:ue,connect:de,maxRequestsPerClient:ye,localAddress:be,maxResponseSize:Ce,autoSelectFamily:we,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:De,allowH2:F,webSocket:Oe}={}){if(super({webSocket:Oe}),g!==void 0)throw new l(`unsupported keepAlive, use pipelining=0 instead`);if(s!==void 0)throw new l(`unsupported socketTimeout, use headersTimeout & bodyTimeout instead`);if(c!==void 0)throw new l(`unsupported requestTimeout, use headersTimeout & bodyTimeout instead`);if(h!==void 0)throw new l(`unsupported idleTimeout, use keepAliveTimeout instead`);if(y!==void 0)throw new l(`unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead`);if(n!=null&&!Number.isFinite(n))throw new l(`invalid maxHeaderSize`);if(C!=null&&typeof C!=`string`)throw new l(`invalid socketPath`);if(u!=null&&(!Number.isFinite(u)||u<0))throw new l(`invalid connectTimeout`);if(_!=null&&(!Number.isFinite(_)||_<=0))throw new l(`invalid keepAliveTimeout`);if(b!=null&&(!Number.isFinite(b)||b<=0))throw new l(`invalid keepAliveMaxTimeout`);if(x!=null&&!Number.isFinite(x))throw new l(`invalid keepAliveTimeoutThreshold`);if(o!=null&&(!Number.isInteger(o)||o<0))throw new l(`headersTimeout must be a positive integer or zero`);if(d!=null&&(!Number.isInteger(d)||d<0))throw new l(`bodyTimeout must be a positive integer or zero`);if(de!=null&&typeof de!=`function`&&typeof de!=`object`)throw new l(`connect must be a function or an object`);if(ue!=null&&(!Number.isInteger(ue)||ue<0))throw new l(`maxRedirections must be a positive number`);if(ye!=null&&(!Number.isInteger(ye)||ye<0))throw new l(`maxRequestsPerClient must be a positive number`);if(be!=null&&(typeof be!=`string`||r.isIP(be)===0))throw new l(`localAddress must be valid string IP address`);if(Ce!=null&&(!Number.isInteger(Ce)||Ce<-1))throw new l(`maxResponseSize must be a positive number`);if(P!=null&&(!Number.isInteger(P)||P<-1))throw new l(`autoSelectFamilyAttemptTimeout must be a positive number`);if(F!=null&&typeof F!=`boolean`)throw new l(`allowH2 must be a valid boolean value`);if(De!=null&&(typeof De!=`number`||De<1))throw new l(`maxConcurrentStreams must be a positive integer, greater than 0`);typeof de!=`function`&&(de=f({...A,maxCachedSessions:le,allowH2:F,socketPath:C,timeout:u,...we?{autoSelectFamily:we,autoSelectFamilyAttemptTimeout:P}:void 0,...de})),t?.Client&&Array.isArray(t.Client)?(this[fe]=t.Client,xe||(xe=!0,process.emitWarning(`Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.`,{code:`UNDICI-CLIENT-INTERCEPTOR-DEPRECATED`}))):this[fe]=[Te({maxRedirections:ue})],this[p]=a.parseOrigin(e),this[ae]=de,this[j]=w??1,this[ee]=n||i.maxHeaderSize,this[E]=_??4e3,this[N]=b??6e5,this[te]=x??2e3,this[M]=this[E],this[m]=null,this[pe]=be??null,this[v]=0,this[T]=0,this[D]=`host: ${this[p].hostname}${this[p].port?`:${this[p].port}`:``}\r\n`,this[re]=d??3e5,this[ne]=o??3e5,this[ie]=ce??!0,this[oe]=ue,this[se]=ye,this[Se]=null,this[me]=Ce>-1?Ce:-1,this[_e]=De??100,this[ge]=null,this[S]=[],this[k]=0,this[O]=0,this[ve]=e=>ke(this,e),this[he]=e=>Ee(this,e)}get pipelining(){return this[j]}set pipelining(e){this[j]=e,this[ve](!0)}get[b](){return this[S].length-this[O]}get[y](){return this[O]-this[k]}get[x](){return this[S].length-this[k]}get[C](){return!!this[ge]&&!this[w]&&!this[ge].destroyed}get[g](){return!!(this[ge]?.busy(null)||this[x]>=(we(this)||1)||this[b]>0)}[_](e){De(this),this.once(`connect`,e)}[de](e,t){let n=new s(e.origin||this[p].origin,e,t);return this[S].push(n),this[v]||(a.bodyLength(n.body)==null&&a.isIterable(n.body)?(this[v]=1,queueMicrotask(()=>ke(this))):this[ve](!0)),this[v]&&this[T]!==2&&this[g]&&(this[T]=2),this[T]<2}async[le](){return new Promise(e=>{this[x]?this[Se]=e:e(null)})}async[ue](e){return new Promise(t=>{let n=this[S].splice(this[O]);for(let t=0;t{this[Se]&&(this[Se](),this[Se]=null),t(null)};this[ge]?(this[ge].destroy(e,r),this[ge]=null):queueMicrotask(r),this[ve]()})}};let Te=ht();function Ee(e,t){if(e[y]===0&&t.code!==`UND_ERR_INFO`&&t.code!==`UND_ERR_SOCKET`){n(e[O]===e[k]);let r=e[S].splice(e[k]);for(let n=0;n{e[ae]({host:t,hostname:i,protocol:s,port:c,servername:e[m],localAddress:e[pe]},(e,t)=>{e?r(e):n(t)})});if(e.destroyed){a.destroy(r.on(`error`,Ce),new d);return}n(r);try{e[ge]=r.alpnProtocol===`h2`?await be(e,r):await ye(e,r)}catch(e){throw r.destroy().on(`error`,Ce),e}e[w]=!1,r[ce]=0,r[se]=e[se],r[h]=e,r[A]=null,o.connected.hasSubscribers&&o.connected.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[ge]?.version,servername:e[m],localAddress:e[pe]},connector:e[ae],socket:r}),e.emit(`connect`,e[p],[e])}catch(r){if(e.destroyed)return;if(e[w]=!1,o.connectError.hasSubscribers&&o.connectError.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[ge]?.version,servername:e[m],localAddress:e[pe]},connector:e[ae],error:r}),r.code===`ERR_TLS_CERT_ALTNAME_INVALID`)for(n(e[y]===0);e[b]>0&&e[S][e[O]].servername===e[m];){let t=e[S][e[O]++];a.errorRequest(e,t,r)}else Ee(e,r);e.emit(`connectionError`,e[p],[e],r)}e[ve]()}function Oe(e){e[T]=0,e.emit(`drain`,e[p],[e])}function ke(e,t){e[v]!==2&&(e[v]=2,Ae(e,t),e[v]=0,e[k]>256&&(e[S].splice(0,e[k]),e[O]-=e[k],e[k]=0))}function Ae(e,t){for(;;){if(e.destroyed){n(e[b]===0);return}if(e[Se]&&!e[x]){e[Se](),e[Se]=null;return}if(e[ge]&&e[ge].resume(),e[g])e[T]=2;else if(e[T]===2){t?(e[T]=1,queueMicrotask(()=>Oe(e))):Oe(e);continue}if(e[b]===0||e[y]>=(we(e)||1))return;let r=e[S][e[O]];if(e[p].protocol===`https:`&&e[m]!==r.servername){if(e[y]>0)return;e[m]=r.servername,e[ge]?.destroy(new u(`servername changed`),()=>{e[ge]=null,ke(e)})}if(e[w])return;if(!e[ge]){De(e);return}if(e[ge].destroyed||e[ge].busy(r))return;!r.aborted&&e[ge].write(r)?e[O]++:e[S].splice(e[O],1)}}t.exports=P})),_t=P(((e,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}})),vt=P(((e,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=Ue(),c=Symbol(`pool`);t.exports=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}}})),yt=P(((e,t)=>{let n=Ye(),r=_t(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=Ue(),h=vt(),g=Symbol(`clients`),_=Symbol(`needDrain`),v=Symbol(`queue`),y=Symbol(`closed resolve`),b=Symbol(`onDrain`),x=Symbol(`onConnect`),S=Symbol(`onDisconnect`),C=Symbol(`onConnectionError`),w=Symbol(`get dispatcher`),T=Symbol(`add client`),E=Symbol(`remove client`),D=Symbol(`stats`);t.exports={PoolBase:class extends n{constructor(e){super(e),this[v]=new r,this[g]=[],this[c]=0;let t=this;this[b]=function(e,n){let r=t[v],i=!1;for(;!i;){let e=r.shift();if(!e)break;t[c]--,i=!this.dispatch(e.opts,e.handler)}this[_]=i,!this[_]&&t[_]&&(t[_]=!1,t.emit(`drain`,e,[t,...n])),t[y]&&r.isEmpty()&&Promise.all(t[g].map(e=>e.close())).then(t[y])},this[x]=(e,n)=>{t.emit(`connect`,e,[t,...n])},this[S]=(e,n,r)=>{t.emit(`disconnect`,e,[t,...n],r)},this[C]=(e,n,r)=>{t.emit(`connectionError`,e,[t,...n],r)},this[D]=new h(this)}get[l](){return this[_]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[_]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[D]}async[f](){this[v].isEmpty()?await Promise.all(this[g].map(e=>e.close())):await new Promise(e=>{this[y]=e})}async[p](e){for(;;){let t=this[v].shift();if(!t)break;t.handler.onError(e)}await Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[w]();return n?n.dispatch(e,t)||(n[_]=!0,this[_]=!this[w]()):(this[_]=!0,this[v].push({opts:e,handler:t}),this[c]++),!this[_]}[T](e){return e.on(`drain`,this[b]).on(`connect`,this[x]).on(`disconnect`,this[S]).on(`connectionError`,this[C]),this[g].push(e),this[_]&&queueMicrotask(()=>{this[_]&&this[b](e[d],[this,e])}),this}[E](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[_]=this[g].some(e=>!e[_]&&e.closed!==!0&&e.destroyed!==!0)}},kClients:g,kNeedDrain:_,kAddClient:T,kRemoveClient:E,kGetDispatcher:w}})),bt=P(((e,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=yt(),s=gt(),{InvalidArgumentError:c}=I(),l=L(),{kUrl:u,kInterceptors:d}=Ue(),f=Ze(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}t.exports=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:_,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y,allowH2:b,...x}={}){if(t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:b,socketPath:_,timeout:a,...v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y}:void 0,...i})),super(x),this[d]=x.interceptors?.Pool&&Array.isArray(x.interceptors.Pool)?x.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(x),connect:i,allowH2:b},this[p].interceptors=x.interceptors?{...x.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){for(let e of this[r])if(!e[i])return e;if(!this[m]||this[r].length{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=I(),{PoolBase:i,kClients:a,kNeedDrain:o,kAddClient:s,kRemoveClient:c,kGetDispatcher:l}=yt(),u=bt(),{kUrl:d,kInterceptors:f}=Ue(),{parseOrigin:p}=L(),m=Symbol(`factory`),h=Symbol(`options`),g=Symbol(`kGreatestCommonDivisor`),_=Symbol(`kCurrentWeight`),v=Symbol(`kIndex`),y=Symbol(`kWeight`),b=Symbol(`kMaxWeightPerServer`),x=Symbol(`kErrorPenalty`);function S(e,t){if(e===0)return t;for(;t!==0;){let n=t;t=e%t,e=n}return e}function C(e,t){return new u(e,t)}t.exports=class extends i{constructor(e=[],{factory:t=C,...n}={}){if(super(),this[h]=n,this[v]=-1,this[_]=0,this[b]=this[h].maxWeightPerServer||100,this[x]=this[h].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof t!=`function`)throw new r(`factory must be a function.`);this[f]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[m]=t;for(let t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){let t=p(e).origin;if(this[a].find(e=>e[d].origin===t&&e.closed!==!0&&e.destroyed!==!0))return this;let n=this[m](t,Object.assign({},this[h]));this[s](n),n.on(`connect`,()=>{n[y]=Math.min(this[b],n[y]+this[x])}),n.on(`connectionError`,()=>{n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats()}),n.on(`disconnect`,(...e)=>{let t=e[2];t&&t.code===`UND_ERR_SOCKET`&&(n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats())});for(let e of this[a])e[y]=this[b];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==!0&&e.destroyed!==!0);return n&&this[c](n),this}get upstreams(){return this[a].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[d].origin)}[l](){if(this[a].length===0)throw new n;if(!this[a].find(e=>!e[o]&&e.closed!==!0&&e.destroyed!==!0)||this[a].map(e=>e[o]).reduce((e,t)=>e&&t,!0))return;let e=0,t=this[a].findIndex(e=>!e[o]);for(;e++this[a][t][y]&&!e[o]&&(t=this[v]),this[v]===0&&(this[_]=this[_]-this[g],this[_]<=0&&(this[_]=this[b])),e[y]>=this[_]&&!e[o])return e}return this[_]=this[a][t][y],this[v]=t,this[a][t]}}})),St=P(((e,t)=>{let{InvalidArgumentError:n}=I(),{kClients:r,kRunning:i,kClose:a,kDestroy:o,kDispatch:s,kInterceptors:c}=Ue(),l=Ye(),u=bt(),d=gt(),f=L(),p=ht(),m=Symbol(`onConnect`),h=Symbol(`onDisconnect`),g=Symbol(`onConnectionError`),_=Symbol(`maxRedirections`),v=Symbol(`onDrain`),y=Symbol(`factory`),b=Symbol(`options`);function x(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}t.exports=class extends l{constructor({factory:e=x,maxRedirections:t=0,connect:i,...a}={}){if(typeof e!=`function`)throw new n(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new n(`connect must be a function or an object`);if(!Number.isInteger(t)||t<0)throw new n(`maxRedirections must be a positive number`);super(a),i&&typeof i!=`function`&&(i={...i}),this[c]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[p({maxRedirections:t})],this[b]={...f.deepClone(a),connect:i},this[b].interceptors=a.interceptors?{...a.interceptors}:void 0,this[_]=t,this[y]=e,this[r]=new Map,this[v]=(e,t)=>{this.emit(`drain`,e,[this,...t])},this[m]=(e,t)=>{this.emit(`connect`,e,[this,...t])},this[h]=(e,t,n)=>{this.emit(`disconnect`,e,[this,...t],n)},this[g]=(e,t,n)=>{this.emit(`connectionError`,e,[this,...t],n)}}get[i](){let e=0;for(let t of this[r].values())e+=t[i];return e}[s](e,t){let i;if(e.origin&&(typeof e.origin==`string`||e.origin instanceof URL))i=String(e.origin);else throw new n(`opts.origin must be a non-empty string or URL.`);let a=this[r].get(i);return a||(a=this[y](e.origin,this[b]).on(`drain`,this[v]).on(`connect`,this[m]).on(`disconnect`,this[h]).on(`connectionError`,this[g]),this[r].set(i,a)),a.dispatch(e,t)}async[a](){let e=[];for(let t of this[r].values())e.push(t.close());this[r].clear(),await Promise.all(e)}async[o](e){let t=[];for(let n of this[r].values())t.push(n.destroy(e));this[r].clear(),await Promise.all(t)}}})),Ct=P(((e,t)=>{let{kProxy:n,kClose:r,kDestroy:i,kDispatch:a,kInterceptors:o}=Ue(),{URL:s}=F(`node:url`),c=St(),l=bt(),u=Ye(),{InvalidArgumentError:d,RequestAbortedError:f,SecureProxyConnectionError:p}=I(),m=Ze(),h=gt(),g=Symbol(`proxy agent`),_=Symbol(`proxy client`),v=Symbol(`proxy headers`),y=Symbol(`request tls settings`),b=Symbol(`proxy tls settings`),x=Symbol(`connect endpoint function`),S=Symbol(`tunnel proxy`);function C(e){return e===`https:`?443:80}function w(e,t){return new l(e,t)}let T=()=>{};function E(e,t){return t.connections===1?new h(e,t):new l(e,t)}var D=class extends u{#e;constructor(e,{headers:t={},connect:n,factory:r}){if(super(),!e)throw new d(`Proxy URL is mandatory`);this[v]=t,r?this.#e=r(e,{connect:n}):this.#e=new h(e,{connect:n})}[a](e,t){let n=t.onHeaders;t.onHeaders=function(e,r,i){if(e===407){typeof t.onError==`function`&&t.onError(new d(`Proxy Authentication Required (407)`));return}n&&n.call(this,e,r,i)};let{origin:r,path:i=`/`,headers:o={}}=e;if(e.path=r+i,!(`host`in o)&&!(`Host`in o)){let{host:e}=new s(r);o.host=e}return e.headers={...this[v],...o},this.#e[a](e,t)}async[r](){return this.#e.close()}async[i](e){return this.#e.destroy(e)}},O=class extends u{constructor(e){if(super(),!e||typeof e==`object`&&!(e instanceof s)&&!e.uri)throw new d(`Proxy uri is mandatory`);let{clientFactory:t=w}=e;if(typeof t!=`function`)throw new d(`Proxy opts.clientFactory must be a function.`);let{proxyTunnel:r=!0}=e,i=this.#e(e),{href:a,origin:l,port:u,protocol:h,username:O,password:k,hostname:A}=i;if(this[n]={uri:a,protocol:h},this[o]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[y]=e.requestTls,this[b]=e.proxyTls,this[v]=e.headers||{},this[S]=r,e.auth&&e.token)throw new d(`opts.auth cannot be used in combination with opts.token`);e.auth?this[v][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[v][`proxy-authorization`]=e.token:O&&k&&(this[v][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(O)}:${decodeURIComponent(k)}`).toString(`base64`)}`);let j=m({...e.proxyTls});this[x]=m({...e.requestTls});let M=e.factory||E,ee=(e,t)=>{let{protocol:r}=new s(e);return!this[S]&&r===`http:`&&this[n].protocol===`http:`?new D(this[n].uri,{headers:this[v],connect:j,factory:M}):M(e,t)};this[_]=t(i,{connect:j}),this[g]=new c({...e,factory:ee,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${C(e.protocol)}`);try{let{socket:r,statusCode:i}=await this[_].connect({origin:l,port:u,path:n,signal:e.signal,headers:{...this[v],host:e.host},servername:this[b]?.servername||A});if(i!==200&&(r.on(`error`,T).destroy(),t(new f(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let a;a=this[y]?this[y].servername:e.servername,this[x]({...e,servername:a,httpSocket:r},t)}catch(e){e.code===`ERR_TLS_CERT_ALTNAME_INVALID`?t(new p(e)):t(e)}}})}dispatch(e,t){let n=k(e.headers);if(A(n),n&&!(`host`in n)&&!(`Host`in n)){let{host:t}=new s(e.origin);n.host=t}return this[g].dispatch({...e,headers:n},t)}#e(e){return typeof e==`string`?new s(e):e instanceof s?e:new s(e.uri)}async[r](){await this[g].close(),await this[_].close()}async[i](){await this[g].destroy(),await this[_].destroy()}};function k(e){if(Array.isArray(e)){let t={};for(let n=0;ne.toLowerCase()===`proxy-authorization`))throw new d(`Proxy-Authorization should be sent in ProxyAgent constructor`)}t.exports=O})),wt=P(((e,t)=>{let n=Ye(),{kClose:r,kDestroy:i,kClosed:a,kDestroyed:o,kDispatch:s,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=Ue(),d=Ct(),f=St(),p={"http:":80,"https:":443},m=!1;t.exports=class extends n{#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,m||(m=!0,process.emitWarning(`EnvHttpProxyAgent is experimental, expect them to change at any time.`,{code:`UNDICI-EHPA`}));let{httpProxy:t,httpsProxy:n,noProxy:r,...i}=e;this[c]=new f(i);let a=t??process.env.http_proxy??process.env.HTTP_PROXY;a?this[l]=new d({...i,uri:a}):this[l]=this[c];let o=n??process.env.https_proxy??process.env.HTTPS_PROXY;o?this[u]=new d({...i,uri:o}):this[u]=this[l],this.#a()}[s](e,t){let n=new URL(e.origin);return this.#r(n).dispatch(e,t)}async[r](){await this[c].close(),this[l][a]||await this[l].close(),this[u][a]||await this[u].close()}async[i](e){await this[c].destroy(e),this[l][o]||await this[l].destroy(e),this[u][o]||await this[u].destroy(e)}#r(e){let{protocol:t,host:n,port:r}=e;return n=n.replace(/:\d*$/,``).toLowerCase(),r=Number.parseInt(r,10)||p[t]||0,this.#i(n,r)?t===`https:`?this[u]:this[l]:this[c]}#i(e,t){if(this.#o&&this.#a(),this.#t.length===0)return!0;if(this.#e===`*`)return!1;for(let n=0;n{let n=F(`node:assert`),{kRetryHandlerDefaultRetry:r}=Ue(),{RequestRetryError:i}=I(),{isDisturbed:a,parseHeaders:o,parseRangeHeader:s,wrapRequestBody:c}=L();function l(e){let t=Date.now();return new Date(e).getTime()-t}t.exports=class e{constructor(t,n){let{retryOptions:i,...a}=t,{retry:o,maxRetries:s,maxTimeout:l,minTimeout:u,timeoutFactor:d,methods:f,errorCodes:p,retryAfter:m,statusCodes:h}=i??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts={...a,body:c(t.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[r],retryAfter:m??!0,maxTimeout:l??30*1e3,minTimeout:u??500,timeoutFactor:d??2,maxRetries:s??5,methods:f??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:h??[500,502,503,504,429],errorCodes:p??[`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(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[r](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:c}=n,{maxRetries:u,minTimeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=c,{counter:_}=t;if(a&&a!==`UND_ERR_REQ_RETRY`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(_>u){r(e);return}let v=o?.[`retry-after`];v&&=(v=Number(v),Number.isNaN(v)?l(v):v*1e3);let y=Math.min(v>0?v:d*p**(_-1),f);setTimeout(()=>r(null),y)}onHeaders(e,t,r,a){let c=o(t);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,t,r,a):(this.abort(new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new i(`server does not support the range header and the payload was partially consumed`,e,{headers:c,data:{count:this.retryCount}})),!1;let t=s(c[`content-range`]);if(!t)return this.abort(new i(`Content-Range mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==c.etag)return this.abort(new i(`ETag mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;let{start:a,size:o,end:l=o-1}=t;return n(this.start===a,`content-range mismatch`),n(this.end==null||this.end===l,`content-range mismatch`),this.resume=r,!0}if(this.end==null){if(e===206){let i=s(c[`content-range`]);if(i==null)return this.handler.onHeaders(e,t,r,a);let{start:o,size:l,end:u=l-1}=i;n(o!=null&&Number.isFinite(o),`content-range mismatch`),n(u!=null&&Number.isFinite(u),`invalid content-length`),this.start=o,this.end=u}if(this.end==null){let e=c[`content-length`];this.end=e==null?null:Number(e)-1}return n(Number.isFinite(this.start)),n(this.end==null||Number.isFinite(this.end),`invalid content-length`),this.resume=r,this.etag=c.etag==null?null:c.etag,this.etag!=null&&this.etag.startsWith(`W/`)&&(this.etag=null),this.handler.onHeaders(e,t,r,a)}let l=new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||a(this.opts.body))return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},t.bind(this));function t(e){if(e!=null||this.aborted||a(this.opts.body))return this.handler.onError(e);if(this.start!==0){let e={range:`bytes=${this.start}-${this.end??``}`};this.etag!=null&&(e[`if-match`]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}})),Et=P(((e,t)=>{let n=Je(),r=Tt();t.exports=class extends n{#e=null;#t=null;constructor(e,t={}){super(t),this.#e=e,this.#t=t}dispatch(e,t){let n=new r({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:t});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}}})),Dt=P(((e,t)=>{let n=F(`node:assert`),{Readable:r}=F(`node:stream`),{RequestAbortedError:i,NotSupportedError:a,InvalidArgumentError:o,AbortError:s}=I(),c=L(),{ReadableStreamFrom:l}=L(),u=Symbol(`kConsume`),d=Symbol(`kReading`),f=Symbol(`kBody`),p=Symbol(`kAbort`),m=Symbol(`kContentType`),h=Symbol(`kContentLength`),g=()=>{};var _=class extends r{constructor({resume:e,abort:t,contentType:n=``,contentLength:r,highWaterMark:i=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:i}),this._readableState.dataEmitted=!1,this[p]=t,this[u]=null,this[f]=null,this[m]=n,this[h]=r,this[d]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new i),e&&this[p](),super.destroy(e)}_destroy(e,t){this[d]?t(e):setImmediate(()=>{t(e)})}on(e,...t){return(e===`data`||e===`readable`)&&(this[d]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){let n=super.off(e,...t);return(e===`data`||e===`readable`)&&(this[d]=this.listenerCount(`data`)>0||this.listenerCount(`readable`)>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[u]&&e!==null?(T(this[u],e),this[d]?super.push(e):!0):super.push(e)}async text(){return b(this,`text`)}async json(){return b(this,`json`)}async blob(){return b(this,`blob`)}async bytes(){return b(this,`bytes`)}async arrayBuffer(){return b(this,`arrayBuffer`)}async formData(){throw new a}get bodyUsed(){return c.isDisturbed(this)}get body(){return this[f]||(this[f]=l(this),this[u]&&(this[f].getReader(),n(this[f].locked))),this[f]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024,n=e?.signal;if(n!=null&&(typeof n!=`object`||!(`aborted`in n)))throw new o(`signal must be an AbortSignal`);return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((e,r)=>{this[h]>t&&this.destroy(new s);let i=()=>{this.destroy(n.reason??new s)};n?.addEventListener(`abort`,i),this.on(`close`,function(){n?.removeEventListener(`abort`,i),n?.aborted?r(n.reason??new s):e(null)}).on(`error`,g).on(`data`,function(e){t-=e.length,t<=0&&this.destroy()}).resume()})}};function v(e){return e[f]&&e[f].locked===!0||e[u]}function y(e){return c.isDisturbed(e)||v(e)}async function b(e,t){return n(!e[u]),new Promise((n,r)=>{if(y(e)){let t=e._readableState;t.destroyed&&t.closeEmitted===!1?e.on(`error`,e=>{r(e)}).on(`close`,()=>{r(TypeError(`unusable`))}):r(t.errored??TypeError(`unusable`))}else queueMicrotask(()=>{e[u]={type:t,stream:e,resolve:n,reject:r,length:0,body:[]},e.on(`error`,function(e){E(this[u],e)}).on(`close`,function(){this[u].body!==null&&E(this[u],new i)}),x(e[u])})})}function x(e){if(e.body===null)return;let{_readableState:t}=e.stream;if(t.bufferIndex){let n=t.bufferIndex,r=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,r)}function C(e,t){if(e.length===0||t===0)return new Uint8Array;if(e.length===1)return new Uint8Array(e[0]);let n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer),r=0;for(let t=0;t{let n=F(`node:assert`),{ResponseStatusCodeError:r}=I(),{chunksDecode:i}=Dt();async function a({callback:e,body:t,contentType:a,statusCode:c,statusMessage:l,headers:u}){n(t);let d=[],f=0;try{for await(let e of t)if(d.push(e),f+=e.length,f>131072){d=[],f=0;break}}catch{d=[],f=0}let p=`Response status code ${c}${l?`: ${l}`:``}`;if(c===204||!a||!f){queueMicrotask(()=>e(new r(p,c,u)));return}let m=Error.stackTraceLimit;Error.stackTraceLimit=0;let h;try{o(a)?h=JSON.parse(i(d,f)):s(a)&&(h=i(d,f))}catch{}finally{Error.stackTraceLimit=m}queueMicrotask(()=>e(new r(p,c,u,h)))}let o=e=>e.length>15&&e[11]===`/`&&e[0]===`a`&&e[1]===`p`&&e[2]===`p`&&e[3]===`l`&&e[4]===`i`&&e[5]===`c`&&e[6]===`a`&&e[7]===`t`&&e[8]===`i`&&e[9]===`o`&&e[10]===`n`&&e[12]===`j`&&e[13]===`s`&&e[14]===`o`&&e[15]===`n`,s=e=>e.length>4&&e[4]===`/`&&e[0]===`t`&&e[1]===`e`&&e[2]===`x`&&e[3]===`t`;t.exports={getResolveErrorBodyCallback:a,isContentTypeApplicationJson:o,isContentTypeText:s}})),kt=P(((e,t)=>{let n=F(`node:assert`),{Readable:r}=Dt(),{InvalidArgumentError:i,RequestAbortedError:a}=I(),o=L(),{getResolveErrorBodyCallback:s}=Ot(),{AsyncResource:c}=F(`node:async_hooks`);var l=class extends c{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);let{signal:n,method:r,opaque:s,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:f}=e;try{if(typeof t!=`function`)throw new i(`invalid callback`);if(f&&(typeof f!=`number`||f<0))throw new i(`invalid highWaterMark`);if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new i(`invalid method`);if(l&&typeof l!=`function`)throw new i(`invalid onInfo callback`);super(`UNDICI_REQUEST`)}catch(e){throw o.isStream(c)&&o.destroy(c.on(`error`,o.nop),e),e}this.method=r,this.responseHeaders=u||null,this.opaque=s||null,this.callback=t,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=f,this.signal=n,this.reason=null,this.removeAbortListener=null,o.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new a:this.removeAbortListener=o.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new a,this.res?o.destroy(this.res.on(`error`,o.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&=(this.res?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}))}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,i){let{callback:a,opaque:c,abort:l,context:u,responseHeaders:d,highWaterMark:f}=this,p=d===`raw`?o.parseRawHeaders(t):o.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=d===`raw`?o.parseHeaders(t):p,h=m[`content-type`],g=m[`content-length`],_=new r({resume:n,abort:l,contentType:h,contentLength:this.method!==`HEAD`&&g?Number(g):null,highWaterMark:f});this.removeAbortListener&&_.on(`close`,this.removeAbortListener),this.callback=null,this.res=_,a!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:a,body:_,contentType:h,statusCode:e,statusMessage:i,headers:p}):this.runInAsyncScope(a,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:_,context:u}))}onData(e){return this.res.push(e)}onComplete(e){o.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:t,callback:n,body:r,opaque:i}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),t&&(this.res=null,queueMicrotask(()=>{o.destroy(t,e)})),r&&(this.body=null,o.destroy(r,e)),this.removeAbortListener&&=(t?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{this.dispatch(e,new l(e,t))}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u,t.exports.RequestHandler=l})),At=P(((e,t)=>{let{addAbortListener:n}=L(),{RequestAbortedError:r}=I(),i=Symbol(`kListener`),a=Symbol(`kSignal`);function o(e){e.abort?e.abort(e[a]?.reason):e.reason=e[a]?.reason??new r,c(e)}function s(e,t){if(e.reason=null,e[a]=null,e[i]=null,t){if(t.aborted){o(e);return}e[a]=t,e[i]=()=>{o(e)},n(e[a],e[i])}}function c(e){e[a]&&(`removeEventListener`in e[a]?e[a].removeEventListener(`abort`,e[i]):e[a].removeListener(`abort`,e[i]),e[a]=null,e[i]=null)}t.exports={addSignal:s,removeSignal:c}})),jt=P(((e,t)=>{let n=F(`node:assert`),{finished:r,PassThrough:i}=F(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o}=I(),s=L(),{getResolveErrorBodyCallback:c}=Ot(),{AsyncResource:l}=F(`node:async_hooks`),{addSignal:u,removeSignal:d}=At();var f=class extends l{constructor(e,t,n){if(!e||typeof e!=`object`)throw new a(`invalid opts`);let{signal:r,method:i,opaque:o,body:c,onInfo:l,responseHeaders:d,throwOnError:f}=e;try{if(typeof n!=`function`)throw new a(`invalid callback`);if(typeof t!=`function`)throw new a(`invalid factory`);if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_STREAM`)}catch(e){throw s.isStream(c)&&s.destroy(c.on(`error`,s.nop),e),e}this.responseHeaders=d||null,this.opaque=o||null,this.factory=t,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=f||!1,s.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),u(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,a){let{factory:l,opaque:u,context:d,callback:f,responseHeaders:p}=this,m=p===`raw`?s.parseRawHeaders(t):s.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:m});return}this.factory=null;let h;if(this.throwOnError&&e>=400){let n=(p===`raw`?s.parseHeaders(t):m)[`content-type`];h=new i,this.callback=null,this.runInAsyncScope(c,null,{callback:f,body:h,contentType:n,statusCode:e,statusMessage:a,headers:m})}else{if(l===null)return;if(h=this.runInAsyncScope(l,null,{statusCode:e,headers:m,opaque:u,context:d}),!h||typeof h.write!=`function`||typeof h.end!=`function`||typeof h.on!=`function`)throw new o(`expected Writable`);r(h,{readable:!1},e=>{let{callback:t,res:n,opaque:r,trailers:i,abort:a}=this;this.res=null,(e||!n.readable)&&s.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&a()})}return h.on(`drain`,n),this.res=h,(h.writableNeedDrain===void 0?h._writableState?.needDrain:h.writableNeedDrain)!==!0}onData(e){let{res:t}=this;return t?t.write(e):!0}onComplete(e){let{res:t}=this;d(this),t&&(this.trailers=s.parseHeaders(e),t.end())}onError(e){let{res:t,callback:n,opaque:r,body:i}=this;d(this),this.factory=null,t?(this.res=null,s.destroy(t,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:r})})),i&&(this.body=null,s.destroy(i,e))}};function p(e,t,n){if(n===void 0)return new Promise((n,r)=>{p.call(this,e,t,(e,t)=>e?r(e):n(t))});try{this.dispatch(e,new f(e,t,n))}catch(t){if(typeof n!=`function`)throw t;let r=e?.opaque;queueMicrotask(()=>n(t,{opaque:r}))}}t.exports=p})),Mt=P(((e,t)=>{let{Readable:n,Duplex:r,PassThrough:i}=F(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o,RequestAbortedError:s}=I(),c=L(),{AsyncResource:l}=F(`node:async_hooks`),{addSignal:u,removeSignal:d}=At(),f=F(`node:assert`),p=Symbol(`resume`);var m=class extends n{constructor(){super({autoDestroy:!0}),this[p]=null}_read(){let{[p]:e}=this;e&&(this[p]=null,e())}_destroy(e,t){this._read(),t(e)}},h=class extends n{constructor(e){super({autoDestroy:!0}),this[p]=e}_read(){this[p]()}_destroy(e,t){!e&&!this._readableState.endEmitted&&(e=new s),t(e)}},g=class extends l{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);if(typeof t!=`function`)throw new a(`invalid handler`);let{signal:n,method:i,opaque:o,onInfo:l,responseHeaders:f}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_PIPELINE`),this.opaque=o||null,this.responseHeaders=f||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=l||null,this.req=new m().on(`error`,c.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e?.resume&&e.resume()},write:(e,t,n)=>{let{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[p]=n},destroy:(e,t)=>{let{body:n,req:r,res:i,ret:a,abort:o}=this;!e&&!a._readableState.endEmitted&&(e=new s),o&&e&&o(),c.destroy(n,e),c.destroy(r,e),c.destroy(i,e),d(this),t(e)}}).on(`prefinish`,()=>{let{req:e}=this;e.push(null)}),this.res=null,u(this,n)}onConnect(e,t){let{ret:n,res:r}=this;if(this.reason){e(this.reason);return}f(!r,`pipeline cannot be retried`),f(!n.destroyed),this.abort=e,this.context=t}onHeaders(e,t,n){let{opaque:r,handler:i,context:a}=this;if(e<200){if(this.onInfo){let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new h(n);let l;try{this.handler=null;let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);l=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:a})}catch(e){throw this.res.on(`error`,c.nop),e}if(!l||typeof l.on!=`function`)throw new o(`expected Readable`);l.on(`data`,e=>{let{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()}).on(`error`,e=>{let{ret:t}=this;c.destroy(t,e)}).on(`end`,()=>{let{ret:e}=this;e.push(null)}).on(`close`,()=>{let{ret:e}=this;e._readableState.ended||c.destroy(e,new s)}),this.body=l}onData(e){let{res:t}=this;return t.push(e)}onComplete(e){let{res:t}=this;t.push(null)}onError(e){let{ret:t}=this;this.handler=null,c.destroy(t,e)}};function _(e,t){try{let n=new g(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return new i().destroy(e)}}t.exports=_})),Nt=P(((e,t)=>{let{InvalidArgumentError:n,SocketError:r}=I(),{AsyncResource:i}=F(`node:async_hooks`),a=L(),{addSignal:o,removeSignal:s}=At(),c=F(`node:assert`);var l=class extends i{constructor(e,t){if(!e||typeof e!=`object`)throw new n(`invalid opts`);if(typeof t!=`function`)throw new n(`invalid callback`);let{signal:r,opaque:i,responseHeaders:a}=e;if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new n(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_UPGRADE`),this.responseHeaders=a||null,this.opaque=i||null,this.callback=t,this.abort=null,this.context=null,o(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}c(this.callback),this.abort=e,this.context=null}onHeaders(){throw new r(`bad upgrade`,null)}onUpgrade(e,t,n){c(e===101);let{callback:r,opaque:i,context:o}=this;s(this),this.callback=null;let l=this.responseHeaders===`raw`?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:l,socket:n,opaque:i,context:o})}onError(e){let{callback:t,opaque:n}=this;s(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:e.method||`GET`,upgrade:e.protocol||`Websocket`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),Pt=P(((e,t)=>{let n=F(`node:assert`),{AsyncResource:r}=F(`node:async_hooks`),{InvalidArgumentError:i,SocketError:a}=I(),o=L(),{addSignal:s,removeSignal:c}=At();var l=class extends r{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);if(typeof t!=`function`)throw new i(`invalid callback`);let{signal:n,opaque:r,responseHeaders:a}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_CONNECT`),this.opaque=r||null,this.responseHeaders=a||null,this.callback=t,this.abort=null,s(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(){throw new a(`bad connect`,null)}onUpgrade(e,t,n){let{callback:r,opaque:i,context:a}=this;c(this),this.callback=null;let s=t;s!=null&&(s=this.responseHeaders===`raw`?o.parseRawHeaders(t):o.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:s,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:`CONNECT`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),Ft=P(((e,t)=>{t.exports.request=kt(),t.exports.stream=jt(),t.exports.pipeline=Mt(),t.exports.upgrade=Nt(),t.exports.connect=Pt()})),It=P(((e,t)=>{let{UndiciError:n}=I(),r=Symbol.for(`undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED`);t.exports={MockNotMatchedError:class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),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](e){return e&&e[r]===!0}[r]=!0}}})),Lt=P(((e,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`)}})),Rt=P(((e,t)=>{let{MockNotMatchedError:n}=It(),{kDispatches:r,kMockAgent:i,kOriginalDispatch:a,kOrigin:o,kGetNetConnect:s}=Lt(),{buildURL:c}=L(),{STATUS_CODES:l}=F(`node:http`),{types:{isPromise:u}}=F(`node:util`);function d(e,t){return typeof e==`string`?e===t:e instanceof RegExp?e.test(t):typeof e==`function`?e(t)===!0:!1}function f(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.toLocaleLowerCase(),t]))}function p(e,t){if(Array.isArray(e)){for(let n=0;n!e).filter(({path:e})=>d(g(e),i));if(a.length===0)throw new n(`Mock dispatch not matched for path '${i}'`);if(a=a.filter(({method:e})=>d(e,t.method)),a.length===0)throw new n(`Mock dispatch not matched for method '${t.method}' on path '${i}'`);if(a=a.filter(({body:e})=>e===void 0?!0:d(e,t.body)),a.length===0)throw new n(`Mock dispatch not matched for body '${t.body}' on path '${i}'`);if(a=a.filter(e=>h(e,t.headers)),a.length===0)throw new n(`Mock dispatch not matched for headers '${typeof t.headers==`object`?JSON.stringify(t.headers):t.headers}' on path '${i}'`);return a[0]}function b(e,t,n){let r={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof n==`function`?{callback:n}:{...n},a={...r,...t,pending:!0,data:{error:null,...i}};return e.push(a),a}function x(e,t){let n=e.findIndex(e=>e.consumed?_(e,t):!1);n!==-1&&e.splice(n,1)}function S(e){let{path:t,method:n,body:r,headers:i,query:a}=e;return{path:t,method:n,body:r,headers:i,query:a}}function C(e){let t=Object.keys(e),n=[];for(let r=0;r=h,i.pending=p0?setTimeout(()=>{g(this[r])},d):g(this[r]);function g(r,i=o){let l=Array.isArray(e.headers)?m(e.headers):e.headers,d=typeof i==`function`?i({...e,headers:l}):i;if(u(d)){d.then(e=>g(r,e));return}let f=v(d),p=C(s),h=C(c);t.onConnect?.(e=>t.onError(e),null),t.onHeaders?.(a,p,_,w(a)),t.onData?.(Buffer.from(f)),t.onComplete?.(h),x(r,n)}function _(){}return!0}function D(){let e=this[i],t=this[o],r=this[a];return function(i,a){if(e.isMockActive)try{E.call(this,i,a)}catch(o){if(o instanceof n){let c=e[s]();if(c===!1)throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`);if(O(c,t))r.call(this,i,a);else throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}else throw o}else r.call(this,i,a)}}function O(e,t){let n=new URL(t);return e===!0?!0:!!(Array.isArray(e)&&e.some(e=>d(e,n.host)))}function k(e){if(e){let{agent:t,...n}=e;return n}}t.exports={getResponseData:v,getMockDispatch:y,addMockDispatch:b,deleteMockDispatch:x,buildKey:S,generateKeyValues:C,matchValue:d,getResponse:T,getStatusText:w,mockDispatch:E,buildMockDispatch:D,checkNetConnect:O,buildMockOptions:k,getHeaderByName:p,buildHeadersFromArray:m}})),zt=P(((e,t)=>{let{getResponseData:n,buildKey:r,addMockDispatch:i}=Rt(),{kDispatches:a,kDispatchKey:o,kDefaultHeaders:s,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=Lt(),{InvalidArgumentError:d}=I(),{buildURL:f}=L();var p=class{constructor(e){this[u]=e}delay(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`waitInMs must be a valid integer > 0`);return this[u].delay=e,this}persist(){return this[u].persist=!0,this}times(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`repeatTimes must be a valid integer > 0`);return this[u].times=e,this}},m=class{constructor(e,t){if(typeof e!=`object`)throw new d(`opts must be an object`);if(e.path===void 0)throw new d(`opts.path must be defined`);if(e.method===void 0&&(e.method=`GET`),typeof e.path==`string`)if(e.query)e.path=f(e.path,e.query);else{let t=new URL(e.path,`data://`);e.path=t.pathname+t.search}typeof e.method==`string`&&(e.method=e.method.toUpperCase()),this[o]=r(e),this[a]=t,this[s]={},this[c]={},this[l]=!1}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){let i=n(t),a=this[l]?{"content-length":i.length}:{};return{statusCode:e,data:t,headers:{...this[s],...a,...r.headers},trailers:{...this[c],...r.trailers}}}validateReplyParameters(e){if(e.statusCode===void 0)throw new d(`statusCode must be defined`);if(typeof e.responseOptions!=`object`||e.responseOptions===null)throw new d(`responseOptions must be an object`)}reply(e){if(typeof e==`function`)return new p(i(this[a],this[o],t=>{let n=e(t);if(typeof n!=`object`||!n)throw new d(`reply options callback must return an object`);let r={data:``,responseOptions:{},...n};return this.validateReplyParameters(r),{...this.createMockScopeDispatchData(r)}}));let t={statusCode:e,data:arguments[1]===void 0?``:arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(t);let n=this.createMockScopeDispatchData(t);return new p(i(this[a],this[o],n))}replyWithError(e){if(e===void 0)throw new d(`error must be defined`);return new p(i(this[a],this[o],{error:e}))}defaultReplyHeaders(e){if(e===void 0)throw new d(`headers must be defined`);return this[s]=e,this}defaultReplyTrailers(e){if(e===void 0)throw new d(`trailers must be defined`);return this[c]=e,this}replyContentLength(){return this[l]=!0,this}};t.exports.MockInterceptor=m,t.exports.MockScope=p})),Bt=P(((e,t)=>{let{promisify:n}=F(`node:util`),r=gt(),{buildMockDispatch:i}=Rt(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=Lt(),{MockInterceptor:f}=zt(),p=Ue(),{InvalidArgumentError:m}=I();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),Vt=P(((e,t)=>{let{promisify:n}=F(`node:util`),r=bt(),{buildMockDispatch:i}=Rt(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=Lt(),{MockInterceptor:f}=zt(),p=Ue(),{InvalidArgumentError:m}=I();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),Ht=P(((e,t)=>{let n={pronoun:`it`,is:`is`,was:`was`,this:`this`},r={pronoun:`they`,is:`are`,was:`were`,this:`these`};t.exports=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(e){let t=e===1,i=t?n:r,a=t?this.singular:this.plural;return{...i,count:e,noun:a}}}})),Ut=P(((e,t)=>{let{Transform:n}=F(`node:stream`),{Console:r}=F(`node:console`),i=process.versions.icu?`✅`:`Y `,a=process.versions.icu?`❌`:`N `;t.exports=class{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,n){n(null,e)}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let t=e.map(({method:e,path:t,data:{statusCode:n},persist:r,times:o,timesInvoked:s,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":n,Persistent:r?i:a,Invocations:s,Remaining:r?1/0:o-s}));return this.logger.table(t),this.transform.read().toString()}}})),Wt=P(((e,t)=>{let{kClients:n}=Ue(),r=St(),{kAgent:i,kMockAgentSet:a,kMockAgentGet:o,kDispatches:s,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:f}=Lt(),p=Bt(),m=Vt(),{matchValue:h,buildMockOptions:g}=Rt(),{InvalidArgumentError:_,UndiciError:v}=I(),y=Je(),b=Ht(),x=Ut();t.exports=class extends y{constructor(e){if(super(e),this[l]=!0,this[c]=!0,e?.agent&&typeof e.agent.dispatch!=`function`)throw new _(`Argument opts.agent must implement Agent`);let t=e?.agent?e.agent:new r(e);this[i]=t,this[n]=t[n],this[d]=g(e)}get(e){let t=this[o](e);return t||(t=this[f](e),this[a](e,t)),t}dispatch(e,t){return this.get(e.origin),this[i].dispatch(e,t)}async close(){await this[i].close(),this[n].clear()}deactivate(){this[c]=!1}activate(){this[c]=!0}enableNetConnect(e){if(typeof e==`string`||typeof e==`function`||e instanceof RegExp)Array.isArray(this[l])?this[l].push(e):this[l]=[e];else if(e===void 0)this[l]=!0;else throw new _(`Unsupported matcher. Must be one of String|Function|RegExp.`)}disableNetConnect(){this[l]=!1}get isMockActive(){return this[c]}[a](e,t){this[n].set(e,t)}[f](e){let t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new m(e,t)}[o](e){let t=this[n].get(e);if(t)return t;if(typeof e!=`string`){let t=this[f](`http://localhost:9999`);return this[a](e,t),t}for(let[t,r]of Array.from(this[n]))if(r&&typeof t!=`string`&&h(t,e)){let t=this[f](e);return this[a](e,t),t[s]=r[s],t}}[u](){return this[l]}pendingInterceptors(){let e=this[n];return Array.from(e.entries()).flatMap(([e,t])=>t[s].map(t=>({...t,origin:e}))).filter(({pending:e})=>e)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new x}={}){let t=this.pendingInterceptors();if(t.length===0)return;let n=new b(`interceptor`,`interceptors`).pluralize(t.length);throw new v(` +`,`latin1`),t!==null&&r!==t){if(n[oe])throw new o;process.emitWarning(new o)}e[y].timeout&&e[y].timeoutType===3&&e[y].timeout.refresh&&e[y].timeout.refresh(),n[de]()}}destroy(e){let{socket:t,client:r,abort:i}=this;t[w]=!1,e&&(n(r[x]<=1,`pipeline should only contain this request`),i(e))}};t.exports=De})),ht=P(((e,t)=>{let n=F(`node:assert`),{pipeline:r}=F(`node:stream`),i=L(),{RequestContentLengthMismatchError:a,RequestAbortedError:o,SocketError:s,InformationalError:c}=I(),{kUrl:l,kReset:u,kClient:d,kRunning:f,kPending:p,kQueue:m,kPendingIdx:h,kRunningIdx:g,kError:_,kSocket:v,kStrictContentLength:y,kOnError:b,kMaxConcurrentStreams:x,kHTTP2Session:S,kResume:C,kSize:w,kHTTPContext:T}=Ge(),E=Symbol(`open streams`),D,O=!1,k;try{k=F(`node:http2`)}catch{k={constants:{}}}let{constants:{HTTP2_HEADER_AUTHORITY:A,HTTP2_HEADER_METHOD:j,HTTP2_HEADER_PATH:M,HTTP2_HEADER_SCHEME:ee,HTTP2_HEADER_CONTENT_LENGTH:N,HTTP2_HEADER_EXPECT:te,HTTP2_HEADER_STATUS:ne}}=k;function re(e){let t=[];for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.push(Buffer.from(n),Buffer.from(e));else t.push(Buffer.from(n),Buffer.from(r));return t}async function ie(e,t){e[v]=t,O||(O=!0,process.emitWarning(`H2 support is experimental, expect them to change at any time.`,{code:`UNDICI-H2`}));let r=k.connect(e[l],{createConnection:()=>t,peerMaxConcurrentStreams:e[x]});r[E]=0,r[d]=e,r[v]=t,i.addListener(r,`error`,oe),i.addListener(r,`frameError`,se),i.addListener(r,`end`,ce),i.addListener(r,`goaway`,le),i.addListener(r,`close`,function(){let{[d]:e}=this,{[v]:t}=e,r=this[v][_]||this[_]||new s(`closed`,i.getSocketInfo(t));if(e[S]=null,e.destroyed){n(e[p]===0);let t=e[m].splice(e[g]);for(let n=0;n{a=!0}),{version:`h2`,defaultPipelining:1/0,write(...t){return de(e,...t)},resume(){ae(e)},destroy(e,n){a?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(){return!1}}}function ae(e){let t=e[v];t?.destroyed===!1&&(e[w]===0&&e[x]===0?(t.unref(),e[S].unref()):(t.ref(),e[S].ref()))}function oe(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`),this[v][_]=e,this[d][b](e)}function se(e,t,n){if(n===0){let n=new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[v][_]=n,this[d][b](n)}}function ce(){let e=new s(`other side closed`,i.getSocketInfo(this[v]));this.destroy(e),i.destroy(this[v],e)}function le(e){let t=this[_]||new s(`HTTP/2: "GOAWAY" frame received with code ${e}`,i.getSocketInfo(this)),r=this[d];if(r[v]=null,r[T]=null,this[S]!=null&&(this[S].destroy(t),this[S]=null),i.destroy(this[v],t),r[g]{t.aborted||t.completed||(n||=new o,i.errorRequest(e,t,n),T!=null&&i.destroy(T,n),i.destroy(x,n),e[m][e[g]++]=null,e[C]())};try{t.onConnect(ie)}catch(n){i.errorRequest(e,t,n)}if(t.aborted)return!1;if(s===`CONNECT`)return r.ref(),T=r.request(w,{endStream:!1,signal:_}),T.id&&!T.pending?(t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null):T.once(`ready`,()=>{t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),!0;w[M]=u,w[ee]=`https`;let ae=s===`PUT`||s===`POST`||s===`PATCH`;x&&typeof x.read==`function`&&x.read(0);let oe=i.bodyLength(x);if(i.isFormDataLike(x)){D??=pt().extractBody;let[e,t]=D(x);w[`content-type`]=t,x=e.stream,oe=e.length}if(oe??=t.contentLength,(oe===0||!ae)&&(oe=null),ue(s)&&oe>0&&t.contentLength!=null&&t.contentLength!==oe){if(e[y])return i.errorRequest(e,t,new a),!1;process.emitWarning(new a)}oe!=null&&(n(x,`no body must not have content length`),w[N]=`${oe}`),r.ref();let se=s===`GET`||s===`HEAD`||x===null;return p?(w[te]=`100-continue`,T=r.request(w,{endStream:se,signal:_}),T.once(`continue`,ce)):(T=r.request(w,{endStream:se,signal:_}),ce()),++r[E],T.once(`response`,n=>{let{[ne]:r,...a}=n;if(t.onResponseStarted(),t.aborted){let n=new o;i.errorRequest(e,t,n),i.destroy(T,n);return}t.onHeaders(Number(r),re(a),T.resume.bind(T),``)===!1&&T.pause(),T.on(`data`,e=>{t.onData(e)===!1&&T.pause()})}),T.once(`end`,()=>{(T.state?.state==null||T.state.state<6)&&t.onComplete([]),r[E]===0&&r.unref(),ie(new c(`HTTP/2: stream half-closed (remote)`)),e[m][e[g]++]=null,e[h]=e[g],e[C]()}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),T.once(`error`,function(e){ie(e)}),T.once(`frameError`,(e,t)=>{ie(new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}),!0;function ce(){!x||oe===0?fe(ie,T,null,e,t,e[v],oe,ae):i.isBuffer(x)?fe(ie,T,x,e,t,e[v],oe,ae):i.isBlobLike(x)?typeof x.stream==`function`?he(ie,T,x.stream(),e,t,e[v],oe,ae):me(ie,T,x,e,t,e[v],oe,ae):i.isStream(x)?pe(ie,e[v],ae,T,x,e,t,oe):i.isIterable(x)?he(ie,T,x,e,t,e[v],oe,ae):n(!1)}}function fe(e,t,r,a,o,s,c,l){try{r!=null&&i.isBuffer(r)&&(n(c===r.byteLength,`buffer body must have content length`),t.cork(),t.write(r),t.uncork(),t.end(),o.onBodySent(r)),l||(s[u]=!0),o.onRequestSent(),a[C]()}catch(t){e(t)}}function pe(e,t,a,o,s,c,l,d){n(d!==0||c[f]===0,`stream body cannot be pipelined`);let p=r(s,o,n=>{n?(i.destroy(p,n),e(n)):(i.removeAllListeners(p),l.onRequestSent(),a||(t[u]=!0),c[C]())});i.addListener(p,`data`,m);function m(e){l.onBodySent(e)}}async function me(e,t,r,i,o,s,c,l){n(c===r.size,`blob body must have content length`);try{if(c!=null&&c!==r.size)throw new a;let e=Buffer.from(await r.arrayBuffer());t.cork(),t.write(e),t.uncork(),t.end(),o.onBodySent(e),o.onRequestSent(),l||(s[u]=!0),i[C]()}catch(t){e(t)}}async function he(e,t,r,i,a,o,s,c){n(s!==0||i[f]===0,`iterator body cannot be pipelined`);let l=null;function d(){if(l){let e=l;l=null,e()}}let p=()=>new Promise((e,t)=>{n(l===null),o[_]?t(o[_]):l=e});t.on(`close`,d).on(`drain`,d);try{for await(let e of r){if(o[_])throw o[_];let n=t.write(e);a.onBodySent(e),n||await p()}t.end(),a.onRequestSent(),c||(o[u]=!0),i[C]()}catch(t){e(t)}finally{t.off(`close`,d).off(`drain`,d)}}t.exports=ie})),gt=P(((e,t)=>{let n=L(),{kBodyUsed:r}=Ge(),i=F(`node:assert`),{InvalidArgumentError:a}=I(),o=F(`node:events`),s=[300,301,302,303,307,308],c=Symbol(`body`);var l=class{constructor(e){this[c]=e,this[r]=!1}async*[Symbol.asyncIterator](){i(!this[r],`disturbed`),this[r]=!0,yield*this[c]}},u=class{constructor(e,t,s,c){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxRedirections must be a positive number`);n.validateHandler(c,s.method,s.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...s,maxRedirections:0},this.maxRedirections=t,this.handler=c,this.history=[],this.redirectionLimitReached=!1,n.isStream(this.opts.body)?(n.bodyLength(this.opts.body)===0&&this.opts.body.on(`data`,function(){i(!1)}),typeof this.opts.body.readableDidRead!=`boolean`&&(this.opts.body[r]=!1,o.prototype.on.call(this.opts.body,`data`,function(){this[r]=!0}))):(this.opts.body&&typeof this.opts.body.pipeTo==`function`||this.opts.body&&typeof this.opts.body!=`string`&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body))&&(this.opts.body=new l(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,i){if(this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:d(e,t),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(Error(`max redirects`)),this.redirectionLimitReached=!0,this.abort(Error(`max redirects`));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,r,i);let{origin:a,pathname:o,search:s}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),c=s?`${o}${s}`:o;this.opts.headers=p(this.opts.headers,e===303,this.opts.origin!==a),this.opts.path=c,this.opts.origin=a,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!==`HEAD`&&(this.opts.method=`GET`,this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function d(e,t){if(s.indexOf(e)===-1)return null;for(let e=0;e{let n=gt();function r({maxRedirections:e}){return t=>function(r,i){let{maxRedirections:a=e}=r;if(!a)return t(r,i);let o=new n(t,a,r,i);return r={...r,maxRedirections:0},t(r,o)}}t.exports=r})),vt=P(((e,t)=>{let n=F(`node:assert`),r=F(`node:net`),i=F(`node:http`),a=L(),{channels:o}=Je(),s=Ye(),c=Ze(),{InvalidArgumentError:l,InformationalError:u,ClientDestroyedError:d}=I(),f=$e(),{kUrl:p,kServerName:m,kClient:h,kBusy:g,kConnect:_,kResuming:v,kRunning:y,kPending:b,kSize:x,kQueue:S,kConnected:C,kConnecting:w,kNeedDrain:T,kKeepAliveDefaultTimeout:E,kHostHeader:D,kPendingIdx:O,kRunningIdx:k,kError:A,kPipelining:j,kKeepAliveTimeoutValue:M,kMaxHeadersSize:ee,kKeepAliveMaxTimeout:N,kKeepAliveTimeoutThreshold:te,kHeadersTimeout:ne,kBodyTimeout:re,kStrictContentLength:ie,kConnector:ae,kMaxRedirections:oe,kMaxRequests:se,kCounter:ce,kClose:le,kDestroy:ue,kDispatch:de,kInterceptors:fe,kLocalAddress:pe,kMaxResponseSize:me,kOnError:he,kHTTPContext:ge,kMaxConcurrentStreams:_e,kResume:ve}=Ge(),ye=mt(),be=ht(),xe=!1,Se=Symbol(`kClosedResolve`),Ce=()=>{};function we(e){return e[j]??e[ge]?.defaultPipelining??1}var Te=class extends c{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:s,requestTimeout:c,connectTimeout:u,bodyTimeout:d,idleTimeout:h,keepAlive:g,keepAliveTimeout:_,maxKeepAliveTimeout:y,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:x,socketPath:C,pipelining:w,tls:A,strictContentLength:ce,maxCachedSessions:le,maxRedirections:ue,connect:de,maxRequestsPerClient:ye,localAddress:be,maxResponseSize:Ce,autoSelectFamily:we,autoSelectFamilyAttemptTimeout:Te,maxConcurrentStreams:De,allowH2:Oe,webSocket:F}={}){if(super({webSocket:F}),g!==void 0)throw new l(`unsupported keepAlive, use pipelining=0 instead`);if(s!==void 0)throw new l(`unsupported socketTimeout, use headersTimeout & bodyTimeout instead`);if(c!==void 0)throw new l(`unsupported requestTimeout, use headersTimeout & bodyTimeout instead`);if(h!==void 0)throw new l(`unsupported idleTimeout, use keepAliveTimeout instead`);if(y!==void 0)throw new l(`unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead`);if(n!=null&&!Number.isFinite(n))throw new l(`invalid maxHeaderSize`);if(C!=null&&typeof C!=`string`)throw new l(`invalid socketPath`);if(u!=null&&(!Number.isFinite(u)||u<0))throw new l(`invalid connectTimeout`);if(_!=null&&(!Number.isFinite(_)||_<=0))throw new l(`invalid keepAliveTimeout`);if(b!=null&&(!Number.isFinite(b)||b<=0))throw new l(`invalid keepAliveMaxTimeout`);if(x!=null&&!Number.isFinite(x))throw new l(`invalid keepAliveTimeoutThreshold`);if(o!=null&&(!Number.isInteger(o)||o<0))throw new l(`headersTimeout must be a positive integer or zero`);if(d!=null&&(!Number.isInteger(d)||d<0))throw new l(`bodyTimeout must be a positive integer or zero`);if(de!=null&&typeof de!=`function`&&typeof de!=`object`)throw new l(`connect must be a function or an object`);if(ue!=null&&(!Number.isInteger(ue)||ue<0))throw new l(`maxRedirections must be a positive number`);if(ye!=null&&(!Number.isInteger(ye)||ye<0))throw new l(`maxRequestsPerClient must be a positive number`);if(be!=null&&(typeof be!=`string`||r.isIP(be)===0))throw new l(`localAddress must be valid string IP address`);if(Ce!=null&&(!Number.isInteger(Ce)||Ce<-1))throw new l(`maxResponseSize must be a positive number`);if(Te!=null&&(!Number.isInteger(Te)||Te<-1))throw new l(`autoSelectFamilyAttemptTimeout must be a positive number`);if(Oe!=null&&typeof Oe!=`boolean`)throw new l(`allowH2 must be a valid boolean value`);if(De!=null&&(typeof De!=`number`||De<1))throw new l(`maxConcurrentStreams must be a positive integer, greater than 0`);typeof de!=`function`&&(de=f({...A,maxCachedSessions:le,allowH2:Oe,socketPath:C,timeout:u,...we?{autoSelectFamily:we,autoSelectFamilyAttemptTimeout:Te}:void 0,...de})),t?.Client&&Array.isArray(t.Client)?(this[fe]=t.Client,xe||(xe=!0,process.emitWarning(`Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.`,{code:`UNDICI-CLIENT-INTERCEPTOR-DEPRECATED`}))):this[fe]=[Ee({maxRedirections:ue})],this[p]=a.parseOrigin(e),this[ae]=de,this[j]=w??1,this[ee]=n||i.maxHeaderSize,this[E]=_??4e3,this[N]=b??6e5,this[te]=x??2e3,this[M]=this[E],this[m]=null,this[pe]=be??null,this[v]=0,this[T]=0,this[D]=`host: ${this[p].hostname}${this[p].port?`:${this[p].port}`:``}\r\n`,this[re]=d??3e5,this[ne]=o??3e5,this[ie]=ce??!0,this[oe]=ue,this[se]=ye,this[Se]=null,this[me]=Ce>-1?Ce:-1,this[_e]=De??100,this[ge]=null,this[S]=[],this[k]=0,this[O]=0,this[ve]=e=>ke(this,e),this[he]=e=>P(this,e)}get pipelining(){return this[j]}set pipelining(e){this[j]=e,this[ve](!0)}get[b](){return this[S].length-this[O]}get[y](){return this[O]-this[k]}get[x](){return this[S].length-this[k]}get[C](){return!!this[ge]&&!this[w]&&!this[ge].destroyed}get[g](){return!!(this[ge]?.busy(null)||this[x]>=(we(this)||1)||this[b]>0)}[_](e){De(this),this.once(`connect`,e)}[de](e,t){let n=new s(e.origin||this[p].origin,e,t);return this[S].push(n),this[v]||(a.bodyLength(n.body)==null&&a.isIterable(n.body)?(this[v]=1,queueMicrotask(()=>ke(this))):this[ve](!0)),this[v]&&this[T]!==2&&this[g]&&(this[T]=2),this[T]<2}async[le](){return new Promise(e=>{this[x]?this[Se]=e:e(null)})}async[ue](e){return new Promise(t=>{let n=this[S].splice(this[O]);for(let t=0;t{this[Se]&&(this[Se](),this[Se]=null),t(null)};this[ge]?(this[ge].destroy(e,r),this[ge]=null):queueMicrotask(r),this[ve]()})}};let Ee=_t();function P(e,t){if(e[y]===0&&t.code!==`UND_ERR_INFO`&&t.code!==`UND_ERR_SOCKET`){n(e[O]===e[k]);let r=e[S].splice(e[k]);for(let n=0;n{e[ae]({host:t,hostname:i,protocol:s,port:c,servername:e[m],localAddress:e[pe]},(e,t)=>{e?r(e):n(t)})});if(e.destroyed){a.destroy(r.on(`error`,Ce),new d);return}n(r);try{e[ge]=r.alpnProtocol===`h2`?await be(e,r):await ye(e,r)}catch(e){throw r.destroy().on(`error`,Ce),e}e[w]=!1,r[ce]=0,r[se]=e[se],r[h]=e,r[A]=null,o.connected.hasSubscribers&&o.connected.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[ge]?.version,servername:e[m],localAddress:e[pe]},connector:e[ae],socket:r}),e.emit(`connect`,e[p],[e])}catch(r){if(e.destroyed)return;if(e[w]=!1,o.connectError.hasSubscribers&&o.connectError.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[ge]?.version,servername:e[m],localAddress:e[pe]},connector:e[ae],error:r}),r.code===`ERR_TLS_CERT_ALTNAME_INVALID`)for(n(e[y]===0);e[b]>0&&e[S][e[O]].servername===e[m];){let t=e[S][e[O]++];a.errorRequest(e,t,r)}else P(e,r);e.emit(`connectionError`,e[p],[e],r)}e[ve]()}function Oe(e){e[T]=0,e.emit(`drain`,e[p],[e])}function ke(e,t){e[v]!==2&&(e[v]=2,Ae(e,t),e[v]=0,e[k]>256&&(e[S].splice(0,e[k]),e[O]-=e[k],e[k]=0))}function Ae(e,t){for(;;){if(e.destroyed){n(e[b]===0);return}if(e[Se]&&!e[x]){e[Se](),e[Se]=null;return}if(e[ge]&&e[ge].resume(),e[g])e[T]=2;else if(e[T]===2){t?(e[T]=1,queueMicrotask(()=>Oe(e))):Oe(e);continue}if(e[b]===0||e[y]>=(we(e)||1))return;let r=e[S][e[O]];if(e[p].protocol===`https:`&&e[m]!==r.servername){if(e[y]>0)return;e[m]=r.servername,e[ge]?.destroy(new u(`servername changed`),()=>{e[ge]=null,ke(e)})}if(e[w])return;if(!e[ge]){De(e);return}if(e[ge].destroyed||e[ge].busy(r))return;!r.aborted&&e[ge].write(r)?e[O]++:e[S].splice(e[O],1)}}t.exports=Te})),yt=P(((e,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}})),bt=P(((e,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=Ge(),c=Symbol(`pool`);t.exports=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}}})),xt=P(((e,t)=>{let n=Ze(),r=yt(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=Ge(),h=bt(),g=Symbol(`clients`),_=Symbol(`needDrain`),v=Symbol(`queue`),y=Symbol(`closed resolve`),b=Symbol(`onDrain`),x=Symbol(`onConnect`),S=Symbol(`onDisconnect`),C=Symbol(`onConnectionError`),w=Symbol(`get dispatcher`),T=Symbol(`add client`),E=Symbol(`remove client`),D=Symbol(`stats`);t.exports={PoolBase:class extends n{constructor(e){super(e),this[v]=new r,this[g]=[],this[c]=0;let t=this;this[b]=function(e,n){let r=t[v],i=!1;for(;!i;){let e=r.shift();if(!e)break;t[c]--,i=!this.dispatch(e.opts,e.handler)}this[_]=i,!this[_]&&t[_]&&(t[_]=!1,t.emit(`drain`,e,[t,...n])),t[y]&&r.isEmpty()&&Promise.all(t[g].map(e=>e.close())).then(t[y])},this[x]=(e,n)=>{t.emit(`connect`,e,[t,...n])},this[S]=(e,n,r)=>{t.emit(`disconnect`,e,[t,...n],r)},this[C]=(e,n,r)=>{t.emit(`connectionError`,e,[t,...n],r)},this[D]=new h(this)}get[l](){return this[_]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[_]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[D]}async[f](){this[v].isEmpty()?await Promise.all(this[g].map(e=>e.close())):await new Promise(e=>{this[y]=e})}async[p](e){for(;;){let t=this[v].shift();if(!t)break;t.handler.onError(e)}await Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[w]();return n?n.dispatch(e,t)||(n[_]=!0,this[_]=!this[w]()):(this[_]=!0,this[v].push({opts:e,handler:t}),this[c]++),!this[_]}[T](e){return e.on(`drain`,this[b]).on(`connect`,this[x]).on(`disconnect`,this[S]).on(`connectionError`,this[C]),this[g].push(e),this[_]&&queueMicrotask(()=>{this[_]&&this[b](e[d],[this,e])}),this}[E](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[_]=this[g].some(e=>!e[_]&&e.closed!==!0&&e.destroyed!==!0)}},kClients:g,kNeedDrain:_,kAddClient:T,kRemoveClient:E,kGetDispatcher:w}})),St=P(((e,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=xt(),s=vt(),{InvalidArgumentError:c}=I(),l=L(),{kUrl:u,kInterceptors:d}=Ge(),f=$e(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}t.exports=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:_,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y,allowH2:b,...x}={}){if(t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:b,socketPath:_,timeout:a,...v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y}:void 0,...i})),super(x),this[d]=x.interceptors?.Pool&&Array.isArray(x.interceptors.Pool)?x.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(x),connect:i,allowH2:b},this[p].interceptors=x.interceptors?{...x.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){for(let e of this[r])if(!e[i])return e;if(!this[m]||this[r].length{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=I(),{PoolBase:i,kClients:a,kNeedDrain:o,kAddClient:s,kRemoveClient:c,kGetDispatcher:l}=xt(),u=St(),{kUrl:d,kInterceptors:f}=Ge(),{parseOrigin:p}=L(),m=Symbol(`factory`),h=Symbol(`options`),g=Symbol(`kGreatestCommonDivisor`),_=Symbol(`kCurrentWeight`),v=Symbol(`kIndex`),y=Symbol(`kWeight`),b=Symbol(`kMaxWeightPerServer`),x=Symbol(`kErrorPenalty`);function S(e,t){if(e===0)return t;for(;t!==0;){let n=t;t=e%t,e=n}return e}function C(e,t){return new u(e,t)}t.exports=class extends i{constructor(e=[],{factory:t=C,...n}={}){if(super(),this[h]=n,this[v]=-1,this[_]=0,this[b]=this[h].maxWeightPerServer||100,this[x]=this[h].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof t!=`function`)throw new r(`factory must be a function.`);this[f]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[m]=t;for(let t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){let t=p(e).origin;if(this[a].find(e=>e[d].origin===t&&e.closed!==!0&&e.destroyed!==!0))return this;let n=this[m](t,Object.assign({},this[h]));this[s](n),n.on(`connect`,()=>{n[y]=Math.min(this[b],n[y]+this[x])}),n.on(`connectionError`,()=>{n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats()}),n.on(`disconnect`,(...e)=>{let t=e[2];t&&t.code===`UND_ERR_SOCKET`&&(n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats())});for(let e of this[a])e[y]=this[b];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==!0&&e.destroyed!==!0);return n&&this[c](n),this}get upstreams(){return this[a].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[d].origin)}[l](){if(this[a].length===0)throw new n;if(!this[a].find(e=>!e[o]&&e.closed!==!0&&e.destroyed!==!0)||this[a].map(e=>e[o]).reduce((e,t)=>e&&t,!0))return;let e=0,t=this[a].findIndex(e=>!e[o]);for(;e++this[a][t][y]&&!e[o]&&(t=this[v]),this[v]===0&&(this[_]=this[_]-this[g],this[_]<=0&&(this[_]=this[b])),e[y]>=this[_]&&!e[o])return e}return this[_]=this[a][t][y],this[v]=t,this[a][t]}}})),wt=P(((e,t)=>{let{InvalidArgumentError:n}=I(),{kClients:r,kRunning:i,kClose:a,kDestroy:o,kDispatch:s,kInterceptors:c}=Ge(),l=Ze(),u=St(),d=vt(),f=L(),p=_t(),m=Symbol(`onConnect`),h=Symbol(`onDisconnect`),g=Symbol(`onConnectionError`),_=Symbol(`maxRedirections`),v=Symbol(`onDrain`),y=Symbol(`factory`),b=Symbol(`options`);function x(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}t.exports=class extends l{constructor({factory:e=x,maxRedirections:t=0,connect:i,...a}={}){if(typeof e!=`function`)throw new n(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new n(`connect must be a function or an object`);if(!Number.isInteger(t)||t<0)throw new n(`maxRedirections must be a positive number`);super(a),i&&typeof i!=`function`&&(i={...i}),this[c]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[p({maxRedirections:t})],this[b]={...f.deepClone(a),connect:i},this[b].interceptors=a.interceptors?{...a.interceptors}:void 0,this[_]=t,this[y]=e,this[r]=new Map,this[v]=(e,t)=>{this.emit(`drain`,e,[this,...t])},this[m]=(e,t)=>{this.emit(`connect`,e,[this,...t])},this[h]=(e,t,n)=>{this.emit(`disconnect`,e,[this,...t],n)},this[g]=(e,t,n)=>{this.emit(`connectionError`,e,[this,...t],n)}}get[i](){let e=0;for(let t of this[r].values())e+=t[i];return e}[s](e,t){let i;if(e.origin&&(typeof e.origin==`string`||e.origin instanceof URL))i=String(e.origin);else throw new n(`opts.origin must be a non-empty string or URL.`);let a=this[r].get(i);return a||(a=this[y](e.origin,this[b]).on(`drain`,this[v]).on(`connect`,this[m]).on(`disconnect`,this[h]).on(`connectionError`,this[g]),this[r].set(i,a)),a.dispatch(e,t)}async[a](){let e=[];for(let t of this[r].values())e.push(t.close());this[r].clear(),await Promise.all(e)}async[o](e){let t=[];for(let n of this[r].values())t.push(n.destroy(e));this[r].clear(),await Promise.all(t)}}})),Tt=P(((e,t)=>{let{kProxy:n,kClose:r,kDestroy:i,kDispatch:a,kInterceptors:o}=Ge(),{URL:s}=F(`node:url`),c=wt(),l=St(),u=Ze(),{InvalidArgumentError:d,RequestAbortedError:f,SecureProxyConnectionError:p}=I(),m=$e(),h=vt(),g=Symbol(`proxy agent`),_=Symbol(`proxy client`),v=Symbol(`proxy headers`),y=Symbol(`request tls settings`),b=Symbol(`proxy tls settings`),x=Symbol(`connect endpoint function`),S=Symbol(`tunnel proxy`);function C(e){return e===`https:`?443:80}function w(e,t){return new l(e,t)}let T=()=>{};function E(e,t){return t.connections===1?new h(e,t):new l(e,t)}var D=class extends u{#e;constructor(e,{headers:t={},connect:n,factory:r}){if(super(),!e)throw new d(`Proxy URL is mandatory`);this[v]=t,r?this.#e=r(e,{connect:n}):this.#e=new h(e,{connect:n})}[a](e,t){let n=t.onHeaders;t.onHeaders=function(e,r,i){if(e===407){typeof t.onError==`function`&&t.onError(new d(`Proxy Authentication Required (407)`));return}n&&n.call(this,e,r,i)};let{origin:r,path:i=`/`,headers:o={}}=e;if(e.path=r+i,!(`host`in o)&&!(`Host`in o)){let{host:e}=new s(r);o.host=e}return e.headers={...this[v],...o},this.#e[a](e,t)}async[r](){return this.#e.close()}async[i](e){return this.#e.destroy(e)}},O=class extends u{constructor(e){if(super(),!e||typeof e==`object`&&!(e instanceof s)&&!e.uri)throw new d(`Proxy uri is mandatory`);let{clientFactory:t=w}=e;if(typeof t!=`function`)throw new d(`Proxy opts.clientFactory must be a function.`);let{proxyTunnel:r=!0}=e,i=this.#e(e),{href:a,origin:l,port:u,protocol:h,username:O,password:k,hostname:A}=i;if(this[n]={uri:a,protocol:h},this[o]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[y]=e.requestTls,this[b]=e.proxyTls,this[v]=e.headers||{},this[S]=r,e.auth&&e.token)throw new d(`opts.auth cannot be used in combination with opts.token`);e.auth?this[v][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[v][`proxy-authorization`]=e.token:O&&k&&(this[v][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(O)}:${decodeURIComponent(k)}`).toString(`base64`)}`);let j=m({...e.proxyTls});this[x]=m({...e.requestTls});let M=e.factory||E,ee=(e,t)=>{let{protocol:r}=new s(e);return!this[S]&&r===`http:`&&this[n].protocol===`http:`?new D(this[n].uri,{headers:this[v],connect:j,factory:M}):M(e,t)};this[_]=t(i,{connect:j}),this[g]=new c({...e,factory:ee,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${C(e.protocol)}`);try{let{socket:r,statusCode:i}=await this[_].connect({origin:l,port:u,path:n,signal:e.signal,headers:{...this[v],host:e.host},servername:this[b]?.servername||A});if(i!==200&&(r.on(`error`,T).destroy(),t(new f(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let a;a=this[y]?this[y].servername:e.servername,this[x]({...e,servername:a,httpSocket:r},t)}catch(e){e.code===`ERR_TLS_CERT_ALTNAME_INVALID`?t(new p(e)):t(e)}}})}dispatch(e,t){let n=k(e.headers);if(A(n),n&&!(`host`in n)&&!(`Host`in n)){let{host:t}=new s(e.origin);n.host=t}return this[g].dispatch({...e,headers:n},t)}#e(e){return typeof e==`string`?new s(e):e instanceof s?e:new s(e.uri)}async[r](){await this[g].close(),await this[_].close()}async[i](){await this[g].destroy(),await this[_].destroy()}};function k(e){if(Array.isArray(e)){let t={};for(let n=0;ne.toLowerCase()===`proxy-authorization`))throw new d(`Proxy-Authorization should be sent in ProxyAgent constructor`)}t.exports=O})),Et=P(((e,t)=>{let n=Ze(),{kClose:r,kDestroy:i,kClosed:a,kDestroyed:o,kDispatch:s,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=Ge(),d=Tt(),f=wt(),p={"http:":80,"https:":443},m=!1;t.exports=class extends n{#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,m||(m=!0,process.emitWarning(`EnvHttpProxyAgent is experimental, expect them to change at any time.`,{code:`UNDICI-EHPA`}));let{httpProxy:t,httpsProxy:n,noProxy:r,...i}=e;this[c]=new f(i);let a=t??process.env.http_proxy??process.env.HTTP_PROXY;a?this[l]=new d({...i,uri:a}):this[l]=this[c];let o=n??process.env.https_proxy??process.env.HTTPS_PROXY;o?this[u]=new d({...i,uri:o}):this[u]=this[l],this.#a()}[s](e,t){let n=new URL(e.origin);return this.#r(n).dispatch(e,t)}async[r](){await this[c].close(),this[l][a]||await this[l].close(),this[u][a]||await this[u].close()}async[i](e){await this[c].destroy(e),this[l][o]||await this[l].destroy(e),this[u][o]||await this[u].destroy(e)}#r(e){let{protocol:t,host:n,port:r}=e;return n=n.replace(/:\d*$/,``).toLowerCase(),r=Number.parseInt(r,10)||p[t]||0,this.#i(n,r)?t===`https:`?this[u]:this[l]:this[c]}#i(e,t){if(this.#o&&this.#a(),this.#t.length===0)return!0;if(this.#e===`*`)return!1;for(let n=0;n{let n=F(`node:assert`),{kRetryHandlerDefaultRetry:r}=Ge(),{RequestRetryError:i}=I(),{isDisturbed:a,parseHeaders:o,parseRangeHeader:s,wrapRequestBody:c}=L();function l(e){let t=Date.now();return new Date(e).getTime()-t}t.exports=class e{constructor(t,n){let{retryOptions:i,...a}=t,{retry:o,maxRetries:s,maxTimeout:l,minTimeout:u,timeoutFactor:d,methods:f,errorCodes:p,retryAfter:m,statusCodes:h}=i??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts={...a,body:c(t.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[r],retryAfter:m??!0,maxTimeout:l??30*1e3,minTimeout:u??500,timeoutFactor:d??2,maxRetries:s??5,methods:f??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:h??[500,502,503,504,429],errorCodes:p??[`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(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[r](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:c}=n,{maxRetries:u,minTimeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=c,{counter:_}=t;if(a&&a!==`UND_ERR_REQ_RETRY`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(_>u){r(e);return}let v=o?.[`retry-after`];v&&=(v=Number(v),Number.isNaN(v)?l(v):v*1e3);let y=Math.min(v>0?v:d*p**(_-1),f);setTimeout(()=>r(null),y)}onHeaders(e,t,r,a){let c=o(t);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,t,r,a):(this.abort(new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new i(`server does not support the range header and the payload was partially consumed`,e,{headers:c,data:{count:this.retryCount}})),!1;let t=s(c[`content-range`]);if(!t)return this.abort(new i(`Content-Range mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==c.etag)return this.abort(new i(`ETag mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;let{start:a,size:o,end:l=o-1}=t;return n(this.start===a,`content-range mismatch`),n(this.end==null||this.end===l,`content-range mismatch`),this.resume=r,!0}if(this.end==null){if(e===206){let i=s(c[`content-range`]);if(i==null)return this.handler.onHeaders(e,t,r,a);let{start:o,size:l,end:u=l-1}=i;n(o!=null&&Number.isFinite(o),`content-range mismatch`),n(u!=null&&Number.isFinite(u),`invalid content-length`),this.start=o,this.end=u}if(this.end==null){let e=c[`content-length`];this.end=e==null?null:Number(e)-1}return n(Number.isFinite(this.start)),n(this.end==null||Number.isFinite(this.end),`invalid content-length`),this.resume=r,this.etag=c.etag==null?null:c.etag,this.etag!=null&&this.etag.startsWith(`W/`)&&(this.etag=null),this.handler.onHeaders(e,t,r,a)}let l=new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||a(this.opts.body))return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},t.bind(this));function t(e){if(e!=null||this.aborted||a(this.opts.body))return this.handler.onError(e);if(this.start!==0){let e={range:`bytes=${this.start}-${this.end??``}`};this.etag!=null&&(e[`if-match`]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}})),Ot=P(((e,t)=>{let n=Xe(),r=Dt();t.exports=class extends n{#e=null;#t=null;constructor(e,t={}){super(t),this.#e=e,this.#t=t}dispatch(e,t){let n=new r({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:t});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}}})),kt=P(((e,t)=>{let n=F(`node:assert`),{Readable:r}=F(`node:stream`),{RequestAbortedError:i,NotSupportedError:a,InvalidArgumentError:o,AbortError:s}=I(),c=L(),{ReadableStreamFrom:l}=L(),u=Symbol(`kConsume`),d=Symbol(`kReading`),f=Symbol(`kBody`),p=Symbol(`kAbort`),m=Symbol(`kContentType`),h=Symbol(`kContentLength`),g=()=>{};var _=class extends r{constructor({resume:e,abort:t,contentType:n=``,contentLength:r,highWaterMark:i=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:i}),this._readableState.dataEmitted=!1,this[p]=t,this[u]=null,this[f]=null,this[m]=n,this[h]=r,this[d]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new i),e&&this[p](),super.destroy(e)}_destroy(e,t){this[d]?t(e):setImmediate(()=>{t(e)})}on(e,...t){return(e===`data`||e===`readable`)&&(this[d]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){let n=super.off(e,...t);return(e===`data`||e===`readable`)&&(this[d]=this.listenerCount(`data`)>0||this.listenerCount(`readable`)>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[u]&&e!==null?(T(this[u],e),this[d]?super.push(e):!0):super.push(e)}async text(){return b(this,`text`)}async json(){return b(this,`json`)}async blob(){return b(this,`blob`)}async bytes(){return b(this,`bytes`)}async arrayBuffer(){return b(this,`arrayBuffer`)}async formData(){throw new a}get bodyUsed(){return c.isDisturbed(this)}get body(){return this[f]||(this[f]=l(this),this[u]&&(this[f].getReader(),n(this[f].locked))),this[f]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024,n=e?.signal;if(n!=null&&(typeof n!=`object`||!(`aborted`in n)))throw new o(`signal must be an AbortSignal`);return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((e,r)=>{this[h]>t&&this.destroy(new s);let i=()=>{this.destroy(n.reason??new s)};n?.addEventListener(`abort`,i),this.on(`close`,function(){n?.removeEventListener(`abort`,i),n?.aborted?r(n.reason??new s):e(null)}).on(`error`,g).on(`data`,function(e){t-=e.length,t<=0&&this.destroy()}).resume()})}};function v(e){return e[f]&&e[f].locked===!0||e[u]}function y(e){return c.isDisturbed(e)||v(e)}async function b(e,t){return n(!e[u]),new Promise((n,r)=>{if(y(e)){let t=e._readableState;t.destroyed&&t.closeEmitted===!1?e.on(`error`,e=>{r(e)}).on(`close`,()=>{r(TypeError(`unusable`))}):r(t.errored??TypeError(`unusable`))}else queueMicrotask(()=>{e[u]={type:t,stream:e,resolve:n,reject:r,length:0,body:[]},e.on(`error`,function(e){E(this[u],e)}).on(`close`,function(){this[u].body!==null&&E(this[u],new i)}),x(e[u])})})}function x(e){if(e.body===null)return;let{_readableState:t}=e.stream;if(t.bufferIndex){let n=t.bufferIndex,r=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,r)}function C(e,t){if(e.length===0||t===0)return new Uint8Array;if(e.length===1)return new Uint8Array(e[0]);let n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer),r=0;for(let t=0;t{let n=F(`node:assert`),{ResponseStatusCodeError:r}=I(),{chunksDecode:i}=kt();async function a({callback:e,body:t,contentType:a,statusCode:c,statusMessage:l,headers:u}){n(t);let d=[],f=0;try{for await(let e of t)if(d.push(e),f+=e.length,f>131072){d=[],f=0;break}}catch{d=[],f=0}let p=`Response status code ${c}${l?`: ${l}`:``}`;if(c===204||!a||!f){queueMicrotask(()=>e(new r(p,c,u)));return}let m=Error.stackTraceLimit;Error.stackTraceLimit=0;let h;try{o(a)?h=JSON.parse(i(d,f)):s(a)&&(h=i(d,f))}catch{}finally{Error.stackTraceLimit=m}queueMicrotask(()=>e(new r(p,c,u,h)))}let o=e=>e.length>15&&e[11]===`/`&&e[0]===`a`&&e[1]===`p`&&e[2]===`p`&&e[3]===`l`&&e[4]===`i`&&e[5]===`c`&&e[6]===`a`&&e[7]===`t`&&e[8]===`i`&&e[9]===`o`&&e[10]===`n`&&e[12]===`j`&&e[13]===`s`&&e[14]===`o`&&e[15]===`n`,s=e=>e.length>4&&e[4]===`/`&&e[0]===`t`&&e[1]===`e`&&e[2]===`x`&&e[3]===`t`;t.exports={getResolveErrorBodyCallback:a,isContentTypeApplicationJson:o,isContentTypeText:s}})),jt=P(((e,t)=>{let n=F(`node:assert`),{Readable:r}=kt(),{InvalidArgumentError:i,RequestAbortedError:a}=I(),o=L(),{getResolveErrorBodyCallback:s}=At(),{AsyncResource:c}=F(`node:async_hooks`);var l=class extends c{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);let{signal:n,method:r,opaque:s,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:f}=e;try{if(typeof t!=`function`)throw new i(`invalid callback`);if(f&&(typeof f!=`number`||f<0))throw new i(`invalid highWaterMark`);if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new i(`invalid method`);if(l&&typeof l!=`function`)throw new i(`invalid onInfo callback`);super(`UNDICI_REQUEST`)}catch(e){throw o.isStream(c)&&o.destroy(c.on(`error`,o.nop),e),e}this.method=r,this.responseHeaders=u||null,this.opaque=s||null,this.callback=t,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=f,this.signal=n,this.reason=null,this.removeAbortListener=null,o.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new a:this.removeAbortListener=o.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new a,this.res?o.destroy(this.res.on(`error`,o.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&=(this.res?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}))}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,i){let{callback:a,opaque:c,abort:l,context:u,responseHeaders:d,highWaterMark:f}=this,p=d===`raw`?o.parseRawHeaders(t):o.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=d===`raw`?o.parseHeaders(t):p,h=m[`content-type`],g=m[`content-length`],_=new r({resume:n,abort:l,contentType:h,contentLength:this.method!==`HEAD`&&g?Number(g):null,highWaterMark:f});this.removeAbortListener&&_.on(`close`,this.removeAbortListener),this.callback=null,this.res=_,a!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:a,body:_,contentType:h,statusCode:e,statusMessage:i,headers:p}):this.runInAsyncScope(a,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:_,context:u}))}onData(e){return this.res.push(e)}onComplete(e){o.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:t,callback:n,body:r,opaque:i}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),t&&(this.res=null,queueMicrotask(()=>{o.destroy(t,e)})),r&&(this.body=null,o.destroy(r,e)),this.removeAbortListener&&=(t?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{this.dispatch(e,new l(e,t))}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u,t.exports.RequestHandler=l})),Mt=P(((e,t)=>{let{addAbortListener:n}=L(),{RequestAbortedError:r}=I(),i=Symbol(`kListener`),a=Symbol(`kSignal`);function o(e){e.abort?e.abort(e[a]?.reason):e.reason=e[a]?.reason??new r,c(e)}function s(e,t){if(e.reason=null,e[a]=null,e[i]=null,t){if(t.aborted){o(e);return}e[a]=t,e[i]=()=>{o(e)},n(e[a],e[i])}}function c(e){e[a]&&(`removeEventListener`in e[a]?e[a].removeEventListener(`abort`,e[i]):e[a].removeListener(`abort`,e[i]),e[a]=null,e[i]=null)}t.exports={addSignal:s,removeSignal:c}})),Nt=P(((e,t)=>{let n=F(`node:assert`),{finished:r,PassThrough:i}=F(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o}=I(),s=L(),{getResolveErrorBodyCallback:c}=At(),{AsyncResource:l}=F(`node:async_hooks`),{addSignal:u,removeSignal:d}=Mt();var f=class extends l{constructor(e,t,n){if(!e||typeof e!=`object`)throw new a(`invalid opts`);let{signal:r,method:i,opaque:o,body:c,onInfo:l,responseHeaders:d,throwOnError:f}=e;try{if(typeof n!=`function`)throw new a(`invalid callback`);if(typeof t!=`function`)throw new a(`invalid factory`);if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_STREAM`)}catch(e){throw s.isStream(c)&&s.destroy(c.on(`error`,s.nop),e),e}this.responseHeaders=d||null,this.opaque=o||null,this.factory=t,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=f||!1,s.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),u(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,a){let{factory:l,opaque:u,context:d,callback:f,responseHeaders:p}=this,m=p===`raw`?s.parseRawHeaders(t):s.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:m});return}this.factory=null;let h;if(this.throwOnError&&e>=400){let n=(p===`raw`?s.parseHeaders(t):m)[`content-type`];h=new i,this.callback=null,this.runInAsyncScope(c,null,{callback:f,body:h,contentType:n,statusCode:e,statusMessage:a,headers:m})}else{if(l===null)return;if(h=this.runInAsyncScope(l,null,{statusCode:e,headers:m,opaque:u,context:d}),!h||typeof h.write!=`function`||typeof h.end!=`function`||typeof h.on!=`function`)throw new o(`expected Writable`);r(h,{readable:!1},e=>{let{callback:t,res:n,opaque:r,trailers:i,abort:a}=this;this.res=null,(e||!n.readable)&&s.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&a()})}return h.on(`drain`,n),this.res=h,(h.writableNeedDrain===void 0?h._writableState?.needDrain:h.writableNeedDrain)!==!0}onData(e){let{res:t}=this;return t?t.write(e):!0}onComplete(e){let{res:t}=this;d(this),t&&(this.trailers=s.parseHeaders(e),t.end())}onError(e){let{res:t,callback:n,opaque:r,body:i}=this;d(this),this.factory=null,t?(this.res=null,s.destroy(t,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:r})})),i&&(this.body=null,s.destroy(i,e))}};function p(e,t,n){if(n===void 0)return new Promise((n,r)=>{p.call(this,e,t,(e,t)=>e?r(e):n(t))});try{this.dispatch(e,new f(e,t,n))}catch(t){if(typeof n!=`function`)throw t;let r=e?.opaque;queueMicrotask(()=>n(t,{opaque:r}))}}t.exports=p})),Pt=P(((e,t)=>{let{Readable:n,Duplex:r,PassThrough:i}=F(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o,RequestAbortedError:s}=I(),c=L(),{AsyncResource:l}=F(`node:async_hooks`),{addSignal:u,removeSignal:d}=Mt(),f=F(`node:assert`),p=Symbol(`resume`);var m=class extends n{constructor(){super({autoDestroy:!0}),this[p]=null}_read(){let{[p]:e}=this;e&&(this[p]=null,e())}_destroy(e,t){this._read(),t(e)}},h=class extends n{constructor(e){super({autoDestroy:!0}),this[p]=e}_read(){this[p]()}_destroy(e,t){!e&&!this._readableState.endEmitted&&(e=new s),t(e)}},g=class extends l{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);if(typeof t!=`function`)throw new a(`invalid handler`);let{signal:n,method:i,opaque:o,onInfo:l,responseHeaders:f}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_PIPELINE`),this.opaque=o||null,this.responseHeaders=f||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=l||null,this.req=new m().on(`error`,c.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e?.resume&&e.resume()},write:(e,t,n)=>{let{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[p]=n},destroy:(e,t)=>{let{body:n,req:r,res:i,ret:a,abort:o}=this;!e&&!a._readableState.endEmitted&&(e=new s),o&&e&&o(),c.destroy(n,e),c.destroy(r,e),c.destroy(i,e),d(this),t(e)}}).on(`prefinish`,()=>{let{req:e}=this;e.push(null)}),this.res=null,u(this,n)}onConnect(e,t){let{ret:n,res:r}=this;if(this.reason){e(this.reason);return}f(!r,`pipeline cannot be retried`),f(!n.destroyed),this.abort=e,this.context=t}onHeaders(e,t,n){let{opaque:r,handler:i,context:a}=this;if(e<200){if(this.onInfo){let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new h(n);let l;try{this.handler=null;let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);l=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:a})}catch(e){throw this.res.on(`error`,c.nop),e}if(!l||typeof l.on!=`function`)throw new o(`expected Readable`);l.on(`data`,e=>{let{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()}).on(`error`,e=>{let{ret:t}=this;c.destroy(t,e)}).on(`end`,()=>{let{ret:e}=this;e.push(null)}).on(`close`,()=>{let{ret:e}=this;e._readableState.ended||c.destroy(e,new s)}),this.body=l}onData(e){let{res:t}=this;return t.push(e)}onComplete(e){let{res:t}=this;t.push(null)}onError(e){let{ret:t}=this;this.handler=null,c.destroy(t,e)}};function _(e,t){try{let n=new g(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return new i().destroy(e)}}t.exports=_})),Ft=P(((e,t)=>{let{InvalidArgumentError:n,SocketError:r}=I(),{AsyncResource:i}=F(`node:async_hooks`),a=L(),{addSignal:o,removeSignal:s}=Mt(),c=F(`node:assert`);var l=class extends i{constructor(e,t){if(!e||typeof e!=`object`)throw new n(`invalid opts`);if(typeof t!=`function`)throw new n(`invalid callback`);let{signal:r,opaque:i,responseHeaders:a}=e;if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new n(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_UPGRADE`),this.responseHeaders=a||null,this.opaque=i||null,this.callback=t,this.abort=null,this.context=null,o(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}c(this.callback),this.abort=e,this.context=null}onHeaders(){throw new r(`bad upgrade`,null)}onUpgrade(e,t,n){c(e===101);let{callback:r,opaque:i,context:o}=this;s(this),this.callback=null;let l=this.responseHeaders===`raw`?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:l,socket:n,opaque:i,context:o})}onError(e){let{callback:t,opaque:n}=this;s(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:e.method||`GET`,upgrade:e.protocol||`Websocket`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),It=P(((e,t)=>{let n=F(`node:assert`),{AsyncResource:r}=F(`node:async_hooks`),{InvalidArgumentError:i,SocketError:a}=I(),o=L(),{addSignal:s,removeSignal:c}=Mt();var l=class extends r{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);if(typeof t!=`function`)throw new i(`invalid callback`);let{signal:n,opaque:r,responseHeaders:a}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_CONNECT`),this.opaque=r||null,this.responseHeaders=a||null,this.callback=t,this.abort=null,s(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(){throw new a(`bad connect`,null)}onUpgrade(e,t,n){let{callback:r,opaque:i,context:a}=this;c(this),this.callback=null;let s=t;s!=null&&(s=this.responseHeaders===`raw`?o.parseRawHeaders(t):o.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:s,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:`CONNECT`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),Lt=P(((e,t)=>{t.exports.request=jt(),t.exports.stream=Nt(),t.exports.pipeline=Pt(),t.exports.upgrade=Ft(),t.exports.connect=It()})),Rt=P(((e,t)=>{let{UndiciError:n}=I(),r=Symbol.for(`undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED`);t.exports={MockNotMatchedError:class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),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](e){return e&&e[r]===!0}[r]=!0}}})),zt=P(((e,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`)}})),Bt=P(((e,t)=>{let{MockNotMatchedError:n}=Rt(),{kDispatches:r,kMockAgent:i,kOriginalDispatch:a,kOrigin:o,kGetNetConnect:s}=zt(),{buildURL:c}=L(),{STATUS_CODES:l}=F(`node:http`),{types:{isPromise:u}}=F(`node:util`);function d(e,t){return typeof e==`string`?e===t:e instanceof RegExp?e.test(t):typeof e==`function`?e(t)===!0:!1}function f(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.toLocaleLowerCase(),t]))}function p(e,t){if(Array.isArray(e)){for(let n=0;n!e).filter(({path:e})=>d(g(e),i));if(a.length===0)throw new n(`Mock dispatch not matched for path '${i}'`);if(a=a.filter(({method:e})=>d(e,t.method)),a.length===0)throw new n(`Mock dispatch not matched for method '${t.method}' on path '${i}'`);if(a=a.filter(({body:e})=>e===void 0?!0:d(e,t.body)),a.length===0)throw new n(`Mock dispatch not matched for body '${t.body}' on path '${i}'`);if(a=a.filter(e=>h(e,t.headers)),a.length===0)throw new n(`Mock dispatch not matched for headers '${typeof t.headers==`object`?JSON.stringify(t.headers):t.headers}' on path '${i}'`);return a[0]}function b(e,t,n){let r={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof n==`function`?{callback:n}:{...n},a={...r,...t,pending:!0,data:{error:null,...i}};return e.push(a),a}function x(e,t){let n=e.findIndex(e=>e.consumed?_(e,t):!1);n!==-1&&e.splice(n,1)}function S(e){let{path:t,method:n,body:r,headers:i,query:a}=e;return{path:t,method:n,body:r,headers:i,query:a}}function C(e){let t=Object.keys(e),n=[];for(let r=0;r=h,i.pending=p0?setTimeout(()=>{g(this[r])},d):g(this[r]);function g(r,i=o){let l=Array.isArray(e.headers)?m(e.headers):e.headers,d=typeof i==`function`?i({...e,headers:l}):i;if(u(d)){d.then(e=>g(r,e));return}let f=v(d),p=C(s),h=C(c);t.onConnect?.(e=>t.onError(e),null),t.onHeaders?.(a,p,_,w(a)),t.onData?.(Buffer.from(f)),t.onComplete?.(h),x(r,n)}function _(){}return!0}function D(){let e=this[i],t=this[o],r=this[a];return function(i,a){if(e.isMockActive)try{E.call(this,i,a)}catch(o){if(o instanceof n){let c=e[s]();if(c===!1)throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`);if(O(c,t))r.call(this,i,a);else throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}else throw o}else r.call(this,i,a)}}function O(e,t){let n=new URL(t);return e===!0?!0:!!(Array.isArray(e)&&e.some(e=>d(e,n.host)))}function k(e){if(e){let{agent:t,...n}=e;return n}}t.exports={getResponseData:v,getMockDispatch:y,addMockDispatch:b,deleteMockDispatch:x,buildKey:S,generateKeyValues:C,matchValue:d,getResponse:T,getStatusText:w,mockDispatch:E,buildMockDispatch:D,checkNetConnect:O,buildMockOptions:k,getHeaderByName:p,buildHeadersFromArray:m}})),Vt=P(((e,t)=>{let{getResponseData:n,buildKey:r,addMockDispatch:i}=Bt(),{kDispatches:a,kDispatchKey:o,kDefaultHeaders:s,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=zt(),{InvalidArgumentError:d}=I(),{buildURL:f}=L();var p=class{constructor(e){this[u]=e}delay(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`waitInMs must be a valid integer > 0`);return this[u].delay=e,this}persist(){return this[u].persist=!0,this}times(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`repeatTimes must be a valid integer > 0`);return this[u].times=e,this}},m=class{constructor(e,t){if(typeof e!=`object`)throw new d(`opts must be an object`);if(e.path===void 0)throw new d(`opts.path must be defined`);if(e.method===void 0&&(e.method=`GET`),typeof e.path==`string`)if(e.query)e.path=f(e.path,e.query);else{let t=new URL(e.path,`data://`);e.path=t.pathname+t.search}typeof e.method==`string`&&(e.method=e.method.toUpperCase()),this[o]=r(e),this[a]=t,this[s]={},this[c]={},this[l]=!1}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){let i=n(t),a=this[l]?{"content-length":i.length}:{};return{statusCode:e,data:t,headers:{...this[s],...a,...r.headers},trailers:{...this[c],...r.trailers}}}validateReplyParameters(e){if(e.statusCode===void 0)throw new d(`statusCode must be defined`);if(typeof e.responseOptions!=`object`||e.responseOptions===null)throw new d(`responseOptions must be an object`)}reply(e){if(typeof e==`function`)return new p(i(this[a],this[o],t=>{let n=e(t);if(typeof n!=`object`||!n)throw new d(`reply options callback must return an object`);let r={data:``,responseOptions:{},...n};return this.validateReplyParameters(r),{...this.createMockScopeDispatchData(r)}}));let t={statusCode:e,data:arguments[1]===void 0?``:arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(t);let n=this.createMockScopeDispatchData(t);return new p(i(this[a],this[o],n))}replyWithError(e){if(e===void 0)throw new d(`error must be defined`);return new p(i(this[a],this[o],{error:e}))}defaultReplyHeaders(e){if(e===void 0)throw new d(`headers must be defined`);return this[s]=e,this}defaultReplyTrailers(e){if(e===void 0)throw new d(`trailers must be defined`);return this[c]=e,this}replyContentLength(){return this[l]=!0,this}};t.exports.MockInterceptor=m,t.exports.MockScope=p})),Ht=P(((e,t)=>{let{promisify:n}=F(`node:util`),r=vt(),{buildMockDispatch:i}=Bt(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=zt(),{MockInterceptor:f}=Vt(),p=Ge(),{InvalidArgumentError:m}=I();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),Ut=P(((e,t)=>{let{promisify:n}=F(`node:util`),r=St(),{buildMockDispatch:i}=Bt(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=zt(),{MockInterceptor:f}=Vt(),p=Ge(),{InvalidArgumentError:m}=I();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),Wt=P(((e,t)=>{let n={pronoun:`it`,is:`is`,was:`was`,this:`this`},r={pronoun:`they`,is:`are`,was:`were`,this:`these`};t.exports=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(e){let t=e===1,i=t?n:r,a=t?this.singular:this.plural;return{...i,count:e,noun:a}}}})),Gt=P(((e,t)=>{let{Transform:n}=F(`node:stream`),{Console:r}=F(`node:console`),i=process.versions.icu?`✅`:`Y `,a=process.versions.icu?`❌`:`N `;t.exports=class{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,n){n(null,e)}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let t=e.map(({method:e,path:t,data:{statusCode:n},persist:r,times:o,timesInvoked:s,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":n,Persistent:r?i:a,Invocations:s,Remaining:r?1/0:o-s}));return this.logger.table(t),this.transform.read().toString()}}})),Kt=P(((e,t)=>{let{kClients:n}=Ge(),r=wt(),{kAgent:i,kMockAgentSet:a,kMockAgentGet:o,kDispatches:s,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:f}=zt(),p=Ht(),m=Ut(),{matchValue:h,buildMockOptions:g}=Bt(),{InvalidArgumentError:_,UndiciError:v}=I(),y=Xe(),b=Wt(),x=Gt();t.exports=class extends y{constructor(e){if(super(e),this[l]=!0,this[c]=!0,e?.agent&&typeof e.agent.dispatch!=`function`)throw new _(`Argument opts.agent must implement Agent`);let t=e?.agent?e.agent:new r(e);this[i]=t,this[n]=t[n],this[d]=g(e)}get(e){let t=this[o](e);return t||(t=this[f](e),this[a](e,t)),t}dispatch(e,t){return this.get(e.origin),this[i].dispatch(e,t)}async close(){await this[i].close(),this[n].clear()}deactivate(){this[c]=!1}activate(){this[c]=!0}enableNetConnect(e){if(typeof e==`string`||typeof e==`function`||e instanceof RegExp)Array.isArray(this[l])?this[l].push(e):this[l]=[e];else if(e===void 0)this[l]=!0;else throw new _(`Unsupported matcher. Must be one of String|Function|RegExp.`)}disableNetConnect(){this[l]=!1}get isMockActive(){return this[c]}[a](e,t){this[n].set(e,t)}[f](e){let t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new m(e,t)}[o](e){let t=this[n].get(e);if(t)return t;if(typeof e!=`string`){let t=this[f](`http://localhost:9999`);return this[a](e,t),t}for(let[t,r]of Array.from(this[n]))if(r&&typeof t!=`string`&&h(t,e)){let t=this[f](e);return this[a](e,t),t[s]=r[s],t}}[u](){return this[l]}pendingInterceptors(){let e=this[n];return Array.from(e.entries()).flatMap(([e,t])=>t[s].map(t=>({...t,origin:e}))).filter(({pending:e})=>e)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new x}={}){let t=this.pendingInterceptors();if(t.length===0)return;let n=new b(`interceptor`,`interceptors`).pluralize(t.length);throw new v(` ${n.count} ${n.noun} ${n.is} pending: ${e.format(t)} -`.trim())}}})),Gt=P(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=I(),i=St();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),Kt=P(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),qt=P(((e,t)=>{let n=mt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),Jt=P(((e,t)=>{let n=Tt();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),Yt=P(((e,t)=>{let n=L(),{InvalidArgumentError:r,RequestAbortedError:i}=I(),a=Kt();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),Xt=P(((e,t)=>{let{isIP:n}=F(`node:net`),{lookup:r}=F(`node:dns`),i=Kt(),{InvalidArgumentError:a,InformationalError:o}=I(),s=2**31-1;var c=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new o(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),s=this.pick(e,a,i.affinity),c;c=typeof s.port==`number`?`:${s.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${s.family===6?`[${s.address}]`:s.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){r(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===s?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===s?o.offset=0:o.offset++;let c=o.offset%o.ips.length;return r=o.ips[c]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(c,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new l(this,e,t)}},l=class extends i{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};t.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new a(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new a(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new a(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new a(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new a(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new a(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,r;r=t?e?.affinity??null:e?.affinity??4;let i=new c({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0});return e=>function(t,r){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return n(a.hostname)===0?(i.runLookup(a,t,(n,o)=>{if(n)return r.onError(n);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:r},t))}),!0):e(t,r)}}})),Zt=P(((e,t)=>{let{kConstruct:n}=Ue(),{kEnumerableProperty:r}=L(),{iteratorMixin:i,isValidHeaderName:a,isValidHeaderValue:o}=ot(),{webidl:s}=at(),c=F(`node:assert`),l=F(`node:util`),u=Symbol(`headers map`),d=Symbol(`headers map sorted`);function f(e){return e===10||e===13||e===9||e===32}function p(e){let t=0,n=e.length;for(;n>t&&f(e.charCodeAt(n-1));)--n;for(;n>t&&f(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function m(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function h(e,t,n){if(n=p(n),!a(t))throw s.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(y(e)===`immutable`)throw TypeError(`immutable`);return x(e).append(t,n,!1)}function g(e,t){return e[0]>1),t[s][0]<=l[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=l}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[u])t[e++]=[n,r],c(r!==null);return t.sort(g)}}},v=class e{#e;#t;constructor(e=void 0){s.util.markAsUncloneable(this),e!==n&&(this.#t=new _,this.#e=`none`,e!==void 0&&(e=s.converters.HeadersInit(e,`Headers contructor`,`init`),m(this,e)))}append(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),h(this,t,n)}delete(t){if(s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.delete`),t=s.converters.ByteString(t,`Headers.delete`,`name`),!a(t))throw s.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),n=p(n),!a(t))throw s.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){s.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[d](){if(this.#t[d])return this.#t[d];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[d]=t;for(let r=0;r>`](e,t,n,r.bind(e)):s.converters[`record`](e,t,n)}throw s.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},t.exports={fill:m,compareHeaderName:g,Headers:v,HeadersList:_,getHeadersGuard:y,setHeadersGuard:b,setHeadersList:S,getHeadersList:x}})),Qt=P(((e,t)=>{let{Headers:n,HeadersList:r,fill:i,getHeadersGuard:a,setHeadersGuard:o,setHeadersList:s}=Zt(),{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:f,bodyUnusable:p}=dt(),m=L(),h=F(`node:util`),{kEnumerableProperty:g}=m,{isValidReasonPhrase:_,isCancelled:v,isAborted:y,isBlobLike:b,serializeJavascriptValueToJSONString:x,isErrorLike:S,isomorphicEncode:C,environmentSettingsObject:w}=ot(),{redirectStatusSet:T,nullBodyStatus:E}=nt(),{kState:D,kHeaders:O}=st(),{webidl:k}=at(),{FormData:A}=lt(),{URLSerializer:j}=it(),{kConstruct:M}=Ue(),ee=F(`node:assert`),{types:N}=F(`node:util`),te=new TextEncoder(`utf-8`);var ne=class e{static error(){return de(ae(),`immutable`)}static json(e,t={}){k.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=k.converters.ResponseInit(t));let n=c(te.encode(x(e))),r=de(ie({}),`response`);return ue(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){k.argumentLengthCheck(arguments,1,`Response.redirect`),e=k.converters.USVString(e),t=k.converters[`unsigned short`](t);let n;try{n=new URL(e,w.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!T.has(t))throw RangeError(`Invalid status code ${t}`);let r=de(ie({}),`immutable`);r[D].status=t;let i=C(j(n));return r[D].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(k.util.markAsUncloneable(this),e===M)return;e!==null&&(e=k.converters.BodyInit(e)),t=k.converters.ResponseInit(t),this[D]=ie({}),this[O]=new n(M),o(this[O],`response`),s(this[O],this[D].headersList);let r=null;if(e!=null){let[t,n]=c(e);r={body:t,type:n}}ue(this,t,r)}get type(){return k.brandCheck(this,e),this[D].type}get url(){k.brandCheck(this,e);let t=this[D].urlList,n=t[t.length-1]??null;return n===null?``:j(n,!0)}get redirected(){return k.brandCheck(this,e),this[D].urlList.length>1}get status(){return k.brandCheck(this,e),this[D].status}get ok(){return k.brandCheck(this,e),this[D].status>=200&&this[D].status<=299}get statusText(){return k.brandCheck(this,e),this[D].statusText}get headers(){return k.brandCheck(this,e),this[O]}get body(){return k.brandCheck(this,e),this[D].body?this[D].body.stream:null}get bodyUsed(){return k.brandCheck(this,e),!!this[D].body&&m.isDisturbed(this[D].body.stream)}clone(){if(k.brandCheck(this,e),p(this))throw k.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=re(this[D]);return d&&this[D].body?.stream&&f.register(this,new WeakRef(this[D].body.stream)),de(t,a(this[O]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};u(ne),Object.defineProperties(ne.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(ne,{json:g,redirect:g,error:g});function re(e){if(e.internalResponse)return ce(re(e.internalResponse),e.type);let t=ie({...e,body:null});return e.body!=null&&(t.body=l(t,e.body)),t}function ie(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new r(e?.headersList):new r,urlList:e?.urlList?[...e.urlList]:[]}}function ae(e){return ie({type:`error`,status:0,error:S(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function oe(e){return e.type===`error`&&e.status===0}function se(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return ee(!(n in t)),e[n]=r,!0}})}function ce(e,t){if(t===`basic`)return se(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return se(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return se(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return se(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});ee(!1)}function le(e,t=null){return ee(v(e)),y(e)?ae(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):ae(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function ue(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!_(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[D].status=t.status),`statusText`in t&&t.statusText!=null&&(e[D].statusText=t.statusText),`headers`in t&&t.headers!=null&&i(e[O],t.headers),n){if(E.includes(e.status))throw k.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[D].body=n.body,n.type!=null&&!e[D].headersList.contains(`content-type`,!0)&&e[D].headersList.append(`content-type`,n.type,!0)}}function de(e,t){let r=new ne(M);return r[D]=e,r[O]=new n(M),s(r[O],e.headersList),o(r[O],t),d&&e.body?.stream&&f.register(r,new WeakRef(e.body.stream)),r}k.converters.ReadableStream=k.interfaceConverter(ReadableStream),k.converters.FormData=k.interfaceConverter(A),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?k.converters.USVString(e,t,n):b(e)?k.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||N.isArrayBuffer(e)?k.converters.BufferSource(e,t,n):m.isFormDataLike(e)?k.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?k.converters.URLSearchParams(e,t,n):k.converters.DOMString(e,t,n)},k.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?k.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:k.converters.XMLHttpRequestBodyInit(e,t,n)},k.converters.ResponseInit=k.dictionaryConverter([{key:`status`,converter:k.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:k.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:k.converters.HeadersInit}]),t.exports={isNetworkError:oe,makeNetworkError:ae,makeResponse:ie,makeAppropriateNetworkError:le,filterResponse:ce,Response:ne,cloneResponse:re,fromInnerResponse:de}})),$t=P(((e,t)=>{let{kConnected:n,kSize:r}=Ue();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),en=P(((e,t)=>{let{extractBody:n,mixinBody:r,cloneBody:i,bodyUnusable:a}=dt(),{Headers:o,fill:s,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:f}=Zt(),{FinalizationRegistry:p}=$t()(),m=L(),h=F(`node:util`),{isValidHTTPToken:g,sameOrigin:_,environmentSettingsObject:v}=ot(),{forbiddenMethodsSet:y,corsSafeListedMethodsSet:b,referrerPolicy:x,requestRedirect:S,requestMode:C,requestCredentials:w,requestCache:T,requestDuplex:E}=nt(),{kEnumerableProperty:D,normalizedMethodRecordsBase:O,normalizedMethodRecords:k}=m,{kHeaders:A,kSignal:j,kState:M,kDispatcher:ee}=st(),{webidl:N}=at(),{URLSerializer:te}=it(),{kConstruct:ne}=Ue(),re=F(`node:assert`),{getMaxListeners:ie,setMaxListeners:ae,getEventListeners:oe,defaultMaxListeners:se}=F(`node:events`),ce=Symbol(`abortController`),le=new p(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),ue=new WeakMap;function de(e){return t;function t(){let n=e.deref();if(n!==void 0){le.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=ue.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}ue.delete(n.signal)}}}}let fe=!1;var pe=class e{constructor(t,r={}){if(N.util.markAsUncloneable(this),t===ne)return;let i=`Request constructor`;N.argumentLengthCheck(arguments,1,i),t=N.converters.RequestInfo(t,i,`input`),r=N.converters.RequestInit(r,i,`init`);let u=null,p=null,h=v.settingsObject.baseUrl,x=null;if(typeof t==`string`){this[ee]=r.dispatcher;let e;try{e=new URL(t,h)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);u=me({urlList:[e]}),p=`cors`}else this[ee]=r.dispatcher||t[ee],re(t instanceof e),u=t[M],x=t[j];let S=v.settingsObject.origin,C=`client`;if(u.window?.constructor?.name===`EnvironmentSettingsObject`&&_(u.window,S)&&(C=u.window),r.window!=null)throw TypeError(`'window' option '${C}' must be null`);`window`in r&&(C=`no-window`),u=me({method:u.method,headersList:u.headersList,unsafeRequest:u.unsafeRequest,client:v.settingsObject,window:C,priority:u.priority,origin:u.origin,referrer:u.referrer,referrerPolicy:u.referrerPolicy,mode:u.mode,credentials:u.credentials,cache:u.cache,redirect:u.redirect,integrity:u.integrity,keepalive:u.keepalive,reloadNavigation:u.reloadNavigation,historyNavigation:u.historyNavigation,urlList:[...u.urlList]});let w=Object.keys(r).length!==0;if(w&&(u.mode===`navigate`&&(u.mode=`same-origin`),u.reloadNavigation=!1,u.historyNavigation=!1,u.origin=`client`,u.referrer=`client`,u.referrerPolicy=``,u.url=u.urlList[u.urlList.length-1],u.urlList=[u.url]),r.referrer!==void 0){let e=r.referrer;if(e===``)u.referrer=`no-referrer`;else{let t;try{t=new URL(e,h)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||S&&!_(t,v.settingsObject.baseUrl)?u.referrer=`client`:u.referrer=t}}r.referrerPolicy!==void 0&&(u.referrerPolicy=r.referrerPolicy);let T;if(T=r.mode===void 0?p:r.mode,T===`navigate`)throw N.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(T!=null&&(u.mode=T),r.credentials!==void 0&&(u.credentials=r.credentials),r.cache!==void 0&&(u.cache=r.cache),u.cache===`only-if-cached`&&u.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(r.redirect!==void 0&&(u.redirect=r.redirect),r.integrity!=null&&(u.integrity=String(r.integrity)),r.keepalive!==void 0&&(u.keepalive=!!r.keepalive),r.method!==void 0){let e=r.method,t=k[e];if(t!==void 0)u.method=t;else{if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(y.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=O[t]??e,u.method=e}!fe&&u.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`}),fe=!0)}r.signal!==void 0&&(x=r.signal),this[M]=u;let E=new AbortController;if(this[j]=E.signal,x!=null){if(!x||typeof x.aborted!=`boolean`||typeof x.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(x.aborted)E.abort(x.reason);else{this[ce]=E;let e=de(new WeakRef(E));try{(typeof ie==`function`&&ie(x)===se||oe(x,`abort`).length>=se)&&ae(1500,x)}catch{}m.addAbortListener(x,e),le.register(E,{signal:x,abort:e},e)}}if(this[A]=new o(ne),d(this[A],u.headersList),l(this[A],`request`),T===`no-cors`){if(!b.has(u.method))throw TypeError(`'${u.method} is unsupported in no-cors mode.`);l(this[A],`request-no-cors`)}if(w){let e=f(this[A]),t=r.headers===void 0?new c(e):r.headers;if(e.clear(),t instanceof c){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else s(this[A],t)}let D=t instanceof e?t[M].body:null;if((r.body!=null||D!=null)&&(u.method===`GET`||u.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let te=null;if(r.body!=null){let[e,t]=n(r.body,u.keepalive);te=e,t&&!f(this[A]).contains(`content-type`,!0)&&this[A].append(`content-type`,t)}let ue=te??D;if(ue!=null&&ue.source==null){if(te!=null&&r.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(u.mode!==`same-origin`&&u.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);u.useCORSPreflightFlag=!0}let pe=ue;if(te==null&&D!=null){if(a(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;D.stream.pipeThrough(e),pe={source:D.source,length:D.length,stream:e.readable}}this[M].body=pe}get method(){return N.brandCheck(this,e),this[M].method}get url(){return N.brandCheck(this,e),te(this[M].url)}get headers(){return N.brandCheck(this,e),this[A]}get destination(){return N.brandCheck(this,e),this[M].destination}get referrer(){return N.brandCheck(this,e),this[M].referrer===`no-referrer`?``:this[M].referrer===`client`?`about:client`:this[M].referrer.toString()}get referrerPolicy(){return N.brandCheck(this,e),this[M].referrerPolicy}get mode(){return N.brandCheck(this,e),this[M].mode}get credentials(){return this[M].credentials}get cache(){return N.brandCheck(this,e),this[M].cache}get redirect(){return N.brandCheck(this,e),this[M].redirect}get integrity(){return N.brandCheck(this,e),this[M].integrity}get keepalive(){return N.brandCheck(this,e),this[M].keepalive}get isReloadNavigation(){return N.brandCheck(this,e),this[M].reloadNavigation}get isHistoryNavigation(){return N.brandCheck(this,e),this[M].historyNavigation}get signal(){return N.brandCheck(this,e),this[j]}get body(){return N.brandCheck(this,e),this[M].body?this[M].body.stream:null}get bodyUsed(){return N.brandCheck(this,e),!!this[M].body&&m.isDisturbed(this[M].body.stream)}get duplex(){return N.brandCheck(this,e),`half`}clone(){if(N.brandCheck(this,e),a(this))throw TypeError(`unusable`);let t=he(this[M]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=ue.get(this.signal);e===void 0&&(e=new Set,ue.set(this.signal,e));let t=new WeakRef(n);e.add(t),m.addAbortListener(n.signal,de(t))}return ge(t,n.signal,u(this[A]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};r(pe);function me(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function he(e){let t=me({...e,body:null});return e.body!=null&&(t.body=i(t,e.body)),t}function ge(e,t,n){let r=new pe(ne);return r[M]=e,r[j]=t,r[A]=new o(ne),d(r[A],e.headersList),l(r[A],n),r}Object.defineProperties(pe.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),N.converters.Request=N.interfaceConverter(pe),N.converters.RequestInfo=function(e,t,n){return typeof e==`string`?N.converters.USVString(e,t,n):e instanceof pe?N.converters.Request(e,t,n):N.converters.USVString(e,t,n)},N.converters.AbortSignal=N.interfaceConverter(AbortSignal),N.converters.RequestInit=N.dictionaryConverter([{key:`method`,converter:N.converters.ByteString},{key:`headers`,converter:N.converters.HeadersInit},{key:`body`,converter:N.nullableConverter(N.converters.BodyInit)},{key:`referrer`,converter:N.converters.USVString},{key:`referrerPolicy`,converter:N.converters.DOMString,allowedValues:x},{key:`mode`,converter:N.converters.DOMString,allowedValues:C},{key:`credentials`,converter:N.converters.DOMString,allowedValues:w},{key:`cache`,converter:N.converters.DOMString,allowedValues:T},{key:`redirect`,converter:N.converters.DOMString,allowedValues:S},{key:`integrity`,converter:N.converters.DOMString},{key:`keepalive`,converter:N.converters.boolean},{key:`signal`,converter:N.nullableConverter(e=>N.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:N.converters.any},{key:`duplex`,converter:N.converters.DOMString,allowedValues:E},{key:`dispatcher`,converter:N.converters.any}]),t.exports={Request:pe,makeRequest:me,fromInnerRequest:ge,cloneRequest:he}})),tn=P(((e,t)=>{let{makeNetworkError:n,makeAppropriateNetworkError:r,filterResponse:i,makeResponse:a,fromInnerResponse:o}=Qt(),{HeadersList:s}=Zt(),{Request:c,cloneRequest:l}=en(),u=F(`node:zlib`),{bytesMatch:d,makePolicyContainer:f,clonePolicyContainer:p,requestBadPort:m,TAOCheck:h,appendRequestOriginHeader:g,responseLocationURL:_,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:x,appendFetchMetadata:S,corsCheck:C,crossOriginResourcePolicyCheck:w,determineRequestsReferrer:T,coarsenedSharedCurrentTime:E,createDeferredPromise:D,isBlobLike:O,sameOrigin:k,isCancelled:A,isAborted:j,isErrorLike:M,fullyReadBody:ee,readableStreamClose:N,isomorphicEncode:te,urlIsLocal:ne,urlIsHttpHttpsScheme:re,urlHasHttpsScheme:ie,clampAndCoarsenConnectionTimingInfo:ae,simpleRangeHeaderValue:oe,buildContentRange:se,createInflate:ce,extractMimeType:le}=ot(),{kState:ue,kDispatcher:de}=st(),fe=F(`node:assert`),{safelyExtractBody:pe,extractBody:me}=dt(),{redirectStatusSet:he,nullBodyStatus:ge,safeMethodsSet:_e,requestBodyHeader:ve,subresourceSet:ye}=nt(),be=F(`node:events`),{Readable:xe,pipeline:Se,finished:Ce}=F(`node:stream`),{addAbortListener:we,isErrored:P,isReadable:Te,bufferToLowerCasedHeaderName:Ee}=L(),{dataURLProcessor:De,serializeAMimeType:Oe,minimizeSupportedMimeType:ke}=it(),{getGlobalDispatcher:Ae}=Gt(),{webidl:je}=at(),{STATUS_CODES:Me}=F(`node:http`),Ne=[`GET`,`HEAD`],Pe=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,Fe;var Ie=class extends be{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function Le(e){ze(e,`fetch`)}function Re(e,t=void 0){je.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=D(),r;try{r=new c(e,t)}catch(e){return n.reject(e),n.promise}let i=r[ue];if(r.signal.aborted)return Ve(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,s=!1,l=null;return we(r.signal,()=>{s=!0,fe(l!=null),l.abort(r.signal.reason);let e=a?.deref();Ve(n,i,e,r.signal.reason)}),l=He({request:i,processResponseEndOfBody:Le,processResponse:e=>{if(!s){if(e.aborted){Ve(n,i,a,l.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(o(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[de]}),n.promise}function ze(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;re(n)&&r!==null&&(e.timingAllowPassed||(r=x({startTime:r.startTime}),i=``),r.endTime=E(),e.timingInfo=r,Be(r,n.href,t,globalThis,i))}let Be=performance.markResourceTiming;function Ve(e,t,n,r){if(e&&e.reject(r),t.body!=null&&Te(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[ue];i.body!=null&&Te(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function He({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Ae()}){fe(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=x({startTime:E(l)}),d={controller:new Ie(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return fe(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=f():e.policyContainer=p(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,ye.has(e.destination),Ue(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Ue(e,t=!1){let r=e.request,a=null;if(r.localURLsOnly&&!ne(v(r))&&(a=n(`local URLs only`)),b(r),m(r)===`blocked`&&(a=n(`bad port`)),r.referrerPolicy===``&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!==`no-referrer`&&(r.referrer=T(r)),a===null&&(a=await(async()=>{let t=v(r);return k(t,r.url)&&r.responseTainting===`basic`||t.protocol===`data:`||r.mode===`navigate`||r.mode===`websocket`?(r.responseTainting=`basic`,await I(e)):r.mode===`same-origin`?n(`request mode cannot be "same-origin"`):r.mode===`no-cors`?r.redirect===`follow`?(r.responseTainting=`opaque`,await I(e)):n(`redirect mode cannot be "follow" for "no-cors" request`):re(v(r))?(r.responseTainting=`cors`,await Ke(e)):n(`URL scheme must be a HTTP(S) scheme`)})()),t)return a;a.status!==0&&!a.internalResponse&&(r.responseTainting,r.responseTainting===`basic`?a=i(a,`basic`):r.responseTainting===`cors`?a=i(a,`cors`):r.responseTainting===`opaque`?a=i(a,`opaque`):fe(!1));let o=a.status===0?a:a.internalResponse;if(o.urlList.length===0&&o.urlList.push(...r.urlList),r.timingAllowFailed||(a.timingAllowPassed=!0),a.type===`opaque`&&o.status===206&&o.rangeRequested&&!r.headers.contains(`range`,!0)&&(a=o=n()),a.status!==0&&(r.method===`HEAD`||r.method===`CONNECT`||ge.includes(o.status))&&(o.body=null,e.controller.dump=!0),r.integrity){let t=t=>Ge(e,n(t));if(r.responseTainting===`opaque`||a.body==null){t(a.error);return}await ee(a.body,n=>{if(!d(n,r.integrity)){t(`integrity mismatch`);return}a.body=pe(n)[0],Ge(e,a)},t)}else Ge(e,a)}function I(e){if(A(e)&&e.request.redirectCount===0)return Promise.resolve(r(e));let{request:t}=e,{protocol:i}=v(t);switch(i){case`about:`:return Promise.resolve(n(`about scheme is not supported`));case`blob:`:{Fe||=F(`node:buffer`).resolveObjectURL;let e=v(t);if(e.search.length!==0)return Promise.resolve(n(`NetworkError when attempting to fetch resource.`));let r=Fe(e.toString());if(t.method!==`GET`||!O(r))return Promise.resolve(n(`invalid method`));let i=a(),o=r.size,s=te(`${o}`),c=r.type;if(t.headersList.contains(`range`,!0)){i.rangeRequested=!0;let e=oe(t.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let{rangeStartValue:a,rangeEndValue:s}=e;if(a===null)a=o-s,s=a+s-1;else{if(a>=o)return Promise.resolve(n(`Range start is greater than the blob's size.`));(s===null||s>=o)&&(s=o-1)}let l=r.slice(a,s,c);i.body=me(l)[0];let u=te(`${l.size}`),d=se(a,s,o);i.status=206,i.statusText=`Partial Content`,i.headersList.set(`content-length`,u,!0),i.headersList.set(`content-type`,c,!0),i.headersList.set(`content-range`,d,!0)}else{let e=me(r);i.statusText=`OK`,i.body=e[0],i.headersList.set(`content-length`,s,!0),i.headersList.set(`content-type`,c,!0)}return Promise.resolve(i)}case`data:`:{let e=De(v(t));if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let r=Oe(e.mimeType);return Promise.resolve(a({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:r}]],body:pe(e.body)[0]}))}case`file:`:return Promise.resolve(n(`not implemented... yet...`));case`http:`:case`https:`:return Ke(e).catch(e=>n(e));default:return Promise.resolve(n(`unknown scheme`))}}function We(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function Ge(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=x(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=le(t.headersList);e!==`failure`&&(a.contentType=ke(e))}e.request.initiatorType!=null&&Be(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():Ce(i.body.stream,()=>{r()})}async function Ke(e){let t=e.request,r=null,i=null,a=e.timingInfo;if(t.serviceWorkers,r===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=r=await Je(e),t.responseTainting===`cors`&&C(t,r)===`failure`)return n(`cors failure`);h(t,r)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||r.type===`opaque`)&&w(t.origin,t.client,t.destination,i)===`blocked`?n(`blocked`):(he.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?r=n(`unexpected redirect`):t.redirect===`manual`?r=i:t.redirect===`follow`?r=await qe(e,r):fe(!1)),r.timingInfo=a,r)}function qe(e,t){let r=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=_(i,v(r).hash),a==null)return t}catch(e){return Promise.resolve(n(e))}if(!re(a))return Promise.resolve(n(`URL scheme must be a HTTP(S) scheme`));if(r.redirectCount===20)return Promise.resolve(n(`redirect count exceeded`));if(r.redirectCount+=1,r.mode===`cors`&&(a.username||a.password)&&!k(r,a))return Promise.resolve(n(`cross origin not allowed for request mode "cors"`));if(r.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(n(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(n());if([301,302].includes(i.status)&&r.method===`POST`||i.status===303&&!Ne.includes(r.method)){r.method=`GET`,r.body=null;for(let e of ve)r.headersList.delete(e)}k(v(r),a)||(r.headersList.delete(`authorization`,!0),r.headersList.delete(`proxy-authorization`,!0),r.headersList.delete(`cookie`,!0),r.headersList.delete(`host`,!0)),r.body!=null&&(fe(r.body.source!=null),r.body=pe(r.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=E(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(a),y(r,i),Ue(e,!0)}async function Je(e,t=!1,i=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=l(a),o={...e},o.request=s);let u=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=te(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,te(s.referrer.href),!0),g(s),S(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Pe),s.cache===`default`&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(ie(v(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return n(`only if cached`);let e=await Ye(o,u,i);!_e.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=u,c.status===407)return a.window===`no-window`?n():A(e)?r(e):n(`proxy authentication required`);if(c.status===421&&!i&&(a.body==null||a.body.source!=null)){if(A(e))return r(e);e.controller.connection.destroy(),c=await Je(e,t,!0)}return c}async function Ye(e,t=!1,i=!1){fe(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let o=e.request,c=null,l=e.timingInfo;o.cache=`no-store`,o.mode;let d=null;if(o.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(o.body!=null){let t=async function*(t){A(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{A(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{A(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};d=(async function*(){try{for await(let e of o.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:o}=await g({body:d});if(o)c=a({status:n,statusText:r,headersList:i,socket:o});else{let o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next(),c=a({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),r(e,t)):n(t)}let f=async()=>{await e.controller.resume()},p=t=>{A(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});c.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(j(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){N(e.controller.controller),We(e,c);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),P(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){j(e)?(c.aborted=!0,Te(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):Te(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:M(t)?t:void 0})),e.controller.connection.destroy()}return c;function g({body:t}){let n=v(o),r=e.controller.dispatcher;return new Promise((i,a)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:o.method,body:r.isMockActive?o.body&&(o.body.source||o.body.stream):t,headers:o.headersList.entries,maxRedirections:0,upgrade:o.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=ae(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=E(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=E(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let c=``,l=new s;for(let e=0;e5)return a(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)d.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)d.push(ce({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`br`)d.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}));else{d.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:d.length?Se(this.body,...d,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),a(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new s;for(let e=0;e{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`)}})),rn=P(((e,t)=>{let{webidl:n}=at(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),an=P(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.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:n}})),on=P(((e,t)=>{let{kState:n,kError:r,kResult:i,kAborted:a,kLastProgressEventFired:o}=nn(),{ProgressEvent:s}=rn(),{getEncoding:c}=an(),{serializeAMimeType:l,parseMIMEType:u}=it(),{types:d}=F(`node:util`),{StringDecoder:f}=F(`string_decoder`),{btoa:p}=F(`node:buffer`),m={enumerable:!0,writable:!1,configurable:!1};function h(e,t,s,c){if(e[n]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[n]=`loading`,e[i]=null,e[r]=null;let l=t.stream().getReader(),u=[],f=l.read(),p=!0;(async()=>{for(;!e[a];)try{let{done:m,value:h}=await f;if(p&&!e[a]&&queueMicrotask(()=>{g(`loadstart`,e)}),p=!1,!m&&d.isUint8Array(h))u.push(h),(e[o]===void 0||Date.now()-e[o]>=50)&&!e[a]&&(e[o]=Date.now(),queueMicrotask(()=>{g(`progress`,e)})),f=l.read();else if(m){queueMicrotask(()=>{e[n]=`done`;try{let n=_(u,s,t.type,c);if(e[a])return;e[i]=n,g(`load`,e)}catch(t){e[r]=t,g(`error`,e)}e[n]!==`loading`&&g(`loadend`,e)});break}}catch(t){if(e[a])return;queueMicrotask(()=>{e[n]=`done`,e[r]=t,g(`error`,e),e[n]!==`loading`&&g(`loadend`,e)});break}})()}function g(e,t){let n=new s(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=u(n||`application/octet-stream`);r!==`failure`&&(t+=l(r)),t+=`;base64,`;let i=new f(`latin1`);for(let n of e)t+=p(i.write(n));return t+=p(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=c(r)),t===`failure`&&n){let e=u(n);e!==`failure`&&(t=c(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),v(e,t)}case`ArrayBuffer`:return b(e).buffer;case`BinaryString`:{let t=``,n=new f(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function v(e,t){let n=b(e),r=y(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function y(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function b(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}t.exports={staticPropertyDescriptors:m,readOperation:h,fireAProgressEvent:g}})),sn=P(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=on(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=nn(),{webidl:u}=at(),{kEnumerableProperty:d}=L();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),cn=P(((e,t)=>{t.exports={kConstruct:Ue().kConstruct}})),ln=P(((e,t)=>{let n=F(`node:assert`),{URLSerializer:r}=it(),{isValidHeaderName:i}=ot();function a(e,t,n=!1){return r(e,n)===r(t,n)}function o(e){n(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),i(n)&&t.push(n);return t}t.exports={urlEquals:a,getFieldValues:o}})),un=P(((e,t)=>{let{kConstruct:n}=cn(),{urlEquals:r,getFieldValues:i}=ln(),{kEnumerableProperty:a,isDisturbed:o}=L(),{webidl:s}=at(),{Response:c,cloneResponse:l,fromInnerResponse:u}=Qt(),{Request:d,fromInnerRequest:f}=en(),{kState:p}=st(),{fetching:m}=tn(),{urlIsHttpHttpsScheme:h,createDeferredPromise:g,readAllBytes:_}=ot(),v=F(`node:assert`);var y=class e{#e;constructor(){arguments[0]!==n&&s.illegalConstructor(),s.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){s.brandCheck(this,e);let r=`Cache.match`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){s.brandCheck(this,e);let n=`Cache.add`;s.argumentLengthCheck(arguments,1,n),t=s.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){s.brandCheck(this,e);let n=`Cache.addAll`;s.argumentLengthCheck(arguments,1,n);let r=[],a=[];for(let e of t){if(e===void 0)throw s.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=s.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[p];if(!h(t.url)||t.method!==`GET`)throw s.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new d(e)[p];if(!h(t.url))throw s.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,a.push(t);let c=g();o.push(m({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)c.reject(s.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=i(e.headersList.get(`vary`));for(let e of t)if(e===`*`){c.reject(s.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){c.reject(new DOMException(`aborted`,`AbortError`));return}c.resolve(e)}})),r.push(c.promise)}let c=await Promise.all(r),l=[],u=0;for(let e of c){let t={type:`put`,request:a[u],response:e};l.push(t),u++}let f=g(),_=null;try{this.#t(l)}catch(e){_=e}return queueMicrotask(()=>{_===null?f.resolve(void 0):f.reject(_)}),f.promise}async put(t,n){s.brandCheck(this,e);let r=`Cache.put`;s.argumentLengthCheck(arguments,2,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.Response(n,r,`response`);let a=null;if(a=t instanceof d?t[p]:new d(t)[p],!h(a.url)||a.method!==`GET`)throw s.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let c=n[p];if(c.status===206)throw s.errors.exception({header:r,message:`Got 206 status`});if(c.headersList.contains(`vary`)){let e=i(c.headersList.get(`vary`));for(let t of e)if(t===`*`)throw s.errors.exception({header:r,message:`Got * vary field value`})}if(c.body&&(o(c.body.stream)||c.body.stream.locked))throw s.errors.exception({header:r,message:`Response body is locked or disturbed`});let u=l(c),f=g();c.body==null?f.resolve(void 0):_(c.body.stream.getReader()).then(f.resolve,f.reject);let m=[],v={type:`put`,request:a,response:u};m.push(v);let y=await f.promise;u.body!=null&&(u.body.source=y);let b=g(),x=null;try{this.#t(m)}catch(e){x=e}return queueMicrotask(()=>{x===null?b.resolve():b.reject(x)}),b.promise}async delete(t,n={}){s.brandCheck(this,e);let r=`Cache.delete`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return!1}else v(typeof t==`string`),i=new d(t)[p];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let c=g(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new d(t)[p]);let a=g(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=f(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!h(i.url))throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,a){let o=new URL(e.url),s=new URL(t.url);if(a?.ignoreSearch&&(s.search=``,o.search=``),!r(o,s,!0))return!1;if(n==null||a?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=i(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof d){if(r=e[p],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new d(e)[p]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=u(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(y.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:a,matchAll:a,add:a,addAll:a,put:a,delete:a,keys:a});let b=[{key:`ignoreSearch`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:s.converters.boolean,defaultValue:()=>!1}];s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:`cacheName`,converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(c),s.converters[`sequence`]=s.sequenceConverter(s.converters.RequestInfo),t.exports={Cache:y}})),dn=P(((e,t)=>{let{kConstruct:n}=cn(),{Cache:r}=un(),{webidl:i}=at(),{kEnumerableProperty:a}=L();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),fn=P(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),pn=P(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),mn=P(((e,t)=>{let{maxNameValuePairSize:n,maxAttributeValueSize:r}=fn(),{isCTLExcludingHtab:i}=pn(),{collectASequenceOfCodePointsFast:a}=it(),o=F(`node:assert`);function s(e){if(i(e))return null;let t=``,r=``,o=``,s=``;if(e.includes(`;`)){let n={position:0};t=a(`;`,e,n),r=e.slice(n.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};o=a(`=`,t,e),s=t.slice(e.position+1)}return o=o.trim(),s=s.trim(),o.length+s.length>n?null:{name:o,value:s,...c(r)}}function c(e,t={}){if(e.length===0)return t;o(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=a(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let i=``,s=``;if(n.includes(`=`)){let e={position:0};i=a(`=`,n,e),s=n.slice(e.position+1)}else i=n;if(i=i.trim(),s=s.trim(),s.length>r)return c(e,t);let l=i.toLowerCase();if(l===`expires`)t.expires=new Date(s);else if(l===`max-age`){let n=s.charCodeAt(0);if((n<48||n>57)&&s[0]!==`-`||!/^\d+$/.test(s))return c(e,t);t.maxAge=Number(s)}else if(l===`domain`){let e=s;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(l===`path`){let e=``;e=s.length===0||s[0]!==`/`?`/`:s,t.path=e}else if(l===`secure`)t.secure=!0;else if(l===`httponly`)t.httpOnly=!0;else if(l===`samesite`){let e=`Default`,n=s.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${i}=${s}`);return c(e,t)}t.exports={parseSetCookie:s,parseUnparsedAttributes:c}})),hn=P(((e,t)=>{let{parseSetCookie:n}=mn(),{stringify:r}=pn(),{webidl:i}=at(),{Headers:a}=Zt();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),gn=P(((e,t)=>{let{webidl:n}=at(),{kEnumerableProperty:r}=L(),{kConstruct:i}=Ue(),{MessagePort:a}=F(`node:worker_threads`);var o=class e extends Event{#e;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]),n.util.markAsUncloneable(this);return}let r=`MessageEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.MessageEventInit(t,r,`eventInitDict`),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get data(){return n.brandCheck(this,e),this.#e.data}get origin(){return n.brandCheck(this,e),this.#e.origin}get lastEventId(){return n.brandCheck(this,e),this.#e.lastEventId}get source(){return n.brandCheck(this,e),this.#e.source}get ports(){return n.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,r=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return n.brandCheck(this,e),n.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:r,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(i,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:s}=o;delete o.createFastMessageEvent;var c=class e extends Event{#e;constructor(e,t={}){let r=`CloseEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.CloseEventInit(t),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get wasClean(){return n.brandCheck(this,e),this.#e.wasClean}get code(){return n.brandCheck(this,e),this.#e.code}get reason(){return n.brandCheck(this,e),this.#e.reason}},l=class e extends Event{#e;constructor(e,t){let r=`ErrorEvent constructor`;n.argumentLengthCheck(arguments,1,r),super(e,t),n.util.markAsUncloneable(this),e=n.converters.DOMString(e,r,`type`),t=n.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return n.brandCheck(this,e),this.#e.message}get filename(){return n.brandCheck(this,e),this.#e.filename}get lineno(){return n.brandCheck(this,e),this.#e.lineno}get colno(){return n.brandCheck(this,e),this.#e.colno}get error(){return n.brandCheck(this,e),this.#e.error}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(c.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),n.converters.MessagePort=n.interfaceConverter(a),n.converters[`sequence`]=n.sequenceConverter(n.converters.MessagePort);let u=[{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}];n.converters.MessageEventInit=n.dictionaryConverter([...u,{key:`data`,converter:n.converters.any,defaultValue:()=>null},{key:`origin`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:n.converters[`sequence`],defaultValue:()=>[]}]),n.converters.CloseEventInit=n.dictionaryConverter([...u,{key:`wasClean`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:n.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:n.converters.USVString,defaultValue:()=>``}]),n.converters.ErrorEventInit=n.dictionaryConverter([...u,{key:`message`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:n.converters.any}]),t.exports={MessageEvent:o,CloseEvent:c,ErrorEvent:l,createFastMessageEvent:s}})),_n=P(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),vn=P(((e,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`)}})),yn=P(((e,t)=>{let{kReadyState:n,kController:r,kResponse:i,kBinaryType:a,kWebSocketURL:o}=vn(),{states:s,opcodes:c}=_n(),{ErrorEvent:l,createFastMessageEvent:u}=gn(),{isUtf8:d}=F(`node:buffer`),{collectASequenceOfCodePointsFast:f,removeHTTPWhitespace:p}=it();function m(e){return e[n]===s.CONNECTING}function h(e){return e[n]===s.OPEN}function g(e){return e[n]===s.CLOSING}function _(e){return e[n]===s.CLOSED}function v(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function y(e,t,r){if(e[n]!==s.OPEN)return;let i;if(t===c.TEXT)try{i=M(r)}catch{C(e,`Received invalid UTF-8 in text frame.`);return}else t===c.BINARY&&(i=e[a]===`blob`?new Blob([r]):b(r));v(`message`,e,u,{origin:e[o].origin,data:i})}function b(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function x(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function S(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function C(e,t){let{[r]:n,[i]:a}=e;n.abort(),a?.socket&&!a.socket.destroyed&&a.socket.destroy(),t&&v(`error`,e,(e,t)=>new l(e,t),{error:Error(t),message:t})}function w(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function T(e){return e===c.CONTINUATION}function E(e){return e===c.TEXT||e===c.BINARY}function D(e){return E(e)||T(e)||w(e)}function O(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let A=typeof process.versions.icu==`string`,j=A?new TextDecoder(`utf-8`,{fatal:!0}):void 0,M=A?j.decode.bind(j):function(e){if(d(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};t.exports={isConnecting:m,isEstablished:h,isClosing:g,isClosed:_,fireEvent:v,isValidSubprotocol:x,isValidStatusCode:S,failWebsocketConnection:C,websocketMessageReceived:y,utf8Decode:M,isControlFrame:w,isContinuationFrame:T,isTextBinaryFrame:E,isValidOpcode:D,parseExtensions:O,isValidClientWindowBits:k}})),bn=P(((e,t)=>{let{maxUnsigned16Bit:n}=_n(),r=16386,i,a=null,o=r;try{i=F(`node:crypto`)}catch{i={randomFillSync:function(e,t,n){for(let t=0;tn?(o+=8,a=127):i>125&&(o+=2,a=126);let c=Buffer.allocUnsafe(i+o);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e,c[o-4]=r[0],c[o-3]=r[1],c[o-2]=r[2],c[o-1]=r[3],c[1]=a,a===126?c.writeUInt16BE(i,2):a===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let e=0;e{let{uid:n,states:r,sentCloseFrameState:i,emptyBuffer:a,opcodes:o}=_n(),{kReadyState:s,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=vn(),{fireEvent:f,failWebsocketConnection:p,isClosing:m,isClosed:h,isEstablished:g,parseExtensions:_}=yn(),{channels:v}=Ke(),{CloseEvent:y}=gn(),{makeRequest:b}=en(),{fetching:x}=tn(),{Headers:S,getHeadersList:C}=Zt(),{getDecodeSplit:w}=ot(),{WebsocketFrameSend:T}=bn(),E;try{E=F(`node:crypto`)}catch{}function D(e,t,r,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=b({urlList:[s],client:r,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=C(new S(o.headers)));let l=E.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),x({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){p(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){p(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){p(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){p(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==E.createHash(`sha1`).update(l+n).digest(`base64`)){p(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let r=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(r!==null&&(o=_(r),!o.has(`permessage-deflate`))){p(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!w(`sec-websocket-protocol`,c.headersList).includes(s)){p(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,k),e.socket.on(`close`,A),e.socket.on(`error`,j),v.open.hasSubscribers&&v.open.publish({address:e.socket.address(),protocol:s,extensions:r}),a(e,o)}})}function O(e,t,n,l){if(!(m(e)||h(e)))if(!g(e))p(e,`Connection was closed before it was established.`),e[s]=r.CLOSING;else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;let u=new T;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+l),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=a,e[d].socket.write(u.createFrame(o.CLOSE)),e[c]=i.SENT,e[s]=r.CLOSING}else e[s]=r.CLOSING}function k(e){this.ws[l].write(e)||this.pause()}function A(){let{ws:e}=this,{[d]:t}=e;t.socket.off(`data`,k),t.socket.off(`close`,A),t.socket.off(`error`,j);let n=e[c]===i.SENT&&e[u],a=1005,o=``,p=e[l].closingInfo;p&&!p.error?(a=p.code??1005,o=p.reason):e[u]||(a=1006),e[s]=r.CLOSED,f(`close`,e,(e,t)=>new y(e,t),{wasClean:n,code:a,reason:o}),v.close.hasSubscribers&&v.close.publish({websocket:e,code:a,reason:o})}function j(e){let{ws:t}=this;t[s]=r.CLOSING,v.socketError.hasSubscribers&&v.socketError.publish(e),this.destroy()}t.exports={establishWebSocketConnection:D,closeWebSocketConnection:O}})),Sn=P(((e,t)=>{let{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:r}=F(`node:zlib`),{isValidClientWindowBits:i}=yn(),{MessageSizeExceededError:a}=I(),o=Buffer.from([0,0,255,255]),s=Symbol(`kBuffer`),c=Symbol(`kLength`);t.exports={PerMessageDeflate:class{#e;#t={};#n=0;constructor(e,t){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`),this.#n=t.maxPayloadSize}decompress(e,t,l){if(!this.#e){let e=r;if(this.#t.serverMaxWindowBits){if(!i(this.#t.serverMaxWindowBits)){l(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=n({windowBits:e})}catch(e){l(e);return}this.#e[s]=[],this.#e[c]=0,this.#e.on(`data`,e=>{if(this.#e[c]+=e.length,this.#n>0&&this.#e[c]>this.#n){l(new a),this.#e.removeAllListeners(),this.#e=null;return}this.#e[s].push(e)}),this.#e.on(`error`,e=>{this.#e=null,l(e)})}this.#e.write(e),t&&this.#e.write(o),this.#e.flush(()=>{if(!this.#e)return;let e=Buffer.concat(this.#e[s],this.#e[c]);this.#e[s].length=0,this.#e[c]=0,l(null,e)})}}}})),Cn=P(((e,t)=>{let{Writable:n}=F(`node:stream`),r=F(`node:assert`),{parserStates:i,opcodes:a,states:o,emptyBuffer:s,sentCloseFrameState:c}=_n(),{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:f}=vn(),{channels:p}=Ke(),{isValidStatusCode:m,isValidOpcode:h,failWebsocketConnection:g,websocketMessageReceived:_,utf8Decode:v,isControlFrame:y,isTextBinaryFrame:b,isContinuationFrame:x}=yn(),{WebsocketFrameSend:S}=bn(),{closeWebSocketConnection:C}=xn(),{PerMessageDeflate:w}=Sn(),{MessageSizeExceededError:T}=I();t.exports={ByteParser:class extends n{#e=[];#t=0;#n=0;#r=!1;#i=i.INFO;#a={};#o=[];#s;#c;constructor(e,t,n={}){super(),this.ws=e,this.#s=t??new Map,this.#c=n.maxPayloadSize??0,this.#s.has(`permessage-deflate`)&&this.#s.set(`permessage-deflate`,new w(t,n))}_write(e,t,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#l(){return this.#c>0&&!y(this.#a.opcode)&&this.#a.payloadLength>this.#c?(g(this.ws,`Payload size exceeds maximum allowed size`),!1):!0}run(e){for(;this.#r;)if(this.#i===i.INFO){if(this.#n<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,o=(t[1]&128)==128,s=!n&&r!==a.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!h(r))return g(this.ws,`Invalid opcode received`),e();if(o)return g(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#s.has(`permessage-deflate`)){g(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){g(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!b(r)){g(this.ws,`Invalid frame type was fragmented.`);return}if(b(r)&&this.#o.length>0){g(this.ws,`Expected continuation frame`);return}if(this.#a.fragmented&&s){g(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&y(r)){g(this.ws,`Control frame either too large or fragmented`);return}if(x(r)&&this.#o.length===0&&!this.#a.compressed){g(this.ws,`Unexpected continuation frame`);return}if(c<=125){if(this.#a.payloadLength=c,this.#i=i.READ_DATA,!this.#l())return}else c===126?this.#i=i.PAYLOADLENGTH_16:c===127&&(this.#i=i.PAYLOADLENGTH_64);b(r)&&(this.#a.binaryType=r,this.#a.compressed=l!==0),this.#a.opcode=r,this.#a.masked=o,this.#a.fin=n,this.#a.fragmented=s}else if(this.#i===i.PAYLOADLENGTH_16){if(this.#n<2)return e();let t=this.consume(2);if(this.#a.payloadLength=t.readUInt16BE(0),this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.PAYLOADLENGTH_64){if(this.#n<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){g(this.ws,`Received payload length > 2^31 bytes.`);return}if(this.#a.payloadLength=r,this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.READ_DATA){if(this.#n{if(t){g(this.ws,t.message);return}if(this.writeFragments(n),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}if(!this.#a.fin){this.#i=i.INFO,this.#r=!0,this.run(e);return}_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#r=!0,this.#i=i.INFO,this.run(e)}),this.#r=!1;break}else{if(this.writeFragments(t),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}!this.#a.fragmented&&this.#a.fin&&_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#i=i.INFO}}}consume(e){if(e>this.#n)throw Error(`Called consume() before buffers satiated.`);if(e===0)return s;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#n-=e,t}writeFragments(e){this.#t+=e.length,this.#o.push(e)}consumeFragments(){let e=this.#o;if(e.length===1)return this.#t=0,e.shift();let t=Buffer.concat(e,this.#t);return this.#o=[],this.#t=0,t}parseCloseBody(e){r(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!m(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=v(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#a;if(t===a.CLOSE){if(n===1)return g(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#a.closeInfo=this.parseCloseBody(e),this.#a.closeInfo.error){let{code:e,reason:t}=this.#a.closeInfo;return C(this.ws,e,t,t.length),g(this.ws,t),!1}if(this.ws[u]!==c.SENT){let e=s;this.#a.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#a.closeInfo.code,0));let t=new S(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),e=>{e||(this.ws[u]=c.SENT)})}return this.ws[l]=o.CLOSING,this.ws[f]=!0,!1}else if(t===a.PING){if(!this.ws[f]){let t=new S(e);this.ws[d].socket.write(t.createFrame(a.PONG)),p.ping.hasSubscribers&&p.ping.publish({payload:e})}}else t===a.PONG&&p.pong.hasSubscribers&&p.pong.publish({payload:e});return!0}get closingInfo(){return this.#a.closeInfo}}}})),wn=P(((e,t)=>{let{WebsocketFrameSend:n}=bn(),{opcodes:r,sendHints:i}=_n(),a=_t(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),Tn=P(((e,t)=>{let{webidl:n}=at(),{URLSerializer:r}=it(),{environmentSettingsObject:i}=ot(),{staticPropertyDescriptors:a,states:o,sentCloseFrameState:s,sendHints:c}=_n(),{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:f,kResponse:p,kSentClose:m,kByteParser:h}=vn(),{isConnecting:g,isEstablished:_,isClosing:v,isValidSubprotocol:y,fireEvent:b}=yn(),{establishWebSocketConnection:x,closeWebSocketConnection:S}=xn(),{ByteParser:C}=Cn(),{kEnumerableProperty:w,isBlobLike:T}=L(),{getGlobalDispatcher:E}=Gt(),{types:D}=F(`node:util`),{ErrorEvent:O,CloseEvent:k}=gn(),{SendQueue:A}=wn();var j=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,r=[]){super(),n.util.markAsUncloneable(this);let a=`WebSocket constructor`;n.argumentLengthCheck(arguments,1,a);let o=n.converters[`DOMString or sequence or WebSocketInit`](r,a,`options`);t=n.converters.USVString(t,a,`url`),r=o.protocols;let c=i.settingsObject.baseUrl,p;try{p=new URL(t,c)}catch(e){throw new DOMException(e,`SyntaxError`)}if(p.protocol===`http:`?p.protocol=`ws:`:p.protocol===`https:`&&(p.protocol=`wss:`),p.protocol!==`ws:`&&p.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,`SyntaxError`);if(p.hash||p.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof r==`string`&&(r=[r]),r.length!==new Set(r.map(e=>e.toLowerCase())).size||r.length>0&&!r.every(e=>y(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[l]=new URL(p.href);let h=i.settingsObject;this[d]=x(p,r,h,this,(e,t)=>this.#a(e,t),o),this[u]=e.CONNECTING,this[m]=s.NOT_SENT,this[f]=`blob`}close(t=void 0,r=void 0){n.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=n.converters[`unsigned short`](t,i,`code`,{clamp:!0})),r!==void 0&&(r=n.converters.USVString(r,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(r!==void 0&&(a=Buffer.byteLength(r),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);S(this,t,r,a)}send(t){n.brandCheck(this,e);let r=`WebSocket.send`;if(n.argumentLengthCheck(arguments,1,r),t=n.converters.WebSocketSendData(t,r,`data`),g(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!_(this)||v(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},c.string)}else D.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.typedArray)):T(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},c.blob))}get readyState(){return n.brandCheck(this,e),this[u]}get bufferedAmount(){return n.brandCheck(this,e),this.#t}get url(){return n.brandCheck(this,e),r(this[l])}get extensions(){return n.brandCheck(this,e),this.#r}get protocol(){return n.brandCheck(this,e),this.#n}get onopen(){return n.brandCheck(this,e),this.#e.open}set onopen(t){n.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return n.brandCheck(this,e),this.#e.error}set onerror(t){n.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return n.brandCheck(this,e),this.#e.close}set onclose(t){n.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return n.brandCheck(this,e),this.#e.message}set onmessage(t){n.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return n.brandCheck(this,e),this[f]}set binaryType(t){n.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[f]=`blob`:this[f]=t}#a(e,t){this[p]=e;let n=this[d]?.dispatcher?.webSocketOptions?.maxPayloadSize,r=new C(this,t,{maxPayloadSize:n});r.on(`drain`,M),r.on(`error`,ee.bind(this)),e.socket.ws=this,this[h]=r,this.#i=new A(e.socket),this[u]=o.OPEN;let i=e.headersList.get(`sec-websocket-extensions`);i!==null&&(this.#r=i);let a=e.headersList.get(`sec-websocket-protocol`);a!==null&&(this.#n=a),b(`open`,this)}};j.CONNECTING=j.prototype.CONNECTING=o.CONNECTING,j.OPEN=j.prototype.OPEN=o.OPEN,j.CLOSING=j.prototype.CLOSING=o.CLOSING,j.CLOSED=j.prototype.CLOSED=o.CLOSED,Object.defineProperties(j.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(j,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a}),n.converters[`sequence`]=n.sequenceConverter(n.converters.DOMString),n.converters[`DOMString or sequence`]=function(e,t,r){return n.util.Type(e)===`Object`&&Symbol.iterator in e?n.converters[`sequence`](e):n.converters.DOMString(e,t,r)},n.converters.WebSocketInit=n.dictionaryConverter([{key:`protocols`,converter:n.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:n.converters.any,defaultValue:()=>E()},{key:`headers`,converter:n.nullableConverter(n.converters.HeadersInit)}]),n.converters[`DOMString or sequence or WebSocketInit`]=function(e){return n.util.Type(e)===`Object`&&!(Symbol.iterator in e)?n.converters.WebSocketInit(e):{protocols:n.converters[`DOMString or sequence`](e)}},n.converters.WebSocketSendData=function(e){if(n.util.Type(e)===`Object`){if(T(e))return n.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||D.isArrayBuffer(e))return n.converters.BufferSource(e)}return n.converters.USVString(e)};function M(){this.ws[p].socket.resume()}function ee(e){let t,n;e instanceof k?(t=e.reason,n=e.code):t=e.message,b(`error`,this,()=>new O(`error`,{error:e,message:t})),S(this,n)}t.exports={WebSocket:j}})),En=P(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),Dn=P(((e,t)=>{let{Transform:n}=F(`node:stream`),{isASCIINumber:r,isValidLastEventId:i}=En(),a=[239,187,191];t.exports={EventSourceStream:class extends n{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===a[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[a]=o);break}}processEvent(e){e.retry&&r(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&i(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),On=P(((e,t)=>{let{pipeline:n}=F(`node:stream`),{fetching:r}=tn(),{makeRequest:i}=en(),{webidl:a}=at(),{EventSourceStream:o}=Dn(),{parseMIMEType:s}=it(),{createFastMessageEvent:c}=gn(),{isNetworkError:l}=Qt(),{delay:u}=En(),{kEnumerableProperty:d}=L(),{environmentSettingsObject:f}=ot(),p=!1,m=3e3;var h=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),a.util.markAsUncloneable(this);let n=`EventSource constructor`;a.argumentLengthCheck(arguments,1,n),p||(p=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=a.converters.USVString(e,n,`url`),t=a.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:m};let r=f,o;try{o=new URL(e,r.settingsObject.baseUrl),this.#s.origin=o.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=o.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=f.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=i(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{l(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(l(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),r=t===null?`failure`:s(t),i=r!==`failure`&&r.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new o({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=r(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await u(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){a.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let g={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(h,g),Object.defineProperties(h.prototype,g),Object.defineProperties(h.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d}),a.converters.EventSourceInitDict=a.dictionaryConverter([{key:`withCredentials`,converter:a.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:a.converters.any}]),t.exports={EventSource:h,defaultReconnectionTime:m}})),kn=P(((e,t)=>{let n=gt(),r=Je(),i=bt(),a=xt(),o=St(),s=Ct(),c=wt(),l=Et(),u=I(),d=L(),{InvalidArgumentError:f}=u,p=Ft(),m=Ze(),h=Bt(),g=Wt(),_=Vt(),v=It(),y=Tt(),{getGlobalDispatcher:b,setGlobalDispatcher:x}=Gt(),S=Kt(),C=mt(),w=ht();Object.assign(r.prototype,p),t.exports.Dispatcher=r,t.exports.Client=n,t.exports.Pool=i,t.exports.BalancedPool=a,t.exports.Agent=o,t.exports.ProxyAgent=s,t.exports.EnvHttpProxyAgent=c,t.exports.RetryAgent=l,t.exports.RetryHandler=y,t.exports.DecoratorHandler=S,t.exports.RedirectHandler=C,t.exports.createRedirectInterceptor=w,t.exports.interceptors={redirect:qt(),retry:Jt(),dump:Yt(),dns:Xt()},t.exports.buildConnector=m,t.exports.errors=u,t.exports.util={parseHeaders:d.parseHeaders,headerNameToString:d.headerNameToString};function T(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new f(`invalid url`);if(n!=null&&typeof n!=`object`)throw new f(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new f(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(d.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=d.parseURL(t);let{agent:i,dispatcher:a=b()}=n;if(i)throw new f(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}t.exports.setGlobalDispatcher=x,t.exports.getGlobalDispatcher=b;let E=tn().fetch;t.exports.fetch=async function(e,t=void 0){try{return await E(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},t.exports.Headers=Zt().Headers,t.exports.Response=Qt().Response,t.exports.Request=en().Request,t.exports.FormData=lt().FormData,t.exports.File=globalThis.File??F(`node:buffer`).File,t.exports.FileReader=sn().FileReader;let{setGlobalOrigin:D,getGlobalOrigin:O}=rt();t.exports.setGlobalOrigin=D,t.exports.getGlobalOrigin=O;let{CacheStorage:k}=dn(),{kConstruct:A}=cn();t.exports.caches=new k(A);let{deleteCookie:j,getCookies:M,getSetCookies:ee,setCookie:N}=hn();t.exports.deleteCookie=j,t.exports.getCookies=M,t.exports.getSetCookies=ee,t.exports.setCookie=N;let{parseMIMEType:te,serializeAMimeType:ne}=it();t.exports.parseMIMEType=te,t.exports.serializeAMimeType=ne;let{CloseEvent:re,ErrorEvent:ie,MessageEvent:ae}=gn();t.exports.WebSocket=Tn().WebSocket,t.exports.CloseEvent=re,t.exports.ErrorEvent=ie,t.exports.MessageEvent=ae,t.exports.request=T(p.request),t.exports.stream=T(p.stream),t.exports.pipeline=T(p.pipeline),t.exports.connect=T(p.connect),t.exports.upgrade=T(p.upgrade),t.exports.MockClient=h,t.exports.MockPool=_,t.exports.MockAgent=g,t.exports.mockErrors=v;let{EventSource:oe}=On();t.exports.EventSource=oe})),An=De(He(),1),jn=kn(),Mn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Nn;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(Nn||={});var Pn;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(Pn||={});var Fn;(function(e){e.ApplicationJson=`application/json`})(Fn||={});const In=[Nn.MovedPermanently,Nn.ResourceMoved,Nn.SeeOther,Nn.TemporaryRedirect,Nn.PermanentRedirect],Ln=[Nn.BadGateway,Nn.ServiceUnavailable,Nn.GatewayTimeout],Rn=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var zn=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},Bn=class{constructor(e){this.message=e}readBody(){return Mn(this,void 0,void 0,function*(){return new Promise(e=>Mn(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return Mn(this,void 0,void 0,function*(){return new Promise(e=>Mn(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},Vn=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return Mn(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return Mn(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return Mn(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return Mn(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return Mn(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return Mn(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return Mn(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return Mn(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return Mn(this,arguments,void 0,function*(e,t={}){t[Pn.Accept]=this._getExistingOrDefaultHeader(t,Pn.Accept,Fn.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return Mn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[Pn.Accept]=this._getExistingOrDefaultHeader(n,Pn.Accept,Fn.ApplicationJson),n[Pn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Fn.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return Mn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[Pn.Accept]=this._getExistingOrDefaultHeader(n,Pn.Accept,Fn.ApplicationJson),n[Pn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Fn.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return Mn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[Pn.Accept]=this._getExistingOrDefaultHeader(n,Pn.Accept,Fn.ApplicationJson),n[Pn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Fn.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return Mn(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&Rn.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===Nn.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&In.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!Ln.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new Bn(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=Le(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?f:d;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Hn(this.requestOptions.headers),Hn(e||{})):Hn(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=Hn(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=Hn(this.requestOptions.headers)[Pn.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[Pn.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=Le(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||d.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?An.httpsOverHttps:An.httpsOverHttp:o?An.httpOverHttps:An.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new f.Agent(e):new d.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new jn.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return Mn(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return Mn(this,void 0,void 0,function*(){return new Promise((n,r)=>Mn(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===Nn.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new zn(e,i);t.result=a.result,r(t)}else n(a)}))})}};const Hn=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var Un=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Wn=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Un(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},Gn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:Kn,appendFile:qn,writeFile:Jn}=c,Yn=`GITHUB_STEP_SUMMARY`;new class{constructor(){this._buffer=``}filePath(){return Gn(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Yn];if(!e)throw Error(`Unable to find environment variable for $${Yn}. Check if your runtime environment supports job summaries.`);try{yield Kn(e,o.R_OK|o.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return Gn(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Jn:qn)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return Gn(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(r)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var Xn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:Zn,copyFile:Qn,lstat:$n,mkdir:er,open:tr,readdir:nr,rename:rr,rm:ir,rmdir:ar,stat:or,symlink:sr,unlink:cr}=a.promises,lr=process.platform===`win32`;a.constants.O_RDONLY;function ur(e){return Xn(this,void 0,void 0,function*(){try{yield or(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function dr(e){if(e=pr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return lr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function fr(e,t){return Xn(this,void 0,void 0,function*(){let n;try{n=yield or(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(lr){let n=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(mr(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield or(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(lr){try{let t=u.dirname(e),n=u.basename(e).toUpperCase();for(let r of yield nr(t))if(n===r.toUpperCase()){e=u.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(mr(n))return e}}return``})}function pr(e){return e||=``,lr?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function mr(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var hr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function gr(e){return hr(this,void 0,void 0,function*(){g(e,`a path argument must be provided`),yield er(e,{recursive:!0})})}function _r(e,t){return hr(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield _r(e,!1);if(!t)throw Error(lr?`Unable to locate executable file: ${e}. 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.`:`Unable to locate executable file: ${e}. 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 t}let n=yield vr(e);return n&&n.length>0?n[0]:``})}function vr(e){return hr(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(lr&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(dr(e)){let n=yield fr(e,t);return n?[n]:[]}if(e.includes(u.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield fr(u.join(i,e),t);n&&r.push(n)}return r})}var yr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const br=process.platform===`win32`;var xr=class extends p.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(br)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,n,r){try{let i=n+e.toString(),a=i.indexOf(t.EOL);for(;a>-1;)r(i.substring(0,a)),i=i.substring(a+t.EOL.length),a=i.indexOf(t.EOL);return i}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return br&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(br&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return yr(this,void 0,void 0,function*(){return!dr(this.toolPath)&&(this.toolPath.includes(`/`)||br&&this.toolPath.includes(`\\`))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield _r(this.toolPath,!0),new Promise((e,n)=>yr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+t.EOL);let i=new Cr(r,this.toolPath);if(i.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield ur(this.options.cwd)))return n(Error(`The cwd: ${this.options.cwd} does not exist!`));let a=this._getSpawnFileName(),o=D.spawn(a,this._getSpawnArgs(r),this._getSpawnOptions(this.options,a)),s=``;o.stdout&&o.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c=``;if(o.stderr&&o.stderr.on(`data`,e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on(`error`,e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),o.on(`exit`,e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),o.on(`close`,e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on(`done`,(t,r)=>{s.length>0&&this.emit(`stdline`,s),c.length>0&&this.emit(`errline`,c),o.removeAllListeners(),t?n(t):e(r)}),this.options.input){if(!o.stdin)throw Error(`child process missing stdin`);o.stdin.end(this.options.input)}}))})}};function Sr(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var Cr=class e extends p.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=O(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},wr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Tr(e,t,n){return wr(this,void 0,void 0,function*(){let r=Sr(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new xr(i,t,n).exec()})}function Er(e,t,n){return wr(this,void 0,void 0,function*(){let r=``,i=``,a=new E(`utf8`),o=new E(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield Tr(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}n.platform(),n.arch();var Dr;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(Dr||={});function Or(e,t){let n=Oe(t);if(process.env[e]=n,process.env.GITHUB_ENV)return Fe(`ENV`,Ie(e,t));Ae(`set-env`,{name:e},n)}function kr(e){Ae(`add-mask`,{},e)}function Ar(e){process.env.GITHUB_PATH?Fe(`PATH`,e):Ae(`add-path`,{},e),process.env.PATH=`${e}${u.delimiter}${process.env.PATH}`}function jr(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Mr(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=jr(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Nr(e,n){if(process.env.GITHUB_OUTPUT)return Fe(`OUTPUT`,Ie(e,n));process.stdout.write(t.EOL),Ae(`set-output`,{name:e},Oe(n))}function Pr(e){process.exitCode=Dr.Failure,Ir(e)}function Fr(){return process.env.RUNNER_DEBUG===`1`}function R(e){Ae(`debug`,{},e)}function Ir(e,t={}){Ae(`error`,ke(t),e instanceof Error?e.toString():e)}function Lr(e,t={}){Ae(`warning`,ke(t),e instanceof Error?e.toString():e)}function Rr(e){process.stdout.write(e+t.EOL)}function zr(e){je(`group`,e)}function Br(){je(`endgroup`)}function Vr(e,t){if(process.env.GITHUB_STATE)return Fe(`STATE`,Ie(e,t));Ae(`save-state`,{name:e},Oe(t))}function Hr(e){return process.env[`STATE_${e}`]||``}var Ur=P((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),Wr=P((e=>{var t=Ur();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e{var t=Ur(),n=Wr();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(` -`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),Kr=P((e=>{var t=Ur(),n=Wr();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),qr=P((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n{var t=Ur();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),Yr=P((e=>{var t=qr(),n=Ur(),r=Jr();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),Xr=P((e=>{var t=Kr(),n=Wr(),r=Ur(),i=Yr(),a=Jr(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),Zr=P((e=>{var t=Ur(),n=Yr(),r=Jr();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),Qr=P((e=>{var t=Xr(),n=Ur(),r=Zr();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),$r=P((e=>{var t=Qr(),n=Ur(),r=Yr();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),ei=P((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(` +`.trim())}}})),qt=P(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=I(),i=wt();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),Jt=P(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),Yt=P(((e,t)=>{let n=gt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),Xt=P(((e,t)=>{let n=Dt();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),Zt=P(((e,t)=>{let n=L(),{InvalidArgumentError:r,RequestAbortedError:i}=I(),a=Jt();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),Qt=P(((e,t)=>{let{isIP:n}=F(`node:net`),{lookup:r}=F(`node:dns`),i=Jt(),{InvalidArgumentError:a,InformationalError:o}=I(),s=2**31-1;var c=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new o(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),s=this.pick(e,a,i.affinity),c;c=typeof s.port==`number`?`:${s.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${s.family===6?`[${s.address}]`:s.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){r(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===s?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===s?o.offset=0:o.offset++;let c=o.offset%o.ips.length;return r=o.ips[c]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(c,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new l(this,e,t)}},l=class extends i{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};t.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new a(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new a(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new a(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new a(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new a(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new a(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,r;r=t?e?.affinity??null:e?.affinity??4;let i=new c({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0});return e=>function(t,r){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return n(a.hostname)===0?(i.runLookup(a,t,(n,o)=>{if(n)return r.onError(n);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:r},t))}),!0):e(t,r)}}})),$t=P(((e,t)=>{let{kConstruct:n}=Ge(),{kEnumerableProperty:r}=L(),{iteratorMixin:i,isValidHeaderName:a,isValidHeaderValue:o}=ct(),{webidl:s}=st(),c=F(`node:assert`),l=F(`node:util`),u=Symbol(`headers map`),d=Symbol(`headers map sorted`);function f(e){return e===10||e===13||e===9||e===32}function p(e){let t=0,n=e.length;for(;n>t&&f(e.charCodeAt(n-1));)--n;for(;n>t&&f(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function m(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function h(e,t,n){if(n=p(n),!a(t))throw s.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(y(e)===`immutable`)throw TypeError(`immutable`);return x(e).append(t,n,!1)}function g(e,t){return e[0]>1),t[s][0]<=l[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=l}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[u])t[e++]=[n,r],c(r!==null);return t.sort(g)}}},v=class e{#e;#t;constructor(e=void 0){s.util.markAsUncloneable(this),e!==n&&(this.#t=new _,this.#e=`none`,e!==void 0&&(e=s.converters.HeadersInit(e,`Headers contructor`,`init`),m(this,e)))}append(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),h(this,t,n)}delete(t){if(s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.delete`),t=s.converters.ByteString(t,`Headers.delete`,`name`),!a(t))throw s.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),n=p(n),!a(t))throw s.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){s.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[d](){if(this.#t[d])return this.#t[d];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[d]=t;for(let r=0;r>`](e,t,n,r.bind(e)):s.converters[`record`](e,t,n)}throw s.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},t.exports={fill:m,compareHeaderName:g,Headers:v,HeadersList:_,getHeadersGuard:y,setHeadersGuard:b,setHeadersList:S,getHeadersList:x}})),en=P(((e,t)=>{let{Headers:n,HeadersList:r,fill:i,getHeadersGuard:a,setHeadersGuard:o,setHeadersList:s}=$t(),{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:f,bodyUnusable:p}=pt(),m=L(),h=F(`node:util`),{kEnumerableProperty:g}=m,{isValidReasonPhrase:_,isCancelled:v,isAborted:y,isBlobLike:b,serializeJavascriptValueToJSONString:x,isErrorLike:S,isomorphicEncode:C,environmentSettingsObject:w}=ct(),{redirectStatusSet:T,nullBodyStatus:E}=it(),{kState:D,kHeaders:O}=lt(),{webidl:k}=st(),{FormData:A}=dt(),{URLSerializer:j}=ot(),{kConstruct:M}=Ge(),ee=F(`node:assert`),{types:N}=F(`node:util`),te=new TextEncoder(`utf-8`);var ne=class e{static error(){return de(ae(),`immutable`)}static json(e,t={}){k.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=k.converters.ResponseInit(t));let n=c(te.encode(x(e))),r=de(ie({}),`response`);return ue(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){k.argumentLengthCheck(arguments,1,`Response.redirect`),e=k.converters.USVString(e),t=k.converters[`unsigned short`](t);let n;try{n=new URL(e,w.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!T.has(t))throw RangeError(`Invalid status code ${t}`);let r=de(ie({}),`immutable`);r[D].status=t;let i=C(j(n));return r[D].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(k.util.markAsUncloneable(this),e===M)return;e!==null&&(e=k.converters.BodyInit(e)),t=k.converters.ResponseInit(t),this[D]=ie({}),this[O]=new n(M),o(this[O],`response`),s(this[O],this[D].headersList);let r=null;if(e!=null){let[t,n]=c(e);r={body:t,type:n}}ue(this,t,r)}get type(){return k.brandCheck(this,e),this[D].type}get url(){k.brandCheck(this,e);let t=this[D].urlList,n=t[t.length-1]??null;return n===null?``:j(n,!0)}get redirected(){return k.brandCheck(this,e),this[D].urlList.length>1}get status(){return k.brandCheck(this,e),this[D].status}get ok(){return k.brandCheck(this,e),this[D].status>=200&&this[D].status<=299}get statusText(){return k.brandCheck(this,e),this[D].statusText}get headers(){return k.brandCheck(this,e),this[O]}get body(){return k.brandCheck(this,e),this[D].body?this[D].body.stream:null}get bodyUsed(){return k.brandCheck(this,e),!!this[D].body&&m.isDisturbed(this[D].body.stream)}clone(){if(k.brandCheck(this,e),p(this))throw k.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=re(this[D]);return d&&this[D].body?.stream&&f.register(this,new WeakRef(this[D].body.stream)),de(t,a(this[O]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};u(ne),Object.defineProperties(ne.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(ne,{json:g,redirect:g,error:g});function re(e){if(e.internalResponse)return ce(re(e.internalResponse),e.type);let t=ie({...e,body:null});return e.body!=null&&(t.body=l(t,e.body)),t}function ie(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new r(e?.headersList):new r,urlList:e?.urlList?[...e.urlList]:[]}}function ae(e){return ie({type:`error`,status:0,error:S(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function oe(e){return e.type===`error`&&e.status===0}function se(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return ee(!(n in t)),e[n]=r,!0}})}function ce(e,t){if(t===`basic`)return se(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return se(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return se(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return se(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});ee(!1)}function le(e,t=null){return ee(v(e)),y(e)?ae(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):ae(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function ue(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!_(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[D].status=t.status),`statusText`in t&&t.statusText!=null&&(e[D].statusText=t.statusText),`headers`in t&&t.headers!=null&&i(e[O],t.headers),n){if(E.includes(e.status))throw k.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[D].body=n.body,n.type!=null&&!e[D].headersList.contains(`content-type`,!0)&&e[D].headersList.append(`content-type`,n.type,!0)}}function de(e,t){let r=new ne(M);return r[D]=e,r[O]=new n(M),s(r[O],e.headersList),o(r[O],t),d&&e.body?.stream&&f.register(r,new WeakRef(e.body.stream)),r}k.converters.ReadableStream=k.interfaceConverter(ReadableStream),k.converters.FormData=k.interfaceConverter(A),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?k.converters.USVString(e,t,n):b(e)?k.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||N.isArrayBuffer(e)?k.converters.BufferSource(e,t,n):m.isFormDataLike(e)?k.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?k.converters.URLSearchParams(e,t,n):k.converters.DOMString(e,t,n)},k.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?k.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:k.converters.XMLHttpRequestBodyInit(e,t,n)},k.converters.ResponseInit=k.dictionaryConverter([{key:`status`,converter:k.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:k.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:k.converters.HeadersInit}]),t.exports={isNetworkError:oe,makeNetworkError:ae,makeResponse:ie,makeAppropriateNetworkError:le,filterResponse:ce,Response:ne,cloneResponse:re,fromInnerResponse:de}})),tn=P(((e,t)=>{let{kConnected:n,kSize:r}=Ge();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),nn=P(((e,t)=>{let{extractBody:n,mixinBody:r,cloneBody:i,bodyUnusable:a}=pt(),{Headers:o,fill:s,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:f}=$t(),{FinalizationRegistry:p}=tn()(),m=L(),h=F(`node:util`),{isValidHTTPToken:g,sameOrigin:_,environmentSettingsObject:v}=ct(),{forbiddenMethodsSet:y,corsSafeListedMethodsSet:b,referrerPolicy:x,requestRedirect:S,requestMode:C,requestCredentials:w,requestCache:T,requestDuplex:E}=it(),{kEnumerableProperty:D,normalizedMethodRecordsBase:O,normalizedMethodRecords:k}=m,{kHeaders:A,kSignal:j,kState:M,kDispatcher:ee}=lt(),{webidl:N}=st(),{URLSerializer:te}=ot(),{kConstruct:ne}=Ge(),re=F(`node:assert`),{getMaxListeners:ie,setMaxListeners:ae,getEventListeners:oe,defaultMaxListeners:se}=F(`node:events`),ce=Symbol(`abortController`),le=new p(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),ue=new WeakMap;function de(e){return t;function t(){let n=e.deref();if(n!==void 0){le.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=ue.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}ue.delete(n.signal)}}}}let fe=!1;var pe=class e{constructor(t,r={}){if(N.util.markAsUncloneable(this),t===ne)return;let i=`Request constructor`;N.argumentLengthCheck(arguments,1,i),t=N.converters.RequestInfo(t,i,`input`),r=N.converters.RequestInit(r,i,`init`);let u=null,p=null,h=v.settingsObject.baseUrl,x=null;if(typeof t==`string`){this[ee]=r.dispatcher;let e;try{e=new URL(t,h)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);u=me({urlList:[e]}),p=`cors`}else this[ee]=r.dispatcher||t[ee],re(t instanceof e),u=t[M],x=t[j];let S=v.settingsObject.origin,C=`client`;if(u.window?.constructor?.name===`EnvironmentSettingsObject`&&_(u.window,S)&&(C=u.window),r.window!=null)throw TypeError(`'window' option '${C}' must be null`);`window`in r&&(C=`no-window`),u=me({method:u.method,headersList:u.headersList,unsafeRequest:u.unsafeRequest,client:v.settingsObject,window:C,priority:u.priority,origin:u.origin,referrer:u.referrer,referrerPolicy:u.referrerPolicy,mode:u.mode,credentials:u.credentials,cache:u.cache,redirect:u.redirect,integrity:u.integrity,keepalive:u.keepalive,reloadNavigation:u.reloadNavigation,historyNavigation:u.historyNavigation,urlList:[...u.urlList]});let w=Object.keys(r).length!==0;if(w&&(u.mode===`navigate`&&(u.mode=`same-origin`),u.reloadNavigation=!1,u.historyNavigation=!1,u.origin=`client`,u.referrer=`client`,u.referrerPolicy=``,u.url=u.urlList[u.urlList.length-1],u.urlList=[u.url]),r.referrer!==void 0){let e=r.referrer;if(e===``)u.referrer=`no-referrer`;else{let t;try{t=new URL(e,h)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||S&&!_(t,v.settingsObject.baseUrl)?u.referrer=`client`:u.referrer=t}}r.referrerPolicy!==void 0&&(u.referrerPolicy=r.referrerPolicy);let T;if(T=r.mode===void 0?p:r.mode,T===`navigate`)throw N.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(T!=null&&(u.mode=T),r.credentials!==void 0&&(u.credentials=r.credentials),r.cache!==void 0&&(u.cache=r.cache),u.cache===`only-if-cached`&&u.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(r.redirect!==void 0&&(u.redirect=r.redirect),r.integrity!=null&&(u.integrity=String(r.integrity)),r.keepalive!==void 0&&(u.keepalive=!!r.keepalive),r.method!==void 0){let e=r.method,t=k[e];if(t!==void 0)u.method=t;else{if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(y.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=O[t]??e,u.method=e}!fe&&u.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`}),fe=!0)}r.signal!==void 0&&(x=r.signal),this[M]=u;let E=new AbortController;if(this[j]=E.signal,x!=null){if(!x||typeof x.aborted!=`boolean`||typeof x.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(x.aborted)E.abort(x.reason);else{this[ce]=E;let e=de(new WeakRef(E));try{(typeof ie==`function`&&ie(x)===se||oe(x,`abort`).length>=se)&&ae(1500,x)}catch{}m.addAbortListener(x,e),le.register(E,{signal:x,abort:e},e)}}if(this[A]=new o(ne),d(this[A],u.headersList),l(this[A],`request`),T===`no-cors`){if(!b.has(u.method))throw TypeError(`'${u.method} is unsupported in no-cors mode.`);l(this[A],`request-no-cors`)}if(w){let e=f(this[A]),t=r.headers===void 0?new c(e):r.headers;if(e.clear(),t instanceof c){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else s(this[A],t)}let D=t instanceof e?t[M].body:null;if((r.body!=null||D!=null)&&(u.method===`GET`||u.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let te=null;if(r.body!=null){let[e,t]=n(r.body,u.keepalive);te=e,t&&!f(this[A]).contains(`content-type`,!0)&&this[A].append(`content-type`,t)}let ue=te??D;if(ue!=null&&ue.source==null){if(te!=null&&r.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(u.mode!==`same-origin`&&u.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);u.useCORSPreflightFlag=!0}let pe=ue;if(te==null&&D!=null){if(a(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;D.stream.pipeThrough(e),pe={source:D.source,length:D.length,stream:e.readable}}this[M].body=pe}get method(){return N.brandCheck(this,e),this[M].method}get url(){return N.brandCheck(this,e),te(this[M].url)}get headers(){return N.brandCheck(this,e),this[A]}get destination(){return N.brandCheck(this,e),this[M].destination}get referrer(){return N.brandCheck(this,e),this[M].referrer===`no-referrer`?``:this[M].referrer===`client`?`about:client`:this[M].referrer.toString()}get referrerPolicy(){return N.brandCheck(this,e),this[M].referrerPolicy}get mode(){return N.brandCheck(this,e),this[M].mode}get credentials(){return this[M].credentials}get cache(){return N.brandCheck(this,e),this[M].cache}get redirect(){return N.brandCheck(this,e),this[M].redirect}get integrity(){return N.brandCheck(this,e),this[M].integrity}get keepalive(){return N.brandCheck(this,e),this[M].keepalive}get isReloadNavigation(){return N.brandCheck(this,e),this[M].reloadNavigation}get isHistoryNavigation(){return N.brandCheck(this,e),this[M].historyNavigation}get signal(){return N.brandCheck(this,e),this[j]}get body(){return N.brandCheck(this,e),this[M].body?this[M].body.stream:null}get bodyUsed(){return N.brandCheck(this,e),!!this[M].body&&m.isDisturbed(this[M].body.stream)}get duplex(){return N.brandCheck(this,e),`half`}clone(){if(N.brandCheck(this,e),a(this))throw TypeError(`unusable`);let t=he(this[M]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=ue.get(this.signal);e===void 0&&(e=new Set,ue.set(this.signal,e));let t=new WeakRef(n);e.add(t),m.addAbortListener(n.signal,de(t))}return ge(t,n.signal,u(this[A]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};r(pe);function me(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function he(e){let t=me({...e,body:null});return e.body!=null&&(t.body=i(t,e.body)),t}function ge(e,t,n){let r=new pe(ne);return r[M]=e,r[j]=t,r[A]=new o(ne),d(r[A],e.headersList),l(r[A],n),r}Object.defineProperties(pe.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),N.converters.Request=N.interfaceConverter(pe),N.converters.RequestInfo=function(e,t,n){return typeof e==`string`?N.converters.USVString(e,t,n):e instanceof pe?N.converters.Request(e,t,n):N.converters.USVString(e,t,n)},N.converters.AbortSignal=N.interfaceConverter(AbortSignal),N.converters.RequestInit=N.dictionaryConverter([{key:`method`,converter:N.converters.ByteString},{key:`headers`,converter:N.converters.HeadersInit},{key:`body`,converter:N.nullableConverter(N.converters.BodyInit)},{key:`referrer`,converter:N.converters.USVString},{key:`referrerPolicy`,converter:N.converters.DOMString,allowedValues:x},{key:`mode`,converter:N.converters.DOMString,allowedValues:C},{key:`credentials`,converter:N.converters.DOMString,allowedValues:w},{key:`cache`,converter:N.converters.DOMString,allowedValues:T},{key:`redirect`,converter:N.converters.DOMString,allowedValues:S},{key:`integrity`,converter:N.converters.DOMString},{key:`keepalive`,converter:N.converters.boolean},{key:`signal`,converter:N.nullableConverter(e=>N.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:N.converters.any},{key:`duplex`,converter:N.converters.DOMString,allowedValues:E},{key:`dispatcher`,converter:N.converters.any}]),t.exports={Request:pe,makeRequest:me,fromInnerRequest:ge,cloneRequest:he}})),rn=P(((e,t)=>{let{makeNetworkError:n,makeAppropriateNetworkError:r,filterResponse:i,makeResponse:a,fromInnerResponse:o}=en(),{HeadersList:s}=$t(),{Request:c,cloneRequest:l}=nn(),u=F(`node:zlib`),{bytesMatch:d,makePolicyContainer:f,clonePolicyContainer:p,requestBadPort:m,TAOCheck:h,appendRequestOriginHeader:g,responseLocationURL:_,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:x,appendFetchMetadata:S,corsCheck:C,crossOriginResourcePolicyCheck:w,determineRequestsReferrer:T,coarsenedSharedCurrentTime:E,createDeferredPromise:D,isBlobLike:O,sameOrigin:k,isCancelled:A,isAborted:j,isErrorLike:M,fullyReadBody:ee,readableStreamClose:N,isomorphicEncode:te,urlIsLocal:ne,urlIsHttpHttpsScheme:re,urlHasHttpsScheme:ie,clampAndCoarsenConnectionTimingInfo:ae,simpleRangeHeaderValue:oe,buildContentRange:se,createInflate:ce,extractMimeType:le}=ct(),{kState:ue,kDispatcher:de}=lt(),fe=F(`node:assert`),{safelyExtractBody:pe,extractBody:me}=pt(),{redirectStatusSet:he,nullBodyStatus:ge,safeMethodsSet:_e,requestBodyHeader:ve,subresourceSet:ye}=it(),be=F(`node:events`),{Readable:xe,pipeline:Se,finished:Ce}=F(`node:stream`),{addAbortListener:we,isErrored:Te,isReadable:Ee,bufferToLowerCasedHeaderName:P}=L(),{dataURLProcessor:De,serializeAMimeType:Oe,minimizeSupportedMimeType:ke}=ot(),{getGlobalDispatcher:Ae}=qt(),{webidl:je}=st(),{STATUS_CODES:Me}=F(`node:http`),Ne=[`GET`,`HEAD`],Pe=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,Fe;var Ie=class extends be{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function Le(e){ze(e,`fetch`)}function Re(e,t=void 0){je.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=D(),r;try{r=new c(e,t)}catch(e){return n.reject(e),n.promise}let i=r[ue];if(r.signal.aborted)return Ve(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,s=!1,l=null;return we(r.signal,()=>{s=!0,fe(l!=null),l.abort(r.signal.reason);let e=a?.deref();Ve(n,i,e,r.signal.reason)}),l=He({request:i,processResponseEndOfBody:Le,processResponse:e=>{if(!s){if(e.aborted){Ve(n,i,a,l.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(o(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[de]}),n.promise}function ze(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;re(n)&&r!==null&&(e.timingAllowPassed||(r=x({startTime:r.startTime}),i=``),r.endTime=E(),e.timingInfo=r,Be(r,n.href,t,globalThis,i))}let Be=performance.markResourceTiming;function Ve(e,t,n,r){if(e&&e.reject(r),t.body!=null&&Ee(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[ue];i.body!=null&&Ee(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function He({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Ae()}){fe(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=x({startTime:E(l)}),d={controller:new Ie(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return fe(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=f():e.policyContainer=p(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,ye.has(e.destination),Ue(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Ue(e,t=!1){let r=e.request,a=null;if(r.localURLsOnly&&!ne(v(r))&&(a=n(`local URLs only`)),b(r),m(r)===`blocked`&&(a=n(`bad port`)),r.referrerPolicy===``&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!==`no-referrer`&&(r.referrer=T(r)),a===null&&(a=await(async()=>{let t=v(r);return k(t,r.url)&&r.responseTainting===`basic`||t.protocol===`data:`||r.mode===`navigate`||r.mode===`websocket`?(r.responseTainting=`basic`,await We(e)):r.mode===`same-origin`?n(`request mode cannot be "same-origin"`):r.mode===`no-cors`?r.redirect===`follow`?(r.responseTainting=`opaque`,await We(e)):n(`redirect mode cannot be "follow" for "no-cors" request`):re(v(r))?(r.responseTainting=`cors`,await Ke(e)):n(`URL scheme must be a HTTP(S) scheme`)})()),t)return a;a.status!==0&&!a.internalResponse&&(r.responseTainting,r.responseTainting===`basic`?a=i(a,`basic`):r.responseTainting===`cors`?a=i(a,`cors`):r.responseTainting===`opaque`?a=i(a,`opaque`):fe(!1));let o=a.status===0?a:a.internalResponse;if(o.urlList.length===0&&o.urlList.push(...r.urlList),r.timingAllowFailed||(a.timingAllowPassed=!0),a.type===`opaque`&&o.status===206&&o.rangeRequested&&!r.headers.contains(`range`,!0)&&(a=o=n()),a.status!==0&&(r.method===`HEAD`||r.method===`CONNECT`||ge.includes(o.status))&&(o.body=null,e.controller.dump=!0),r.integrity){let t=t=>I(e,n(t));if(r.responseTainting===`opaque`||a.body==null){t(a.error);return}await ee(a.body,n=>{if(!d(n,r.integrity)){t(`integrity mismatch`);return}a.body=pe(n)[0],I(e,a)},t)}else I(e,a)}function We(e){if(A(e)&&e.request.redirectCount===0)return Promise.resolve(r(e));let{request:t}=e,{protocol:i}=v(t);switch(i){case`about:`:return Promise.resolve(n(`about scheme is not supported`));case`blob:`:{Fe||=F(`node:buffer`).resolveObjectURL;let e=v(t);if(e.search.length!==0)return Promise.resolve(n(`NetworkError when attempting to fetch resource.`));let r=Fe(e.toString());if(t.method!==`GET`||!O(r))return Promise.resolve(n(`invalid method`));let i=a(),o=r.size,s=te(`${o}`),c=r.type;if(t.headersList.contains(`range`,!0)){i.rangeRequested=!0;let e=oe(t.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let{rangeStartValue:a,rangeEndValue:s}=e;if(a===null)a=o-s,s=a+s-1;else{if(a>=o)return Promise.resolve(n(`Range start is greater than the blob's size.`));(s===null||s>=o)&&(s=o-1)}let l=r.slice(a,s,c);i.body=me(l)[0];let u=te(`${l.size}`),d=se(a,s,o);i.status=206,i.statusText=`Partial Content`,i.headersList.set(`content-length`,u,!0),i.headersList.set(`content-type`,c,!0),i.headersList.set(`content-range`,d,!0)}else{let e=me(r);i.statusText=`OK`,i.body=e[0],i.headersList.set(`content-length`,s,!0),i.headersList.set(`content-type`,c,!0)}return Promise.resolve(i)}case`data:`:{let e=De(v(t));if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let r=Oe(e.mimeType);return Promise.resolve(a({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:r}]],body:pe(e.body)[0]}))}case`file:`:return Promise.resolve(n(`not implemented... yet...`));case`http:`:case`https:`:return Ke(e).catch(e=>n(e));default:return Promise.resolve(n(`unknown scheme`))}}function Ge(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function I(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=x(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=le(t.headersList);e!==`failure`&&(a.contentType=ke(e))}e.request.initiatorType!=null&&Be(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():Ce(i.body.stream,()=>{r()})}async function Ke(e){let t=e.request,r=null,i=null,a=e.timingInfo;if(t.serviceWorkers,r===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=r=await Je(e),t.responseTainting===`cors`&&C(t,r)===`failure`)return n(`cors failure`);h(t,r)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||r.type===`opaque`)&&w(t.origin,t.client,t.destination,i)===`blocked`?n(`blocked`):(he.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?r=n(`unexpected redirect`):t.redirect===`manual`?r=i:t.redirect===`follow`?r=await qe(e,r):fe(!1)),r.timingInfo=a,r)}function qe(e,t){let r=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=_(i,v(r).hash),a==null)return t}catch(e){return Promise.resolve(n(e))}if(!re(a))return Promise.resolve(n(`URL scheme must be a HTTP(S) scheme`));if(r.redirectCount===20)return Promise.resolve(n(`redirect count exceeded`));if(r.redirectCount+=1,r.mode===`cors`&&(a.username||a.password)&&!k(r,a))return Promise.resolve(n(`cross origin not allowed for request mode "cors"`));if(r.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(n(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(n());if([301,302].includes(i.status)&&r.method===`POST`||i.status===303&&!Ne.includes(r.method)){r.method=`GET`,r.body=null;for(let e of ve)r.headersList.delete(e)}k(v(r),a)||(r.headersList.delete(`authorization`,!0),r.headersList.delete(`proxy-authorization`,!0),r.headersList.delete(`cookie`,!0),r.headersList.delete(`host`,!0)),r.body!=null&&(fe(r.body.source!=null),r.body=pe(r.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=E(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(a),y(r,i),Ue(e,!0)}async function Je(e,t=!1,i=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=l(a),o={...e},o.request=s);let u=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=te(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,te(s.referrer.href),!0),g(s),S(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Pe),s.cache===`default`&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(ie(v(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return n(`only if cached`);let e=await Ye(o,u,i);!_e.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=u,c.status===407)return a.window===`no-window`?n():A(e)?r(e):n(`proxy authentication required`);if(c.status===421&&!i&&(a.body==null||a.body.source!=null)){if(A(e))return r(e);e.controller.connection.destroy(),c=await Je(e,t,!0)}return c}async function Ye(e,t=!1,i=!1){fe(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let o=e.request,c=null,l=e.timingInfo;o.cache=`no-store`,o.mode;let d=null;if(o.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(o.body!=null){let t=async function*(t){A(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{A(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{A(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};d=(async function*(){try{for await(let e of o.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:o}=await g({body:d});if(o)c=a({status:n,statusText:r,headersList:i,socket:o});else{let o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next(),c=a({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),r(e,t)):n(t)}let f=async()=>{await e.controller.resume()},p=t=>{A(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});c.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(j(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){N(e.controller.controller),Ge(e,c);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),Te(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){j(e)?(c.aborted=!0,Ee(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):Ee(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:M(t)?t:void 0})),e.controller.connection.destroy()}return c;function g({body:t}){let n=v(o),r=e.controller.dispatcher;return new Promise((i,a)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:o.method,body:r.isMockActive?o.body&&(o.body.source||o.body.stream):t,headers:o.headersList.entries,maxRedirections:0,upgrade:o.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=ae(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=E(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=E(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let c=``,l=new s;for(let e=0;e5)return a(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)d.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)d.push(ce({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`br`)d.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}));else{d.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:d.length?Se(this.body,...d,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),a(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new s;for(let e=0;e{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`)}})),on=P(((e,t)=>{let{webidl:n}=st(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),sn=P(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.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:n}})),cn=P(((e,t)=>{let{kState:n,kError:r,kResult:i,kAborted:a,kLastProgressEventFired:o}=an(),{ProgressEvent:s}=on(),{getEncoding:c}=sn(),{serializeAMimeType:l,parseMIMEType:u}=ot(),{types:d}=F(`node:util`),{StringDecoder:f}=F(`string_decoder`),{btoa:p}=F(`node:buffer`),m={enumerable:!0,writable:!1,configurable:!1};function h(e,t,s,c){if(e[n]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[n]=`loading`,e[i]=null,e[r]=null;let l=t.stream().getReader(),u=[],f=l.read(),p=!0;(async()=>{for(;!e[a];)try{let{done:m,value:h}=await f;if(p&&!e[a]&&queueMicrotask(()=>{g(`loadstart`,e)}),p=!1,!m&&d.isUint8Array(h))u.push(h),(e[o]===void 0||Date.now()-e[o]>=50)&&!e[a]&&(e[o]=Date.now(),queueMicrotask(()=>{g(`progress`,e)})),f=l.read();else if(m){queueMicrotask(()=>{e[n]=`done`;try{let n=_(u,s,t.type,c);if(e[a])return;e[i]=n,g(`load`,e)}catch(t){e[r]=t,g(`error`,e)}e[n]!==`loading`&&g(`loadend`,e)});break}}catch(t){if(e[a])return;queueMicrotask(()=>{e[n]=`done`,e[r]=t,g(`error`,e),e[n]!==`loading`&&g(`loadend`,e)});break}})()}function g(e,t){let n=new s(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=u(n||`application/octet-stream`);r!==`failure`&&(t+=l(r)),t+=`;base64,`;let i=new f(`latin1`);for(let n of e)t+=p(i.write(n));return t+=p(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=c(r)),t===`failure`&&n){let e=u(n);e!==`failure`&&(t=c(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),v(e,t)}case`ArrayBuffer`:return b(e).buffer;case`BinaryString`:{let t=``,n=new f(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function v(e,t){let n=b(e),r=y(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function y(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function b(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}t.exports={staticPropertyDescriptors:m,readOperation:h,fireAProgressEvent:g}})),ln=P(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=cn(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=an(),{webidl:u}=st(),{kEnumerableProperty:d}=L();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),un=P(((e,t)=>{t.exports={kConstruct:Ge().kConstruct}})),dn=P(((e,t)=>{let n=F(`node:assert`),{URLSerializer:r}=ot(),{isValidHeaderName:i}=ct();function a(e,t,n=!1){return r(e,n)===r(t,n)}function o(e){n(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),i(n)&&t.push(n);return t}t.exports={urlEquals:a,getFieldValues:o}})),fn=P(((e,t)=>{let{kConstruct:n}=un(),{urlEquals:r,getFieldValues:i}=dn(),{kEnumerableProperty:a,isDisturbed:o}=L(),{webidl:s}=st(),{Response:c,cloneResponse:l,fromInnerResponse:u}=en(),{Request:d,fromInnerRequest:f}=nn(),{kState:p}=lt(),{fetching:m}=rn(),{urlIsHttpHttpsScheme:h,createDeferredPromise:g,readAllBytes:_}=ct(),v=F(`node:assert`);var y=class e{#e;constructor(){arguments[0]!==n&&s.illegalConstructor(),s.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){s.brandCheck(this,e);let r=`Cache.match`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){s.brandCheck(this,e);let n=`Cache.add`;s.argumentLengthCheck(arguments,1,n),t=s.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){s.brandCheck(this,e);let n=`Cache.addAll`;s.argumentLengthCheck(arguments,1,n);let r=[],a=[];for(let e of t){if(e===void 0)throw s.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=s.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[p];if(!h(t.url)||t.method!==`GET`)throw s.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new d(e)[p];if(!h(t.url))throw s.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,a.push(t);let c=g();o.push(m({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)c.reject(s.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=i(e.headersList.get(`vary`));for(let e of t)if(e===`*`){c.reject(s.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){c.reject(new DOMException(`aborted`,`AbortError`));return}c.resolve(e)}})),r.push(c.promise)}let c=await Promise.all(r),l=[],u=0;for(let e of c){let t={type:`put`,request:a[u],response:e};l.push(t),u++}let f=g(),_=null;try{this.#t(l)}catch(e){_=e}return queueMicrotask(()=>{_===null?f.resolve(void 0):f.reject(_)}),f.promise}async put(t,n){s.brandCheck(this,e);let r=`Cache.put`;s.argumentLengthCheck(arguments,2,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.Response(n,r,`response`);let a=null;if(a=t instanceof d?t[p]:new d(t)[p],!h(a.url)||a.method!==`GET`)throw s.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let c=n[p];if(c.status===206)throw s.errors.exception({header:r,message:`Got 206 status`});if(c.headersList.contains(`vary`)){let e=i(c.headersList.get(`vary`));for(let t of e)if(t===`*`)throw s.errors.exception({header:r,message:`Got * vary field value`})}if(c.body&&(o(c.body.stream)||c.body.stream.locked))throw s.errors.exception({header:r,message:`Response body is locked or disturbed`});let u=l(c),f=g();c.body==null?f.resolve(void 0):_(c.body.stream.getReader()).then(f.resolve,f.reject);let m=[],v={type:`put`,request:a,response:u};m.push(v);let y=await f.promise;u.body!=null&&(u.body.source=y);let b=g(),x=null;try{this.#t(m)}catch(e){x=e}return queueMicrotask(()=>{x===null?b.resolve():b.reject(x)}),b.promise}async delete(t,n={}){s.brandCheck(this,e);let r=`Cache.delete`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return!1}else v(typeof t==`string`),i=new d(t)[p];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let c=g(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new d(t)[p]);let a=g(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=f(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!h(i.url))throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,a){let o=new URL(e.url),s=new URL(t.url);if(a?.ignoreSearch&&(s.search=``,o.search=``),!r(o,s,!0))return!1;if(n==null||a?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=i(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof d){if(r=e[p],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new d(e)[p]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=u(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(y.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:a,matchAll:a,add:a,addAll:a,put:a,delete:a,keys:a});let b=[{key:`ignoreSearch`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:s.converters.boolean,defaultValue:()=>!1}];s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:`cacheName`,converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(c),s.converters[`sequence`]=s.sequenceConverter(s.converters.RequestInfo),t.exports={Cache:y}})),pn=P(((e,t)=>{let{kConstruct:n}=un(),{Cache:r}=fn(),{webidl:i}=st(),{kEnumerableProperty:a}=L();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),mn=P(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),hn=P(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),gn=P(((e,t)=>{let{maxNameValuePairSize:n,maxAttributeValueSize:r}=mn(),{isCTLExcludingHtab:i}=hn(),{collectASequenceOfCodePointsFast:a}=ot(),o=F(`node:assert`);function s(e){if(i(e))return null;let t=``,r=``,o=``,s=``;if(e.includes(`;`)){let n={position:0};t=a(`;`,e,n),r=e.slice(n.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};o=a(`=`,t,e),s=t.slice(e.position+1)}return o=o.trim(),s=s.trim(),o.length+s.length>n?null:{name:o,value:s,...c(r)}}function c(e,t={}){if(e.length===0)return t;o(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=a(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let i=``,s=``;if(n.includes(`=`)){let e={position:0};i=a(`=`,n,e),s=n.slice(e.position+1)}else i=n;if(i=i.trim(),s=s.trim(),s.length>r)return c(e,t);let l=i.toLowerCase();if(l===`expires`)t.expires=new Date(s);else if(l===`max-age`){let n=s.charCodeAt(0);if((n<48||n>57)&&s[0]!==`-`||!/^\d+$/.test(s))return c(e,t);t.maxAge=Number(s)}else if(l===`domain`){let e=s;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(l===`path`){let e=``;e=s.length===0||s[0]!==`/`?`/`:s,t.path=e}else if(l===`secure`)t.secure=!0;else if(l===`httponly`)t.httpOnly=!0;else if(l===`samesite`){let e=`Default`,n=s.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${i}=${s}`);return c(e,t)}t.exports={parseSetCookie:s,parseUnparsedAttributes:c}})),_n=P(((e,t)=>{let{parseSetCookie:n}=gn(),{stringify:r}=hn(),{webidl:i}=st(),{Headers:a}=$t();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),vn=P(((e,t)=>{let{webidl:n}=st(),{kEnumerableProperty:r}=L(),{kConstruct:i}=Ge(),{MessagePort:a}=F(`node:worker_threads`);var o=class e extends Event{#e;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]),n.util.markAsUncloneable(this);return}let r=`MessageEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.MessageEventInit(t,r,`eventInitDict`),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get data(){return n.brandCheck(this,e),this.#e.data}get origin(){return n.brandCheck(this,e),this.#e.origin}get lastEventId(){return n.brandCheck(this,e),this.#e.lastEventId}get source(){return n.brandCheck(this,e),this.#e.source}get ports(){return n.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,r=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return n.brandCheck(this,e),n.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:r,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(i,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:s}=o;delete o.createFastMessageEvent;var c=class e extends Event{#e;constructor(e,t={}){let r=`CloseEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.CloseEventInit(t),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get wasClean(){return n.brandCheck(this,e),this.#e.wasClean}get code(){return n.brandCheck(this,e),this.#e.code}get reason(){return n.brandCheck(this,e),this.#e.reason}},l=class e extends Event{#e;constructor(e,t){let r=`ErrorEvent constructor`;n.argumentLengthCheck(arguments,1,r),super(e,t),n.util.markAsUncloneable(this),e=n.converters.DOMString(e,r,`type`),t=n.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return n.brandCheck(this,e),this.#e.message}get filename(){return n.brandCheck(this,e),this.#e.filename}get lineno(){return n.brandCheck(this,e),this.#e.lineno}get colno(){return n.brandCheck(this,e),this.#e.colno}get error(){return n.brandCheck(this,e),this.#e.error}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(c.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),n.converters.MessagePort=n.interfaceConverter(a),n.converters[`sequence`]=n.sequenceConverter(n.converters.MessagePort);let u=[{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}];n.converters.MessageEventInit=n.dictionaryConverter([...u,{key:`data`,converter:n.converters.any,defaultValue:()=>null},{key:`origin`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:n.converters[`sequence`],defaultValue:()=>[]}]),n.converters.CloseEventInit=n.dictionaryConverter([...u,{key:`wasClean`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:n.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:n.converters.USVString,defaultValue:()=>``}]),n.converters.ErrorEventInit=n.dictionaryConverter([...u,{key:`message`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:n.converters.any}]),t.exports={MessageEvent:o,CloseEvent:c,ErrorEvent:l,createFastMessageEvent:s}})),yn=P(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),bn=P(((e,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`)}})),xn=P(((e,t)=>{let{kReadyState:n,kController:r,kResponse:i,kBinaryType:a,kWebSocketURL:o}=bn(),{states:s,opcodes:c}=yn(),{ErrorEvent:l,createFastMessageEvent:u}=vn(),{isUtf8:d}=F(`node:buffer`),{collectASequenceOfCodePointsFast:f,removeHTTPWhitespace:p}=ot();function m(e){return e[n]===s.CONNECTING}function h(e){return e[n]===s.OPEN}function g(e){return e[n]===s.CLOSING}function _(e){return e[n]===s.CLOSED}function v(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function y(e,t,r){if(e[n]!==s.OPEN)return;let i;if(t===c.TEXT)try{i=M(r)}catch{C(e,`Received invalid UTF-8 in text frame.`);return}else t===c.BINARY&&(i=e[a]===`blob`?new Blob([r]):b(r));v(`message`,e,u,{origin:e[o].origin,data:i})}function b(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function x(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function S(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function C(e,t){let{[r]:n,[i]:a}=e;n.abort(),a?.socket&&!a.socket.destroyed&&a.socket.destroy(),t&&v(`error`,e,(e,t)=>new l(e,t),{error:Error(t),message:t})}function w(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function T(e){return e===c.CONTINUATION}function E(e){return e===c.TEXT||e===c.BINARY}function D(e){return E(e)||T(e)||w(e)}function O(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let A=typeof process.versions.icu==`string`,j=A?new TextDecoder(`utf-8`,{fatal:!0}):void 0,M=A?j.decode.bind(j):function(e){if(d(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};t.exports={isConnecting:m,isEstablished:h,isClosing:g,isClosed:_,fireEvent:v,isValidSubprotocol:x,isValidStatusCode:S,failWebsocketConnection:C,websocketMessageReceived:y,utf8Decode:M,isControlFrame:w,isContinuationFrame:T,isTextBinaryFrame:E,isValidOpcode:D,parseExtensions:O,isValidClientWindowBits:k}})),Sn=P(((e,t)=>{let{maxUnsigned16Bit:n}=yn(),r=16386,i,a=null,o=r;try{i=F(`node:crypto`)}catch{i={randomFillSync:function(e,t,n){for(let t=0;tn?(o+=8,a=127):i>125&&(o+=2,a=126);let c=Buffer.allocUnsafe(i+o);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e,c[o-4]=r[0],c[o-3]=r[1],c[o-2]=r[2],c[o-1]=r[3],c[1]=a,a===126?c.writeUInt16BE(i,2):a===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let e=0;e{let{uid:n,states:r,sentCloseFrameState:i,emptyBuffer:a,opcodes:o}=yn(),{kReadyState:s,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=bn(),{fireEvent:f,failWebsocketConnection:p,isClosing:m,isClosed:h,isEstablished:g,parseExtensions:_}=xn(),{channels:v}=Je(),{CloseEvent:y}=vn(),{makeRequest:b}=nn(),{fetching:x}=rn(),{Headers:S,getHeadersList:C}=$t(),{getDecodeSplit:w}=ct(),{WebsocketFrameSend:T}=Sn(),E;try{E=F(`node:crypto`)}catch{}function D(e,t,r,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=b({urlList:[s],client:r,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=C(new S(o.headers)));let l=E.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),x({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){p(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){p(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){p(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){p(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==E.createHash(`sha1`).update(l+n).digest(`base64`)){p(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let r=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(r!==null&&(o=_(r),!o.has(`permessage-deflate`))){p(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!w(`sec-websocket-protocol`,c.headersList).includes(s)){p(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,k),e.socket.on(`close`,A),e.socket.on(`error`,j),v.open.hasSubscribers&&v.open.publish({address:e.socket.address(),protocol:s,extensions:r}),a(e,o)}})}function O(e,t,n,l){if(!(m(e)||h(e)))if(!g(e))p(e,`Connection was closed before it was established.`),e[s]=r.CLOSING;else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;let u=new T;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+l),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=a,e[d].socket.write(u.createFrame(o.CLOSE)),e[c]=i.SENT,e[s]=r.CLOSING}else e[s]=r.CLOSING}function k(e){this.ws[l].write(e)||this.pause()}function A(){let{ws:e}=this,{[d]:t}=e;t.socket.off(`data`,k),t.socket.off(`close`,A),t.socket.off(`error`,j);let n=e[c]===i.SENT&&e[u],a=1005,o=``,p=e[l].closingInfo;p&&!p.error?(a=p.code??1005,o=p.reason):e[u]||(a=1006),e[s]=r.CLOSED,f(`close`,e,(e,t)=>new y(e,t),{wasClean:n,code:a,reason:o}),v.close.hasSubscribers&&v.close.publish({websocket:e,code:a,reason:o})}function j(e){let{ws:t}=this;t[s]=r.CLOSING,v.socketError.hasSubscribers&&v.socketError.publish(e),this.destroy()}t.exports={establishWebSocketConnection:D,closeWebSocketConnection:O}})),wn=P(((e,t)=>{let{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:r}=F(`node:zlib`),{isValidClientWindowBits:i}=xn(),{MessageSizeExceededError:a}=I(),o=Buffer.from([0,0,255,255]),s=Symbol(`kBuffer`),c=Symbol(`kLength`);t.exports={PerMessageDeflate:class{#e;#t={};#n=0;constructor(e,t){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`),this.#n=t.maxPayloadSize}decompress(e,t,l){if(!this.#e){let e=r;if(this.#t.serverMaxWindowBits){if(!i(this.#t.serverMaxWindowBits)){l(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=n({windowBits:e})}catch(e){l(e);return}this.#e[s]=[],this.#e[c]=0,this.#e.on(`data`,e=>{if(this.#e[c]+=e.length,this.#n>0&&this.#e[c]>this.#n){l(new a),this.#e.removeAllListeners(),this.#e=null;return}this.#e[s].push(e)}),this.#e.on(`error`,e=>{this.#e=null,l(e)})}this.#e.write(e),t&&this.#e.write(o),this.#e.flush(()=>{if(!this.#e)return;let e=Buffer.concat(this.#e[s],this.#e[c]);this.#e[s].length=0,this.#e[c]=0,l(null,e)})}}}})),Tn=P(((e,t)=>{let{Writable:n}=F(`node:stream`),r=F(`node:assert`),{parserStates:i,opcodes:a,states:o,emptyBuffer:s,sentCloseFrameState:c}=yn(),{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:f}=bn(),{channels:p}=Je(),{isValidStatusCode:m,isValidOpcode:h,failWebsocketConnection:g,websocketMessageReceived:_,utf8Decode:v,isControlFrame:y,isTextBinaryFrame:b,isContinuationFrame:x}=xn(),{WebsocketFrameSend:S}=Sn(),{closeWebSocketConnection:C}=Cn(),{PerMessageDeflate:w}=wn(),{MessageSizeExceededError:T}=I();t.exports={ByteParser:class extends n{#e=[];#t=0;#n=0;#r=!1;#i=i.INFO;#a={};#o=[];#s;#c;constructor(e,t,n={}){super(),this.ws=e,this.#s=t??new Map,this.#c=n.maxPayloadSize??0,this.#s.has(`permessage-deflate`)&&this.#s.set(`permessage-deflate`,new w(t,n))}_write(e,t,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#l(){return this.#c>0&&!y(this.#a.opcode)&&this.#a.payloadLength>this.#c?(g(this.ws,`Payload size exceeds maximum allowed size`),!1):!0}run(e){for(;this.#r;)if(this.#i===i.INFO){if(this.#n<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,o=(t[1]&128)==128,s=!n&&r!==a.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!h(r))return g(this.ws,`Invalid opcode received`),e();if(o)return g(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#s.has(`permessage-deflate`)){g(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){g(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!b(r)){g(this.ws,`Invalid frame type was fragmented.`);return}if(b(r)&&this.#o.length>0){g(this.ws,`Expected continuation frame`);return}if(this.#a.fragmented&&s){g(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&y(r)){g(this.ws,`Control frame either too large or fragmented`);return}if(x(r)&&this.#o.length===0&&!this.#a.compressed){g(this.ws,`Unexpected continuation frame`);return}if(c<=125){if(this.#a.payloadLength=c,this.#i=i.READ_DATA,!this.#l())return}else c===126?this.#i=i.PAYLOADLENGTH_16:c===127&&(this.#i=i.PAYLOADLENGTH_64);b(r)&&(this.#a.binaryType=r,this.#a.compressed=l!==0),this.#a.opcode=r,this.#a.masked=o,this.#a.fin=n,this.#a.fragmented=s}else if(this.#i===i.PAYLOADLENGTH_16){if(this.#n<2)return e();let t=this.consume(2);if(this.#a.payloadLength=t.readUInt16BE(0),this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.PAYLOADLENGTH_64){if(this.#n<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){g(this.ws,`Received payload length > 2^31 bytes.`);return}if(this.#a.payloadLength=r,this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.READ_DATA){if(this.#n{if(t){g(this.ws,t.message);return}if(this.writeFragments(n),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}if(!this.#a.fin){this.#i=i.INFO,this.#r=!0,this.run(e);return}_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#r=!0,this.#i=i.INFO,this.run(e)}),this.#r=!1;break}else{if(this.writeFragments(t),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}!this.#a.fragmented&&this.#a.fin&&_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#i=i.INFO}}}consume(e){if(e>this.#n)throw Error(`Called consume() before buffers satiated.`);if(e===0)return s;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#n-=e,t}writeFragments(e){this.#t+=e.length,this.#o.push(e)}consumeFragments(){let e=this.#o;if(e.length===1)return this.#t=0,e.shift();let t=Buffer.concat(e,this.#t);return this.#o=[],this.#t=0,t}parseCloseBody(e){r(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!m(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=v(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#a;if(t===a.CLOSE){if(n===1)return g(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#a.closeInfo=this.parseCloseBody(e),this.#a.closeInfo.error){let{code:e,reason:t}=this.#a.closeInfo;return C(this.ws,e,t,t.length),g(this.ws,t),!1}if(this.ws[u]!==c.SENT){let e=s;this.#a.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#a.closeInfo.code,0));let t=new S(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),e=>{e||(this.ws[u]=c.SENT)})}return this.ws[l]=o.CLOSING,this.ws[f]=!0,!1}else if(t===a.PING){if(!this.ws[f]){let t=new S(e);this.ws[d].socket.write(t.createFrame(a.PONG)),p.ping.hasSubscribers&&p.ping.publish({payload:e})}}else t===a.PONG&&p.pong.hasSubscribers&&p.pong.publish({payload:e});return!0}get closingInfo(){return this.#a.closeInfo}}}})),En=P(((e,t)=>{let{WebsocketFrameSend:n}=Sn(),{opcodes:r,sendHints:i}=yn(),a=yt(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),Dn=P(((e,t)=>{let{webidl:n}=st(),{URLSerializer:r}=ot(),{environmentSettingsObject:i}=ct(),{staticPropertyDescriptors:a,states:o,sentCloseFrameState:s,sendHints:c}=yn(),{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:f,kResponse:p,kSentClose:m,kByteParser:h}=bn(),{isConnecting:g,isEstablished:_,isClosing:v,isValidSubprotocol:y,fireEvent:b}=xn(),{establishWebSocketConnection:x,closeWebSocketConnection:S}=Cn(),{ByteParser:C}=Tn(),{kEnumerableProperty:w,isBlobLike:T}=L(),{getGlobalDispatcher:E}=qt(),{types:D}=F(`node:util`),{ErrorEvent:O,CloseEvent:k}=vn(),{SendQueue:A}=En();var j=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,r=[]){super(),n.util.markAsUncloneable(this);let a=`WebSocket constructor`;n.argumentLengthCheck(arguments,1,a);let o=n.converters[`DOMString or sequence or WebSocketInit`](r,a,`options`);t=n.converters.USVString(t,a,`url`),r=o.protocols;let c=i.settingsObject.baseUrl,p;try{p=new URL(t,c)}catch(e){throw new DOMException(e,`SyntaxError`)}if(p.protocol===`http:`?p.protocol=`ws:`:p.protocol===`https:`&&(p.protocol=`wss:`),p.protocol!==`ws:`&&p.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,`SyntaxError`);if(p.hash||p.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof r==`string`&&(r=[r]),r.length!==new Set(r.map(e=>e.toLowerCase())).size||r.length>0&&!r.every(e=>y(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[l]=new URL(p.href);let h=i.settingsObject;this[d]=x(p,r,h,this,(e,t)=>this.#a(e,t),o),this[u]=e.CONNECTING,this[m]=s.NOT_SENT,this[f]=`blob`}close(t=void 0,r=void 0){n.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=n.converters[`unsigned short`](t,i,`code`,{clamp:!0})),r!==void 0&&(r=n.converters.USVString(r,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(r!==void 0&&(a=Buffer.byteLength(r),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);S(this,t,r,a)}send(t){n.brandCheck(this,e);let r=`WebSocket.send`;if(n.argumentLengthCheck(arguments,1,r),t=n.converters.WebSocketSendData(t,r,`data`),g(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!_(this)||v(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},c.string)}else D.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.typedArray)):T(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},c.blob))}get readyState(){return n.brandCheck(this,e),this[u]}get bufferedAmount(){return n.brandCheck(this,e),this.#t}get url(){return n.brandCheck(this,e),r(this[l])}get extensions(){return n.brandCheck(this,e),this.#r}get protocol(){return n.brandCheck(this,e),this.#n}get onopen(){return n.brandCheck(this,e),this.#e.open}set onopen(t){n.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return n.brandCheck(this,e),this.#e.error}set onerror(t){n.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return n.brandCheck(this,e),this.#e.close}set onclose(t){n.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return n.brandCheck(this,e),this.#e.message}set onmessage(t){n.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return n.brandCheck(this,e),this[f]}set binaryType(t){n.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[f]=`blob`:this[f]=t}#a(e,t){this[p]=e;let n=this[d]?.dispatcher?.webSocketOptions?.maxPayloadSize,r=new C(this,t,{maxPayloadSize:n});r.on(`drain`,M),r.on(`error`,ee.bind(this)),e.socket.ws=this,this[h]=r,this.#i=new A(e.socket),this[u]=o.OPEN;let i=e.headersList.get(`sec-websocket-extensions`);i!==null&&(this.#r=i);let a=e.headersList.get(`sec-websocket-protocol`);a!==null&&(this.#n=a),b(`open`,this)}};j.CONNECTING=j.prototype.CONNECTING=o.CONNECTING,j.OPEN=j.prototype.OPEN=o.OPEN,j.CLOSING=j.prototype.CLOSING=o.CLOSING,j.CLOSED=j.prototype.CLOSED=o.CLOSED,Object.defineProperties(j.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(j,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a}),n.converters[`sequence`]=n.sequenceConverter(n.converters.DOMString),n.converters[`DOMString or sequence`]=function(e,t,r){return n.util.Type(e)===`Object`&&Symbol.iterator in e?n.converters[`sequence`](e):n.converters.DOMString(e,t,r)},n.converters.WebSocketInit=n.dictionaryConverter([{key:`protocols`,converter:n.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:n.converters.any,defaultValue:()=>E()},{key:`headers`,converter:n.nullableConverter(n.converters.HeadersInit)}]),n.converters[`DOMString or sequence or WebSocketInit`]=function(e){return n.util.Type(e)===`Object`&&!(Symbol.iterator in e)?n.converters.WebSocketInit(e):{protocols:n.converters[`DOMString or sequence`](e)}},n.converters.WebSocketSendData=function(e){if(n.util.Type(e)===`Object`){if(T(e))return n.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||D.isArrayBuffer(e))return n.converters.BufferSource(e)}return n.converters.USVString(e)};function M(){this.ws[p].socket.resume()}function ee(e){let t,n;e instanceof k?(t=e.reason,n=e.code):t=e.message,b(`error`,this,()=>new O(`error`,{error:e,message:t})),S(this,n)}t.exports={WebSocket:j}})),On=P(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),kn=P(((e,t)=>{let{Transform:n}=F(`node:stream`),{isASCIINumber:r,isValidLastEventId:i}=On(),a=[239,187,191];t.exports={EventSourceStream:class extends n{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===a[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[a]=o);break}}processEvent(e){e.retry&&r(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&i(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),An=P(((e,t)=>{let{pipeline:n}=F(`node:stream`),{fetching:r}=rn(),{makeRequest:i}=nn(),{webidl:a}=st(),{EventSourceStream:o}=kn(),{parseMIMEType:s}=ot(),{createFastMessageEvent:c}=vn(),{isNetworkError:l}=en(),{delay:u}=On(),{kEnumerableProperty:d}=L(),{environmentSettingsObject:f}=ct(),p=!1,m=3e3;var h=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),a.util.markAsUncloneable(this);let n=`EventSource constructor`;a.argumentLengthCheck(arguments,1,n),p||(p=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=a.converters.USVString(e,n,`url`),t=a.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:m};let r=f,o;try{o=new URL(e,r.settingsObject.baseUrl),this.#s.origin=o.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=o.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=f.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=i(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{l(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(l(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),r=t===null?`failure`:s(t),i=r!==`failure`&&r.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new o({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=r(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await u(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){a.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let g={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(h,g),Object.defineProperties(h.prototype,g),Object.defineProperties(h.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d}),a.converters.EventSourceInitDict=a.dictionaryConverter([{key:`withCredentials`,converter:a.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:a.converters.any}]),t.exports={EventSource:h,defaultReconnectionTime:m}})),jn=P(((e,t)=>{let n=vt(),r=Xe(),i=St(),a=Ct(),o=wt(),s=Tt(),c=Et(),l=Ot(),u=I(),d=L(),{InvalidArgumentError:f}=u,p=Lt(),m=$e(),h=Ht(),g=Kt(),_=Ut(),v=Rt(),y=Dt(),{getGlobalDispatcher:b,setGlobalDispatcher:x}=qt(),S=Jt(),C=gt(),w=_t();Object.assign(r.prototype,p),t.exports.Dispatcher=r,t.exports.Client=n,t.exports.Pool=i,t.exports.BalancedPool=a,t.exports.Agent=o,t.exports.ProxyAgent=s,t.exports.EnvHttpProxyAgent=c,t.exports.RetryAgent=l,t.exports.RetryHandler=y,t.exports.DecoratorHandler=S,t.exports.RedirectHandler=C,t.exports.createRedirectInterceptor=w,t.exports.interceptors={redirect:Yt(),retry:Xt(),dump:Zt(),dns:Qt()},t.exports.buildConnector=m,t.exports.errors=u,t.exports.util={parseHeaders:d.parseHeaders,headerNameToString:d.headerNameToString};function T(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new f(`invalid url`);if(n!=null&&typeof n!=`object`)throw new f(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new f(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(d.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=d.parseURL(t);let{agent:i,dispatcher:a=b()}=n;if(i)throw new f(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}t.exports.setGlobalDispatcher=x,t.exports.getGlobalDispatcher=b;let E=rn().fetch;t.exports.fetch=async function(e,t=void 0){try{return await E(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},t.exports.Headers=$t().Headers,t.exports.Response=en().Response,t.exports.Request=nn().Request,t.exports.FormData=dt().FormData,t.exports.File=globalThis.File??F(`node:buffer`).File,t.exports.FileReader=ln().FileReader;let{setGlobalOrigin:D,getGlobalOrigin:O}=at();t.exports.setGlobalOrigin=D,t.exports.getGlobalOrigin=O;let{CacheStorage:k}=pn(),{kConstruct:A}=un();t.exports.caches=new k(A);let{deleteCookie:j,getCookies:M,getSetCookies:ee,setCookie:N}=_n();t.exports.deleteCookie=j,t.exports.getCookies=M,t.exports.getSetCookies=ee,t.exports.setCookie=N;let{parseMIMEType:te,serializeAMimeType:ne}=ot();t.exports.parseMIMEType=te,t.exports.serializeAMimeType=ne;let{CloseEvent:re,ErrorEvent:ie,MessageEvent:ae}=vn();t.exports.WebSocket=Dn().WebSocket,t.exports.CloseEvent=re,t.exports.ErrorEvent=ie,t.exports.MessageEvent=ae,t.exports.request=T(p.request),t.exports.stream=T(p.stream),t.exports.pipeline=T(p.pipeline),t.exports.connect=T(p.connect),t.exports.upgrade=T(p.upgrade),t.exports.MockClient=h,t.exports.MockPool=_,t.exports.MockAgent=g,t.exports.mockErrors=v;let{EventSource:oe}=An();t.exports.EventSource=oe})),Mn=ke(We(),1),Nn=jn(),Pn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Fn;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(Fn||={});var In;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(In||={});var Ln;(function(e){e.ApplicationJson=`application/json`})(Ln||={});const Rn=[Fn.MovedPermanently,Fn.ResourceMoved,Fn.SeeOther,Fn.TemporaryRedirect,Fn.PermanentRedirect],zn=[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout],Bn=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var Vn=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},Hn=class{constructor(e){this.message=e}readBody(){return Pn(this,void 0,void 0,function*(){return new Promise(e=>Pn(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return Pn(this,void 0,void 0,function*(){return new Promise(e=>Pn(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},Un=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return Pn(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return Pn(this,arguments,void 0,function*(e,t={}){t[In.Accept]=this._getExistingOrDefaultHeader(t,In.Accept,Ln.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return Pn(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&Bn.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===Fn.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&Rn.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!zn.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new Hn(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=ze(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?f:d;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Wn(this.requestOptions.headers),Wn(e||{})):Wn(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=Wn(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=Wn(this.requestOptions.headers)[In.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[In.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=ze(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||d.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?Mn.httpsOverHttps:Mn.httpsOverHttp:o?Mn.httpOverHttps:Mn.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new f.Agent(e):new d.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new Nn.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return Pn(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return Pn(this,void 0,void 0,function*(){return new Promise((n,r)=>Pn(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===Fn.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new Vn(e,i);t.result=a.result,r(t)}else n(a)}))})}};const Wn=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var Gn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Kn=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Gn(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},qn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:Jn,appendFile:Yn,writeFile:Xn}=c,Zn=`GITHUB_STEP_SUMMARY`;new class{constructor(){this._buffer=``}filePath(){return qn(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zn];if(!e)throw Error(`Unable to find environment variable for $${Zn}. Check if your runtime environment supports job summaries.`);try{yield Jn(e,o.R_OK|o.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return qn(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Xn:Yn)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return qn(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(r)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var Qn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:$n,copyFile:er,lstat:tr,mkdir:nr,open:rr,readdir:ir,rename:ar,rm:or,rmdir:sr,stat:cr,symlink:lr,unlink:ur}=a.promises,dr=process.platform===`win32`;a.constants.O_RDONLY;function fr(e){return Qn(this,void 0,void 0,function*(){try{yield cr(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function pr(e){if(e=hr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return dr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function mr(e,t){return Qn(this,void 0,void 0,function*(){let n;try{n=yield cr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(dr){let n=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(gr(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield cr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(dr){try{let t=u.dirname(e),n=u.basename(e).toUpperCase();for(let r of yield ir(t))if(n===r.toUpperCase()){e=u.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(gr(n))return e}}return``})}function hr(e){return e||=``,dr?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function gr(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var _r=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function vr(e){return _r(this,void 0,void 0,function*(){g(e,`a path argument must be provided`),yield nr(e,{recursive:!0})})}function yr(e,t){return _r(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield yr(e,!1);if(!t)throw Error(dr?`Unable to locate executable file: ${e}. 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.`:`Unable to locate executable file: ${e}. 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 t}let n=yield br(e);return n&&n.length>0?n[0]:``})}function br(e){return _r(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(dr&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(pr(e)){let n=yield mr(e,t);return n?[n]:[]}if(e.includes(u.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield mr(u.join(i,e),t);n&&r.push(n)}return r})}var xr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const Sr=process.platform===`win32`;var Cr=class extends p.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(Sr)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,n,r){try{let i=n+e.toString(),a=i.indexOf(t.EOL);for(;a>-1;)r(i.substring(0,a)),i=i.substring(a+t.EOL.length),a=i.indexOf(t.EOL);return i}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return Sr&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(Sr&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return xr(this,void 0,void 0,function*(){return!pr(this.toolPath)&&(this.toolPath.includes(`/`)||Sr&&this.toolPath.includes(`\\`))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield yr(this.toolPath,!0),new Promise((e,n)=>xr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+t.EOL);let i=new Tr(r,this.toolPath);if(i.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield fr(this.options.cwd)))return n(Error(`The cwd: ${this.options.cwd} does not exist!`));let a=this._getSpawnFileName(),o=D.spawn(a,this._getSpawnArgs(r),this._getSpawnOptions(this.options,a)),s=``;o.stdout&&o.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c=``;if(o.stderr&&o.stderr.on(`data`,e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on(`error`,e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),o.on(`exit`,e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),o.on(`close`,e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on(`done`,(t,r)=>{s.length>0&&this.emit(`stdline`,s),c.length>0&&this.emit(`errline`,c),o.removeAllListeners(),t?n(t):e(r)}),this.options.input){if(!o.stdin)throw Error(`child process missing stdin`);o.stdin.end(this.options.input)}}))})}};function wr(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var Tr=class e extends p.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=O(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},Er=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Dr(e,t,n){return Er(this,void 0,void 0,function*(){let r=wr(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new Cr(i,t,n).exec()})}function Or(e,t,n){return Er(this,void 0,void 0,function*(){let r=``,i=``,a=new E(`utf8`),o=new E(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield Dr(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}n.platform(),n.arch();var kr;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(kr||={});function Ar(e,t){let n=Ae(t);if(process.env[e]=n,process.env.GITHUB_ENV)return Le(`ENV`,Re(e,t));Me(`set-env`,{name:e},n)}function jr(e){Me(`add-mask`,{},e)}function Mr(e){process.env.GITHUB_PATH?Le(`PATH`,e):Me(`add-path`,{},e),process.env.PATH=`${e}${u.delimiter}${process.env.PATH}`}function Nr(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Pr(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=Nr(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Fr(e,n){if(process.env.GITHUB_OUTPUT)return Le(`OUTPUT`,Re(e,n));process.stdout.write(t.EOL),Me(`set-output`,{name:e},Ae(n))}function Ir(e){process.exitCode=kr.Failure,Rr(e)}function Lr(){return process.env.RUNNER_DEBUG===`1`}function R(e){Me(`debug`,{},e)}function Rr(e,t={}){Me(`error`,je(t),e instanceof Error?e.toString():e)}function zr(e,t={}){Me(`warning`,je(t),e instanceof Error?e.toString():e)}function Br(e){process.stdout.write(e+t.EOL)}function Vr(e){Ne(`group`,e)}function Hr(){Ne(`endgroup`)}function Ur(e,t){if(process.env.GITHUB_STATE)return Le(`STATE`,Re(e,t));Me(`save-state`,{name:e},Ae(t))}function Wr(e){return process.env[`STATE_${e}`]||``}var Gr=P((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),Kr=P((e=>{var t=Gr();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e{var t=Gr(),n=Kr();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(` +`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),Jr=P((e=>{var t=Gr(),n=Kr();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),Yr=P((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n{var t=Gr();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),Zr=P((e=>{var t=Yr(),n=Gr(),r=Xr();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),Qr=P((e=>{var t=Jr(),n=Kr(),r=Gr(),i=Zr(),a=Xr(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),$r=P((e=>{var t=Gr(),n=Zr(),r=Xr();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),ei=P((e=>{var t=Qr(),n=Gr(),r=$r();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),ti=P((e=>{var t=ei(),n=Gr(),r=Zr();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),ni=P((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(` `)?n(r,t):r.includes(` `)?` -`+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),ti=P((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;ss-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===` +`+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),ri=P((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;ss-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===` `)a===t&&(v=i(e,v,r.length)),m=v+r.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==` `&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==` `&&t!==` `&&(h=v)}if(v>=m)if(h)f.push(h),m=h+d,h=void 0;else if(a===n){for(;g===` `||g===` `;)g=o,o=e[v+=1],_=!0;let t=v>b+1?v-2:y-1;if(p[t])return e;f.push(t),p[t]=!0,m=t+d,h=void 0}else _=!0}g=o}if(_&&u&&u(),f.length===0)return e;l&&l();let x=e.slice(0,f[0]);for(let t=0;t{var t=Zr(),n=ti();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t{var t=$r(),n=ri();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function o(e,t){let a=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return a;let{implicitKey:o}=t,s=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?` `:``),l=``,u=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(l+=a.slice(u,e)+`\\ `,e+=1,u=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{l+=a.slice(u,e);let t=a.substr(e+2,4);switch(t){case`0000`:l+=`\\0`;break;case`0007`:l+=`\\a`;break;case`000b`:l+=`\\v`;break;case`001b`:l+=`\\e`;break;case`0085`:l+=`\\N`;break;case`00a0`:l+=`\\_`;break;case`2028`:l+=`\\L`;break;case`2029`:l+=`\\P`;break;default:t.substr(0,2)===`00`?l+=`\\x`+t.substr(2):l+=a.substr(e,6)}e+=5,u=e+1}break;case`n`:if(o||a[e+2]===`"`||a.length{i=!0});let c=n.foldFlowLines(`${T}${e}${b}`,g,n.FOLD_BLOCK,a);if(!i)return`>${E}\n${g}${c}`}return s=s.replace(/\n+/g,`$&${g}`),`|${E}\n${g}${T}${s}${b}`}function d(e,a,o,s){let{type:l,value:d}=e,{actualString:f,implicitKey:p,indent:m,indentStep:h,inFlow:g}=a;if(p&&d.includes(` `)||g&&/[[\]{},]/.test(d))return c(d,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return p||g||!d.includes(` `)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(` -`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),ri=P((e=>{var t=Kr(),n=Ur(),r=ei(),i=ni();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),ii=P((e=>{var t=Ur(),n=Zr(),r=ri(),i=ei();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?` +`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),ai=P((e=>{var t=Jr(),n=Gr(),r=ni(),i=ii();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),oi=P((e=>{var t=Gr(),n=$r(),r=ai(),i=ni();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?` `:``,S){let e=p(S);E+=`\n${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===` `&&C&&(E=` `):E+=`\n${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(` `),n=t!==-1,r=o.inFlow??a.flow??a.items.length===0;if(n||!r){let r=!1;if(n&&(e===`&`||e===`!`)){let n=T.indexOf(` `);e===`&`&&n!==-1&&n{var t=F(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),oi=P((e=>{var t=Ur(),n=Zr();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),si=P((e=>{var t=ai(),n=oi(),r=ri(),i=Ur(),a=Jr();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),ci=P((e=>{var t=Qr(),n=ii(),r=si(),i=Ur();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),li=P((e=>{var t=Ur(),n=ri(),r=ei();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;eu=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e{var t=F(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),ci=P((e=>{var t=Gr(),n=$r();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),li=P((e=>{var t=si(),n=ci(),r=ai(),i=Gr(),a=Xr();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),ui=P((e=>{var t=ei(),n=oi(),r=li(),i=Gr();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),di=P((e=>{var t=Gr(),n=ai(),r=ni();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;eu=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;el=null);p||=h.length>m||u.includes(` `),a0&&(p||=h.reduce((e,t)=>e+t.length+2,2)+(u.length+2)>i.options.lineWidth),p&&(u+=`,`)),l&&(u+=r.lineComment(u,o,d(l))),h.push(u),m=h.length}let{start:g,end:_}=a;if(h.length===0)return g+_;if(!p){let e=h.reduce((e,t)=>e+t.length+2,2);p=i.options.lineWidth>0&&e>i.options.lineWidth}if(p){let e=g;for(let t of h)e+=t?`\n${l}${c}${t}`:` -`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),ui=P((e=>{var t=li(),n=si(),r=$r(),i=Ur(),a=ci(),o=Zr();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),di=P((e=>{var t=Ur(),n=ui();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),fi=P((e=>{var t=Qr(),n=li(),r=$r(),i=Ur(),a=Zr(),o=Jr(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t=0?t:null}e.YAMLSeq=s})),pi=P((e=>{var t=Ur(),n=fi();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),mi=P((e=>{var t=ni();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),hi=P((e=>{var t=Zr();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),gi=P((e=>{var t=Zr();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),_i=P((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}e.stringifyNumber=t})),vi=P((e=>{var t=Zr(),n=_i();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),yi=P((e=>{var t=_i();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),bi=P((e=>{var t=di(),n=hi(),r=pi(),i=mi(),a=gi(),o=vi(),s=yi();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),xi=P((e=>{var t=Zr(),n=di(),r=pi();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),Si=P((e=>{var t=F(`buffer`),n=Zr(),r=ni();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e{var t=Ur(),n=ci(),r=Zr(),i=fi();function a(e,i){if(t.isSeq(e))for(let a=0;a1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),wi=P((e=>{var t=Ur(),n=Jr(),r=ui(),i=fi(),a=Ci(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Ti=P((e=>{var t=Zr();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Ei=P((e=>{var t=Zr(),n=_i();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),Di=P((e=>{var t=_i();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),Oi=P((e=>{var t=Ur(),n=ci(),r=ui(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),ki=P((e=>{var t=_i();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),Ai=P((e=>{var t=di(),n=hi(),r=pi(),i=mi(),a=Si(),o=Ti(),s=Ei(),c=Di(),l=oi(),u=wi(),d=Ci(),f=Oi(),p=ki();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),ji=P((e=>{var t=di(),n=hi(),r=pi(),i=mi(),a=gi(),o=vi(),s=yi(),c=bi(),l=xi(),u=Si(),d=oi(),f=wi(),p=Ci(),m=Ai(),h=Oi(),g=ki();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Mi=P((e=>{var t=Ur(),n=di(),r=pi(),i=mi(),a=ji();let o=(e,t)=>e.keyt.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Ni=P((e=>{var t=Ur(),n=ri(),r=ei();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(` +`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),fi=P((e=>{var t=di(),n=li(),r=ti(),i=Gr(),a=ui(),o=$r();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),pi=P((e=>{var t=Gr(),n=fi();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),mi=P((e=>{var t=ei(),n=di(),r=ti(),i=Gr(),a=$r(),o=Xr(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t=0?t:null}e.YAMLSeq=s})),hi=P((e=>{var t=Gr(),n=mi();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),gi=P((e=>{var t=ii();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),_i=P((e=>{var t=$r();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),vi=P((e=>{var t=$r();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),yi=P((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}e.stringifyNumber=t})),bi=P((e=>{var t=$r(),n=yi();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),xi=P((e=>{var t=yi();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),Si=P((e=>{var t=pi(),n=_i(),r=hi(),i=gi(),a=vi(),o=bi(),s=xi();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),Ci=P((e=>{var t=$r(),n=pi(),r=hi();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),wi=P((e=>{var t=F(`buffer`),n=$r(),r=ii();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e{var t=Gr(),n=ui(),r=$r(),i=mi();function a(e,i){if(t.isSeq(e))for(let a=0;a1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),Ei=P((e=>{var t=Gr(),n=Xr(),r=fi(),i=mi(),a=Ti(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Di=P((e=>{var t=$r();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Oi=P((e=>{var t=$r(),n=yi();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),ki=P((e=>{var t=yi();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),Ai=P((e=>{var t=Gr(),n=ui(),r=fi(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),ji=P((e=>{var t=yi();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),Mi=P((e=>{var t=pi(),n=_i(),r=hi(),i=gi(),a=wi(),o=Di(),s=Oi(),c=ki(),l=ci(),u=Ei(),d=Ti(),f=Ai(),p=ji();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),Ni=P((e=>{var t=pi(),n=_i(),r=hi(),i=gi(),a=vi(),o=bi(),s=xi(),c=Si(),l=Ci(),u=wi(),d=ci(),f=Ei(),p=Ti(),m=Mi(),h=Ai(),g=ji();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Pi=P((e=>{var t=Gr(),n=pi(),r=hi(),i=gi(),a=Ni();let o=(e,t)=>e.keyt.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Fi=P((e=>{var t=Gr(),n=ai(),r=ni();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(` `)?(a.push(`...`),a.push(r.indentComment(t,``))):a.push(`... ${t}`)}else a.push(`...`);else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,``)),t&&((!l||u)&&a[a.length-1]!==``&&a.push(``),a.push(r.indentComment(c(t),``)))}return a.join(` `)+` -`}e.stringifyDocument=i})),Pi=P((e=>{var t=Xr(),n=$r(),r=Ur(),i=ci(),a=Jr(),o=Mi(),s=Ni(),c=Kr(),l=qr(),u=Qr(),d=Gr(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Fi=P((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… -`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Ii=P((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),Li=P((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` -`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),Ri=P((e=>{var t=Li();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),zi=P((e=>{var t=Ur();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),Bi=P((e=>{var t=ci(),n=ui(),r=Ii(),i=Li(),a=Ri(),o=zi();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=` +`}e.stringifyDocument=i})),Ii=P((e=>{var t=Qr(),n=ti(),r=Gr(),i=ui(),a=Xr(),o=Pi(),s=Fi(),c=Jr(),l=Yr(),u=ei(),d=qr(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Li=P((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… +`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Ri=P((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),zi=P((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` +`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),Bi=P((e=>{var t=zi();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),Vi=P((e=>{var t=Gr();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),Hi=P((e=>{var t=ui(),n=fi(),r=Ri(),i=zi(),a=Bi(),o=Vi();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=` `+y.comment:p.comment=y.comment);continue}(y.newlineAfterProp||i.containsNewline(g))&&d(g??f[f.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else y.found?.indent!==u.indent&&d(m,`BAD_INDENT`,s);l.atKey=!0;let x=y.end,S=g?e(l,g,y,d):c(l,x,f,null,y,d);l.schema.compat&&a.flowIndentCheck(u.indent,g,d),l.atKey=!1,o.mapIncludes(l,p.items,S)&&d(x,`DUPLICATE_KEY`,`Map keys must be unique`);let C=r.resolveProps(_??[],{indicator:`map-value-ind`,next:v,offset:S.range[2],onError:d,parentIndent:u.indent,startOnNewline:!g||g.type===`block-scalar`});if(m=C.end,C.found){b&&(v?.type===`block-map`&&!C.hasNewline&&d(m,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),l.options.strict&&y.start{var t=fi(),n=Ii(),r=Ri();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),Hi=P((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),Ui=P((e=>{var t=Ur(),n=ci(),r=ui(),i=fi(),a=Hi(),o=Ii(),s=Li(),c=zi();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i{var t=mi(),n=Ri(),r=Bi();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),Wi=P((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),Gi=P((e=>{var t=Gr(),n=ui(),r=fi(),i=mi(),a=Wi(),o=Ri(),s=zi(),c=Vi();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i0){let e=a.resolveEnd(C,w,f.options.strict,m);e.comment&&(v.comment?v.comment+=` -`+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),Wi=P((e=>{var t=Ur(),n=Zr(),r=ui(),i=fi(),a=Bi(),o=Vi(),s=Ui();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offsete.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),Gi=P((e=>{var t=Zr();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?` +`+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),Ki=P((e=>{var t=Gr(),n=$r(),r=fi(),i=mi(),a=Hi(),o=Ui(),s=Gi();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offsete.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),qi=P((e=>{var t=$r();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?` `.repeat(Math.max(1,l.length-1)):``,t=o+s.length;return n.source&&(t+=n.source.length),{value:e,type:c,comment:s.comment,range:[o,t,t]}}let d=n.indent+s.indent,f=n.offset+s.length,p=0;for(let t=0;td&&(d=n.length);else{n.length=u;--e)l[e][0].length>d&&(u=e+1);let m=``,h=``,g=!1;for(let e=0;ed||r[0]===` `?(h===` `?h=` @@ -76,7 +76,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `+l[e][0].slice(d);m[m.length-1]!==` `&&(m+=` `);break;default:m+=` -`}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t{var t=Zr(),n=Hi();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?{var t=$r(),n=Wi();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?{var t=Ur(),n=Zr(),r=Gi(),i=Ki();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),Ji=P((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),Yi=P((e=>{var t=Xr(),n=Ur(),r=Wi(),i=qi(),a=Hi(),o=Ji();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),Xi=P((e=>{var t=Pi(),n=Yi(),r=Hi(),i=Ii();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),Zi=P((e=>{var t=F(`process`),n=Gr(),r=Pi(),i=Fi(),a=Ur(),o=Xi(),s=Hi();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i{var t=Gr(),n=$r(),r=qi(),i=Ji();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),Xi=P((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),Zi=P((e=>{var t=Qr(),n=Gr(),r=Ki(),i=Yi(),a=Wi(),o=Xi();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),Qi=P((e=>{var t=Ii(),n=Zi(),r=Wi(),i=Ri();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),$i=P((e=>{var t=F(`process`),n=qr(),r=Ii(),i=Li(),a=Gr(),o=Qi(),s=Wi();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),Qi=P((e=>{var t=Gi(),n=Ki(),r=Fi(),i=ni();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:` +`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}e.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),ea=P((e=>{var t=qi(),n=Ji(),r=Li(),i=ii();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:` `}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(` `),t=c.substring(0,e),n=c.substring(e+1)+` `,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:` @@ -102,9 +102,9 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `),r=t.substring(0,n),i=t.substring(n+1)+` `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];l(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:` `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function l(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function u(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),$i=P((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),ea=P((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n{var t=Qi(),n=$i(),r=ea();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return``;case``:return``;case``:return``;case``:return``;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` +`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),ta=P((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),na=P((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n{var t=ea(),n=ta(),r=na();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return``;case``:return``;case``:return``;case``:return``;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` `:case`\r -`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),na=P((e=>{var t=ta();function n(e){switch(e){case void 0:case` `:case` +`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),ia=P((e=>{var t=ra();function n(e){switch(e){case void 0:case` `:case` `:case`\r`:case` `:return!0;default:return!1}}let r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{} \r `),s=e=>!e||o.has(e);e.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===` `?!0:t===`\r`?this.buffer[e+1]===` @@ -123,13 +123,13 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===` `){let e=this.continueScalar(i+1);if(e===-1)break;i=Math.max(i,e-2)}}else{if(e&&a.has(o))break;r=i}return!o&&!this.atEnd?this.setNext(`plain-scalar`):(yield t.SCALAR,yield*this.pushToIndex(r+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(s),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,r=this.charAt(1);if(n(r)||t&&a.has(r)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else if(t===`%`&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),ra=P((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{var t=F(`process`),n=ta(),r=na();function i(e,t){for(let n=0;n=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),aa=P((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{var t=F(`process`),n=ra(),r=ia();function i(e,t){for(let n=0;n=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=c(s(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` -`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),aa=P((e=>{var t=Zi(),n=Pi(),r=Fi(),i=ai(),a=Ur(),o=ra(),s=ia();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),oa=P((e=>{var t=Zi(),n=Pi(),r=Mi(),i=Fi(),a=Xr(),o=Ur(),s=ci(),c=Zr(),l=ui(),u=fi();ta();var d=na(),f=ra(),p=ia(),m=aa(),h=Wr();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),sa;function z(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var ca=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},la=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(sa=globalThis).__zod_globalConfig??(sa.__zod_globalConfig={});const ua=globalThis.__zod_globalConfig;function da(e){return e&&Object.assign(ua,e),ua}function fa(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function pa(e,t){return typeof t==`bigint`?t.toString():t}function ma(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ha(e){return e==null}function ga(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const _a=Symbol(`evaluating`);function va(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==_a)return r===void 0&&(r=_a,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ya(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ba(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function xa(e){return JSON.stringify(e)}function Sa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Ca=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function wa(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Ta=ma(()=>{if(ua.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ea(e){if(wa(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(wa(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Da(e){return Ea(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Oa=new Set([`string`,`number`,`symbol`]);function ka(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Aa(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function B(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ja(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Ma(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Aa(e,ba(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ya(this,`shape`,e),e},checks:[]}))}function Na(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Aa(e,ba(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ya(this,`shape`,r),r},checks:[]}))}function Pa(e,t){if(!Ea(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Aa(e,ba(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ya(this,`shape`,n),n}}))}function Fa(e,t){if(!Ea(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Aa(e,ba(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ya(this,`shape`,n),n}}))}function Ia(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Aa(e,ba(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ya(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function La(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Aa(t,ba(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ya(this,`shape`,i),i},checks:[]}))}function Ra(e,t,n){return Aa(t,ba(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ya(this,`shape`,i),i}}))}function za(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ha(e){return typeof e==`string`?e:e?.message}function Ua(e,t,n){let r=e.message?e.message:Ha(e.inst?._zod.def?.error?.(e))??Ha(t?.error?.(e))??Ha(n.customError?.(e))??Ha(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Wa(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ga(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Ka=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,pa,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},qa=z(`$ZodError`,Ka),Ja=z(`$ZodError`,Ka,{Parent:Error});function Ya(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Xa(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ca;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ua(e,a,da())));throw Ca(t,i?.callee),t}return o.value},Qa=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ua(e,a,da())));throw Ca(t,i?.callee),t}return o.value},$a=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ca;return a.issues.length?{success:!1,error:new(e??qa)(a.issues.map(e=>Ua(e,i,da())))}:{success:!0,data:a.value}},eo=$a(Ja),to=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ua(e,i,da())))}:{success:!0,data:a.value}},no=to(Ja),ro=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Za(e)(t,n,i)},io=e=>(t,n,r)=>Za(e)(t,n,r),ao=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Qa(e)(t,n,i)},oo=e=>async(t,n,r)=>Qa(e)(t,n,r),so=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $a(e)(t,n,i)},co=e=>(t,n,r)=>$a(e)(t,n,r),lo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return to(e)(t,n,i)},uo=e=>async(t,n,r)=>to(e)(t,n,r),fo=/^[cC][0-9a-z]{6,}$/,po=/^[0-9a-z]+$/,mo=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ho=/^[0-9a-vA-V]{20}$/,go=/^[A-Za-z0-9]{27}$/,_o=/^[a-zA-Z0-9_-]{21}$/,vo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,bo=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function So(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Co=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,To=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Eo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Do=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Oo=/^[A-Za-z0-9_-]*$/,ko=/^https?$/,Ao=/^\+[1-9]\d{6,14}$/,jo=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Mo=RegExp(`^${jo}$`);function No(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Po(e){return RegExp(`^${No(e)}$`)}function Fo(e){let t=No({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${jo}T(?:${r})$`)}const Io=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Lo=/^(?:true|false)$/i,Ro=/^null$/i,zo=/^[^A-Z]*$/,Bo=/^[^a-z]*$/,Vo=z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ho=z(`$ZodCheckMaxLength`,(e,t)=>{var n;Vo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ha(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Wa(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Uo=z(`$ZodCheckMinLength`,(e,t)=>{var n;Vo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ha(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Wa(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wo=z(`$ZodCheckLengthEquals`,(e,t)=>{var n;Vo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ha(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Wa(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Go=z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Vo.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ko=z(`$ZodCheckRegex`,(e,t)=>{Go.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qo=z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=zo,Go.init(e,t)}),Jo=z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Bo,Go.init(e,t)}),Yo=z(`$ZodCheckIncludes`,(e,t)=>{Vo.init(e,t);let n=ka(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Xo=z(`$ZodCheckStartsWith`,(e,t)=>{Vo.init(e,t);let n=RegExp(`^${ka(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Zo=z(`$ZodCheckEndsWith`,(e,t)=>{Vo.init(e,t);let n=RegExp(`.*${ka(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Qo=z(`$ZodCheckOverwrite`,(e,t)=>{Vo.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var $o=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),sa=P((e=>{var t=$i(),n=Ii(),r=Li(),i=si(),a=Gr(),o=aa(),s=oa();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),ca=P((e=>{var t=$i(),n=Ii(),r=Pi(),i=Li(),a=Qr(),o=Gr(),s=ui(),c=$r(),l=fi(),u=mi();ra();var d=ia(),f=aa(),p=oa(),m=sa(),h=Kr();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),la;function z(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var ua=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},da=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(la=globalThis).__zod_globalConfig??(la.__zod_globalConfig={});const fa=globalThis.__zod_globalConfig;function pa(e){return e&&Object.assign(fa,e),fa}function ma(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function ha(e,t){return typeof t==`bigint`?t.toString():t}function ga(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function _a(e){return e==null}function va(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const ya=Symbol(`evaluating`);function ba(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ya)return r===void 0&&(r=ya,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function xa(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Sa(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Ca(e){return JSON.stringify(e)}function wa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Ta=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ea(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Da=ga(()=>{if(fa.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Oa(e){if(Ea(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ea(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ka(e){return Oa(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Aa=new Set([`string`,`number`,`symbol`]);function ja(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ma(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function B(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Na(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Pa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ma(e,Sa(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return xa(this,`shape`,e),e},checks:[]}))}function Fa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ma(e,Sa(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return xa(this,`shape`,r),r},checks:[]}))}function Ia(e,t){if(!Oa(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ma(e,Sa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return xa(this,`shape`,n),n}}))}function La(e,t){if(!Oa(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ma(e,Sa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return xa(this,`shape`,n),n}}))}function Ra(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ma(e,Sa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return xa(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function za(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ma(t,Sa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return xa(this,`shape`,i),i},checks:[]}))}function Ba(e,t,n){return Ma(t,Sa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return xa(this,`shape`,i),i}}))}function Va(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Wa(e){return typeof e==`string`?e:e?.message}function Ga(e,t,n){let r=e.message?e.message:Wa(e.inst?._zod.def?.error?.(e))??Wa(t?.error?.(e))??Wa(n.customError?.(e))??Wa(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Ka(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function qa(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Ja=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,ha,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Ya=z(`$ZodError`,Ja),Xa=z(`$ZodError`,Ja,{Parent:Error});function Za(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Qa(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ua;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ga(e,a,pa())));throw Ta(t,i?.callee),t}return o.value},eo=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ga(e,a,pa())));throw Ta(t,i?.callee),t}return o.value},to=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ua;return a.issues.length?{success:!1,error:new(e??Ya)(a.issues.map(e=>Ga(e,i,pa())))}:{success:!0,data:a.value}},no=to(Xa),ro=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ga(e,i,pa())))}:{success:!0,data:a.value}},io=ro(Xa),ao=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $a(e)(t,n,i)},oo=e=>(t,n,r)=>$a(e)(t,n,r),so=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return eo(e)(t,n,i)},co=e=>async(t,n,r)=>eo(e)(t,n,r),lo=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return to(e)(t,n,i)},uo=e=>(t,n,r)=>to(e)(t,n,r),fo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ro(e)(t,n,i)},po=e=>async(t,n,r)=>ro(e)(t,n,r),mo=/^[cC][0-9a-z]{6,}$/,ho=/^[0-9a-z]+$/,go=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_o=/^[0-9a-vA-V]{20}$/,vo=/^[A-Za-z0-9]{27}$/,yo=/^[a-zA-Z0-9_-]{21}$/,bo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,So=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Co=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function wo(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const To=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Eo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Do=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Oo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ko=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ao=/^[A-Za-z0-9_-]*$/,jo=/^https?$/,Mo=/^\+[1-9]\d{6,14}$/,No=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Po=RegExp(`^${No}$`);function Fo(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Io(e){return RegExp(`^${Fo(e)}$`)}function Lo(e){let t=Fo({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${No}T(?:${r})$`)}const Ro=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},zo=/^(?:true|false)$/i,Bo=/^null$/i,Vo=/^[^A-Z]*$/,Ho=/^[^a-z]*$/,Uo=z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Wo=z(`$ZodCheckMaxLength`,(e,t)=>{var n;Uo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_a(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Ka(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Go=z(`$ZodCheckMinLength`,(e,t)=>{var n;Uo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_a(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ka(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ko=z(`$ZodCheckLengthEquals`,(e,t)=>{var n;Uo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_a(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ka(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),qo=z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Uo.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Jo=z(`$ZodCheckRegex`,(e,t)=>{qo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Yo=z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Vo,qo.init(e,t)}),Xo=z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ho,qo.init(e,t)}),Zo=z(`$ZodCheckIncludes`,(e,t)=>{Uo.init(e,t);let n=ja(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Qo=z(`$ZodCheckStartsWith`,(e,t)=>{Uo.init(e,t);let n=RegExp(`^${ja(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),$o=z(`$ZodCheckEndsWith`,(e,t)=>{Uo.init(e,t);let n=RegExp(`.*${ja(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),es=z(`$ZodCheckOverwrite`,(e,t)=>{Uo.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var ts=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}};const es={major:4,minor:4,patch:3},ts=z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=es;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=za(e),i;for(let a of t){if(a._zod.def.when){if(Ba(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ca;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=za(e,t))});else{if(e.issues.length===t)continue;r||=za(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(za(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ca;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ca;return o.then(e=>t(e,r,a))}return t(o,r,a)}}va(e,`~standard`,()=>({validate:t=>{try{let n=eo(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return no(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),ns=z(`$ZodString`,(e,t)=>{ts.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Io(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),rs=z(`$ZodStringFormat`,(e,t)=>{Go.init(e,t),ns.init(e,t)}),is=z(`$ZodGUID`,(e,t)=>{t.pattern??=yo,rs.init(e,t)}),as=z(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=bo(e)}else t.pattern??=bo();rs.init(e,t)}),os=z(`$ZodEmail`,(e,t)=>{t.pattern??=xo,rs.init(e,t)}),ss=z(`$ZodURL`,(e,t)=>{rs.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===ko.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),cs=z(`$ZodEmoji`,(e,t)=>{t.pattern??=So(),rs.init(e,t)}),ls=z(`$ZodNanoID`,(e,t)=>{t.pattern??=_o,rs.init(e,t)}),us=z(`$ZodCUID`,(e,t)=>{t.pattern??=fo,rs.init(e,t)}),ds=z(`$ZodCUID2`,(e,t)=>{t.pattern??=po,rs.init(e,t)}),fs=z(`$ZodULID`,(e,t)=>{t.pattern??=mo,rs.init(e,t)}),ps=z(`$ZodXID`,(e,t)=>{t.pattern??=ho,rs.init(e,t)}),ms=z(`$ZodKSUID`,(e,t)=>{t.pattern??=go,rs.init(e,t)}),hs=z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Fo(t),rs.init(e,t)}),gs=z(`$ZodISODate`,(e,t)=>{t.pattern??=Mo,rs.init(e,t)}),_s=z(`$ZodISOTime`,(e,t)=>{t.pattern??=Po(t),rs.init(e,t)}),vs=z(`$ZodISODuration`,(e,t)=>{t.pattern??=vo,rs.init(e,t)}),ys=z(`$ZodIPv4`,(e,t)=>{t.pattern??=Co,rs.init(e,t),e._zod.bag.format=`ipv4`}),bs=z(`$ZodIPv6`,(e,t)=>{t.pattern??=wo,rs.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),xs=z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=To,rs.init(e,t)}),Ss=z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Eo,rs.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Cs(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const ws=z(`$ZodBase64`,(e,t)=>{t.pattern??=Do,rs.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Cs(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Ts(e){if(!Oo.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Cs(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Es=z(`$ZodBase64URL`,(e,t)=>{t.pattern??=Oo,rs.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Ts(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ds=z(`$ZodE164`,(e,t)=>{t.pattern??=Ao,rs.init(e,t)});function Os(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const ks=z(`$ZodJWT`,(e,t)=>{rs.init(e,t),e._zod.check=n=>{Os(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),As=z(`$ZodBoolean`,(e,t)=>{ts.init(e,t),e._zod.pattern=Lo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),js=z(`$ZodNull`,(e,t)=>{ts.init(e,t),e._zod.pattern=Ro,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ms=z(`$ZodUnknown`,(e,t)=>{ts.init(e,t),e._zod.parse=e=>e}),Ns=z(`$ZodNever`,(e,t)=>{ts.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Ps(e,t,n){e.issues.length&&t.issues.push(...Va(n,e.issues)),t.value[n]=e.value}const Fs=z(`$ZodArray`,(e,t)=>{ts.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ePs(t,n,e))):Ps(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Is(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Va(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Ls(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=ja(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Rs(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Is(e,n,i,t,u,d))):Is(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const zs=z(`$ZodObject`,(e,t)=>{if(ts.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ma(()=>Ls(t));va(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=wa,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Is(n,t,e,s,r,i))):Is(a,t,e,s,r,i)}return i?Rs(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Bs=z(`$ZodObjectJIT`,(e,t)=>{zs.init(e,t);let n=e._zod.parse,r=ma(()=>Ls(t)),i=e=>{let t=new $o([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=xa(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=xa(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}};const ns={major:4,minor:4,patch:3},rs=z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ns;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Va(e),i;for(let a of t){if(a._zod.def.when){if(Ha(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ua;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Va(e,t))});else{if(e.issues.length===t)continue;r||=Va(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Va(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ua;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ua;return o.then(e=>t(e,r,a))}return t(o,r,a)}}ba(e,`~standard`,()=>({validate:t=>{try{let n=no(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return io(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),is=z(`$ZodString`,(e,t)=>{rs.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ro(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),as=z(`$ZodStringFormat`,(e,t)=>{qo.init(e,t),is.init(e,t)}),os=z(`$ZodGUID`,(e,t)=>{t.pattern??=xo,as.init(e,t)}),ss=z(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=So(e)}else t.pattern??=So();as.init(e,t)}),cs=z(`$ZodEmail`,(e,t)=>{t.pattern??=Co,as.init(e,t)}),ls=z(`$ZodURL`,(e,t)=>{as.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===jo.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),us=z(`$ZodEmoji`,(e,t)=>{t.pattern??=wo(),as.init(e,t)}),ds=z(`$ZodNanoID`,(e,t)=>{t.pattern??=yo,as.init(e,t)}),fs=z(`$ZodCUID`,(e,t)=>{t.pattern??=mo,as.init(e,t)}),ps=z(`$ZodCUID2`,(e,t)=>{t.pattern??=ho,as.init(e,t)}),ms=z(`$ZodULID`,(e,t)=>{t.pattern??=go,as.init(e,t)}),hs=z(`$ZodXID`,(e,t)=>{t.pattern??=_o,as.init(e,t)}),gs=z(`$ZodKSUID`,(e,t)=>{t.pattern??=vo,as.init(e,t)}),_s=z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Lo(t),as.init(e,t)}),vs=z(`$ZodISODate`,(e,t)=>{t.pattern??=Po,as.init(e,t)}),ys=z(`$ZodISOTime`,(e,t)=>{t.pattern??=Io(t),as.init(e,t)}),bs=z(`$ZodISODuration`,(e,t)=>{t.pattern??=bo,as.init(e,t)}),xs=z(`$ZodIPv4`,(e,t)=>{t.pattern??=To,as.init(e,t),e._zod.bag.format=`ipv4`}),Ss=z(`$ZodIPv6`,(e,t)=>{t.pattern??=Eo,as.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Cs=z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Do,as.init(e,t)}),ws=z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Oo,as.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Ts(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Es=z(`$ZodBase64`,(e,t)=>{t.pattern??=ko,as.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Ts(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Ds(e){if(!Ao.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Ts(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Os=z(`$ZodBase64URL`,(e,t)=>{t.pattern??=Ao,as.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Ds(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),ks=z(`$ZodE164`,(e,t)=>{t.pattern??=Mo,as.init(e,t)});function As(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const js=z(`$ZodJWT`,(e,t)=>{as.init(e,t),e._zod.check=n=>{As(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Ms=z(`$ZodBoolean`,(e,t)=>{rs.init(e,t),e._zod.pattern=zo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ns=z(`$ZodNull`,(e,t)=>{rs.init(e,t),e._zod.pattern=Bo,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ps=z(`$ZodUnknown`,(e,t)=>{rs.init(e,t),e._zod.parse=e=>e}),Fs=z(`$ZodNever`,(e,t)=>{rs.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Is(e,t,n){e.issues.length&&t.issues.push(...Ua(n,e.issues)),t.value[n]=e.value}const Ls=z(`$ZodArray`,(e,t)=>{rs.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eIs(t,n,e))):Is(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Rs(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ua(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function zs(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Na(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Bs(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Rs(e,n,i,t,u,d))):Rs(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Vs=z(`$ZodObject`,(e,t)=>{if(rs.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ga(()=>zs(t));ba(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ea,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Rs(n,t,e,s,r,i))):Rs(a,t,e,s,r,i)}return i?Bs(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Hs=z(`$ZodObjectJIT`,(e,t)=>{Vs.init(e,t);let n=e._zod.parse,r=ga(()=>zs(t)),i=e=>{let t=new ts([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Ca(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Ca(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -188,52 +188,52 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=wa,s=!ua.jitless,c=s&&Ta.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Rs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Vs(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!za(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ua(e,r,da())))}),t)}const Hs=z(`$ZodUnion`,(e,t)=>{ts.init(e,t),va(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),va(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),va(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),va(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ga(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Vs(t,r,e,i)):Vs(o,r,e,i)}}),Us=z(`$ZodIntersection`,(e,t)=>{ts.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Gs(e,t,n)):Gs(e,i,a)}});function Ws(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ea(e)&&Ea(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ws(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),za(e))return e;let o=Ws(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Ks=z(`$ZodEnum`,(e,t)=>{ts.init(e,t);let n=fa(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Oa.has(typeof e)).map(e=>typeof e==`string`?ka(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),qs=z(`$ZodTransform`,(e,t)=>{ts.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new la(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ca;return n.value=i,n.fallback=!0,n}});function Js(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Ys=z(`$ZodOptional`,(e,t)=>{ts.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,va(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),va(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ga(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Js(e,r)):Js(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Xs=z(`$ZodExactOptional`,(e,t)=>{Ys.init(e,t),va(e._zod,`values`,()=>t.innerType._zod.values),va(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Zs=z(`$ZodNullable`,(e,t)=>{ts.init(e,t),va(e._zod,`optin`,()=>t.innerType._zod.optin),va(e._zod,`optout`,()=>t.innerType._zod.optout),va(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ga(e.source)}|null)$`):void 0}),va(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Qs=z(`$ZodDefault`,(e,t)=>{ts.init(e,t),e._zod.optin=`optional`,va(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>$s(e,t)):$s(r,t)}});function $s(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const ec=z(`$ZodPrefault`,(e,t)=>{ts.init(e,t),e._zod.optin=`optional`,va(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),tc=z(`$ZodNonOptional`,(e,t)=>{ts.init(e,t),va(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>nc(t,e)):nc(i,e)}});function nc(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const rc=z(`$ZodCatch`,(e,t)=>{ts.init(e,t),e._zod.optin=`optional`,va(e._zod,`optout`,()=>t.innerType._zod.optout),va(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ua(e,n,da()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ua(e,n,da()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ic=z(`$ZodPipe`,(e,t)=>{ts.init(e,t),va(e._zod,`values`,()=>t.in._zod.values),va(e._zod,`optin`,()=>t.in._zod.optin),va(e._zod,`optout`,()=>t.out._zod.optout),va(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ac(e,t.in,n)):ac(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ac(e,t.out,n)):ac(r,t.out,n)}});function ac(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const oc=z(`$ZodReadonly`,(e,t)=>{ts.init(e,t),va(e._zod,`propValues`,()=>t.innerType._zod.propValues),va(e._zod,`values`,()=>t.innerType._zod.values),va(e._zod,`optin`,()=>t.innerType?._zod?.optin),va(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(sc):sc(r)}});function sc(e){return e.value=Object.freeze(e.value),e}const cc=z(`$ZodCustom`,(e,t)=>{Vo.init(e,t),ts.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>lc(t,n,r,e));lc(i,n,r,e)}});function lc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ga(e))}}var uc,dc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function fc(){return new dc}(uc=globalThis).__zod_globalRegistry??(uc.__zod_globalRegistry=fc());const pc=globalThis.__zod_globalRegistry;function mc(e,t){return new e({type:`string`,...B(t)})}function hc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...B(t)})}function gc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...B(t)})}function _c(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...B(t)})}function vc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...B(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...B(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...B(t)})}function xc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...B(t)})}function Sc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...B(t)})}function Cc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...B(t)})}function wc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...B(t)})}function Tc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...B(t)})}function Ec(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...B(t)})}function Dc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...B(t)})}function Oc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...B(t)})}function kc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...B(t)})}function Ac(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...B(t)})}function jc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...B(t)})}function Mc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...B(t)})}function Nc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...B(t)})}function Pc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...B(t)})}function Fc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...B(t)})}function Ic(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...B(t)})}function Lc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...B(t)})}function Rc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...B(t)})}function zc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...B(t)})}function Bc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...B(t)})}function Vc(e,t){return new e({type:`boolean`,...B(t)})}function Hc(e,t){return new e({type:`null`,...B(t)})}function Uc(e){return new e({type:`unknown`})}function Wc(e,t){return new e({type:`never`,...B(t)})}function Gc(e,t){return new Ho({check:`max_length`,...B(t),maximum:e})}function Kc(e,t){return new Uo({check:`min_length`,...B(t),minimum:e})}function qc(e,t){return new Wo({check:`length_equals`,...B(t),length:e})}function Jc(e,t){return new Ko({check:`string_format`,format:`regex`,...B(t),pattern:e})}function Yc(e){return new qo({check:`string_format`,format:`lowercase`,...B(e)})}function Xc(e){return new Jo({check:`string_format`,format:`uppercase`,...B(e)})}function Zc(e,t){return new Yo({check:`string_format`,format:`includes`,...B(t),includes:e})}function Qc(e,t){return new Xo({check:`string_format`,format:`starts_with`,...B(t),prefix:e})}function $c(e,t){return new Zo({check:`string_format`,format:`ends_with`,...B(t),suffix:e})}function el(e){return new Qo({check:`overwrite`,tx:e})}function tl(e){return el(t=>t.normalize(e))}function nl(){return el(e=>e.trim())}function rl(){return el(e=>e.toLowerCase())}function il(){return el(e=>e.toUpperCase())}function al(){return el(e=>Sa(e))}function ol(e,t,n){return new e({type:`array`,element:t,...B(n)})}function sl(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...B(n)})}function cl(e,t){let n=ll(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ga(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ga(r))}},e(t.value,t)),t);return n}function ll(e,t){let n=new Vo({check:`custom`,...B(t)});return n._zod.check=e,n}function ul(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??pc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function dl(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,dl(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&ml(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function fl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ea,s=!fa.jitless,c=s&&Da.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Bs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Us(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Va(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ga(e,r,pa())))}),t)}const Ws=z(`$ZodUnion`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),ba(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),ba(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),ba(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>va(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Us(t,r,e,i)):Us(o,r,e,i)}}),Gs=z(`$ZodIntersection`,(e,t)=>{rs.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>qs(e,t,n)):qs(e,i,a)}});function Ks(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Oa(e)&&Oa(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ks(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Va(e))return e;let o=Ks(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Js=z(`$ZodEnum`,(e,t)=>{rs.init(e,t);let n=ma(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Aa.has(typeof e)).map(e=>typeof e==`string`?ja(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ys=z(`$ZodTransform`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ua;return n.value=i,n.fallback=!0,n}});function Xs(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Zs=z(`$ZodOptional`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Xs(e,r)):Xs(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Qs=z(`$ZodExactOptional`,(e,t)=>{Zs.init(e,t),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),$s=z(`$ZodNullable`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.innerType._zod.optin),ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)}|null)$`):void 0}),ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ec=z(`$ZodDefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>tc(e,t)):tc(r,t)}});function tc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const nc=z(`$ZodPrefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),rc=z(`$ZodNonOptional`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ic(t,e)):ic(i,e)}});function ic(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const ac=z(`$ZodCatch`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),oc=z(`$ZodPipe`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>t.in._zod.values),ba(e._zod,`optin`,()=>t.in._zod.optin),ba(e._zod,`optout`,()=>t.out._zod.optout),ba(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.in,n)):sc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.out,n)):sc(r,t.out,n)}});function sc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const cc=z(`$ZodReadonly`,(e,t)=>{rs.init(e,t),ba(e._zod,`propValues`,()=>t.innerType._zod.propValues),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`optin`,()=>t.innerType?._zod?.optin),ba(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(lc):lc(r)}});function lc(e){return e.value=Object.freeze(e.value),e}const uc=z(`$ZodCustom`,(e,t)=>{Uo.init(e,t),rs.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>dc(t,n,r,e));dc(i,n,r,e)}});function dc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(qa(e))}}var fc,pc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function mc(){return new pc}(fc=globalThis).__zod_globalRegistry??(fc.__zod_globalRegistry=mc());const hc=globalThis.__zod_globalRegistry;function gc(e,t){return new e({type:`string`,...B(t)})}function _c(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...B(t)})}function vc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...B(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...B(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...B(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...B(t)})}function Sc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...B(t)})}function Cc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...B(t)})}function wc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...B(t)})}function Tc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...B(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...B(t)})}function Dc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...B(t)})}function Oc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...B(t)})}function kc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...B(t)})}function Ac(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...B(t)})}function jc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...B(t)})}function Mc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...B(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...B(t)})}function Pc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...B(t)})}function Fc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...B(t)})}function Ic(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...B(t)})}function Lc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...B(t)})}function Rc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...B(t)})}function zc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...B(t)})}function Bc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...B(t)})}function Vc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...B(t)})}function Hc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...B(t)})}function Uc(e,t){return new e({type:`boolean`,...B(t)})}function Wc(e,t){return new e({type:`null`,...B(t)})}function Gc(e){return new e({type:`unknown`})}function Kc(e,t){return new e({type:`never`,...B(t)})}function qc(e,t){return new Wo({check:`max_length`,...B(t),maximum:e})}function Jc(e,t){return new Go({check:`min_length`,...B(t),minimum:e})}function Yc(e,t){return new Ko({check:`length_equals`,...B(t),length:e})}function Xc(e,t){return new Jo({check:`string_format`,format:`regex`,...B(t),pattern:e})}function Zc(e){return new Yo({check:`string_format`,format:`lowercase`,...B(e)})}function Qc(e){return new Xo({check:`string_format`,format:`uppercase`,...B(e)})}function $c(e,t){return new Zo({check:`string_format`,format:`includes`,...B(t),includes:e})}function el(e,t){return new Qo({check:`string_format`,format:`starts_with`,...B(t),prefix:e})}function tl(e,t){return new $o({check:`string_format`,format:`ends_with`,...B(t),suffix:e})}function nl(e){return new es({check:`overwrite`,tx:e})}function rl(e){return nl(t=>t.normalize(e))}function il(){return nl(e=>e.trim())}function al(){return nl(e=>e.toLowerCase())}function ol(){return nl(e=>e.toUpperCase())}function sl(){return nl(e=>wa(e))}function cl(e,t,n){return new e({type:`array`,element:t,...B(n)})}function ll(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...B(n)})}function ul(e,t){let n=dl(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(qa(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(qa(r))}},e(t.value,t)),t);return n}function dl(e,t){let n=new Uo({check:`custom`,...B(t)});return n._zod.check=e,n}function fl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??hc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function pl(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,pl(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&gl(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ml(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function pl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:gl(t,`input`,e.processors),output:gl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function ml(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return ml(r.element,n);if(r.type===`set`)return ml(r.valueType,n);if(r.type===`lazy`)return ml(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return ml(r.innerType,n);if(r.type===`intersection`)return ml(r.left,n)||ml(r.right,n);if(r.type===`record`||r.type===`map`)return ml(r.keyType,n)||ml(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:ml(r.in,n)||ml(r.out,n);if(r.type===`object`){for(let e in r.shape)if(ml(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(ml(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(ml(e,n))return!0;return!!(r.rest&&ml(r.rest,n))}return!1}const hl=(e,t={})=>n=>{let r=ul({...n,processors:t});return dl(e,r),fl(r,e),pl(r,e)},gl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ul({...i??{},target:a,io:t,processors:n});return dl(e,o),fl(o,e),pl(o,e)},_l={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},vl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=_l[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},yl=(e,t,n,r)=>{n.type=`boolean`},bl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},xl=(e,t,n,r)=>{n.not={}},Sl=(e,t,n,r)=>{let i=e._zod.def,a=fa(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Cl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},wl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Tl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=dl(a.element,t,{...r,path:[...r.path,`items`]})},El=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=dl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=dl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Dl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>dl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Ol=(e,t,n,r)=>{let i=e._zod.def,a=dl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=dl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},kl=(e,t,n,r)=>{let i=e._zod.def,a=dl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Al=(e,t,n,r)=>{let i=e._zod.def;dl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},jl=(e,t,n,r)=>{let i=e._zod.def;dl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Ml=(e,t,n,r)=>{let i=e._zod.def;dl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Nl=(e,t,n,r)=>{let i=e._zod.def;dl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Pl=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;dl(o,t,r);let s=t.seen.get(e);s.ref=o},Fl=(e,t,n,r)=>{let i=e._zod.def;dl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Il=(e,t,n,r)=>{let i=e._zod.def;dl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ll=z(`ZodISODateTime`,(e,t)=>{hs.init(e,t),fu.init(e,t)});function Rl(e){return Lc(Ll,e)}const zl=z(`ZodISODate`,(e,t)=>{gs.init(e,t),fu.init(e,t)});function Bl(e){return Rc(zl,e)}const Vl=z(`ZodISOTime`,(e,t)=>{_s.init(e,t),fu.init(e,t)});function Hl(e){return zc(Vl,e)}const Ul=z(`ZodISODuration`,(e,t)=>{vs.init(e,t),fu.init(e,t)});function Wl(e){return Bc(Ul,e)}const Gl=(e,t)=>{qa.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Xa(e,t)},flatten:{value:t=>Ya(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,pa,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,pa,2)}},isEmpty:{get(){return e.issues.length===0}}})},Kl=z(`ZodError`,Gl),ql=z(`ZodError`,Gl,{Parent:Error}),Jl=Za(ql),Yl=Qa(ql),Xl=$a(ql),Zl=to(ql),Ql=ro(ql),$l=io(ql),eu=ao(ql),tu=oo(ql),nu=so(ql),ru=co(ql),iu=lo(ql),au=uo(ql),ou=new WeakMap;function su(e,t,n){let r=Object.getPrototypeOf(e),i=ou.get(r);if(i||(i=new Set,ou.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const cu=z(`ZodType`,(e,t)=>(ts.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:gl(e,`input`),output:gl(e,`output`)}}),e.toJSONSchema=hl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Jl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Xl(e,t,n),e.parseAsync=async(t,n)=>Yl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Zl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Ql(e,t,n),e.decode=(t,n)=>$l(e,t,n),e.encodeAsync=async(t,n)=>eu(e,t,n),e.decodeAsync=async(t,n)=>tu(e,t,n),e.safeEncode=(t,n)=>nu(e,t,n),e.safeDecode=(t,n)=>ru(e,t,n),e.safeEncodeAsync=async(t,n)=>iu(e,t,n),e.safeDecodeAsync=async(t,n)=>au(e,t,n),su(e,`ZodType`,{check(...e){let t=this.def;return this.clone(ba(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Aa(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(_d(e,t))},superRefine(e,t){return this.check(vd(e,t))},overwrite(e){return this.check(el(e))},optional(){return $u(this)},exactOptional(){return td(this)},nullable(){return rd(this)},nullish(){return $u(rd(this))},nonoptional(e){return ld(this,e)},array(){return Vu(this)},or(e){return Gu([this,e])},and(e){return qu(this,e)},transform(e){return pd(this,Zu(e))},default(e){return ad(this,e)},prefault(e){return sd(this,e)},catch(e){return dd(this,e)},pipe(e){return pd(this,e)},readonly(){return hd(this)},describe(e){let t=this.clone();return pc.add(t,{description:e}),t},meta(...e){if(e.length===0)return pc.get(this);let t=this.clone();return pc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return pc.get(e)?.description},configurable:!0}),e)),lu=z(`_ZodString`,(e,t)=>{ns.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,su(e,`_ZodString`,{regex(...e){return this.check(Jc(...e))},includes(...e){return this.check(Zc(...e))},startsWith(...e){return this.check(Qc(...e))},endsWith(...e){return this.check($c(...e))},min(...e){return this.check(Kc(...e))},max(...e){return this.check(Gc(...e))},length(...e){return this.check(qc(...e))},nonempty(...e){return this.check(Kc(1,...e))},lowercase(e){return this.check(Yc(e))},uppercase(e){return this.check(Xc(e))},trim(){return this.check(nl())},normalize(...e){return this.check(tl(...e))},toLowerCase(){return this.check(rl())},toUpperCase(){return this.check(il())},slugify(){return this.check(al())}})}),uu=z(`ZodString`,(e,t)=>{ns.init(e,t),lu.init(e,t),e.email=t=>e.check(hc(pu,t)),e.url=t=>e.check(xc(gu,t)),e.jwt=t=>e.check(Ic(ju,t)),e.emoji=t=>e.check(Sc(_u,t)),e.guid=t=>e.check(gc(mu,t)),e.uuid=t=>e.check(_c(hu,t)),e.uuidv4=t=>e.check(vc(hu,t)),e.uuidv6=t=>e.check(yc(hu,t)),e.uuidv7=t=>e.check(bc(hu,t)),e.nanoid=t=>e.check(Cc(vu,t)),e.guid=t=>e.check(gc(mu,t)),e.cuid=t=>e.check(wc(yu,t)),e.cuid2=t=>e.check(Tc(bu,t)),e.ulid=t=>e.check(Ec(xu,t)),e.base64=t=>e.check(Nc(Ou,t)),e.base64url=t=>e.check(Pc(ku,t)),e.xid=t=>e.check(Dc(Su,t)),e.ksuid=t=>e.check(Oc(Cu,t)),e.ipv4=t=>e.check(kc(wu,t)),e.ipv6=t=>e.check(Ac(Tu,t)),e.cidrv4=t=>e.check(jc(Eu,t)),e.cidrv6=t=>e.check(Mc(Du,t)),e.e164=t=>e.check(Fc(Au,t)),e.datetime=t=>e.check(Rl(t)),e.date=t=>e.check(Bl(t)),e.time=t=>e.check(Hl(t)),e.duration=t=>e.check(Wl(t))});function du(e){return mc(uu,e)}const fu=z(`ZodStringFormat`,(e,t)=>{rs.init(e,t),lu.init(e,t)}),pu=z(`ZodEmail`,(e,t)=>{os.init(e,t),fu.init(e,t)}),mu=z(`ZodGUID`,(e,t)=>{is.init(e,t),fu.init(e,t)}),hu=z(`ZodUUID`,(e,t)=>{as.init(e,t),fu.init(e,t)}),gu=z(`ZodURL`,(e,t)=>{ss.init(e,t),fu.init(e,t)}),_u=z(`ZodEmoji`,(e,t)=>{cs.init(e,t),fu.init(e,t)}),vu=z(`ZodNanoID`,(e,t)=>{ls.init(e,t),fu.init(e,t)}),yu=z(`ZodCUID`,(e,t)=>{us.init(e,t),fu.init(e,t)}),bu=z(`ZodCUID2`,(e,t)=>{ds.init(e,t),fu.init(e,t)}),xu=z(`ZodULID`,(e,t)=>{fs.init(e,t),fu.init(e,t)}),Su=z(`ZodXID`,(e,t)=>{ps.init(e,t),fu.init(e,t)}),Cu=z(`ZodKSUID`,(e,t)=>{ms.init(e,t),fu.init(e,t)}),wu=z(`ZodIPv4`,(e,t)=>{ys.init(e,t),fu.init(e,t)}),Tu=z(`ZodIPv6`,(e,t)=>{bs.init(e,t),fu.init(e,t)}),Eu=z(`ZodCIDRv4`,(e,t)=>{xs.init(e,t),fu.init(e,t)}),Du=z(`ZodCIDRv6`,(e,t)=>{Ss.init(e,t),fu.init(e,t)}),Ou=z(`ZodBase64`,(e,t)=>{ws.init(e,t),fu.init(e,t)}),ku=z(`ZodBase64URL`,(e,t)=>{Es.init(e,t),fu.init(e,t)}),Au=z(`ZodE164`,(e,t)=>{Ds.init(e,t),fu.init(e,t)}),ju=z(`ZodJWT`,(e,t)=>{ks.init(e,t),fu.init(e,t)}),Mu=z(`ZodBoolean`,(e,t)=>{As.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yl(e,t,n,r)});function Nu(e){return Vc(Mu,e)}const Pu=z(`ZodNull`,(e,t)=>{js.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r)});function Fu(e){return Hc(Pu,e)}const Iu=z(`ZodUnknown`,(e,t)=>{Ms.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Lu(){return Uc(Iu)}const Ru=z(`ZodNever`,(e,t)=>{Ns.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function zu(e){return Wc(Ru,e)}const Bu=z(`ZodArray`,(e,t)=>{Fs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r),e.element=t.element,su(e,`ZodArray`,{min(e,t){return this.check(Kc(e,t))},nonempty(e){return this.check(Kc(1,e))},max(e,t){return this.check(Gc(e,t))},length(e,t){return this.check(qc(e,t))},unwrap(){return this.element}})});function Vu(e,t){return ol(Bu,e,t)}const Hu=z(`ZodObject`,(e,t)=>{Bs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),va(e,`shape`,()=>t.shape),su(e,`ZodObject`,{keyof(){return Yu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Lu()})},loose(){return this.clone({...this._zod.def,catchall:Lu()})},strict(){return this.clone({...this._zod.def,catchall:zu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Pa(this,e)},safeExtend(e){return Fa(this,e)},merge(e){return Ia(this,e)},pick(e){return Ma(this,e)},omit(e){return Na(this,e)},partial(...e){return La(Qu,this,e[0])},required(...e){return Ra(cd,this,e[0])}})});function Uu(e,t){return new Hu({type:`object`,shape:e??{},...B(t)})}const Wu=z(`ZodUnion`,(e,t)=>{Hs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.options=t.options});function Gu(e,t){return new Wu({type:`union`,options:e,...B(t)})}const Ku=z(`ZodIntersection`,(e,t)=>{Us.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r)});function qu(e,t){return new Ku({type:`intersection`,left:e,right:t})}const Ju=z(`ZodEnum`,(e,t)=>{Ks.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ju({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ju({...t,checks:[],...B(r),entries:i})}});function Yu(e,t){return new Ju({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Xu=z(`ZodTransform`,(e,t)=>{qs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new la(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ga(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ga(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Zu(e){return new Xu({type:`transform`,transform:e})}const Qu=z(`ZodOptional`,(e,t)=>{Ys.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $u(e){return new Qu({type:`optional`,innerType:e})}const ed=z(`ZodExactOptional`,(e,t)=>{Xs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodNullable`,(e,t)=>{Zs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`nullable`,innerType:e})}const id=z(`ZodDefault`,(e,t)=>{Qs.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ad(e,t){return new id({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Da(t)}})}const od=z(`ZodPrefault`,(e,t)=>{ec.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sd(e,t){return new od({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Da(t)}})}const cd=z(`ZodNonOptional`,(e,t)=>{tc.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`nonoptional`,innerType:e,...B(t)})}const ud=z(`ZodCatch`,(e,t)=>{rc.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function dd(e,t){return new ud({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const fd=z(`ZodPipe`,(e,t)=>{ic.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.in=t.in,e.out=t.out});function pd(e,t){return new fd({type:`pipe`,in:e,out:t})}const md=z(`ZodReadonly`,(e,t)=>{oc.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hd(e){return new md({type:`readonly`,innerType:e})}const gd=z(`ZodCustom`,(e,t)=>{cc.init(e,t),cu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function _d(e,t={}){return sl(gd,e,t)}function vd(e,t){return cl(e,t)}var yd=oa();const bd=Uu({cwd:du().optional(),args:Vu(du()).optional()}),xd=Gu([Fu(),Nu(),bd,Vu(bd)]),Sd=`Vite+`;function Cd(){return{version:jr(`version`)||`latest`,nodeVersion:jr(`node-version`)||void 0,nodeVersionFile:jr(`node-version-file`)||void 0,workingDirectory:jr(`working-directory`)||void 0,runInstall:wd(jr(`run-install`)),cache:Mr(`cache`),cacheDependencyPath:jr(`cache-dependency-path`)||void 0,registryUrl:jr(`registry-url`)||void 0,scope:jr(`scope`)||void 0}}function wd(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,yd.parse)(e);try{let e=xd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Kl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Td(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||fe(),`.vite-plus`)}function Ed(){return process.env.GITHUB_WORKSPACE||process.cwd()}function Dd(e,t){return ee(e)?e:N(t,e)}function Od(e){if(!e.workingDirectory)return Ed();let t=Dd(e.workingDirectory,Ed());if(!ie(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!se(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function kd(e,t){return t?Dd(t,e):e}const Ad=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function jd(e,t=Ed()){if(e){let n=Dd(e,t);if(ie(n)){let e=j(n),t=Ad.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Md(n,e)}return}let n=oe(t);for(let e of Ad)if(n.includes(e.filename)){let n=N(t,e.filename);return Rr(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Md(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Nd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Fd(t);default:return[]}}async function Pd(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Er(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){Lr(`Failed to run "${r}": ${String(e)}`);return}}async function Fd(e){let t=await Pd(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Id=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],Ld=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Rd=2e3;async function zd(e){let{version:t}=e;Rr(`Installing ${Sd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?Ld:Id,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Bd(e,n);if(t===0){Vd();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=$d?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=$d?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=Kd(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=Kd(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function tf(e,t){let n=Qd.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function nf(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var rf=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),of=P(((e,t)=>{var n=rf(),r=af();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=of(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new lf(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),df?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:df,nocomment:!0,noext:!0,nonegate:!0};a=df?a.replace(/\\/g,`/`):a,this.minimatch=new uf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=Xd(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=Zd(e),this.minimatch.match(e)?this.trailingSeparator?Qd.Directory:Qd.All:Qd.None}partialMatch(e){return e=Zd(e),Kd(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(df?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(df?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new lf(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!Yd(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=Xd(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(Jd(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(df&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=qd(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(df&&(n===`\\`||n.match(/^\\[^\\]/))){let t=qd(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=qd(e.globEscape(process.cwd()),n);return Xd(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},pf=class{constructor(e,t){this.path=e,this.level=t}},mf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},hf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},gf=function(e){return this instanceof gf?(this.v=e,this):new gf(e)},_f=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof gf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const vf=process.platform===`win32`;var yf=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=Wd(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return mf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=hf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return _f(this,arguments,function*(){let t=Wd(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new ff(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of ef(n)){R(`Search path '${e}'`);try{yield gf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new pf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=tf(n,o.path),c=!!s||nf(n,o.path);if(!s&&!c)continue;let l=yield gf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&Qd.Directory&&t.matchDirectories)yield yield gf(o.path);else if(!c)continue;let e=o.level+1,n=(yield gf(a.promises.readdir(o.path))).map(t=>new pf(u.join(o.path,t),e));r.push(...n.reverse())}else s&Qd.File&&(yield yield gf(o.path))}})}static create(t,n){return mf(this,void 0,void 0,function*(){let r=new e(n);vf&&(t=t.replace(/\r\n/g,` +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vl(t,`input`,e.processors),output:vl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function gl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return gl(r.element,n);if(r.type===`set`)return gl(r.valueType,n);if(r.type===`lazy`)return gl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return gl(r.innerType,n);if(r.type===`intersection`)return gl(r.left,n)||gl(r.right,n);if(r.type===`record`||r.type===`map`)return gl(r.keyType,n)||gl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:gl(r.in,n)||gl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(gl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(gl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(gl(e,n))return!0;return!!(r.rest&&gl(r.rest,n))}return!1}const _l=(e,t={})=>n=>{let r=fl({...n,processors:t});return pl(e,r),ml(r,e),hl(r,e)},vl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=fl({...i??{},target:a,io:t,processors:n});return pl(e,o),ml(o,e),hl(o,e)},yl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xl=(e,t,n,r)=>{n.type=`boolean`},Sl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Cl=(e,t,n,r)=>{n.not={}},wl=(e,t,n,r)=>{let i=e._zod.def,a=ma(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pl(a.element,t,{...r,path:[...r.path,`items`]})},Ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=pl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Al=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},jl=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ml=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Pl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Il=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;pl(o,t,r);let s=t.seen.get(e);s.ref=o},Ll=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Rl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},zl=z(`ZodISODateTime`,(e,t)=>{_s.init(e,t),mu.init(e,t)});function Bl(e){return zc(zl,e)}const Vl=z(`ZodISODate`,(e,t)=>{vs.init(e,t),mu.init(e,t)});function Hl(e){return Bc(Vl,e)}const Ul=z(`ZodISOTime`,(e,t)=>{ys.init(e,t),mu.init(e,t)});function Wl(e){return Vc(Ul,e)}const Gl=z(`ZodISODuration`,(e,t)=>{bs.init(e,t),mu.init(e,t)});function Kl(e){return Hc(Gl,e)}const ql=(e,t)=>{Ya.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qa(e,t)},flatten:{value:t=>Za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ha,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ha,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jl=z(`ZodError`,ql),Yl=z(`ZodError`,ql,{Parent:Error}),Xl=$a(Yl),Zl=eo(Yl),Ql=to(Yl),$l=ro(Yl),eu=ao(Yl),tu=oo(Yl),nu=so(Yl),ru=co(Yl),iu=lo(Yl),au=uo(Yl),ou=fo(Yl),su=po(Yl),cu=new WeakMap;function lu(e,t,n){let r=Object.getPrototypeOf(e),i=cu.get(r);if(i||(i=new Set,cu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const uu=z(`ZodType`,(e,t)=>(rs.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vl(e,`input`),output:vl(e,`output`)}}),e.toJSONSchema=_l(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Xl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>Zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$l(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eu(e,t,n),e.decode=(t,n)=>tu(e,t,n),e.encodeAsync=async(t,n)=>nu(e,t,n),e.decodeAsync=async(t,n)=>ru(e,t,n),e.safeEncode=(t,n)=>iu(e,t,n),e.safeDecode=(t,n)=>au(e,t,n),e.safeEncodeAsync=async(t,n)=>ou(e,t,n),e.safeDecodeAsync=async(t,n)=>su(e,t,n),lu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Sa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ma(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(yd(e,t))},superRefine(e,t){return this.check(bd(e,t))},overwrite(e){return this.check(nl(e))},optional(){return td(this)},exactOptional(){return rd(this)},nullable(){return ad(this)},nullish(){return td(ad(this))},nonoptional(e){return dd(this,e)},array(){return Uu(this)},or(e){return qu([this,e])},and(e){return Yu(this,e)},transform(e){return hd(this,$u(e))},default(e){return sd(this,e)},prefault(e){return ld(this,e)},catch(e){return pd(this,e)},pipe(e){return hd(this,e)},readonly(){return _d(this)},describe(e){let t=this.clone();return hc.add(t,{description:e}),t},meta(...e){if(e.length===0)return hc.get(this);let t=this.clone();return hc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return hc.get(e)?.description},configurable:!0}),e)),du=z(`_ZodString`,(e,t)=>{is.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,lu(e,`_ZodString`,{regex(...e){return this.check(Xc(...e))},includes(...e){return this.check($c(...e))},startsWith(...e){return this.check(el(...e))},endsWith(...e){return this.check(tl(...e))},min(...e){return this.check(Jc(...e))},max(...e){return this.check(qc(...e))},length(...e){return this.check(Yc(...e))},nonempty(...e){return this.check(Jc(1,...e))},lowercase(e){return this.check(Zc(e))},uppercase(e){return this.check(Qc(e))},trim(){return this.check(il())},normalize(...e){return this.check(rl(...e))},toLowerCase(){return this.check(al())},toUpperCase(){return this.check(ol())},slugify(){return this.check(sl())}})}),fu=z(`ZodString`,(e,t)=>{is.init(e,t),du.init(e,t),e.email=t=>e.check(_c(hu,t)),e.url=t=>e.check(Cc(vu,t)),e.jwt=t=>e.check(Rc(Nu,t)),e.emoji=t=>e.check(wc(yu,t)),e.guid=t=>e.check(vc(gu,t)),e.uuid=t=>e.check(yc(_u,t)),e.uuidv4=t=>e.check(bc(_u,t)),e.uuidv6=t=>e.check(xc(_u,t)),e.uuidv7=t=>e.check(Sc(_u,t)),e.nanoid=t=>e.check(Tc(bu,t)),e.guid=t=>e.check(vc(gu,t)),e.cuid=t=>e.check(Ec(xu,t)),e.cuid2=t=>e.check(Dc(Su,t)),e.ulid=t=>e.check(Oc(Cu,t)),e.base64=t=>e.check(Fc(Au,t)),e.base64url=t=>e.check(Ic(ju,t)),e.xid=t=>e.check(kc(wu,t)),e.ksuid=t=>e.check(Ac(Tu,t)),e.ipv4=t=>e.check(jc(Eu,t)),e.ipv6=t=>e.check(Mc(Du,t)),e.cidrv4=t=>e.check(Nc(Ou,t)),e.cidrv6=t=>e.check(Pc(ku,t)),e.e164=t=>e.check(Lc(Mu,t)),e.datetime=t=>e.check(Bl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Wl(t)),e.duration=t=>e.check(Kl(t))});function pu(e){return gc(fu,e)}const mu=z(`ZodStringFormat`,(e,t)=>{as.init(e,t),du.init(e,t)}),hu=z(`ZodEmail`,(e,t)=>{cs.init(e,t),mu.init(e,t)}),gu=z(`ZodGUID`,(e,t)=>{os.init(e,t),mu.init(e,t)}),_u=z(`ZodUUID`,(e,t)=>{ss.init(e,t),mu.init(e,t)}),vu=z(`ZodURL`,(e,t)=>{ls.init(e,t),mu.init(e,t)}),yu=z(`ZodEmoji`,(e,t)=>{us.init(e,t),mu.init(e,t)}),bu=z(`ZodNanoID`,(e,t)=>{ds.init(e,t),mu.init(e,t)}),xu=z(`ZodCUID`,(e,t)=>{fs.init(e,t),mu.init(e,t)}),Su=z(`ZodCUID2`,(e,t)=>{ps.init(e,t),mu.init(e,t)}),Cu=z(`ZodULID`,(e,t)=>{ms.init(e,t),mu.init(e,t)}),wu=z(`ZodXID`,(e,t)=>{hs.init(e,t),mu.init(e,t)}),Tu=z(`ZodKSUID`,(e,t)=>{gs.init(e,t),mu.init(e,t)}),Eu=z(`ZodIPv4`,(e,t)=>{xs.init(e,t),mu.init(e,t)}),Du=z(`ZodIPv6`,(e,t)=>{Ss.init(e,t),mu.init(e,t)}),Ou=z(`ZodCIDRv4`,(e,t)=>{Cs.init(e,t),mu.init(e,t)}),ku=z(`ZodCIDRv6`,(e,t)=>{ws.init(e,t),mu.init(e,t)}),Au=z(`ZodBase64`,(e,t)=>{Es.init(e,t),mu.init(e,t)}),ju=z(`ZodBase64URL`,(e,t)=>{Os.init(e,t),mu.init(e,t)}),Mu=z(`ZodE164`,(e,t)=>{ks.init(e,t),mu.init(e,t)}),Nu=z(`ZodJWT`,(e,t)=>{js.init(e,t),mu.init(e,t)}),Pu=z(`ZodBoolean`,(e,t)=>{Ms.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Fu(e){return Uc(Pu,e)}const Iu=z(`ZodNull`,(e,t)=>{Ns.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Lu(e){return Wc(Iu,e)}const Ru=z(`ZodUnknown`,(e,t)=>{Ps.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zu(){return Gc(Ru)}const Bu=z(`ZodNever`,(e,t)=>{Fs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function Vu(e){return Kc(Bu,e)}const Hu=z(`ZodArray`,(e,t)=>{Ls.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.element=t.element,lu(e,`ZodArray`,{min(e,t){return this.check(Jc(e,t))},nonempty(e){return this.check(Jc(1,e))},max(e,t){return this.check(qc(e,t))},length(e,t){return this.check(Yc(e,t))},unwrap(){return this.element}})});function Uu(e,t){return cl(Hu,e,t)}const Wu=z(`ZodObject`,(e,t)=>{Hs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),ba(e,`shape`,()=>t.shape),lu(e,`ZodObject`,{keyof(){return Zu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:zu()})},loose(){return this.clone({...this._zod.def,catchall:zu()})},strict(){return this.clone({...this._zod.def,catchall:Vu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ia(this,e)},safeExtend(e){return La(this,e)},merge(e){return Ra(this,e)},pick(e){return Pa(this,e)},omit(e){return Fa(this,e)},partial(...e){return za(ed,this,e[0])},required(...e){return Ba(ud,this,e[0])}})});function Gu(e,t){return new Wu({type:`object`,shape:e??{},...B(t)})}const Ku=z(`ZodUnion`,(e,t)=>{Ws.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.options=t.options});function qu(e,t){return new Ku({type:`union`,options:e,...B(t)})}const Ju=z(`ZodIntersection`,(e,t)=>{Gs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Yu(e,t){return new Ju({type:`intersection`,left:e,right:t})}const Xu=z(`ZodEnum`,(e,t)=>{Js.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})}});function Zu(e,t){return new Xu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Qu=z(`ZodTransform`,(e,t)=>{Ys.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new Qu({type:`transform`,transform:e})}const ed=z(`ZodOptional`,(e,t)=>{Zs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodExactOptional`,(e,t)=>{Qs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`optional`,innerType:e})}const id=z(`ZodNullable`,(e,t)=>{$s.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new id({type:`nullable`,innerType:e})}const od=z(`ZodDefault`,(e,t)=>{ec.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sd(e,t){return new od({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const cd=z(`ZodPrefault`,(e,t)=>{nc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const ud=z(`ZodNonOptional`,(e,t)=>{rc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dd(e,t){return new ud({type:`nonoptional`,innerType:e,...B(t)})}const fd=z(`ZodCatch`,(e,t)=>{ac.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pd(e,t){return new fd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const md=z(`ZodPipe`,(e,t)=>{oc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.in=t.in,e.out=t.out});function hd(e,t){return new md({type:`pipe`,in:e,out:t})}const gd=z(`ZodReadonly`,(e,t)=>{cc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new gd({type:`readonly`,innerType:e})}const vd=z(`ZodCustom`,(e,t)=>{uc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r)});function yd(e,t={}){return ll(vd,e,t)}function bd(e,t){return ul(e,t)}var xd=ca();const Sd=Gu({cwd:pu().optional(),args:Uu(pu()).optional()}),Cd=qu([Lu(),Fu(),Sd,Uu(Sd)]),wd=`Vite+`;function Td(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Ed(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Ed(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,xd.parse)(e);try{let e=Cd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Jl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Dd(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Od(){return process.env.GITHUB_WORKSPACE||process.cwd()}function kd(e,t){return ee(e)?e:N(t,e)}function Ad(e){if(!e.workingDirectory)return Od();let t=kd(e.workingDirectory,Od());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function jd(e,t){return t?kd(t,e):e}const Md=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Nd(e,t=Od()){if(e){let n=kd(e,t);if(ae(n)){let e=j(n),t=Md.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Pd(n,e)}return}let n=ce(t);for(let e of Md)if(n.includes(e.filename)){let n=N(t,e.filename);return Br(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Pd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Fd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Ld(t);default:return[]}}async function Id(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Ld(e){let t=await Id(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Rd=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],zd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Bd=2e3;async function Vd(e){let{version:t}=e;Br(`Installing ${wd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?zd:Rd,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Hd(e,n);if(t===0){Ud();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=cf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=cf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=ef(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=ef(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function uf(e,t){let n=sf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function df(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var ff=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),mf=P(((e,t)=>{var n=ff(),r=pf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=mf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new _f(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),yf?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:yf,nocomment:!0,noext:!0,nonegate:!0};a=yf?a.replace(/\\/g,`/`):a,this.minimatch=new vf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=af(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=of(e),this.minimatch.match(e)?this.trailingSeparator?sf.Directory:sf.All:sf.None}partialMatch(e){return e=of(e),ef(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(yf?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(yf?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new _f(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!rf(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=af(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(nf(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(yf&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=tf(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(yf&&(n===`\\`||n.match(/^\\[^\\]/))){let t=tf(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=tf(e.globEscape(process.cwd()),n);return af(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},xf=class{constructor(e,t){this.path=e,this.level=t}},Sf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Cf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},wf=function(e){return this instanceof wf?(this.v=e,this):new wf(e)},Tf=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof wf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Ef=process.platform===`win32`;var Df=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=Qd(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Sf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Cf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Tf(this,arguments,function*(){let t=Qd(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new bf(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of lf(n)){R(`Search path '${e}'`);try{yield wf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new xf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=uf(n,o.path),c=!!s||df(n,o.path);if(!s&&!c)continue;let l=yield wf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&sf.Directory&&t.matchDirectories)yield yield wf(o.path);else if(!c)continue;let e=o.level+1,n=(yield wf(a.promises.readdir(o.path))).map(t=>new xf(u.join(o.path,t),e));r.push(...n.reverse())}else s&sf.File&&(yield yield wf(o.path))}})}static create(t,n){return Sf(this,void 0,void 0,function*(){let r=new e(n);Ef&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new ff(e));return r.searchPaths.push(...ef(r.patterns)),r})}static stat(e,t,n){return mf(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},bf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function xf(e,t){return bf(this,void 0,void 0,function*(){return yield yf.create(e,t)})}var Sf=P(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Cf=P(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),wf=P(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Sf(),a=Cf();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Tf=P(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Ef=P(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),Df=P(((e,t)=>{let n=Cf(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Sf(),{safeRe:a,t:o}=wf(),s=Tf(),{compareIdentifiers:c}=Ef();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Of=P(((e,t)=>{let n=Df();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),kf=P(((e,t)=>{let n=Of();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Af=P(((e,t)=>{let n=Of();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),jf=P(((e,t)=>{let n=Df();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Mf=P(((e,t)=>{let n=Of();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Nf=P(((e,t)=>{let n=Df();t.exports=(e,t)=>new n(e,t).major})),Pf=P(((e,t)=>{let n=Df();t.exports=(e,t)=>new n(e,t).minor})),Ff=P(((e,t)=>{let n=Df();t.exports=(e,t)=>new n(e,t).patch})),If=P(((e,t)=>{let n=Of();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Lf=P(((e,t)=>{let n=Df();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Rf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(t,e,r)})),zf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>n(e,t,!0)})),Bf=P(((e,t)=>{let n=Df();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Vf=P(((e,t)=>{let n=Bf();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Hf=P(((e,t)=>{let n=Bf();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Uf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(e,t,r)>0})),Wf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(e,t,r)<0})),Gf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(e,t,r)===0})),Kf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(e,t,r)!==0})),qf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(e,t,r)>=0})),Jf=P(((e,t)=>{let n=Lf();t.exports=(e,t,r)=>n(e,t,r)<=0})),Yf=P(((e,t)=>{let n=Gf(),r=Kf(),i=Uf(),a=qf(),o=Wf(),s=Jf();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Xf=P(((e,t)=>{let n=Df(),r=Of(),{safeRe:i,t:a}=wf();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),Zf=P(((e,t)=>{let n=Of(),r=Sf(),i=Df(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),Qf=P(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),$f=P(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),ep=P(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Tf(),{safeRe:i,t:a}=wf(),o=Yf(),s=Cf(),c=Df(),l=$f()})),tp=P(((e,t)=>{let n=$f();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),np=P(((e,t)=>{let n=$f();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),rp=P(((e,t)=>{let n=Df(),r=$f();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),ip=P(((e,t)=>{let n=Df(),r=$f();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ap=P(((e,t)=>{let n=Df(),r=$f(),i=Uf();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),op=P(((e,t)=>{let n=$f();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),sp=P(((e,t)=>{let n=Df(),r=ep(),{ANY:i}=r,a=$f(),o=tp(),s=Uf(),c=Wf(),l=Jf(),u=qf();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),cp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>n(e,t,`>`,r)})),lp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>n(e,t,`<`,r)})),up=P(((e,t)=>{let n=$f();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),dp=P(((e,t)=>{let n=tp(),r=Lf();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=$f(),r=ep(),{ANY:i}=r,a=tp(),o=Lf(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),pp=De(P(((e,t)=>{let n=wf(),r=Sf(),i=Df(),a=Ef();t.exports={parse:Of(),valid:kf(),clean:Af(),inc:jf(),diff:Mf(),major:Nf(),minor:Pf(),patch:Ff(),prerelease:If(),compare:Lf(),rcompare:Rf(),compareLoose:zf(),compareBuild:Bf(),sort:Vf(),rsort:Hf(),gt:Uf(),lt:Wf(),eq:Gf(),neq:Kf(),gte:qf(),lte:Jf(),cmp:Yf(),coerce:Xf(),truncate:Zf(),Comparator:ep(),Range:$f(),satisfies:tp(),toComparators:np(),maxSatisfying:rp(),minSatisfying:ip(),minVersion:ap(),validRange:op(),outside:sp(),gtr:cp(),ltr:lp(),intersects:up(),simplifyRange:dp(),subset:fp(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),mp;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(mp||={});var hp;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(hp||={});var gp;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(gp||={});const _p=5e3,vp=5e3,yp=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,bp=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,xp=`cache.tar`,Sp=`manifest.txt`;var Cp=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},wp=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Tp(){return Cp(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=u.join(n,`actions`,`temp`)}let n=u.join(t,i.randomUUID());return yield gr(n),n})}function Ep(e){return a.statSync(e).size}function Dp(e){return Cp(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield xf(e.join(` -`),{implicitDescendants:!1});try{for(var c=!0,l=wp(s.globGenerator()),d;d=yield l.next(),t=d.done,!t;c=!0){i=d.value,c=!1;let e=i,t=u.relative(o,e).replace(RegExp(`\\${u.sep}`,`g`),`/`);R(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Op(e){return Cp(this,void 0,void 0,function*(){return _.promisify(a.unlink)(e)})}function kp(e){return Cp(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),R(`Checking ${e} ${t.join(` `)}`);try{yield Tr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){R(e.message)}return n=n.trim(),R(n),n})}function Ap(){return Cp(this,void 0,void 0,function*(){let e=yield kp(`zstd`,[`--quiet`]);return R(`zstd version: ${pp.clean(e)}`),e===``?hp.Gzip:hp.ZstdWithoutLong})}function jp(e){return e===hp.Gzip?mp.Gzip:mp.Zstd}function Mp(){return Cp(this,void 0,void 0,function*(){return a.existsSync(yp)?yp:(yield kp(`tar`)).toLowerCase().includes(`gnu tar`)?_r(`tar`):``})}function Np(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Pp(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),i.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Fp(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Ip=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Lp(e,...t){_e.stderr.write(`${S.format(e,...t)}${ue}`)}const Rp=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let zp,Bp=[],Vp=[];const Hp=[];Rp&&Wp(Rp);const Up=Object.assign(e=>Jp(e),{enable:Wp,enabled:Gp,disable:qp,log:Lp});function Wp(e){zp=e,Bp=[],Vp=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Vp.push(e.substring(1)):Bp.push(e);for(let e of Hp)e.enabled=Gp(e.namespace)}function Gp(e){if(e.endsWith(`*`))return!0;for(let t of Vp)if(Kp(e,t))return!1;for(let t of Bp)if(Kp(e,t))return!0;return!1}function Kp(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function qp(){let e=zp||``;return Wp(``),e}function Jp(e){let t=Object.assign(n,{enabled:Gp(e),destroy:Yp,log:Up.log,namespace:e,extend:Xp});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Hp.push(t),t}function Yp(){let e=Hp.indexOf(this);return e>=0?(Hp.splice(e,1),!0):!1}function Xp(e){let t=Jp(`${this.namespace}:${e}`);return t.log=this.log,t}const Zp=[`verbose`,`info`,`warning`,`error`],Qp={verbose:400,info:300,warning:200,error:100};function $p(e,t){t.log=(...t)=>{e.log(...t)}}function em(e){return Zp.includes(e)}function tm(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Up(e.namespace);i.log=(...e)=>{Up.log(...e)};function a(e){if(e&&!em(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${Zp.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Up.enable(n.join(`,`))}n&&(em(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${Zp.join(`, `)}.`));function o(e){return!!(r&&Qp[e.level]<=Qp[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if($p(e,r),o(r)){let e=Up.disable();Up.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return $p(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const nm=tm({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});nm.logger;function rm(e){return nm.createClientLogger(e)}function im(e){return e.toLowerCase()}function*am(e){for(let t of e.values())yield[t.name,t.value]}var om=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(im(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(im(e))?.value}has(e){return this._headersMap.has(im(e))}delete(e){this._headersMap.delete(im(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return am(this._headersMap)}};function sm(e){return new om(e)}function cm(){return crypto.randomUUID()}var lm=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??sm(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||cm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function um(e){return new lm(e)}const dm=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var fm=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!dm.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!dm.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function pm(){return fm.create()}function mm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function hm(e){if(mm(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const gm=C.custom,_m=`REDACTED`,vm=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.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.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),ym=[`api-version`];var bm=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=vm.concat(e),t=ym.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&mm(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&mm(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||mm(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,_m);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=_m;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=_m;return t}};const xm=new bm;var Sm=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,`request`,{value:n.request,enumerable:!1}),Object.defineProperty(this,`response`,{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,gm,{value:()=>`RestError: ${this.message} \n ${xm.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function Cm(e){return e instanceof Sm?!0:hm(e)&&e.name===`RestError`}function wm(e,t){return Buffer.from(e,t)}const Tm=rm(`ts-http-runtime`),Em={};function Dm(e){return e&&typeof e.pipe==`function`}function Om(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function km(e){return e&&typeof e.byteLength==`number`}var Am=class extends b{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},jm=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ip(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new bm;Tm.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Fm(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new Am(t);n.on(`error`,e=>{Tm.error(`Error in upload progress`,e)}),Dm(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Mm(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Nm(n,i):n;let l=e.onDownloadProgress;if(l){let e=new Am(l);e.on(`error`,e=>{Tm.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Pm(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Dm(o)&&(t=Om(o));let r=Promise.resolve();Dm(s)&&(r=Om(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Tm.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?v.request(a,r):ve.request(a,r);s.once(`error`,t=>{o(new Sm(t.message,{code:t.code??Sm.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Ip(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Dm(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):km(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Tm.error(`Unrecognized body type`,n),o(new Sm(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?v.globalAgent:(this.cachedHttpAgent||=new v.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return ve.globalAgent;let t=e.tlsSettings??Em,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Tm.info(`No cached TLS Agent exist, creating a new Agent`),r=new ve.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Mm(e){let t=sm();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Nm(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=w.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=w.createInflate();return e.pipe(t),t}return e}function Pm(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new Sm(`Error reading response as text: ${e.message}`,{code:Sm.PARSE_ERROR}))})})}function Fm(e){return e?Buffer.isBuffer(e)?e.length:Dm(e)?null:km(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Im(){return new jm}function Lm(){return Im()}function Rm(e={}){let t=e.logger??Tm.info,n=new bm({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const zm=[`GET`,`HEAD`];function Bm(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Vm(r,await r(e),t,n)}}}async function Vm(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&zm.includes(a.method)||o===302&&zm.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Ip(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function Km(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const qm=`Retry-After`,Jm=[`retry-after-ms`,`x-ms-retry-after-ms`,qm];function Ym(e){if(e&&[429,503].includes(e.status))try{for(let t of Jm){let n=Km(e,t);if(n===0||n)return n*(t===qm?1e3:1)}let t=e.headers.get(qm);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function Xm(e){return Number.isFinite(Ym(e))}function Zm(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=Ym(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function Qm(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=eh(a),s=o&&e.ignoreSystemErrors,c=$m(i),l=c&&e.ignoreHttpStatusCodes;return i&&(Xm(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:Wm(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function $m(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function eh(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const th=rm(`ts-http-runtime retryPolicy`);function nh(e,t={maxRetries:3}){let n=t.logger||th;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!Cm(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Ip;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await Gm(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function rh(e={}){return{name:`defaultRetryPolicy`,sendRequest:nh([Zm(),Qm(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const ih=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function ah(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function oh(){return{name:`formDataPolicy`,async sendRequest(e,t){if(ih&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=ah(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=sh(e.formData):await ch(e.formData,e),e.formData=void 0}return t(e)}}}function sh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function ch(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:sm({"Content-Disposition":`form-data; name="${t}"`}),body:wm(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=sm();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var lh=P(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),uh=P(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=lh(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),dh=P(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=uh()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),fh=P(((e,t)=>{let n=F(`tty`),r=F(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=F(`supports-color`);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new bf(e));return r.searchPaths.push(...lf(r.patterns)),r})}static stat(e,t,n){return Sf(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Of=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function kf(e,t){return Of(this,void 0,void 0,function*(){return yield Df.create(e,t)})}var Af=P(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),jf=P(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Mf=P(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Af(),a=jf();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Nf=P(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Pf=P(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),Ff=P(((e,t)=>{let n=jf(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Af(),{safeRe:a,t:o}=Mf(),s=Nf(),{compareIdentifiers:c}=Pf();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),If=P(((e,t)=>{let n=Ff();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Lf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Rf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),zf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Bf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Vf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).major})),Hf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).minor})),Uf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).patch})),Wf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Gf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Kf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(t,e,r)})),qf=P(((e,t)=>{let n=Gf();t.exports=(e,t)=>n(e,t,!0)})),Jf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Yf=P(((e,t)=>{let n=Jf();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Xf=P(((e,t)=>{let n=Jf();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Zf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)>0})),Qf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)<0})),$f=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)===0})),ep=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)!==0})),tp=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)>=0})),np=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)<=0})),rp=P(((e,t)=>{let n=$f(),r=ep(),i=Zf(),a=tp(),o=Qf(),s=np();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ip=P(((e,t)=>{let n=Ff(),r=If(),{safeRe:i,t:a}=Mf();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),ap=P(((e,t)=>{let n=If(),r=Af(),i=Ff(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),op=P(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),sp=P(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),cp=P(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Nf(),{safeRe:i,t:a}=Mf(),o=rp(),s=jf(),c=Ff(),l=sp()})),lp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),up=P(((e,t)=>{let n=sp();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),dp=P(((e,t)=>{let n=Ff(),r=sp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),fp=P(((e,t)=>{let n=Ff(),r=sp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),pp=P(((e,t)=>{let n=Ff(),r=sp(),i=Zf();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),mp=P(((e,t)=>{let n=sp();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),hp=P(((e,t)=>{let n=Ff(),r=cp(),{ANY:i}=r,a=sp(),o=lp(),s=Zf(),c=Qf(),l=np(),u=tp();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),gp=P(((e,t)=>{let n=hp();t.exports=(e,t,r)=>n(e,t,`>`,r)})),_p=P(((e,t)=>{let n=hp();t.exports=(e,t,r)=>n(e,t,`<`,r)})),vp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),yp=P(((e,t)=>{let n=lp(),r=Gf();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=sp(),r=cp(),{ANY:i}=r,a=lp(),o=Gf(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),xp=ke(P(((e,t)=>{let n=Mf(),r=Af(),i=Ff(),a=Pf();t.exports={parse:If(),valid:Lf(),clean:Rf(),inc:zf(),diff:Bf(),major:Vf(),minor:Hf(),patch:Uf(),prerelease:Wf(),compare:Gf(),rcompare:Kf(),compareLoose:qf(),compareBuild:Jf(),sort:Yf(),rsort:Xf(),gt:Zf(),lt:Qf(),eq:$f(),neq:ep(),gte:tp(),lte:np(),cmp:rp(),coerce:ip(),truncate:ap(),Comparator:cp(),Range:sp(),satisfies:lp(),toComparators:up(),maxSatisfying:dp(),minSatisfying:fp(),minVersion:pp(),validRange:mp(),outside:hp(),gtr:gp(),ltr:_p(),intersects:vp(),simplifyRange:yp(),subset:bp(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Sp;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Sp||={});var Cp;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(Cp||={});var wp;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(wp||={});const Tp=5e3,Ep=5e3,Dp=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Op=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kp=`cache.tar`,Ap=`manifest.txt`;var jp=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Mp=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Np(){return jp(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=u.join(n,`actions`,`temp`)}let n=u.join(t,i.randomUUID());return yield vr(n),n})}function Pp(e){return a.statSync(e).size}function Fp(e){return jp(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield kf(e.join(` +`),{implicitDescendants:!1});try{for(var c=!0,l=Mp(s.globGenerator()),d;d=yield l.next(),t=d.done,!t;c=!0){i=d.value,c=!1;let e=i,t=u.relative(o,e).replace(RegExp(`\\${u.sep}`,`g`),`/`);R(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Ip(e){return jp(this,void 0,void 0,function*(){return _.promisify(a.unlink)(e)})}function Lp(e){return jp(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),R(`Checking ${e} ${t.join(` `)}`);try{yield Dr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){R(e.message)}return n=n.trim(),R(n),n})}function Rp(){return jp(this,void 0,void 0,function*(){let e=yield Lp(`zstd`,[`--quiet`]);return R(`zstd version: ${xp.clean(e)}`),e===``?Cp.Gzip:Cp.ZstdWithoutLong})}function zp(e){return e===Cp.Gzip?Sp.Gzip:Sp.Zstd}function Bp(){return jp(this,void 0,void 0,function*(){return a.existsSync(Dp)?Dp:(yield Lp(`tar`)).toLowerCase().includes(`gnu tar`)?yr(`tar`):``})}function Vp(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Hp(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),i.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Up(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Wp=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Gp(e,...t){ye.stderr.write(`${S.format(e,...t)}${fe}`)}const Kp=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let qp,Jp=[],Yp=[];const Xp=[];Kp&&Qp(Kp);const Zp=Object.assign(e=>nm(e),{enable:Qp,enabled:$p,disable:tm,log:Gp});function Qp(e){qp=e,Jp=[],Yp=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Yp.push(e.substring(1)):Jp.push(e);for(let e of Xp)e.enabled=$p(e.namespace)}function $p(e){if(e.endsWith(`*`))return!0;for(let t of Yp)if(em(e,t))return!1;for(let t of Jp)if(em(e,t))return!0;return!1}function em(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function tm(){let e=qp||``;return Qp(``),e}function nm(e){let t=Object.assign(n,{enabled:$p(e),destroy:rm,log:Zp.log,namespace:e,extend:im});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Xp.push(t),t}function rm(){let e=Xp.indexOf(this);return e>=0?(Xp.splice(e,1),!0):!1}function im(e){let t=nm(`${this.namespace}:${e}`);return t.log=this.log,t}const am=[`verbose`,`info`,`warning`,`error`],om={verbose:400,info:300,warning:200,error:100};function sm(e,t){t.log=(...t)=>{e.log(...t)}}function cm(e){return am.includes(e)}function lm(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Zp(e.namespace);i.log=(...e)=>{Zp.log(...e)};function a(e){if(e&&!cm(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${am.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Zp.enable(n.join(`,`))}n&&(cm(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${am.join(`, `)}.`));function o(e){return!!(r&&om[e.level]<=om[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(sm(e,r),o(r)){let e=Zp.disable();Zp.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return sm(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const um=lm({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});um.logger;function dm(e){return um.createClientLogger(e)}function fm(e){return e.toLowerCase()}function*pm(e){for(let t of e.values())yield[t.name,t.value]}var mm=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(fm(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(fm(e))?.value}has(e){return this._headersMap.has(fm(e))}delete(e){this._headersMap.delete(fm(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return pm(this._headersMap)}};function hm(e){return new mm(e)}function gm(){return crypto.randomUUID()}var _m=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??hm(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||gm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function vm(e){return new _m(e)}const ym=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var bm=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!ym.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!ym.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function xm(){return bm.create()}function Sm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Cm(e){if(Sm(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const wm=C.custom,Tm=`REDACTED`,Em=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.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.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),Dm=[`api-version`];var Om=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Em.concat(e),t=Dm.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&Sm(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&Sm(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||Sm(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Tm);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Tm;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Tm;return t}};const km=new Om;var Am=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,`request`,{value:n.request,enumerable:!1}),Object.defineProperty(this,`response`,{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,wm,{value:()=>`RestError: ${this.message} \n ${km.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function jm(e){return e instanceof Am?!0:Cm(e)&&e.name===`RestError`}function Mm(e,t){return Buffer.from(e,t)}const Nm=dm(`ts-http-runtime`),Pm={};function Fm(e){return e&&typeof e.pipe==`function`}function Im(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Lm(e){return e&&typeof e.byteLength==`number`}var Rm=class extends b{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},zm=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Wp(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new Om;Nm.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Um(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new Rm(t);n.on(`error`,e=>{Nm.error(`Error in upload progress`,e)}),Fm(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Bm(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Vm(n,i):n;let l=e.onDownloadProgress;if(l){let e=new Rm(l);e.on(`error`,e=>{Nm.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Hm(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Fm(o)&&(t=Im(o));let r=Promise.resolve();Fm(s)&&(r=Im(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Nm.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?v.request(a,r):be.request(a,r);s.once(`error`,t=>{o(new Am(t.message,{code:t.code??Am.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Wp(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Fm(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Lm(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Nm.error(`Unrecognized body type`,n),o(new Am(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?v.globalAgent:(this.cachedHttpAgent||=new v.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return be.globalAgent;let t=e.tlsSettings??Pm,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Nm.info(`No cached TLS Agent exist, creating a new Agent`),r=new be.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Bm(e){let t=hm();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Vm(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=w.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=w.createInflate();return e.pipe(t),t}return e}function Hm(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new Am(`Error reading response as text: ${e.message}`,{code:Am.PARSE_ERROR}))})})}function Um(e){return e?Buffer.isBuffer(e)?e.length:Fm(e)?null:Lm(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Wm(){return new zm}function Gm(){return Wm()}function Km(e={}){let t=e.logger??Nm.info,n=new Om({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const qm=[`GET`,`HEAD`];function Jm(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Ym(r,await r(e),t,n)}}}async function Ym(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&qm.includes(a.method)||o===302&&qm.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Wp(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function eh(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const th=`Retry-After`,nh=[`retry-after-ms`,`x-ms-retry-after-ms`,th];function rh(e){if(e&&[429,503].includes(e.status))try{for(let t of nh){let n=eh(e,t);if(n===0||n)return n*(t===th?1e3:1)}let t=e.headers.get(th);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function ih(e){return Number.isFinite(rh(e))}function ah(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=rh(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function oh(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=ch(a),s=o&&e.ignoreSystemErrors,c=sh(i),l=c&&e.ignoreHttpStatusCodes;return i&&(ih(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:Qm(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function sh(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function ch(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const lh=dm(`ts-http-runtime retryPolicy`);function uh(e,t={maxRetries:3}){let n=t.logger||lh;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!jm(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Wp;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await $m(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function dh(e={}){return{name:`defaultRetryPolicy`,sendRequest:uh([ah(),oh(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const fh=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function ph(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function mh(){return{name:`formDataPolicy`,async sendRequest(e,t){if(fh&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=ph(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=hh(e.formData):await gh(e.formData,e),e.formData=void 0}return t(e)}}}function hh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function gh(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:hm({"Content-Disposition":`form-data; name="${t}"`}),body:Mm(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=hm();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var _h=P(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),vh=P(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=_h(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),yh=P(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=vh()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),bh=P(((e,t)=>{let n=F(`tty`),r=F(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=F(`supports-color`);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` `).join(` `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+` -`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),ph=P(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=dh():t.exports=fh()})),mh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(F(`http`)),a=r(F(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),hh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Agent=void 0;let a=r(F(`net`)),o=r(F(`http`)),s=F(`https`);i(mh(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` -`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),gh=P((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(ph()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r +`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),xh=P(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=yh():t.exports=bh()})),Sh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(F(`http`)),a=r(F(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),Ch=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Agent=void 0;let a=r(F(`net`)),o=r(F(`http`)),s=F(`https`);i(Sh(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` +`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),wh=P((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(xh()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r \r `);if(u===-1){n(`have not received end of HTTP headers yet...`),o();return}let d=l.slice(0,u).toString(`ascii`).split(`\r -`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),_h=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpsProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(F(`assert`)),c=i(ph()),l=hh(),u=F(`url`),d=gh(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),vh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(ph()),c=F(`events`),l=hh(),u=F(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r +`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),Th=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpsProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(F(`assert`)),c=i(xh()),l=Ch(),u=F(`url`),d=wh(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Eh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(xh()),c=F(`events`),l=Ch(),u=F(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),yh=_h(),bh=vh();const xh=[];let Sh=!1;const Ch=new Map;function wh(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Th(){if(!process)return;let e=wh(`HTTPS_PROXY`),t=wh(`ALL_PROXY`),n=wh(`HTTP_PROXY`);return e||t||n}function Eh(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Dh(){let e=wh(`NO_PROXY`);return Sh=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Oh(e){if(!e&&(e=Th(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function kh(){let e=Th();return e?new URL(e):void 0}function Ah(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function jh(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Tm.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new bh.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new yh.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Mh(e,t){Sh||xh.push(...Dh());let n=e?Ah(e):kh(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Eh(e.url,t?.customNoProxyList??xh,t?.customNoProxyList?void 0:Ch)?jh(e,r,n):e.proxySettings&&jh(e,r,Ah(e.proxySettings)),i(e)}}}function Nh(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Ph(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Fh(e){return typeof Blob<`u`&&e instanceof Blob}async function*Ih(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function Lh(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=Ih.bind(e)),e.values||=Ih.bind(e)}function Rh(e){return e instanceof ReadableStream?(Lh(e),he.fromWeb(e)):e}function zh(e){return e instanceof Uint8Array?he.from(Buffer.from(e)):Fh(e)?Rh(e.stream()):Rh(e)}async function Bh(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(zh);return he.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Vh(){return`----AzSDKFormBoundary${cm()}`}function Hh(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Uh(e){if(e instanceof Uint8Array)return e.byteLength;if(Fh(e))return e.size===-1?void 0:e.size}function Wh(e){let t=0;for(let n of e){let e=Uh(n);if(e===void 0)return;t+=e}return t}async function Gh(e,t,n){let r=[wm(`--${n}`,`utf-8`),...t.flatMap(e=>[wm(`\r -`,`utf-8`),wm(Hh(e.headers),`utf-8`),wm(`\r -`,`utf-8`),e.body,wm(`\r\n--${n}`,`utf-8`)]),wm(`--\r +`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Dh=Th(),Oh=Eh();const kh=[];let Ah=!1;const jh=new Map;function Mh(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Nh(){if(!process)return;let e=Mh(`HTTPS_PROXY`),t=Mh(`ALL_PROXY`),n=Mh(`HTTP_PROXY`);return e||t||n}function Ph(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Fh(){let e=Mh(`NO_PROXY`);return Ah=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Ih(e){if(!e&&(e=Nh(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Lh(){let e=Nh();return e?new URL(e):void 0}function Rh(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function zh(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Nm.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new Oh.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Dh.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Bh(e,t){Ah||kh.push(...Fh());let n=e?Rh(e):Lh(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Ph(e.url,t?.customNoProxyList??kh,t?.customNoProxyList?void 0:jh)?zh(e,r,n):e.proxySettings&&zh(e,r,Rh(e.proxySettings)),i(e)}}}function Vh(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Hh(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Uh(e){return typeof Blob<`u`&&e instanceof Blob}async function*Wh(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function Gh(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=Wh.bind(e)),e.values||=Wh.bind(e)}function Kh(e){return e instanceof ReadableStream?(Gh(e),_e.fromWeb(e)):e}function qh(e){return e instanceof Uint8Array?_e.from(Buffer.from(e)):Uh(e)?Kh(e.stream()):Kh(e)}async function Jh(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(qh);return _e.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Yh(){return`----AzSDKFormBoundary${gm()}`}function Xh(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Zh(e){if(e instanceof Uint8Array)return e.byteLength;if(Uh(e))return e.size===-1?void 0:e.size}function Qh(e){let t=0;for(let n of e){let e=Zh(n);if(e===void 0)return;t+=e}return t}async function $h(e,t,n){let r=[Mm(`--${n}`,`utf-8`),...t.flatMap(e=>[Mm(`\r +`,`utf-8`),Mm(Xh(e.headers),`utf-8`),Mm(`\r +`,`utf-8`),e.body,Mm(`\r\n--${n}`,`utf-8`)]),Mm(`--\r \r -`,`utf-8`)],i=Wh(r);i&&e.headers.set(`Content-Length`,i),e.body=await Bh(r)}const Kh=`multipartPolicy`,qh=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function Jh(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!qh.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function Yh(){return{name:Kh,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?Jh(n):n=Vh(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await Gh(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function Xh(){return pm()}const Zh=tm({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});Zh.logger;function Qh(e){return Zh.createClientLogger(e)}const $h=Qh(`core-rest-pipeline`);function eg(e={}){return Rm({logger:$h.info,...e})}function tg(e={}){return Bm(e)}function ng(){return`User-Agent`}async function rg(e){if(_e&&_e.versions){let t=`${le.type()} ${le.release()}; ${le.arch()}`,n=_e.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const ig=`1.22.3`;function ag(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function og(){return ng()}async function sg(e){let t=new Map;t.set(`core-rest-pipeline`,ig),await rg(t);let n=ag(t);return e?`${e} ${n}`:n}const cg=og();function lg(e={}){let t=sg(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(cg)||e.headers.set(cg,await t),n(e)}}}var ug=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function dg(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new ug(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function fg(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return dg(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function pg(e){if(hm(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function mg(e){return hm(e)}function hg(){return cm()}const gg=ih,_g=Symbol(`rawContent`);function vg(e){return typeof e[_g]==`function`}function yg(e){return vg(e)?e[_g]():e}const bg=Kh;function xg(){let e=Yh();return{name:bg,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)vg(e.body)&&(e.body=yg(e.body));return e.sendRequest(t,n)}}}function Sg(){return Hm()}function Cg(e={}){return rh(e)}function wg(){return oh()}function Tg(e){return Oh(e)}function Eg(e,t){return Mh(e,t)}function Dg(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Og(e){return Nh(e)}function kg(e){return Ph(e)}const Ag={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function jg(e={}){let t=new Mg(e.parentContext);return e.span&&(t=t.setValue(Ag.span,e.span)),e.namespace&&(t=t.setValue(Ag.namespace,e.namespace)),t}var Mg=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Ng=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Pg(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Fg(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Pg(),tracingContext:jg({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Ig(){return Ng.instrumenterImplementation||=Fg(),Ng.instrumenterImplementation}function Lg(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Ig().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(Ag.namespace)||(s=s.setValue(Ag.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(Ag.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Ig().withContext(e,t,...n)}function s(e){return Ig().parseTraceparentHeader(e)}function c(e){return Ig().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const Rg=Sm;function zg(e){return Cm(e)}function Bg(e={}){let t=sg(e.userAgentPrefix),n=new bm({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Vg();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Hg(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return Wg(s,t),t}catch(e){throw Ug(s,e),e}}}}function Vg(){try{return Lg({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:ig})}catch(e){$h.warning(`Error when creating the TracingClient: ${pg(e)}`);return}}function Hg(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){$h.warning(`Skipping creating a tracing span due to an error: ${pg(e)}`);return}}function Ug(e,t){try{e.setStatus({status:`error`,error:mg(t)?t:void 0}),zg(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){$h.warning(`Skipping tracing span processing due to an error: ${pg(e)}`)}}function Wg(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){$h.warning(`Skipping tracing span processing due to an error: ${pg(e)}`)}}function Gg(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function Kg(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=Gg(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function qg(e){let t=Xh();return gg&&(e.agent&&t.addPolicy(Og(e.agent)),e.tlsOptions&&t.addPolicy(kg(e.tlsOptions)),t.addPolicy(Eg(e.proxyOptions)),t.addPolicy(Sg())),t.addPolicy(Kg()),t.addPolicy(wg(),{beforePolicies:[bg]}),t.addPolicy(lg(e.userAgentOptions)),t.addPolicy(Dg(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(xg(),{afterPhase:`Deserialize`}),t.addPolicy(Cg(e.retryOptions),{phase:`Retry`}),t.addPolicy(Bg({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),gg&&t.addPolicy(tg(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(eg(e.loggingOptions),{afterPhase:`Sign`}),t}function Jg(){let e=Lm();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?Gg(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function Yg(e){return sm(e)}function Xg(e){return um(e)}const Zg={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Qg(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function e_(e,t){try{return[await t(e),void 0]}catch(e){if(zg(e)&&e.response)return[e.response,e];throw e}}async function t_(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function n_(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function r_(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function i_(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||$h,a={authorizeRequest:r?.authorizeRequest?.bind(r)??t_,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?$g(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await e_(e,t),n_(r)){let l=o_(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await r_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await e_(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await e_(e,t)),n_(r)&&(l=o_(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await r_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await e_(e,t))}}if(s)throw s;return r}}}function a_(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function o_(e){if(e)return a_(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function s_(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const c_=`DisableKeepAlivePolicy`;function l_(){return{name:c_,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function u_(e){return e.getOrderedPolicies().some(e=>e.name===c_)}function d_(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function f_(e){return Buffer.from(e,`base64`)}function p_(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const m_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function h_(e){return m_.test(e)}const g_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function __(e){return g_.test(e)}function v_(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function y_(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return v_({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:p_(e.parsedBody,a)})}var b_=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=R_(this,e,t,n,!!this.isXML,i)):a=P_(this,e,t,n,!!this.isXML,i):a=N_(this,e,t,n,!!this.isXML,i):a=j_(n,t):a=A_(n,t):a=M_(o,t,n):a=k_(n,e.type.allowedValues,t):a=O_(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=V_(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=H_(this,e,t,n,i)):a=U_(this,e,t,n,i):a=w_(t):a=f_(t):a=D_(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function x_(e={},t=!1){return new b_(e,t)}function S_(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function C_(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return S_(d_(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function w_(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),f_(e)}}function T_(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function E_(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function D_(e){if(e)return new Date(e*1e3)}function O_(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&__(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function k_(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function A_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=d_(t)}return t}function j_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=C_(t)}return t}function M_(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=E_(t)}else if(e.match(/^TimeSpan$/i)!==null&&!h_(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function N_(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function z_(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function B_(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function V_(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;K_(e,t)&&(t=G_(e,t,n,`serializedName`));let o=L_(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=T_(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(T_(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!B_(e,i)&&(s[e]=n[e]);return s}function H_(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function U_(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function X_(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=Z_(e,r);!t.propertyFound&&n&&(t=Z_(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=X_(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function Z_(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function sv(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function cv(e,t,n,r){let i=200<=e.status&&e.status<300;if(sv(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new Rg(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===J_.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function lv(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new Rg(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||Rg.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function uv(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===J_.Stream&&t.add(Number(n))}return t}function dv(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function fv(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=ev(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(pv(e,a,i),mv(e,a,i,t)),n(e)}}}function pv(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=X_(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,dv(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||dv(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function mv(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=X_(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=dv(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===J_.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=hv(d,t,m,e.body,a);m===J_.Sequence?e.body=r(gv(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===J_.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=X_(t,r);if(i!=null){let t=r.mapper.serializedName||dv(r);e.formData[t]=n.serializer.serialize(r.mapper,i,dv(r),a)}}}}function hv(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function gv(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function _v(e={}){let t=qg(e??{});return e.credentialOptions&&t.addPolicy(i_({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(fv(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(rv(e.deserializationOptions),{phase:`Deserialize`}),t}let vv;function yv(){return vv||=Jg(),vv}const bv={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function xv(e,t,n,r){let i=Cv(t,n,r),a=!1,o=Sv(e,i);if(t.path){let e=Sv(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),wv(e)?(o=e,a=!0):o=Tv(o,e)}let{queryParams:s,sequenceParams:c}=Ev(t,n,r);return o=Ov(o,s,c,a),o}function Sv(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function Cv(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=X_(t,i,n),o=dv(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function wv(e){return e.includes(`://`)}function Tv(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Ev(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=X_(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,dv(a));let t=a.collectionFormat?bv[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||dv(a),o)}}return{queryParams:r,sequenceParams:i}}function Dv(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Ov(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Dv(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const kv=Qh(`core-client`);var Av=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&kv.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||yv(),this.pipeline=e.pipeline||jv(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=Xg({url:xv(n,t,e,this)});r.method=t.httpMethod;let i=ev(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=uv(t));try{let e=await this.sendRequest(r),n=y_(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=y_(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function jv(e){let t=Mv(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return _v({...e,credentialOptions:n})}function Mv(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Nv={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Pv(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const Fv=async e=>{let t=Bv(e.request),n=Rv(e.response);if(n){let r=zv(n),i=Lv(e,r),a=Iv(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Nv.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Iv(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Pv(t))return t}function Lv(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Nv.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function Rv(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function zv(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Bv(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Vv=Symbol(`Original PipelineRequest`),Hv=Symbol.for(`@azure/core-client original request`);function Uv(e,t={}){let n=e[Vv],r=Yg(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=Xg({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Hv]=t.originalRequest),n}}function Wv(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:Gv(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Vv?e:i===`clone`?()=>Wv(Uv(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function Gv(e){return new qv(e.toJSON({preserveCase:!0}))}function Kv(e){return e.toLowerCase()}var qv=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[Kv(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[Kv(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[Kv(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[Kv(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nXv(await e.sendRequest(Wv(t,{createProxy:!0})))}}const ny=`:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`;ny+``,``+ny;const ry=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function iy(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` -`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!xy(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,yy(`InvalidTag`,t,Sy(e,a))}let l=my(e,a);if(l===!1)return yy(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,Sy(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=gy(u,t);if(i===!0)r=!0;else return yy(i.err.code,i.err.msg,Sy(e,n+i.err.line))}else if(s){if(!l.tagClosed)return yy(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,Sy(e,a));if(u.trim().length>0)return yy(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,Sy(e,o));if(n.length===0)return yy(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,Sy(e,o));{let t=n.pop();if(c!==t.tagName){let n=Sy(e,t.tagStartPos);return yy(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,Sy(e,o))}n.length==0&&(i=!0)}}else{let s=gy(u,t);if(s!==!0)return yy(s.err.code,s.err.msg,Sy(e,a-u.length+s.err.line));if(i===!0)return yy(`InvalidXml`,`Multiple possible root nodes found.`,Sy(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?yy(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:yy(`InvalidXml`,`Start tag expected.`,1)}function dy(e){return e===` `||e===` `||e===` -`||e===`\r`}function fy(e,t){let n=t;for(;t5&&r===`xml`)return yy(`InvalidXml`,`XML declaration allowed only at the start of the document.`,Sy(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function py(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function my(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const hy=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function gy(e,t){let n=iy(e,hy),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Ty={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Ey={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Dy={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Oy={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},ky={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Ay={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},jy={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},My={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Ny={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Py={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Fy={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Iy={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...wy,...Ty,...Ey,...Dy,...Oy,...ky,...Ay,...jy,...My,...Ny,...Py,...Fy,...Iy});const Ly={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ry={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},zy=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function By(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(zy.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Vy(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Hy=`external`,Uy=`base`;function Wy(e){return!e||e===Hy?new Set([Hy]):e===`all`?new Set([`all`]):e===Uy?new Set([Uy]):Array.isArray(e)?new Set(e):new Set([Hy])}const Gy=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Ky=new Set([9,10,13]);function qy(e){if(!e)return{xmlVersion:1,onLevel:Gy.allow,nullLevel:Gy.remove};let t=e.xmlVersion===1.1?1.1:1,n=Gy[e.onNCR]??Gy.allow,r=Gy[e.nullNCR]??Gy.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,Gy.remove)}}var Jy=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Wy(this._limit.applyLimitsTo??Hy),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Vy(Ly,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=qy(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))By(t);this._externalMap=Vy(e)}addExternalEntity(e,t){By(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Vy(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Hy);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Uy}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Ky.has(e)?Gy.remove:-1}_applyNCRAction(e,t,n){switch(e){case Gy.allow:return String.fromCodePoint(n);case Gy.remove:return``;case Gy.leave:return;case Gy.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&rsy.includes(e)?`__`+e:e,Xy={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Yy};function Zy(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(sy.some(e=>n===e.toLowerCase())||cy.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Qy(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:Qy(!0)}const $y=function(e){let t=Object.assign({},Xy,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Zy(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=Yy),t.processEntities=Qy(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let eb;eb=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var tb=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][eb]={startIndex:t})}static getMetaDataSymbol(){return eb}};const nb=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`;nb+``;const rb=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`;rb+``;const ib=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},ab=ib(nb,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),ob=ib(rb,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),sb=(e=`1.0`)=>e===`1.1`?ob:ab,cb=(e,{xmlVersion:t=`1.0`}={})=>sb(t).qName.test(e);var lb=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&db(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&db(e,`!ATTLIST`,t))t+=8;else if(a&&db(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(db(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=ub(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=ub(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const yb=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function bb(e,t,n){if(!n.eNotation)return e;let r=t.match(yb);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function xb(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function Sb(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function Cb(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function wb(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Tb=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Ob=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Db(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function kb(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Ab(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var jb=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Ib,this.parseTextData=Mb,this.resolveNameSpace=Nb,this.buildAttributesMap=Fb,this.isItStopNode=Bb,this.replaceEntitiesValue=Rb,this.readStopNodeData=Gb,this.saveTextToParentTag=zb,this.addChild=Lb,this.ignoreAttributesFn=wb(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Ly};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Ry,...Py}),this.entityDecoder=new Jy({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Ob,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Eb;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?Kb(e,s.parseTagValue,s.numberParseOptions):e}}function Nb(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Pb=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Fb(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=iy(e,Pb),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=qb(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Wb(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new tb(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Hb(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Hb(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Wb(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=qb(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Ab(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&kb(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new tb(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=qb(i.transformTagName,c,u,i));let e=new tb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new tb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new tb(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Lb(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Rb(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function zb(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Bb(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Vb(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Vb(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function Gb(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Hb(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Hb(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Hb(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Wb(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function Kb(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:vb(e,n)}else if(oy(e))return e;else return``}function qb(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=Jb(t,r),{tagName:t,tagExp:n}}function Jb(e,t){if(cy.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return sy.includes(e)?t.onDangerousProperty(e):e}const Yb=tb.getMetaDataSymbol();function Xb(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function Zb(e,t,n,r){return Qb(e,t,n,r)}function Qb(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function $b(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function ax(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function ox(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(px(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function sx(e,t,n,r,i){return!n.sanitizeName||cb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function cx(e,t){let n=``;t.format&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=gx(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=rx(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=mx(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${mx(l[`:@`],t,p,r,a)}`,g;g=p?dx(l[u],t):lx(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function ux(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=ax(e[i]),r=!0}return r?n:null}function dx(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function fx(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${ax(i)}"`}return n}function px(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const vx={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function yx(e){if(this.options=Object.assign({},vx,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,`utf-8`)],i=Qh(r);i&&e.headers.set(`Content-Length`,i),e.body=await Jh(r)}const eg=`multipartPolicy`,tg=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function ng(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!tg.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function rg(){return{name:eg,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?ng(n):n=Yh(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await $h(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function ig(){return xm()}const ag=lm({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});ag.logger;function og(e){return ag.createClientLogger(e)}const sg=og(`core-rest-pipeline`);function cg(e={}){return Km({logger:sg.info,...e})}function lg(e={}){return Jm(e)}function ug(){return`User-Agent`}async function dg(e){if(ye&&ye.versions){let t=`${de.type()} ${de.release()}; ${de.arch()}`,n=ye.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const fg=`1.22.3`;function pg(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function mg(){return ug()}async function hg(e){let t=new Map;t.set(`core-rest-pipeline`,fg),await dg(t);let n=pg(t);return e?`${e} ${n}`:n}const gg=mg();function _g(e={}){let t=hg(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(gg)||e.headers.set(gg,await t),n(e)}}}var vg=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function yg(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new vg(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function bg(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return yg(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function xg(e){if(Cm(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Sg(e){return Cm(e)}function Cg(){return gm()}const wg=fh,Tg=Symbol(`rawContent`);function Eg(e){return typeof e[Tg]==`function`}function Dg(e){return Eg(e)?e[Tg]():e}const Og=eg;function kg(){let e=rg();return{name:Og,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Eg(e.body)&&(e.body=Dg(e.body));return e.sendRequest(t,n)}}}function Ag(){return Xm()}function jg(e={}){return dh(e)}function Mg(){return mh()}function Ng(e){return Ih(e)}function Pg(e,t){return Bh(e,t)}function Fg(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Ig(e){return Vh(e)}function Lg(e){return Hh(e)}const Rg={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function zg(e={}){let t=new Bg(e.parentContext);return e.span&&(t=t.setValue(Rg.span,e.span)),e.namespace&&(t=t.setValue(Rg.namespace,e.namespace)),t}var Bg=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Vg=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Hg(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Ug(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Hg(),tracingContext:zg({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Wg(){return Vg.instrumenterImplementation||=Ug(),Vg.instrumenterImplementation}function Gg(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Wg().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(Rg.namespace)||(s=s.setValue(Rg.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(Rg.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Wg().withContext(e,t,...n)}function s(e){return Wg().parseTraceparentHeader(e)}function c(e){return Wg().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const Kg=Am;function qg(e){return jm(e)}function Jg(e={}){let t=hg(e.userAgentPrefix),n=new Om({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Yg();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Xg(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return Qg(s,t),t}catch(e){throw Zg(s,e),e}}}}function Yg(){try{return Gg({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:fg})}catch(e){sg.warning(`Error when creating the TracingClient: ${xg(e)}`);return}}function Xg(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){sg.warning(`Skipping creating a tracing span due to an error: ${xg(e)}`);return}}function Zg(e,t){try{e.setStatus({status:`error`,error:Sg(t)?t:void 0}),qg(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){sg.warning(`Skipping tracing span processing due to an error: ${xg(e)}`)}}function Qg(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){sg.warning(`Skipping tracing span processing due to an error: ${xg(e)}`)}}function $g(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function e_(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=$g(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function t_(e){let t=ig();return wg&&(e.agent&&t.addPolicy(Ig(e.agent)),e.tlsOptions&&t.addPolicy(Lg(e.tlsOptions)),t.addPolicy(Pg(e.proxyOptions)),t.addPolicy(Ag())),t.addPolicy(e_()),t.addPolicy(Mg(),{beforePolicies:[Og]}),t.addPolicy(_g(e.userAgentOptions)),t.addPolicy(Fg(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(kg(),{afterPhase:`Deserialize`}),t.addPolicy(jg(e.retryOptions),{phase:`Retry`}),t.addPolicy(Jg({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),wg&&t.addPolicy(lg(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(cg(e.loggingOptions),{afterPhase:`Sign`}),t}function n_(){let e=Gm();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?$g(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function r_(e){return hm(e)}function i_(e){return vm(e)}const a_={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function o_(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function c_(e,t){try{return[await t(e),void 0]}catch(e){if(qg(e)&&e.response)return[e.response,e];throw e}}async function l_(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function u_(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function d_(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function f_(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||sg,a={authorizeRequest:r?.authorizeRequest?.bind(r)??l_,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?s_(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await c_(e,t),u_(r)){let l=m_(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await d_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await c_(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await c_(e,t)),u_(r)&&(l=m_(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await d_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await c_(e,t))}}if(s)throw s;return r}}}function p_(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function m_(e){if(e)return p_(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function h_(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const g_=`DisableKeepAlivePolicy`;function __(){return{name:g_,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function v_(e){return e.getOrderedPolicies().some(e=>e.name===g_)}function y_(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function b_(e){return Buffer.from(e,`base64`)}function x_(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const S_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C_(e){return S_.test(e)}const w_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function T_(e){return w_.test(e)}function E_(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function D_(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return E_({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:x_(e.parsedBody,a)})}var O_=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=K_(this,e,t,n,!!this.isXML,i)):a=H_(this,e,t,n,!!this.isXML,i):a=V_(this,e,t,n,!!this.isXML,i):a=z_(n,t):a=R_(n,t):a=B_(o,t,n):a=L_(n,e.type.allowedValues,t):a=I_(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=Y_(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=X_(this,e,t,n,i)):a=Z_(this,e,t,n,i):a=M_(t):a=b_(t):a=F_(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function k_(e={},t=!1){return new O_(e,t)}function A_(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function j_(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return A_(y_(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function M_(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),b_(e)}}function N_(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function P_(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function F_(e){if(e)return new Date(e*1e3)}function I_(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&T_(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function L_(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function R_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=y_(t)}return t}function z_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=j_(t)}return t}function B_(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=P_(t)}else if(e.match(/^TimeSpan$/i)!==null&&!C_(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function V_(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function q_(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function J_(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function Y_(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;ev(e,t)&&(t=$_(e,t,n,`serializedName`));let o=G_(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=N_(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(N_(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!J_(e,i)&&(s[e]=n[e]);return s}function X_(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Z_(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function iv(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=av(e,r);!t.propertyFound&&n&&(t=av(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=iv(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function av(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function hv(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function gv(e,t,n,r){let i=200<=e.status&&e.status<300;if(hv(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new Kg(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===nv.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function _v(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new Kg(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||Kg.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function vv(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===nv.Stream&&t.add(Number(n))}return t}function yv(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function bv(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=cv(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(xv(e,a,i),Sv(e,a,i,t)),n(e)}}}function xv(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=iv(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,yv(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||yv(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Sv(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=iv(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=yv(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===nv.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=Cv(d,t,m,e.body,a);m===nv.Sequence?e.body=r(wv(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===nv.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=iv(t,r);if(i!=null){let t=r.mapper.serializedName||yv(r);e.formData[t]=n.serializer.serialize(r.mapper,i,yv(r),a)}}}}function Cv(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function wv(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function Tv(e={}){let t=t_(e??{});return e.credentialOptions&&t.addPolicy(f_({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(bv(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(dv(e.deserializationOptions),{phase:`Deserialize`}),t}let Ev;function Dv(){return Ev||=n_(),Ev}const Ov={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function kv(e,t,n,r){let i=jv(t,n,r),a=!1,o=Av(e,i);if(t.path){let e=Av(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),Mv(e)?(o=e,a=!0):o=Nv(o,e)}let{queryParams:s,sequenceParams:c}=Pv(t,n,r);return o=Iv(o,s,c,a),o}function Av(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function jv(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=iv(t,i,n),o=yv(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function Mv(e){return e.includes(`://`)}function Nv(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Pv(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=iv(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,yv(a));let t=a.collectionFormat?Ov[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||yv(a),o)}}return{queryParams:r,sequenceParams:i}}function Fv(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Iv(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Fv(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Lv=og(`core-client`);var Rv=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Lv.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Dv(),this.pipeline=e.pipeline||zv(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=i_({url:kv(n,t,e,this)});r.method=t.httpMethod;let i=cv(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=vv(t));try{let e=await this.sendRequest(r),n=D_(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=D_(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function zv(e){let t=Bv(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return Tv({...e,credentialOptions:n})}function Bv(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Vv={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Hv(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const Uv=async e=>{let t=Jv(e.request),n=Kv(e.response);if(n){let r=qv(n),i=Gv(e,r),a=Wv(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Vv.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Wv(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Hv(t))return t}function Gv(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Vv.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function Kv(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function qv(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Jv(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Yv=Symbol(`Original PipelineRequest`),Xv=Symbol.for(`@azure/core-client original request`);function Zv(e,t={}){let n=e[Yv],r=r_(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=i_({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Xv]=t.originalRequest),n}}function Qv(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:$v(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Yv?e:i===`clone`?()=>Qv(Zv(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function $v(e){return new ty(e.toJSON({preserveCase:!0}))}function ey(e){return e.toLowerCase()}var ty=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[ey(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[ey(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[ey(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[ey(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;niy(await e.sendRequest(Qv(t,{createProxy:!0})))}}const uy=`:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`;uy+``,``+uy;const dy=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function fy(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!ky(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,Dy(`InvalidTag`,t,Ay(e,a))}let l=Sy(e,a);if(l===!1)return Dy(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,Ay(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=wy(u,t);if(i===!0)r=!0;else return Dy(i.err.code,i.err.msg,Ay(e,n+i.err.line))}else if(s){if(!l.tagClosed)return Dy(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,Ay(e,a));if(u.trim().length>0)return Dy(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,Ay(e,o));if(n.length===0)return Dy(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,Ay(e,o));{let t=n.pop();if(c!==t.tagName){let n=Ay(e,t.tagStartPos);return Dy(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,Ay(e,o))}n.length==0&&(i=!0)}}else{let s=wy(u,t);if(s!==!0)return Dy(s.err.code,s.err.msg,Ay(e,a-u.length+s.err.line));if(i===!0)return Dy(`InvalidXml`,`Multiple possible root nodes found.`,Ay(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?Dy(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:Dy(`InvalidXml`,`Start tag expected.`,1)}function yy(e){return e===` `||e===` `||e===` +`||e===`\r`}function by(e,t){let n=t;for(;t5&&r===`xml`)return Dy(`InvalidXml`,`XML declaration allowed only at the start of the document.`,Ay(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function xy(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function Sy(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const Cy=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function wy(e,t){let n=fy(e,Cy),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Ny={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Py={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Fy={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Iy={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},Ly={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Ry={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},zy={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},By={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Vy={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Hy={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Uy={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Wy={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...My,...Ny,...Py,...Fy,...Iy,...Ly,...Ry,...zy,...By,...Vy,...Hy,...Uy,...Wy});const Gy={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ky={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},qy=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Jy(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(qy.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Yy(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Xy=`external`,Zy=`base`;function Qy(e){return!e||e===Xy?new Set([Xy]):e===`all`?new Set([`all`]):e===Zy?new Set([Zy]):Array.isArray(e)?new Set(e):new Set([Xy])}const $y=Object.freeze({allow:0,leave:1,remove:2,throw:3}),eb=new Set([9,10,13]);function tb(e){if(!e)return{xmlVersion:1,onLevel:$y.allow,nullLevel:$y.remove};let t=e.xmlVersion===1.1?1.1:1,n=$y[e.onNCR]??$y.allow,r=$y[e.nullNCR]??$y.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,$y.remove)}}var nb=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Qy(this._limit.applyLimitsTo??Xy),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Yy(Gy,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=tb(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Jy(t);this._externalMap=Yy(e)}addExternalEntity(e,t){Jy(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Yy(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Xy);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Zy}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!eb.has(e)?$y.remove:-1}_applyNCRAction(e,t,n){switch(e){case $y.allow:return String.fromCodePoint(n);case $y.remove:return``;case $y.leave:return;case $y.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r<$y.remove)return;let i=r===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,r);return this._applyNCRAction(i,e,n)}};const rb=e=>hy.includes(e)?`__`+e:e,ib={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:rb};function ab(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(hy.some(e=>n===e.toLowerCase())||gy.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ob(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:ob(!0)}const sb=function(e){let t=Object.assign({},ib,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&ab(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=rb),t.processEntities=ob(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let cb;cb=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var lb=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][cb]={startIndex:t})}static getMetaDataSymbol(){return cb}};const ub=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`;ub+``;const db=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`;db+``;const fb=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},pb=fb(ub,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),mb=fb(db,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),hb=(e=`1.0`)=>e===`1.1`?mb:pb,gb=(e,{xmlVersion:t=`1.0`}={})=>hb(t).qName.test(e);var _b=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&yb(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&yb(e,`!ATTLIST`,t))t+=8;else if(a&&yb(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(yb(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=vb(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=vb(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const Db=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Ob(e,t,n){if(!n.eNotation)return e;let r=t.match(Db);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function kb(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function Ab(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function jb(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Mb(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Nb=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Ib=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Fb(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Lb(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Rb(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var zb=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Wb,this.parseTextData=Bb,this.resolveNameSpace=Vb,this.buildAttributesMap=Ub,this.isItStopNode=Jb,this.replaceEntitiesValue=Kb,this.readStopNodeData=$b,this.saveTextToParentTag=qb,this.addChild=Gb,this.ignoreAttributesFn=Mb(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Gy};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Ky,...Hy}),this.entityDecoder=new nb({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Ib,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Pb;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?ex(e,s.parseTagValue,s.numberParseOptions):e}}function Vb(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Hb=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Ub(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=fy(e,Hb),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=tx(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Qb(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new lb(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Xb(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Xb(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Qb(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=tx(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Rb(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Lb(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new lb(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=tx(i.transformTagName,c,u,i));let e=new lb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new lb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new lb(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Gb(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Kb(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function qb(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Jb(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Yb(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Yb(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function $b(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Xb(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Xb(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Xb(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Qb(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function ex(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Eb(e,n)}else if(my(e))return e;else return``}function tx(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=nx(t,r),{tagName:t,tagExp:n}}function nx(e,t){if(gy.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return hy.includes(e)?t.onDangerousProperty(e):e}const rx=lb.getMetaDataSymbol();function ix(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ax(e,t,n,r){return ox(e,t,n,r)}function ox(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function sx(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function px(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function mx(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(xx(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function hx(e,t,n,r,i){return!n.sanitizeName||gb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function gx(e,t){let n=``;t.format&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=wx(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=dx(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=Sx(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${Sx(l[`:@`],t,p,r,a)}`,g;g=p?yx(l[u],t):_x(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function vx(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=px(e[i]),r=!0}return r?n:null}function yx(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function bx(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${px(i)}"`}return n}function xx(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const Ex={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Dx(e){if(this.options=Object.assign({},Ex,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e `,this.newLine=` -`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function bx(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function xx(e,t,n,r,i){return!n.sanitizeName||cb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}yx.prototype.build=function(e){if(this.options.preserveOrder)return cx(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Ob,n=bx(e,this.options);return this.j2x(e,0,t,n).val}},yx.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:xx(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=xx(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},yx.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},yx.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},yx.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=rx(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function jx(e,t={}){if(!e)throw Error(`Document is empty`);let n=Ex.validate(e);if(n!==!0)throw n;let r=new nx(kx(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Mx=Qh(`storage-blob`);var Nx=class extends y{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Px=x.constants.MAX_LENGTH;var Fx=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Px);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Nx(this.buffers,this.size)}},Ix=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new m;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Fx(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Lx;function Rx(){return Lx||=Jg(),Lx}var zx=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Bx={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},V={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function Vx(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Hx(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Ux(e){try{return new URL(e).pathname}catch{return}}function Wx(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var Kx=class extends zx{constructor(e,t){super(e,t)}async sendRequest(e){return gg?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Vx(e.url,Bx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(V.COOKIE),e.headers.remove(V.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},qx=class{create(e,t){return new Kx(e,t)}},Jx=class extends zx{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},Yx=class extends Jx{constructor(e,t){super(e,t)}},Xx=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},Zx=class extends Xx{create(e,t){return new Yx(e,t)}};const Qx=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),$x=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),eS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function tS(e,t){return nS(e,t)?-1:1}function nS(e,t){let n=[Qx,$x,eS],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,V.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,V.CONTENT_ENCODING),this.getHeaderValueToSign(e,V.CONTENT_LENGTH),this.getHeaderValueToSign(e,V.CONTENT_MD5),this.getHeaderValueToSign(e,V.CONTENT_TYPE),this.getHeaderValueToSign(e,V.DATE),this.getHeaderValueToSign(e,V.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,V.IF_MATCH),this.getHeaderValueToSign(e,V.IF_NONE_MATCH),this.getHeaderValueToSign(e,V.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,V.RANGE)].join(` +`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function Ox(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function kx(e,t,n,r,i){return!n.sanitizeName||gb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Dx.prototype.build=function(e){if(this.options.preserveOrder)return gx(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Ib,n=Ox(e,this.options);return this.j2x(e,0,t,n).val}},Dx.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:kx(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=kx(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Dx.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Dx.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Dx.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=dx(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function zx(e,t={}){if(!e)throw Error(`Document is empty`);let n=Px.validate(e);if(n!==!0)throw n;let r=new ux(Lx(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Bx=og(`storage-blob`);var Vx=class extends y{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Hx=x.constants.MAX_LENGTH;var Ux=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Hx);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Vx(this.buffers,this.size)}},Wx=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new m;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Ux(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Gx;function Kx(){return Gx||=n_(),Gx}var qx=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Jx={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},V={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function Yx(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Xx(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Zx(e){try{return new URL(e).pathname}catch{return}}function Qx(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var eS=class extends qx{constructor(e,t){super(e,t)}async sendRequest(e){return wg?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Yx(e.url,Jx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(V.COOKIE),e.headers.remove(V.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},tS=class{create(e,t){return new eS(e,t)}},nS=class extends qx{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},rS=class extends nS{constructor(e,t){super(e,t)}},iS=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},aS=class extends iS{create(e,t){return new rS(e,t)}};const oS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),sS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),cS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function lS(e,t){return uS(e,t)?-1:1}function uS(e,t){let n=[oS,sS,cS],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,V.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,V.CONTENT_ENCODING),this.getHeaderValueToSign(e,V.CONTENT_LENGTH),this.getHeaderValueToSign(e,V.CONTENT_MD5),this.getHeaderValueToSign(e,V.CONTENT_TYPE),this.getHeaderValueToSign(e,V.DATE),this.getHeaderValueToSign(e,V.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,V.IF_MATCH),this.getHeaderValueToSign(e,V.IF_NONE_MATCH),this.getHeaderValueToSign(e,V.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,V.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(V.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE));t.sort((e,t)=>tS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Ux(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=Wx(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},iS=class extends Xx{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new rS(e,t,this)}computeHMACSHA256(e){return T(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const aS=Qh(`storage-common`);var oS;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(oS||={});const sS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:oS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},cS=new ug(`The operation was aborted.`);var lS=class extends zx{retryOptions;constructor(e,t,n=sS){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:sS.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):sS.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:sS.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:sS.maxRetryDelayInMs):sS.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:sS.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:sS.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Hx(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Vx(r.url,Bx.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(aS.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(aS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return aS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return aS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return aS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return aS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(aS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case oS.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case oS.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return aS.info(`RetryPolicy: Delay for ${r}ms`),Gx(r,n,cS)}},uS=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new lS(e,t,this.retryOptions)}};function dS(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return gg?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Vx(e.url,Bx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(V.COOKIE),e.headers.delete(V.CONTENT_LENGTH),t(e))}}}function fS(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const pS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:oS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},mS=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],hS=new ug(`The operation was aborted.`);function gS(e={}){let t=e.retryPolicyType??pS.retryPolicyType,n=e.maxTries??pS.maxTries,r=e.retryDelayInMs??pS.retryDelayInMs,i=e.maxRetryDelayInMs??pS.maxRetryDelayInMs,a=e.secondaryHost??pS.secondaryHost,o=e.tryTimeoutInMs??pS.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return aS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of mS)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return aS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return aS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return aS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return aS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case oS.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case oS.FIXED:a=r;break}else a=Math.random()*1e3;return aS.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Vx(e.url,Bx.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Hx(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{aS.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(zg(e))aS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw aS.error(`RetryPolicy: Caught error, message: ${pg(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await Gx(c(a,l),e.abortSignal,hS),l++}if(d)return d;throw f??new Rg(`RetryPolicy failed without known error.`)}}}function _S(e){function t(t){t.headers.set(V.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,V.CONTENT_LANGUAGE),n(t,V.CONTENT_ENCODING),n(t,V.CONTENT_LENGTH),n(t,V.CONTENT_MD5),n(t,V.CONTENT_TYPE),n(t,V.DATE),n(t,V.IF_MODIFIED_SINCE),n(t,V.IF_MATCH),n(t,V.IF_NONE_MATCH),n(t,V.IF_UNMODIFIED_SINCE),n(t,V.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(V.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE));t.sort((e,t)=>lS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Zx(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=Qx(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},fS=class extends iS{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new dS(e,t,this)}computeHMACSHA256(e){return T(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const pS=og(`storage-common`);var mS;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(mS||={});const hS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},gS=new vg(`The operation was aborted.`);var _S=class extends qx{retryOptions;constructor(e,t,n=hS){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:hS.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):hS.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:hS.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:hS.maxRetryDelayInMs):hS.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:hS.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:hS.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Xx(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Yx(r.url,Jx.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(pS.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(pS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return pS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return pS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return pS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return pS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(pS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case mS.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case mS.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return pS.info(`RetryPolicy: Delay for ${r}ms`),$x(r,n,gS)}},vS=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new _S(e,t,this.retryOptions)}};function yS(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return wg?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Yx(e.url,Jx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(V.COOKIE),e.headers.delete(V.CONTENT_LENGTH),t(e))}}}function bS(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const xS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},SS=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],CS=new vg(`The operation was aborted.`);function wS(e={}){let t=e.retryPolicyType??xS.retryPolicyType,n=e.maxTries??xS.maxTries,r=e.retryDelayInMs??xS.retryDelayInMs,i=e.maxRetryDelayInMs??xS.maxRetryDelayInMs,a=e.secondaryHost??xS.secondaryHost,o=e.tryTimeoutInMs??xS.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return pS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of SS)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return pS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return pS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return pS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return pS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case mS.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case mS.FIXED:a=r;break}else a=Math.random()*1e3;return pS.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Yx(e.url,Jx.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Xx(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{pS.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(qg(e))pS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw pS.error(`RetryPolicy: Caught error, message: ${xg(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await $x(c(a,l),e.abortSignal,CS),l++}if(d)return d;throw f??new Kg(`RetryPolicy failed without known error.`)}}}function TS(e){function t(t){t.headers.set(V.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,V.CONTENT_LANGUAGE),n(t,V.CONTENT_ENCODING),n(t,V.CONTENT_LENGTH),n(t,V.CONTENT_MD5),n(t,V.CONTENT_TYPE),n(t,V.DATE),n(t,V.IF_MODIFIED_SINCE),n(t,V.IF_MATCH),n(t,V.IF_NONE_MATCH),n(t,V.IF_UNMODIFIED_SINCE),n(t,V.RANGE)].join(` `)+` -`+r(t)+i(t),o=T(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(V.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>tS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Ux(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=Wx(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function vS(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. -`),e}}}}var yS=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return T(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const bS=`12.31.0`,xS=`2026-02-06`,SS=5e4,CS=4*1024*1024,wS={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},TS=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),ES=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),DS=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function OS(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var kS=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function AS(e,t={}){e||=new Zx;let n=new kS([],t);return n._credential=e,n}function jS(e){let t=[FS,PS,IS,LS,RS,zS,VS];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>BS(e));return{wrappedPolicies:ey(n),afterRetry:e}}}}function MS(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?ty(t):Rx(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${bS}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=_v({...n,loggingOptions:{additionalAllowedHeaderNames:TS,additionalAllowedQueryParameters:ES,logger:Mx.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:Ax,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:jx,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(fS()),i.addPolicy(gS(n.retryOptions),{phase:`Retry`}),i.addPolicy(vS()),i.addPolicy(dS());let a=jS(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=NS(e);s_(o)?i.addPolicy(i_({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Fv}}),{phase:`Sign`}):o instanceof iS&&i.addPolicy(_S({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function NS(e){if(e._credential)return e._credential;let t=new Zx;for(let n of e.factories)if(s_(n.credential))t=n.credential;else if(PS(n))return n;return t}function PS(e){return e instanceof iS?!0:e.constructor.name===`StorageSharedKeyCredential`}function FS(e){return e instanceof Zx?!0:e.constructor.name===`AnonymousCredential`}function IS(e){return s_(e.credential)}function LS(e){return e instanceof qx?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function RS(e){return e instanceof uS?!0:e.constructor.name===`StorageRetryPolicyFactory`}function zS(e){return e.constructor.name===`TelemetryPolicyFactory`}function BS(e){return e.constructor.name===`InjectorPolicyFactory`}function VS(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var HS=Te({AccessPolicy:()=>sC,AppendBlobAppendBlockExceptionHeaders:()=>HT,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>WT,AppendBlobAppendBlockFromUrlHeaders:()=>UT,AppendBlobAppendBlockHeaders:()=>VT,AppendBlobCreateExceptionHeaders:()=>BT,AppendBlobCreateHeaders:()=>zT,AppendBlobSealExceptionHeaders:()=>KT,AppendBlobSealHeaders:()=>GT,ArrowConfiguration:()=>DC,ArrowField:()=>OC,BlobAbortCopyFromURLExceptionHeaders:()=>uT,BlobAbortCopyFromURLHeaders:()=>lT,BlobAcquireLeaseExceptionHeaders:()=>Jw,BlobAcquireLeaseHeaders:()=>qw,BlobBreakLeaseExceptionHeaders:()=>nT,BlobBreakLeaseHeaders:()=>tT,BlobChangeLeaseExceptionHeaders:()=>eT,BlobChangeLeaseHeaders:()=>$w,BlobCopyFromURLExceptionHeaders:()=>cT,BlobCopyFromURLHeaders:()=>sT,BlobCreateSnapshotExceptionHeaders:()=>iT,BlobCreateSnapshotHeaders:()=>rT,BlobDeleteExceptionHeaders:()=>Mw,BlobDeleteHeaders:()=>jw,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Hw,BlobDeleteImmutabilityPolicyHeaders:()=>Vw,BlobDownloadExceptionHeaders:()=>Ow,BlobDownloadHeaders:()=>Dw,BlobFlatListSegment:()=>lC,BlobGetAccountInfoExceptionHeaders:()=>mT,BlobGetAccountInfoHeaders:()=>pT,BlobGetPropertiesExceptionHeaders:()=>Aw,BlobGetPropertiesHeaders:()=>kw,BlobGetTagsExceptionHeaders:()=>vT,BlobGetTagsHeaders:()=>_T,BlobHierarchyListSegment:()=>mC,BlobItemInternal:()=>uC,BlobName:()=>dC,BlobPrefix:()=>hC,BlobPropertiesInternal:()=>fC,BlobQueryExceptionHeaders:()=>gT,BlobQueryHeaders:()=>hT,BlobReleaseLeaseExceptionHeaders:()=>Xw,BlobReleaseLeaseHeaders:()=>Yw,BlobRenewLeaseExceptionHeaders:()=>Qw,BlobRenewLeaseHeaders:()=>Zw,BlobServiceProperties:()=>US,BlobServiceStatistics:()=>YS,BlobSetExpiryExceptionHeaders:()=>Iw,BlobSetExpiryHeaders:()=>Fw,BlobSetHttpHeadersExceptionHeaders:()=>Rw,BlobSetHttpHeadersHeaders:()=>Lw,BlobSetImmutabilityPolicyExceptionHeaders:()=>Bw,BlobSetImmutabilityPolicyHeaders:()=>zw,BlobSetLegalHoldExceptionHeaders:()=>Ww,BlobSetLegalHoldHeaders:()=>Uw,BlobSetMetadataExceptionHeaders:()=>Kw,BlobSetMetadataHeaders:()=>Gw,BlobSetTagsExceptionHeaders:()=>bT,BlobSetTagsHeaders:()=>yT,BlobSetTierExceptionHeaders:()=>fT,BlobSetTierHeaders:()=>dT,BlobStartCopyFromURLExceptionHeaders:()=>oT,BlobStartCopyFromURLHeaders:()=>aT,BlobTag:()=>aC,BlobTags:()=>iC,BlobUndeleteExceptionHeaders:()=>Pw,BlobUndeleteHeaders:()=>Nw,Block:()=>vC,BlockBlobCommitBlockListExceptionHeaders:()=>nE,BlockBlobCommitBlockListHeaders:()=>tE,BlockBlobGetBlockListExceptionHeaders:()=>iE,BlockBlobGetBlockListHeaders:()=>rE,BlockBlobPutBlobFromUrlExceptionHeaders:()=>XT,BlockBlobPutBlobFromUrlHeaders:()=>YT,BlockBlobStageBlockExceptionHeaders:()=>QT,BlockBlobStageBlockFromURLExceptionHeaders:()=>eE,BlockBlobStageBlockFromURLHeaders:()=>$T,BlockBlobStageBlockHeaders:()=>ZT,BlockBlobUploadExceptionHeaders:()=>JT,BlockBlobUploadHeaders:()=>qT,BlockList:()=>_C,BlockLookupList:()=>gC,ClearRange:()=>xC,ContainerAcquireLeaseExceptionHeaders:()=>fw,ContainerAcquireLeaseHeaders:()=>dw,ContainerBreakLeaseExceptionHeaders:()=>vw,ContainerBreakLeaseHeaders:()=>_w,ContainerChangeLeaseExceptionHeaders:()=>bw,ContainerChangeLeaseHeaders:()=>yw,ContainerCreateExceptionHeaders:()=>KC,ContainerCreateHeaders:()=>GC,ContainerDeleteExceptionHeaders:()=>XC,ContainerDeleteHeaders:()=>YC,ContainerFilterBlobsExceptionHeaders:()=>uw,ContainerFilterBlobsHeaders:()=>lw,ContainerGetAccessPolicyExceptionHeaders:()=>ew,ContainerGetAccessPolicyHeaders:()=>$C,ContainerGetAccountInfoExceptionHeaders:()=>Ew,ContainerGetAccountInfoHeaders:()=>Tw,ContainerGetPropertiesExceptionHeaders:()=>JC,ContainerGetPropertiesHeaders:()=>qC,ContainerItem:()=>QS,ContainerListBlobFlatSegmentExceptionHeaders:()=>Sw,ContainerListBlobFlatSegmentHeaders:()=>xw,ContainerListBlobHierarchySegmentExceptionHeaders:()=>ww,ContainerListBlobHierarchySegmentHeaders:()=>Cw,ContainerProperties:()=>$S,ContainerReleaseLeaseExceptionHeaders:()=>mw,ContainerReleaseLeaseHeaders:()=>pw,ContainerRenameExceptionHeaders:()=>ow,ContainerRenameHeaders:()=>aw,ContainerRenewLeaseExceptionHeaders:()=>gw,ContainerRenewLeaseHeaders:()=>hw,ContainerRestoreExceptionHeaders:()=>iw,ContainerRestoreHeaders:()=>rw,ContainerSetAccessPolicyExceptionHeaders:()=>nw,ContainerSetAccessPolicyHeaders:()=>tw,ContainerSetMetadataExceptionHeaders:()=>QC,ContainerSetMetadataHeaders:()=>ZC,ContainerSubmitBatchExceptionHeaders:()=>cw,ContainerSubmitBatchHeaders:()=>sw,CorsRule:()=>qS,DelimitedTextConfiguration:()=>TC,FilterBlobItem:()=>rC,FilterBlobSegment:()=>nC,GeoReplication:()=>XS,JsonTextConfiguration:()=>EC,KeyInfo:()=>eC,ListBlobsFlatSegmentResponse:()=>cC,ListBlobsHierarchySegmentResponse:()=>pC,ListContainersSegmentResponse:()=>ZS,Logging:()=>WS,Metrics:()=>KS,PageBlobClearPagesExceptionHeaders:()=>ET,PageBlobClearPagesHeaders:()=>TT,PageBlobCopyIncrementalExceptionHeaders:()=>RT,PageBlobCopyIncrementalHeaders:()=>LT,PageBlobCreateExceptionHeaders:()=>ST,PageBlobCreateHeaders:()=>xT,PageBlobGetPageRangesDiffExceptionHeaders:()=>MT,PageBlobGetPageRangesDiffHeaders:()=>jT,PageBlobGetPageRangesExceptionHeaders:()=>AT,PageBlobGetPageRangesHeaders:()=>kT,PageBlobResizeExceptionHeaders:()=>PT,PageBlobResizeHeaders:()=>NT,PageBlobUpdateSequenceNumberExceptionHeaders:()=>IT,PageBlobUpdateSequenceNumberHeaders:()=>FT,PageBlobUploadPagesExceptionHeaders:()=>wT,PageBlobUploadPagesFromURLExceptionHeaders:()=>OT,PageBlobUploadPagesFromURLHeaders:()=>DT,PageBlobUploadPagesHeaders:()=>CT,PageList:()=>yC,PageRange:()=>bC,QueryFormat:()=>wC,QueryRequest:()=>SC,QuerySerialization:()=>CC,RetentionPolicy:()=>GS,ServiceFilterBlobsExceptionHeaders:()=>WC,ServiceFilterBlobsHeaders:()=>UC,ServiceGetAccountInfoExceptionHeaders:()=>BC,ServiceGetAccountInfoHeaders:()=>zC,ServiceGetPropertiesExceptionHeaders:()=>MC,ServiceGetPropertiesHeaders:()=>jC,ServiceGetStatisticsExceptionHeaders:()=>PC,ServiceGetStatisticsHeaders:()=>NC,ServiceGetUserDelegationKeyExceptionHeaders:()=>RC,ServiceGetUserDelegationKeyHeaders:()=>LC,ServiceListContainersSegmentExceptionHeaders:()=>IC,ServiceListContainersSegmentHeaders:()=>FC,ServiceSetPropertiesExceptionHeaders:()=>AC,ServiceSetPropertiesHeaders:()=>kC,ServiceSubmitBatchExceptionHeaders:()=>HC,ServiceSubmitBatchHeaders:()=>VC,SignedIdentifier:()=>oC,StaticWebsite:()=>JS,StorageError:()=>H,UserDelegationKey:()=>tC});const US={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},WS={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},GS={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},KS={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},qS={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},JS={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},H={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},YS={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},XS={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},ZS={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},QS={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},$S={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},eC={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},tC={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},nC={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},rC={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},iC={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},aC={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},oC={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},sC={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},cC={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},lC={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},uC={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},dC={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},fC={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},pC={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},mC={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},hC={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},gC={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},_C={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},vC={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},yC={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},bC={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},xC={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},SC={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},CC={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},wC={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},TC={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},EC={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},DC={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},OC={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},kC={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AC={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jC={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MC={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NC={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PC={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FC={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IC={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LC={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RC={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},cw={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},uw={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},fw={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},mw={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},gw={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_w={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},vw={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yw={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},bw={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xw={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Sw={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Cw={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ww={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Tw={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},Ew={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dw={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},Ow={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kw={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nw={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Pw={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Fw={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Iw={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Lw={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rw={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zw={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},Bw={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vw={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Hw={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uw={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},Ww={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Gw={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kw={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qw={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Jw={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yw={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Xw={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zw={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Qw={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$w={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},eT={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tT={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},nT={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rT={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iT={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aT={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oT={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},sT={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cT={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},lT={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uT={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dT={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fT={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pT={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},mT={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hT={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},gT={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_T={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vT={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yT={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bT={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xT={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ST={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},CT={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wT={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},TT={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ET={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DT={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OT={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},kT={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AT={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jT={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MT={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NT={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PT={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FT={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IT={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LT={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RT={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zT={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BT={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VT={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HT={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UT={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WT={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},GT={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},KT={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qT={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JT={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YT={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XT={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},ZT={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QT={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$T={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eE={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},tE={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nE={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rE={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iE={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},oE={parameterPath:`blobServiceProperties`,mapper:US},sE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},U={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},cE={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},lE={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},W={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},G={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},K={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},q={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},uE={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},dE={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},fE={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},pE={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},mE={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},hE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},gE={parameterPath:`keyInfo`,mapper:eC},_E={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},vE={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},yE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},bE={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xE={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},SE={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},CE={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},wE={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},TE={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},EE={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},DE={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},OE={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},kE={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},J={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Y={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},AE={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jE={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ME={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},NE={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},PE={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},FE={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},IE={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LE={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},RE={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},zE={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BE={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},VE={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},HE={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},UE={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},WE={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},GE={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},KE={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},qE={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},JE={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},YE={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},XE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},ZE={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},QE={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},$E={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},eD={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},tD={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},nD={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},rD={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},iD={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},aD={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},oD={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},sD={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},cD={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},lD={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},uD={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},dD={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},fD={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},pD={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},mD={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},hD={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},gD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},_D={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},vD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},yD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},bD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},xD={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},SD={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},CD={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},wD={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},TD={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},ED={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},DD={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},OD={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},kD={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},AD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},jD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},MD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},ND={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},PD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},FD={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},ID={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},LD={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},RD={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},zD={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},BD={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},VD={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},HD={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},UD={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},WD={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},GD={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},KD={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},qD={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},JD={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},YD={parameterPath:[`options`,`queryRequest`],mapper:SC},XD={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ZD={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},QD={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},$D={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},eO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},tO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},nO={parameterPath:[`options`,`tags`],mapper:iC},rO={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},iO={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},aO={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},oO={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},sO={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},cO={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},lO={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},uO={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},dO={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},fO={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},pO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},mO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},hO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},gO={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},_O={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},vO={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},yO={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},bO={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},xO={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},SO={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},CO={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},wO={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},TO={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},EO={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},DO={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},OO={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},kO={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},AO={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},jO={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},MO={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},NO={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},PO={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},FO={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},IO={parameterPath:`blocks`,mapper:gC},LO={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},RO={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var zO=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},VO)}getProperties(e){return this.client.sendOperationRequest({options:e},HO)}getStatistics(e){return this.client.sendOperationRequest({options:e},UO)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},WO)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},GO)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},KO)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},qO)}filterBlobs(e){return this.client.sendOperationRequest({options:e},JO)}};const BO=x_(HS,!0),VO={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:kC},default:{bodyMapper:H,headersMapper:AC}},requestBody:oE,queryParameters:[cE,lE,W],urlParameters:[U],headerParameters:[aE,sE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:BO},HO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:US,headersMapper:jC},default:{bodyMapper:H,headersMapper:MC}},queryParameters:[cE,lE,W],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:BO},UO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:YS,headersMapper:NC},default:{bodyMapper:H,headersMapper:PC}},queryParameters:[cE,W,uE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:BO},WO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:ZS,headersMapper:FC},default:{bodyMapper:H,headersMapper:IC}},queryParameters:[W,dE,fE,pE,mE,hE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:BO},GO={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:tC,headersMapper:LC},default:{bodyMapper:H,headersMapper:RC}},requestBody:gE,queryParameters:[cE,W,_E],urlParameters:[U],headerParameters:[aE,sE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:BO},KO={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:zC},default:{bodyMapper:H,headersMapper:BC}},queryParameters:[lE,W,vE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:BO},qO={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:VC},default:{bodyMapper:H,headersMapper:HC}},requestBody:yE,queryParameters:[W,bE],urlParameters:[U],headerParameters:[sE,G,K,xE,SE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:BO},JO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:nC,headersMapper:UC},default:{bodyMapper:H,headersMapper:WC}},queryParameters:[W,pE,mE,CE,wE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:BO};var YO=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},ZO)}getProperties(e){return this.client.sendOperationRequest({options:e},QO)}delete(e){return this.client.sendOperationRequest({options:e},$O)}setMetadata(e){return this.client.sendOperationRequest({options:e},ek)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},tk)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},nk)}restore(e){return this.client.sendOperationRequest({options:e},rk)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},ik)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},ak)}filterBlobs(e){return this.client.sendOperationRequest({options:e},ok)}acquireLease(e){return this.client.sendOperationRequest({options:e},sk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ck)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},lk)}breakLease(e){return this.client.sendOperationRequest({options:e},uk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},dk)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},fk)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},pk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},mk)}};const XO=x_(HS,!0),ZO={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:GC},default:{bodyMapper:H,headersMapper:KC}},queryParameters:[W,TE],urlParameters:[U],headerParameters:[G,K,q,EE,DE,OE,kE],isXML:!0,serializer:XO},QO={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:qC},default:{bodyMapper:H,headersMapper:JC}},queryParameters:[W,TE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:XO},$O={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:YC},default:{bodyMapper:H,headersMapper:XC}},queryParameters:[W,TE],urlParameters:[U],headerParameters:[G,K,q,J,Y,X],isXML:!0,serializer:XO},ek={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ZC},default:{bodyMapper:H,headersMapper:QC}},queryParameters:[W,TE,AE],urlParameters:[U],headerParameters:[G,K,q,EE,J,Y],isXML:!0,serializer:XO},tk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:$C},default:{bodyMapper:H,headersMapper:ew}},queryParameters:[W,TE,jE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:XO},nk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:tw},default:{bodyMapper:H,headersMapper:nw}},requestBody:ME,queryParameters:[W,TE,jE],urlParameters:[U],headerParameters:[aE,sE,G,K,DE,J,Y,X],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:XO},rk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:rw},default:{bodyMapper:H,headersMapper:iw}},queryParameters:[W,TE,NE],urlParameters:[U],headerParameters:[G,K,q,PE,FE],isXML:!0,serializer:XO},ik={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:aw},default:{bodyMapper:H,headersMapper:ow}},queryParameters:[W,TE,IE],urlParameters:[U],headerParameters:[G,K,q,LE,RE],isXML:!0,serializer:XO},ak={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:sw},default:{bodyMapper:H,headersMapper:cw}},requestBody:yE,queryParameters:[W,bE,TE],urlParameters:[U],headerParameters:[sE,G,K,xE,SE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:XO},ok={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:nC,headersMapper:lw},default:{bodyMapper:H,headersMapper:uw}},queryParameters:[W,pE,mE,CE,wE,TE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:XO},sk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:dw},default:{bodyMapper:H,headersMapper:fw}},queryParameters:[W,TE,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,BE,VE,HE],isXML:!0,serializer:XO},ck={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:pw},default:{bodyMapper:H,headersMapper:mw}},queryParameters:[W,TE,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,UE,WE],isXML:!0,serializer:XO},lk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:hw},default:{bodyMapper:H,headersMapper:gw}},queryParameters:[W,TE,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,WE,GE],isXML:!0,serializer:XO},uk={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:_w},default:{bodyMapper:H,headersMapper:vw}},queryParameters:[W,TE,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,KE,qE],isXML:!0,serializer:XO},dk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:yw},default:{bodyMapper:H,headersMapper:bw}},queryParameters:[W,TE,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,WE,JE,YE],isXML:!0,serializer:XO},fk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:cC,headersMapper:xw},default:{bodyMapper:H,headersMapper:Sw}},queryParameters:[W,dE,fE,pE,mE,TE,XE,ZE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:XO},pk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:pC,headersMapper:Cw},default:{bodyMapper:H,headersMapper:ww}},queryParameters:[W,dE,fE,pE,mE,TE,XE,ZE,QE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:XO},mk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Tw},default:{bodyMapper:H,headersMapper:Ew}},queryParameters:[lE,W,vE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:XO};var hk=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},_k)}getProperties(e){return this.client.sendOperationRequest({options:e},vk)}delete(e){return this.client.sendOperationRequest({options:e},yk)}undelete(e){return this.client.sendOperationRequest({options:e},bk)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},xk)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Sk)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Ck)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},wk)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Tk)}setMetadata(e){return this.client.sendOperationRequest({options:e},Ek)}acquireLease(e){return this.client.sendOperationRequest({options:e},Dk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Ok)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},kk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Ak)}breakLease(e){return this.client.sendOperationRequest({options:e},jk)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Mk)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Nk)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Pk)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},Fk)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Ik)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Lk)}query(e){return this.client.sendOperationRequest({options:e},Rk)}getTags(e){return this.client.sendOperationRequest({options:e},zk)}setTags(e){return this.client.sendOperationRequest({options:e},Bk)}};const gk=x_(HS,!0),_k={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Dw},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Dw},default:{bodyMapper:H,headersMapper:Ow}},queryParameters:[W,$E,eD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,tD,nD,rD,iD,aD,oD,sD,cD,lD],isXML:!0,serializer:gk},vk={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:kw},default:{bodyMapper:H,headersMapper:Aw}},queryParameters:[W,$E,eD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,iD,aD,oD,sD,cD,lD],isXML:!0,serializer:gk},yk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:jw},default:{bodyMapper:H,headersMapper:Mw}},queryParameters:[W,$E,eD,dD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,sD,cD,lD,uD],isXML:!0,serializer:gk},bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Nw},default:{bodyMapper:H,headersMapper:Pw}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:gk},xk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Fw},default:{bodyMapper:H,headersMapper:Iw}},queryParameters:[W,fD],urlParameters:[U],headerParameters:[G,K,q,pD,mD],isXML:!0,serializer:gk},Sk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Lw},default:{bodyMapper:H,headersMapper:Rw}},queryParameters:[lE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,sD,cD,lD,hD,gD,_D,vD,yD,bD],isXML:!0,serializer:gk},Ck={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:zw},default:{bodyMapper:H,headersMapper:Bw}},queryParameters:[W,$E,eD,xD],urlParameters:[U],headerParameters:[G,K,q,X,SD,CD],isXML:!0,serializer:gk},wk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Vw},default:{bodyMapper:H,headersMapper:Hw}},queryParameters:[W,$E,eD,xD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:gk},Tk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Uw},default:{bodyMapper:H,headersMapper:Ww}},queryParameters:[W,$E,eD,wD],urlParameters:[U],headerParameters:[G,K,q,TD],isXML:!0,serializer:gk},Ek={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Gw},default:{bodyMapper:H,headersMapper:Kw}},queryParameters:[W,AE],urlParameters:[U],headerParameters:[G,K,q,EE,J,Y,X,iD,aD,oD,sD,cD,lD,ED],isXML:!0,serializer:gk},Dk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:qw},default:{bodyMapper:H,headersMapper:Jw}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,BE,VE,HE,sD,cD,lD],isXML:!0,serializer:gk},Ok={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Yw},default:{bodyMapper:H,headersMapper:Xw}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,UE,WE,sD,cD,lD],isXML:!0,serializer:gk},kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Zw},default:{bodyMapper:H,headersMapper:Qw}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,WE,GE,sD,cD,lD],isXML:!0,serializer:gk},Ak={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$w},default:{bodyMapper:H,headersMapper:eT}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,WE,JE,YE,sD,cD,lD],isXML:!0,serializer:gk},jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:tT},default:{bodyMapper:H,headersMapper:nT}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,Y,X,KE,qE,sD,cD,lD],isXML:!0,serializer:gk},Mk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:rT},default:{bodyMapper:H,headersMapper:iT}},queryParameters:[W,DD],urlParameters:[U],headerParameters:[G,K,q,EE,J,Y,X,iD,aD,oD,sD,cD,lD,ED],isXML:!0,serializer:gk},Nk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:aT},default:{bodyMapper:H,headersMapper:oT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,EE,J,Y,X,sD,cD,lD,SD,CD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD],isXML:!0,serializer:gk},Pk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:sT},default:{bodyMapper:H,headersMapper:cT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,EE,J,Y,X,sD,cD,lD,SD,CD,ED,OD,AD,jD,MD,ND,FD,ID,RD,zD,BD,VD,HD,UD],isXML:!0,serializer:gk},Fk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:lT},default:{bodyMapper:H,headersMapper:uT}},queryParameters:[W,WD,KD],urlParameters:[U],headerParameters:[G,K,q,J,GD],isXML:!0,serializer:gk},Ik={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:dT},202:{headersMapper:dT},default:{bodyMapper:H,headersMapper:fT}},queryParameters:[W,$E,eD,qD],urlParameters:[U],headerParameters:[G,K,q,J,lD,kD,JD],isXML:!0,serializer:gk},Lk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:pT},default:{bodyMapper:H,headersMapper:mT}},queryParameters:[lE,W,vE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:gk},Rk={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:hT},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:hT},default:{bodyMapper:H,headersMapper:gT}},requestBody:YD,queryParameters:[W,$E,XD],urlParameters:[U],headerParameters:[aE,sE,G,K,J,Y,X,iD,aD,oD,sD,cD,lD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:gk},zk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:iC,headersMapper:_T},default:{bodyMapper:H,headersMapper:vT}},queryParameters:[W,$E,eD,ZD],urlParameters:[U],headerParameters:[G,K,q,J,lD,QD,$D,eO,tO],isXML:!0,serializer:gk},Bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:yT},default:{bodyMapper:H,headersMapper:bT}},requestBody:nO,queryParameters:[W,eD,ZD],urlParameters:[U],headerParameters:[aE,sE,G,K,J,lD,QD,$D,eO,tO,rO,iO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:gk};var Vk=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Uk)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Wk)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Gk)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},Kk)}getPageRanges(e){return this.client.sendOperationRequest({options:e},qk)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Jk)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},Yk)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},Xk)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Zk)}};const Hk=x_(HS,!0),Uk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:xT},default:{bodyMapper:H,headersMapper:ST}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,xE,EE,J,Y,X,iD,aD,oD,sD,cD,lD,hD,gD,_D,vD,yD,bD,SD,CD,ED,OD,ID,RD,aO,oO,sO],isXML:!0,serializer:Hk},Wk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:CT},default:{bodyMapper:H,headersMapper:wT}},requestBody:lO,queryParameters:[W,dO],urlParameters:[U],headerParameters:[G,K,xE,J,Y,X,tD,iD,aD,oD,sD,cD,lD,ED,rO,iO,cO,uO,fO,pO,mO,hO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Hk},Gk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:TT},default:{bodyMapper:H,headersMapper:ET}},queryParameters:[W,dO],urlParameters:[U],headerParameters:[G,K,q,xE,J,Y,X,tD,iD,aD,oD,sD,cD,lD,ED,pO,mO,hO,gO],isXML:!0,serializer:Hk},Kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:DT},default:{bodyMapper:H,headersMapper:OT}},queryParameters:[W,dO],urlParameters:[U],headerParameters:[G,K,q,xE,J,Y,X,iD,aD,oD,sD,cD,lD,ED,AD,jD,MD,ND,BD,VD,UD,fO,pO,mO,hO,_O,vO,yO,bO],isXML:!0,serializer:Hk},qk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:yC,headersMapper:kT},default:{bodyMapper:H,headersMapper:AT}},queryParameters:[W,pE,mE,$E,xO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,tD,sD,cD,lD],isXML:!0,serializer:Hk},Jk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:yC,headersMapper:jT},default:{bodyMapper:H,headersMapper:MT}},queryParameters:[W,pE,mE,$E,xO,SO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,tD,sD,cD,lD,CO],isXML:!0,serializer:Hk},Yk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:NT},default:{bodyMapper:H,headersMapper:PT}},queryParameters:[lE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,iD,aD,oD,sD,cD,lD,ED,oO],isXML:!0,serializer:Hk},Xk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:FT},default:{bodyMapper:H,headersMapper:IT}},queryParameters:[lE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,sD,cD,lD,sO,wO],isXML:!0,serializer:Hk},Zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:LT},default:{bodyMapper:H,headersMapper:RT}},queryParameters:[W,TO],urlParameters:[U],headerParameters:[G,K,q,Y,X,sD,cD,lD,FD],isXML:!0,serializer:Hk};var Qk=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},eA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},tA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},nA)}seal(e){return this.client.sendOperationRequest({options:e},rA)}};const $k=x_(HS,!0),eA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:zT},default:{bodyMapper:H,headersMapper:BT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,xE,EE,J,Y,X,iD,aD,oD,sD,cD,lD,hD,gD,_D,vD,yD,bD,SD,CD,ED,ID,RD,EO],isXML:!0,serializer:$k},tA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:VT},default:{bodyMapper:H,headersMapper:HT}},requestBody:lO,queryParameters:[W,DO],urlParameters:[U],headerParameters:[G,K,xE,J,Y,X,iD,aD,oD,sD,cD,lD,ED,rO,iO,cO,uO,OO,kO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:$k},nA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:UT},default:{bodyMapper:H,headersMapper:WT}},queryParameters:[W,DO],urlParameters:[U],headerParameters:[G,K,q,xE,J,Y,X,iD,aD,oD,sD,cD,lD,ED,AD,jD,MD,ND,BD,VD,UD,rO,_O,yO,OO,kO,AO],isXML:!0,serializer:$k},rA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:GT},default:{bodyMapper:H,headersMapper:KT}},queryParameters:[W,jO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,sD,cD,kO],isXML:!0,serializer:$k};var iA=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},oA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},sA)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},cA)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},lA)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},uA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},dA)}};const aA=x_(HS,!0),oA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:qT},default:{bodyMapper:H,headersMapper:JT}},requestBody:lO,queryParameters:[W],urlParameters:[U],headerParameters:[G,K,xE,EE,J,Y,X,iD,aD,oD,sD,cD,lD,hD,gD,_D,vD,yD,bD,SD,CD,ED,OD,ID,RD,rO,iO,cO,uO,MO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:aA},sA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:YT},default:{bodyMapper:H,headersMapper:XT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,xE,EE,J,Y,X,iD,aD,oD,sD,cD,lD,hD,gD,_D,vD,yD,bD,ED,OD,AD,jD,MD,ND,PD,FD,ID,BD,VD,HD,UD,rO,MO,NO],isXML:!0,serializer:aA},cA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:ZT},default:{bodyMapper:H,headersMapper:QT}},requestBody:lO,queryParameters:[W,PO,FO],urlParameters:[U],headerParameters:[G,K,xE,J,iD,aD,oD,ED,rO,iO,cO,uO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:aA},lA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:$T},default:{bodyMapper:H,headersMapper:eE}},queryParameters:[W,PO,FO],urlParameters:[U],headerParameters:[G,K,q,xE,J,iD,aD,oD,ED,AD,jD,MD,ND,BD,VD,UD,_O,yO,AO],isXML:!0,serializer:aA},uA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tE},default:{bodyMapper:H,headersMapper:nE}},requestBody:IO,queryParameters:[W,LO],urlParameters:[U],headerParameters:[aE,sE,G,K,EE,J,Y,X,iD,aD,oD,sD,cD,lD,hD,gD,_D,vD,yD,bD,SD,CD,ED,OD,ID,RD,rO,iO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:aA},dA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:_C,headersMapper:rE},default:{bodyMapper:H,headersMapper:iE}},queryParameters:[W,$E,LO,RO],urlParameters:[U],headerParameters:[G,K,q,J,lD],isXML:!0,serializer:aA};var fA=class extends Zv{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new zO(this),this.container=new YO(this),this.blob=new hk(this),this.pageBlob=new Vk(this),this.appendBlob=new Qk(this),this.blockBlob=new iA(this)}service;container;blob;pageBlob;appendBlob;blockBlob},pA=class extends fA{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function mA(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=vA(n),t.pathname=n,t.toString()}function hA(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function gA(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function _A(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=hA(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=gA(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=gA(e,`AccountName`),a=Buffer.from(gA(e,`AccountKey`),`base64`),!n){r=gA(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=gA(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=gA(e,`SharedAccessSignature`),r=gA(e,`AccountName`);if(r||=kA(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function vA(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function yA(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function bA(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function xA(e,t){return new URL(e).searchParams.get(t)??void 0}function SA(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function CA(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function wA(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function TA(e){return gg?Buffer.from(e).toString(`base64`):btoa(e)}function EA(e,t){return e.length>42&&(e=e.slice(0,42)),TA(e+DA(t.toString(),48-e.length,`0`))}function DA(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function OA(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function kA(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:AA(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function AA(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&DS.includes(e.port)}function jA(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function MA(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function NA(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function PA(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function FA(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function IA(e){return e?e.scheme+` `+e.value:void 0}function*LA(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function WA(e,t,n){return GA(e,t,n).sasQueryParameters}function GA(e,t,n){let r=e.version?e.version:xS,i=t instanceof iS?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new yS(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?QA(e,a):ZA(e,a):JA(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?XA(e,a):YA(e,a):qA(e,i);if(r>=`2015-04-05`){if(i!==void 0)return KA(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function KA(e,t){if(e=ej(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),a=t.computeHMACSHA256(i);return{sasQueryParameters:new UA(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function qA(e,t){if(e=ej(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new UA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function JA(e,t){if(e=ej(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new UA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function YA(e,t){if(e=ej(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?wA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?wA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new UA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function XA(e,t){if(e=ej(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?wA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?wA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new UA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function ZA(e,t){if(e=ej(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?wA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?wA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new UA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function QA(e,t){if(e=ej(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?zA.parse(e.permissions.toString()).toString():BA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?wA(e.startsOn,!1):``,e.expiresOn?wA(e.expiresOn,!1):``,$A(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?wA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?wA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?VA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new UA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function $A(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function ej(e){let t=e.version?e.version:xS;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var tj=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=hg(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},nj=class extends y{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new ug(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},rj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return gg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new nj(this.originalResponse.readableStreamBody,t,n,r,i)}};const ij=new Uint8Array([79,98,106,1]);var aj=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},oj;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(oj||={});var sj;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(sj||={});var cj=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case sj.NULL:case sj.BOOLEAN:case sj.INT:case sj.LONG:case sj.FLOAT:case sj.DOUBLE:case sj.BYTES:case sj.STRING:return new lj(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new dj(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case oj.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new pj(r,t.name);case oj.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new uj(t.symbols);case oj.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new fj(e.fromSchema(t.values));case oj.ARRAY:case oj.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},lj=class extends cj{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case sj.NULL:return aj.readNull();case sj.BOOLEAN:return aj.readBoolean(e,t);case sj.INT:return aj.readInt(e,t);case sj.LONG:return aj.readLong(e,t);case sj.FLOAT:return aj.readFloat(e,t);case sj.DOUBLE:return aj.readDouble(e,t);case sj.BYTES:return aj.readBytes(e,t);case sj.STRING:return aj.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},uj=class extends cj{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await aj.readInt(e,t);return this._symbols[n]}},dj=class extends cj{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await aj.readInt(e,t);return this._types[n].read(e,t)}},fj=class extends cj{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return aj.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},pj=class extends cj{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function mj(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await aj.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!mj(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await aj.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await aj.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},gj=class{};const _j=new ug(`Reading from the avro stream was aborted.`);var vj=class extends gj{_position;_readable;toUint8Array(e){return typeof e==`string`?A.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw _j;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(_j)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},yj=class extends y{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new hj(new vj(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},bj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return gg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new yj(this.originalResponse.readableStreamBody,t)}},xj;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(xj||={});var Sj;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(Sj||={});function Cj(e){if(e!==void 0)return e}function wj(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Tj;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Tj||={});function Ej(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var Dj=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},Oj=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},kj=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new Oj(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Dj(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},Aj=class extends kj{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=Pj({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return fg(this.intervalInMs)}};const jj=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Pj(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Pj(t)):(t.isCancelled=!0,Pj(t))},Mj=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return Pj(t)},Nj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function Pj(e){return{state:{...e},cancel:jj,toString:Nj,update:Mj}}function Fj(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Ij;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(Ij||={});var Lj=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Ij.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new m}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=Ij.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function zj(e,t){return new Promise((n,r)=>{let i=re.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const Bj=S.promisify(re.stat),Vj=re.createReadStream;var Hj=class e extends RA{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(OS(t))a=e,i=t;else if(gg&&t instanceof iS||t instanceof Zx||s_(t))a=e,r=n,i=AS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=AS(new Zx,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=_A(e);if(c.kind===`AccountConnString`)if(gg){let e=new iS(c.accountName,c.accountKey);a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Tg(c.proxyUri),i=AS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=AS(new Zx,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=xA(this.url,wS.Parameters.SNAPSHOT),this._versionId=xA(this.url,wS.Parameters.VERSIONID)}withSnapshot(t){return new e(bA(this.url,wS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(bA(this.url,wS.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new Uj(this.url,this.pipeline)}getBlockBlobClient(){return new Wj(this.url,this.pipeline)}getPageBlobClient(){return new Gj(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},wj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:gg?void 0:n.onProgress},range:e===0&&!t?void 0:Fj({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:FA(i.objectReplicationRules)};if(!gg)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new rj(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Fj({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return wj(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},wj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:FA(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},wj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},wj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:MA(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:NA({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new tj(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},wj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new Aj({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:IA(t.sourceAuthorization),tier:Cj(t.tier),blobTagsString:jA(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(Cj(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=CS),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await zj(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(AA(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:Cj(t.tier),blobTagsString:jA(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof iS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=WA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(CA(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof iS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return GA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=WA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(CA(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return GA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},Uj=class e extends Hj{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},OS(t))a=e,i=t;else if(gg&&t instanceof iS||t instanceof Zx||s_(t))a=e,r=n,i=AS(t,r);else if(!t&&typeof t!=`string`)a=e,i=AS(new Zx,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=_A(e);if(c.kind===`AccountConnString`)if(gg){let e=new iS(c.accountName,c.accountKey);a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Tg(c.proxyUri),i=AS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=AS(new Zx,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(bA(this.url,wS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},wj(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:jA(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},wj(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},wj(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:Fj({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:IA(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},Wj=class e extends Hj{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},OS(t))a=e,i=t;else if(gg&&t instanceof iS||t instanceof Zx||s_(t))a=e,r=n,i=AS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=AS(new Zx,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=_A(e);if(c.kind===`AccountConnString`)if(gg){let e=new iS(c.accountName,c.accountKey);a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Tg(c.proxyUri),i=AS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=AS(new Zx,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(bA(this.url,wS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(wj(t.customerProvidedKey,this.isHttps),!gg)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new bj(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:PA(t.inputTextConfiguration),outputSerialization:PA(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},wj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Cj(n.tier),blobTagsString:jA(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},wj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:IA(t.sourceAuthorization),tier:Cj(t.tier),blobTagsString:jA(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return wj(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return wj(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:Fj({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:IA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},wj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Cj(t.tier),blobTagsString:jA(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(gg){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/SS),r<4194304&&(r=CS))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${SS}`);let s=[],c=hg(),l=0,u=new Lj(n.concurrency);for(let i=0;i{let u=EA(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await Bj(e)).size;return this.uploadSeekableInternal((t,n)=>()=>Vj(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=hg(),s=0,c=[];return await new Ix(e,t,n,async(e,t)=>{let n=EA(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},Gj=class e extends Hj{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},OS(t))a=e,i=t;else if(gg&&t instanceof iS||t instanceof Zx||s_(t))a=e,r=n,i=AS(t,r);else if(!t&&typeof t!=`string`)a=e,i=AS(new Zx,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=_A(e);if(c.kind===`AccountConnString`)if(gg){let e=new iS(c.accountName,c.accountKey);a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Tg(c.proxyUri),i=AS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=yA(yA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=AS(new Zx,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(bA(this.url,wS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},wj(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Cj(t.tier),blobTagsString:jA(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},wj(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:Fj({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},wj(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,Fj({offset:t,count:r}),0,Fj({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:IA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Fj({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Ej(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Fj({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:Fj({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*LA(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Ej(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:Fj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:Fj({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*LA(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Ej(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:Fj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},Kj=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},qj=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};qj.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var Jj=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};Jj.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var Yj=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},Xj=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Zj=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Rr(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function Qj(e,t,n){return Xj(this,void 0,void 0,function*(){let r=new Hj(e),i=r.getBlockBlobClient(),a=new Zj(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),R(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new Kj(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw Lr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var $j=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function eM(e){return e?e>=200&&e<300:!1}function tM(e){return e?e>=500:!0}function nM(e){return e?[Nn.BadGateway,Nn.ServiceUnavailable,Nn.GatewayTimeout].includes(e):!1}function rM(e){return $j(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function iM(e,t,n){return $j(this,arguments,void 0,function*(e,t,n,r=2,i=_p,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!tM(l)))return c;if(l&&(u=nM(l),o=`Cache service responded with ${l}`),R(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){R(`${e} - Error is not retryable`);break}yield rM(i),s++}throw Error(`${e} failed: ${o}`)})}function aM(e,t){return $j(this,arguments,void 0,function*(e,t,n=2,r=_p){return yield iM(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof zn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function oM(e,t){return $j(this,arguments,void 0,function*(e,t,n=2,r=_p){return yield iM(e,t,e=>e.message.statusCode,n,r)})}var sM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function cM(e,t){return sM(this,void 0,void 0,function*(){yield _.promisify(me.pipeline)(e.message,t)})}var lM=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Rr(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function uM(e,t){return sM(this,void 0,void 0,function*(){let n=a.createWriteStream(t),r=new Vn(`actions/cache`),i=yield oM(`downloadCache`,()=>sM(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(vp,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${vp} ms`)}),yield cM(i,n);let o=i.message.headers[`content-length`];if(o){let e=parseInt(o),n=Ep(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else R(`Unable to validate download, no Content-Length header`)})}function dM(e,t,n){return sM(this,void 0,void 0,function*(){let r=yield a.promises.open(t,`w`),i=new Vn(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield oM(`downloadCacheMetadata`,()=>sM(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;tsM(this,void 0,void 0,function*(){return yield fM(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new lM(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>sM(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function fM(e,t,n,r){return sM(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield hM(3e4,pM(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function pM(e,t,n,r){return sM(this,void 0,void 0,function*(){let i=yield oM(`downloadCachePart`,()=>sM(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function mM(e,t,n){return sM(this,void 0,void 0,function*(){let r=new Wj(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)R(`Unable to determine content length, downloading file with http-client...`),yield uM(e,t);else{let e=Math.min(134217728,k.constants.MAX_LENGTH),o=new lM(i),s=a.openSync(t,`w`);try{o.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!o.isDone();){let l=o.segmentOffset+o.segmentSize,u=Math.min(e,i-l);o.nextSegment(u);let d=yield hM(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&a.writeFileSync(s,d)}}finally{o.stopDisplayTimer(),a.closeSync(s)}}})}const hM=(e,t)=>sM(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function gM(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Upload concurrency: ${t.uploadConcurrency}`),R(`Upload chunk size: ${t.uploadChunkSize}`),t}function _M(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Download concurrency: ${t.downloadConcurrency}`),R(`Request timeout (ms): ${t.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),R(`Lookup only: ${t.lookupOnly}`),t}function vM(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function yM(){return vM()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function bM(){let e=yM();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var xM=P(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),SM=P(((e,t)=>{t.exports={version:xM().version}}))();function CM(){return`@actions/cache-${SM.version}`}var wM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function TM(e){let t=bM();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return R(`Resource Url: ${n}`),n}function EM(e,t){return`${e};api-version=${t}`}function DM(){return{headers:{Accept:EM(`application/json`,`6.0-preview.1`)}}}function OM(){let e=new Wn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new Vn(CM(),[e],DM())}function kM(e,t,n){return wM(this,void 0,void 0,function*(){let r=OM(),i=Pp(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield aM(`getCacheEntry`,()=>wM(this,void 0,void 0,function*(){return r.getJson(TM(a))}));if(o.statusCode===204)return Fr()&&(yield AM(e[0],r,i)),null;if(!eM(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return kr(c),R(`Cache Result:`),R(JSON.stringify(s)),s})}function AM(e,t,n){return wM(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield aM(`listCache`,()=>wM(this,void 0,void 0,function*(){return t.getJson(TM(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){R(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])R(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function jM(e,t,n){return wM(this,void 0,void 0,function*(){let r=new ge(e),i=_M(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield mM(e,t,i):i.concurrentBlobDownloads?yield dM(e,t,i):yield uM(e,t):yield uM(e,t)})}function MM(e,t,n){return wM(this,void 0,void 0,function*(){let r=OM(),i={key:e,version:Pp(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield aM(`reserveCache`,()=>wM(this,void 0,void 0,function*(){return r.postJson(TM(`caches`),i)}))})}function NM(e,t){return`bytes ${e}-${t}/*`}function PM(e,t,n,r,i){return wM(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${NM(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":NM(r,i)},o=yield oM(`uploadChunk (start: ${r}, end: ${i})`,()=>wM(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!eM(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function FM(e,t,n,r){return wM(this,void 0,void 0,function*(){let i=Ep(n),o=TM(`caches/${t.toString()}`),s=a.openSync(n,`r`),c=gM(r),l=Np(`uploadConcurrency`,c.uploadConcurrency),u=Np(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];R(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>wM(this,void 0,void 0,function*(){for(;fa.createReadStream(n,{fd:s,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{a.closeSync(s)}})}function IM(e,t,n){return wM(this,void 0,void 0,function*(){let r={size:n};return yield aM(`commitCache`,()=>wM(this,void 0,void 0,function*(){return e.postJson(TM(`caches/${t.toString()}`),r)}))})}function LM(e,t,n,r){return wM(this,void 0,void 0,function*(){if(gM(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield Qj(n,t,r)}else{let n=OM();R(`Upload cache`),yield FM(n,e,t,r),R(`Commiting cache`);let i=Ep(t);Rr(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield IM(n,e,i);if(!eM(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Rr(`Cache saved successfully`)}})}var RM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),zM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),BM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),VM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),HM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),UM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=HM(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!==0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),WM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=VM(),n=UM(),r=HM(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),GM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),KM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=UM(),n=HM(),r=GM(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),qM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),JM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),YM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,`__esModule`,{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=YM();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),ZM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),QM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionTypeCheck=void 0;let t=XM(),n=ZM();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),$M=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionLongConvert=void 0;let t=XM();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),eN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonReader=void 0;let t=RM(),n=zM(),r=XM(),i=UM(),a=GM(),o=$M();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),tN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonWriter=void 0;let t=zM(),n=UM(),r=XM(),i=GM();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),nN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionScalarDefault=void 0;let t=XM(),n=$M(),r=UM();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),rN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryReader=void 0;let t=VM(),n=XM(),r=$M(),i=nN();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryWriter=void 0;let t=VM(),n=XM(),r=GM(),i=UM();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionCreate=void 0;let t=nN(),n=JM();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),oN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionEquals=void 0;let t=XM();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageType=void 0;let t=JM(),n=XM(),r=QM(),i=eN(),a=tN(),o=rN(),s=iN(),c=aN(),l=oN(),u=RM(),d=qM(),f=sN(),p=KM(),m=WM(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),lN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containsMessageType=void 0;let t=JM();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),uN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),dN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=RM();Object.defineProperty(e,`typeofJsonValue`,{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,`isJsonObject`,{enumerable:!0,get:function(){return t.isJsonObject}});var n=zM();Object.defineProperty(e,`base64decode`,{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,`base64encode`,{enumerable:!0,get:function(){return n.base64encode}});var r=BM();Object.defineProperty(e,`utf8read`,{enumerable:!0,get:function(){return r.utf8read}});var i=VM();Object.defineProperty(e,`WireType`,{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,`mergeBinaryOptions`,{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,`UnknownFieldHandler`,{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=WM();Object.defineProperty(e,`BinaryReader`,{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,`binaryReadOptions`,{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=KM();Object.defineProperty(e,`BinaryWriter`,{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,`binaryWriteOptions`,{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=UM();Object.defineProperty(e,`PbLong`,{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,`PbULong`,{enumerable:!0,get:function(){return s.PbULong}});var c=qM();Object.defineProperty(e,`jsonReadOptions`,{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,`jsonWriteOptions`,{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,`mergeJsonOptions`,{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=JM();Object.defineProperty(e,`MESSAGE_TYPE`,{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=cN();Object.defineProperty(e,`MessageType`,{enumerable:!0,get:function(){return u.MessageType}});var d=XM();Object.defineProperty(e,`ScalarType`,{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,`LongType`,{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,`RepeatType`,{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,`normalizeFieldInfo`,{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,`readFieldOptions`,{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,`readFieldOption`,{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,`readMessageOption`,{enumerable:!0,get:function(){return d.readMessageOption}});var f=QM();Object.defineProperty(e,`ReflectionTypeCheck`,{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=aN();Object.defineProperty(e,`reflectionCreate`,{enumerable:!0,get:function(){return p.reflectionCreate}});var m=nN();Object.defineProperty(e,`reflectionScalarDefault`,{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=oN();Object.defineProperty(e,`reflectionMergePartial`,{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=sN();Object.defineProperty(e,`reflectionEquals`,{enumerable:!0,get:function(){return g.reflectionEquals}});var _=rN();Object.defineProperty(e,`ReflectionBinaryReader`,{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=iN();Object.defineProperty(e,`ReflectionBinaryWriter`,{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=eN();Object.defineProperty(e,`ReflectionJsonReader`,{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=tN();Object.defineProperty(e,`ReflectionJsonWriter`,{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=lN();Object.defineProperty(e,`containsMessageType`,{enumerable:!0,get:function(){return x.containsMessageType}});var S=ZM();Object.defineProperty(e,`isOneofGroup`,{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,`setOneofValue`,{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,`getOneofValue`,{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,`clearOneofValue`,{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,`getSelectedOneofValue`,{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=uN();Object.defineProperty(e,`listEnumValues`,{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,`listEnumNames`,{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,`listEnumNumbers`,{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,`isEnumObject`,{enumerable:!0,get:function(){return C.isEnumObject}});var w=YM();Object.defineProperty(e,`lowerCamelCase`,{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=GM();Object.defineProperty(e,`assert`,{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,`assertNever`,{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,`assertInt32`,{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,`assertUInt32`,{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,`assertFloat32`,{enumerable:!0,get:function(){return T.assertFloat32}})})),fN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=dN();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),pN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceType=void 0;let t=fN();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),mN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` -`)}}})),hN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeRpcOptions=void 0;let t=dN();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),gN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),_N=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcOutputStreamController=void 0;let t=gN(),n=dN();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),vN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),yN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),bN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),xN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),SN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTransport=void 0;let n=mN(),r=dN(),i=_N(),a=hN(),o=vN(),s=yN(),c=bN(),l=xN();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),CN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=dN();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),wN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),TN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=pN();Object.defineProperty(e,`ServiceType`,{enumerable:!0,get:function(){return t.ServiceType}});var n=fN();Object.defineProperty(e,`readMethodOptions`,{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,`readMethodOption`,{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,`readServiceOption`,{enumerable:!0,get:function(){return n.readServiceOption}});var r=mN();Object.defineProperty(e,`RpcError`,{enumerable:!0,get:function(){return r.RpcError}});var i=hN();Object.defineProperty(e,`mergeRpcOptions`,{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=_N();Object.defineProperty(e,`RpcOutputStreamController`,{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=SN();Object.defineProperty(e,`TestTransport`,{enumerable:!0,get:function(){return o.TestTransport}});var s=gN();Object.defineProperty(e,`Deferred`,{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,`DeferredState`,{enumerable:!0,get:function(){return s.DeferredState}});var c=xN();Object.defineProperty(e,`DuplexStreamingCall`,{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=bN();Object.defineProperty(e,`ClientStreamingCall`,{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=yN();Object.defineProperty(e,`ServerStreamingCall`,{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=vN();Object.defineProperty(e,`UnaryCall`,{enumerable:!0,get:function(){return d.UnaryCall}});var f=CN();Object.defineProperty(e,`stackIntercept`,{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,`stackDuplexStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,`stackClientStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,`stackServerStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,`stackUnaryInterceptors`,{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=wN();Object.defineProperty(e,`ServerCallContextController`,{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=dN();const EN=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posEN}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posDN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posDN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posDN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.poskN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=AN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>jN.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=MN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>NN.fromJson(e,{ignoreUnknownFields:!0}))}};function FN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(kr(t),kr(encodeURIComponent(t)))}catch(t){R(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function IN(e){if(typeof e!=`object`||!e){R(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&FN(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&FN(e.signed_download_url)}var LN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},RN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Fp();this.baseUrl=bM(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new Vn(e,[new Wn(i)])}request(e,t,n,r){return LN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;R(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>LN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return LN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&Lr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new Yj(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&R(`Raw Body: ${r}`),e instanceof Jj||e instanceof Yj)throw e;if(qj.isNetworkErrorCode(e?.code))throw new qj(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Rr(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Nn.BadGateway,Nn.GatewayTimeout,Nn.InternalServerError,Nn.ServiceUnavailable].includes(e):!1}sleep(e){return LN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function zN(e){return new PN(new RN(CM(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var BN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const VN=process.platform===`win32`;function HN(){return BN(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Mp(),t=bp;if(e)return{path:e,type:gp.GNU};if(s(t))return{path:t,type:gp.BSD};break}case`darwin`:{let e=yield _r(`gtar`,!1);return e?{path:e,type:gp.GNU}:{path:yield _r(`tar`,!0),type:gp.BSD}}default:break}return{path:yield _r(`tar`,!0),type:gp.GNU}})}function UN(e,t,n){return BN(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=jp(t),o=`cache.tar`,s=GN(),c=e.type===gp.BSD&&t!==hp.Gzip&&VN;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--files-from`,Sp);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`);break}if(e.type===gp.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function WN(e,t){return BN(this,arguments,void 0,function*(e,t,n=``){let r,i=yield HN(),a=yield UN(i,e,t,n),o=t===`create`?yield qN(i,e):yield KN(i,e,n),s=i.type===gp.BSD&&e!==hp.Gzip&&VN;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function GN(){return process.env.GITHUB_WORKSPACE??process.cwd()}function KN(e,t,n){return BN(this,void 0,void 0,function*(){let r=e.type===gp.BSD&&t!==hp.Gzip&&VN;switch(t){case hp.Zstd:return r?[`zstd -d --long=30 --force -o`,xp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,VN?`"zstd -d --long=30"`:`unzstd --long=30`];case hp.ZstdWithoutLong:return r?[`zstd -d --force -o`,xp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,VN?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function qN(e,t){return BN(this,void 0,void 0,function*(){let n=jp(t),r=e.type===gp.BSD&&t!==hp.Gzip&&VN;switch(t){case hp.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),xp]:[`--use-compress-program`,VN?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case hp.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),xp]:[`--use-compress-program`,VN?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function JN(e,t){return BN(this,void 0,void 0,function*(){for(let n of e)try{yield Tr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function YN(e,t){return BN(this,void 0,void 0,function*(){yield JN(yield WN(t,`list`,e))})}function XN(e,t){return BN(this,void 0,void 0,function*(){yield gr(GN()),yield JN(yield WN(t,`extract`,e))})}function ZN(e,t,n){return BN(this,void 0,void 0,function*(){l(u.join(e,Sp),t.join(` -`)),yield JN(yield WN(n,`create`),e)})}var QN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},$N=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},eP=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},tP=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function nP(e){if(!e||e.length===0)throw new $N(`Path Validation Error: At least one directory or file path is required`)}function rP(e){if(e.length>512)throw new $N(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new $N(`Key Validation Error: ${e} cannot contain commas.`)}function iP(e,t,n,r){return QN(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=yM();switch(R(`Cache service version: ${a}`),nP(e),a){case`v2`:return yield oP(e,t,n,r,i);default:return yield aP(e,t,n,r,i)}})}function aP(e,t,n,r){return QN(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new $N(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)rP(e);let o=yield Ap(),s=``;try{let t=yield kM(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Rr(`Lookup only - skipping download`),t.cacheKey;s=u.join(yield Tp(),jp(o)),R(`Archive Path: ${s}`),yield jM(t.archiveLocation,s,r),Fr()&&(yield YN(s,o));let n=Ep(s);return Rr(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield XN(s,o),Rr(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===$N.name)throw e;t instanceof zn&&typeof t.statusCode==`number`&&t.statusCode>=500?Ir(`Failed to restore: ${e.message}`):Lr(`Failed to restore: ${e.message}`)}finally{try{yield Op(s)}catch(e){R(`Failed to delete archive: ${e}`)}}})}function oP(e,t,n,r){return QN(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new $N(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)rP(e);let o=``;try{let s=zN(),c=yield Ap(),l={key:t,restoreKeys:n,version:Pp(e,c,i)},d=yield s.GetCacheEntryDownloadURL(l);if(!d.ok){R(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===d.matchedKey?Rr(`Cache hit for: ${d.matchedKey}`):Rr(`Cache hit for restore-key: ${d.matchedKey}`),r?.lookupOnly)return Rr(`Lookup only - skipping download`),d.matchedKey;o=u.join(yield Tp(),jp(c)),R(`Archive path: ${o}`),R(`Starting download of archive to: ${o}`),yield jM(d.signedDownloadUrl,o,r);let f=Ep(o);return Rr(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),Fr()&&(yield YN(o,c)),yield XN(o,c),Rr(`Cache restored successfully`),d.matchedKey}catch(e){let t=e;if(t.name===$N.name)throw e;t instanceof zn&&typeof t.statusCode==`number`&&t.statusCode>=500?Ir(`Failed to restore: ${e.message}`):Lr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Op(o))}catch(e){R(`Failed to delete archive: ${e}`)}}})}function sP(e,t,n){return QN(this,arguments,void 0,function*(e,t,n,r=!1){let i=yM();switch(R(`Cache service version: ${i}`),nP(e),rP(t),i){case`v2`:return yield lP(e,t,n,r);default:return yield cP(e,t,n,r)}})}function cP(e,t,n){return QN(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Ap(),a=-1,o=yield Dp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Tp(),c=u.join(s,jp(i));R(`Archive Path: ${c}`);try{yield ZN(s,o,i),Fr()&&(yield YN(c,i));let l=Ep(c);if(R(`File Size: ${l}`),l>10737418240&&!vM())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);R(`Reserving Cache`);let u=yield MM(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new eP(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);R(`Saving Cache (ID: ${a})`),yield LM(a,c,``,n)}catch(e){let t=e;if(t.name===$N.name)throw e;t.name===eP.name?Rr(`Failed to save: ${t.message}`):t instanceof zn&&typeof t.statusCode==`number`&&t.statusCode>=500?Ir(`Failed to save: ${t.message}`):Lr(`Failed to save: ${t.message}`)}finally{try{yield Op(c)}catch(e){R(`Failed to delete archive: ${e}`)}}return a})}function lP(e,t,n){return QN(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Ap(),a=zN(),o=-1,s=yield Dp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Tp(),l=u.join(c,jp(i));R(`Archive Path: ${l}`);try{yield ZN(c,s,i),Fr()&&(yield YN(l,i));let u=Ep(l);R(`File Size: ${u}`),n.archiveSizeBytes=u,R(`Reserving Cache`);let d=Pp(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&Lr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw R(`Failed to reserve cache: ${e}`),new eP(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${l}`),yield LM(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(R(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new tP(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===$N.name)throw e;t.name===eP.name?Rr(`Failed to save: ${t.message}`):t.name===tP.name?Lr(t.message):t instanceof zn&&typeof t.statusCode==`number`&&t.statusCode>=500?Ir(`Failed to save: ${t.message}`):Lr(`Failed to save: ${t.message}`)}finally{try{yield Op(l)}catch(e){R(`Failed to delete archive: ${e}`)}}return o})}function uP(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,R(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,R(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,R(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,R(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,R(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const dP=process.platform===`win32`;function fP(e){if(e=_P(e),dP&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=u.dirname(e);return dP&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=_P(t)),t}function pP(e,t){if(h(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),h(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),mP(t))return t;if(dP){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(gP(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return h(mP(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||dP&&e.endsWith(`\\`)||(e+=u.sep),e+t}function mP(e){return h(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=gP(e),dP?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function hP(e){return h(e,`isRooted parameter 'itemPath' must not be empty`),e=gP(e),dP?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function gP(e){return e||=``,dP?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function _P(e){return e?(e=gP(e),!e.endsWith(u.sep)||e===u.sep||dP&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var vP;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(vP||={});const yP=process.platform===`win32`;function bP(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=yP?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=yP?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=fP(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=fP(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function xP(e,t){let n=vP.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function SP(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const CP=(e,t,n)=>{let r=e instanceof RegExp?wP(e,n):e,i=t instanceof RegExp?wP(t,n):t,a=r!==null&&i!=null&&TP(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},wP=(e,t)=>{let n=t.match(e);return n?n[0]:null},TP=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},EP=`\0SLASH`+Math.random()+`\0`,DP=`\0OPEN`+Math.random()+`\0`,OP=`\0CLOSE`+Math.random()+`\0`,kP=`\0COMMA`+Math.random()+`\0`,AP=`\0PERIOD`+Math.random()+`\0`,jP=new RegExp(EP,`g`),MP=new RegExp(DP,`g`),NP=new RegExp(OP,`g`),PP=new RegExp(kP,`g`),FP=new RegExp(AP,`g`),IP=/\\\\/g,LP=/\\{/g,RP=/\\}/g,zP=/\\,/g,BP=/\\\./g;function VP(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function HP(e){return e.replace(IP,EP).replace(LP,DP).replace(RP,OP).replace(zP,kP).replace(BP,AP)}function UP(e){return e.replace(jP,`\\`).replace(MP,`{`).replace(NP,`}`).replace(PP,`,`).replace(FP,`.`)}function WP(e){if(!e)return[``];let t=[],n=CP(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=WP(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function GP(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),XP(HP(e),n,!0).map(UP)}function KP(e){return`{`+e+`}`}function qP(e){return/^-?0\d/.test(e)}function JP(e,t){return e<=t}function YP(e,t){return e>=t}function XP(e,t,n){let r=[],i=CP(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?XP(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+OP+i.post,XP(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=WP(i.body),d.length===1&&d[0]!==void 0&&(d=XP(d[0],t,!1).map(KP),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=VP(d[0]),t=VP(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(VP(d[2])),1):1,i=JP;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},QP={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},$P=e=>e.replace(/[[\]\\-]/g,`\\$&`),eF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),tF=e=>e.join(``),nF=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push($P(d)+`-`+$P(t)):t===d&&r.push($P(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push($P(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push($P(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var iF;const aF=new Set([`!`,`?`,`+`,`*`,`@`]),oF=e=>aF.has(e),sF=e=>oF(e.type),cF=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),lF=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),uF=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),dF=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),fF=`(?!\\.)`,pF=new Set([`[`,`.`]),mF=new Set([`..`,`.`]),hF=new Set(`().*{}+?[]^$\\!`),gF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),_F=`[^/]`,vF=_F+`*?`,yF=_F+`+?`;let bF=0;var xF=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++bF;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?iF.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&mF.has(this.#r[0]))){let n=pF,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?fF:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,rF(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,rF(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?fF:``)+yF;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?fF:``)+vF+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,rF(i),this.#t=!!this.#t,this.#n]}#x(){if(sF(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),CF=(e,t,n={})=>(ZP(t),!n.nocomment&&t.charAt(0)===`#`?!1:new ZF(t,n).match(e)),wF=/^\*+([^+@!?*[(]*)$/,TF=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),EF=e=>t=>t.endsWith(e),DF=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),OF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),kF=/^\*+\.\*+$/,AF=e=>!e.startsWith(`.`)&&e.includes(`.`),jF=e=>e!==`.`&&e!==`..`&&e.includes(`.`),MF=/^\.\*+$/,NF=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),PF=/^\*+$/,FF=e=>e.length!==0&&!e.startsWith(`.`),IF=e=>e.length!==0&&e!==`.`&&e!==`..`,LF=/^\?+([^+@!?*[(]*)?$/,RF=([e,t=``])=>{let n=HF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},zF=([e,t=``])=>{let n=UF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},BF=([e,t=``])=>{let n=UF([e]);return t?e=>n(e)&&e.endsWith(t):n},VF=([e,t=``])=>{let n=HF([e]);return t?e=>n(e)&&e.endsWith(t):n},HF=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},UF=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},WF=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,GF={win32:{sep:`\\`},posix:{sep:`/`}};CF.sep=WF===`win32`?GF.win32.sep:GF.posix.sep;const KF=Symbol(`globstar **`);CF.GLOBSTAR=KF,CF.filter=(e,t={})=>n=>CF(n,e,t);const qF=(e,t={})=>Object.assign({},e,t);CF.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return CF;let t=CF;return Object.assign((n,r,i={})=>t(n,r,qF(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,qF(e,n))}static defaults(n){return t.defaults(qF(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,qF(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,qF(e,r))}},unescape:(n,r={})=>t.unescape(n,qF(e,r)),escape:(n,r={})=>t.escape(n,qF(e,r)),filter:(n,r={})=>t.filter(n,qF(e,r)),defaults:n=>t.defaults(qF(e,n)),makeRe:(n,r={})=>t.makeRe(n,qF(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,qF(e,r)),match:(n,r,i={})=>t.match(n,r,qF(e,i)),sep:t.sep,GLOBSTAR:KF})};const JF=(e,t={})=>(ZP(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:GP(e,{max:t.braceExpandMax}));CF.braceExpand=JF,CF.makeRe=(e,t={})=>new ZF(e,t).makeRe(),CF.match=(e,t,n={})=>{let r=new ZF(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const YF=/[?*]|[+@!]\(.*?\)|\[|\]/,XF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var ZF=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){ZP(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||WF,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!YF.test(e[2]))&&!YF.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(KF)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(KF,i),o=t.lastIndexOf(KF),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?XF(e):e===KF?KF:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==KF||a===KF||(a===void 0?i!==void 0&&i!==KF?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==KF&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=KF))});let i=t.filter(e=>e!==KF);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return CF.defaults(e).Minimatch}};CF.AST=xF,CF.Minimatch=ZF,CF.escape=SF,CF.unescape=rF;const QF=process.platform===`win32`;var $F=class{constructor(e){if(this.segments=[],typeof e==`string`)if(h(e,`Parameter 'itemPath' must not be empty`),e=_P(e),!hP(e))this.segments=e.split(u.sep);else{let t=e,n=fP(t);for(;n!==t;){let e=u.basename(t);this.segments.unshift(e),t=n,n=fP(t)}this.segments.unshift(t)}else{h(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new $F(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),eI?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:eI,nocomment:!0,noext:!0,nonegate:!0};a=eI?a.replace(/\\/g,`/`):a,this.minimatch=new ZF(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=gP(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=_P(e),this.minimatch.match(e)?this.trailingSeparator?vP.Directory:vP.All:vP.None}partialMatch(e){return e=_P(e),fP(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(eI?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(eI?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new $F(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!hP(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=gP(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(mP(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(eI&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=pP(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(eI&&(n===`\\`||n.match(/^\\[^\\]/))){let t=pP(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=pP(e.globEscape(process.cwd()),n);return gP(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},nI=class{constructor(e,t){this.path=e,this.level=t}},rI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},iI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},aI=function(e){return this instanceof aI?(this.v=e,this):new aI(e)},oI=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof aI?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const sI=process.platform===`win32`;var cI=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=uP(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return rI(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=iI(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return oI(this,arguments,function*(){let t=uP(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new tI(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of bP(n)){R(`Search path '${e}'`);try{yield aI(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new nI(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=xP(n,o.path),c=!!s||SP(n,o.path);if(!s&&!c)continue;let l=yield aI(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&vP.Directory&&t.matchDirectories)yield yield aI(o.path);else if(!c)continue;let e=o.level+1,n=(yield aI(a.promises.readdir(o.path))).map(t=>new nI(u.join(o.path,t),e));r.push(...n.reverse())}else s&vP.File&&(yield yield aI(o.path))}})}static create(t,n){return rI(this,void 0,void 0,function*(){let r=new e(n);sI&&(t=t.replace(/\r\n/g,` +`+r(t)+i(t),o=T(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(V.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>lS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Zx(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=Qx(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function ES(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. +`),e}}}}var DS=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return T(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const OS=`12.31.0`,kS=`2026-02-06`,AS=5e4,jS=4*1024*1024,MS={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},NS=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),PS=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),FS=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function IS(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var LS=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function RS(e,t={}){e||=new aS;let n=new LS([],t);return n._credential=e,n}function zS(e){let t=[US,HS,WS,GS,KS,qS,YS];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>JS(e));return{wrappedPolicies:cy(n),afterRetry:e}}}}function BS(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?ly(t):Kx(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${OS}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=Tv({...n,loggingOptions:{additionalAllowedHeaderNames:NS,additionalAllowedQueryParameters:PS,logger:Bx.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:Rx,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:zx,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(bS()),i.addPolicy(wS(n.retryOptions),{phase:`Retry`}),i.addPolicy(ES()),i.addPolicy(yS());let a=zS(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=VS(e);h_(o)?i.addPolicy(f_({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Uv}}),{phase:`Sign`}):o instanceof fS&&i.addPolicy(TS({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function VS(e){if(e._credential)return e._credential;let t=new aS;for(let n of e.factories)if(h_(n.credential))t=n.credential;else if(HS(n))return n;return t}function HS(e){return e instanceof fS?!0:e.constructor.name===`StorageSharedKeyCredential`}function US(e){return e instanceof aS?!0:e.constructor.name===`AnonymousCredential`}function WS(e){return h_(e.credential)}function GS(e){return e instanceof tS?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function KS(e){return e instanceof vS?!0:e.constructor.name===`StorageRetryPolicyFactory`}function qS(e){return e.constructor.name===`TelemetryPolicyFactory`}function JS(e){return e.constructor.name===`InjectorPolicyFactory`}function YS(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var XS=De({AccessPolicy:()=>hC,AppendBlobAppendBlockExceptionHeaders:()=>XT,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>QT,AppendBlobAppendBlockFromUrlHeaders:()=>ZT,AppendBlobAppendBlockHeaders:()=>YT,AppendBlobCreateExceptionHeaders:()=>JT,AppendBlobCreateHeaders:()=>qT,AppendBlobSealExceptionHeaders:()=>eE,AppendBlobSealHeaders:()=>$T,ArrowConfiguration:()=>FC,ArrowField:()=>IC,BlobAbortCopyFromURLExceptionHeaders:()=>vT,BlobAbortCopyFromURLHeaders:()=>_T,BlobAcquireLeaseExceptionHeaders:()=>nT,BlobAcquireLeaseHeaders:()=>tT,BlobBreakLeaseExceptionHeaders:()=>uT,BlobBreakLeaseHeaders:()=>lT,BlobChangeLeaseExceptionHeaders:()=>cT,BlobChangeLeaseHeaders:()=>sT,BlobCopyFromURLExceptionHeaders:()=>gT,BlobCopyFromURLHeaders:()=>hT,BlobCreateSnapshotExceptionHeaders:()=>fT,BlobCreateSnapshotHeaders:()=>dT,BlobDeleteExceptionHeaders:()=>Bw,BlobDeleteHeaders:()=>zw,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Xw,BlobDeleteImmutabilityPolicyHeaders:()=>Yw,BlobDownloadExceptionHeaders:()=>Iw,BlobDownloadHeaders:()=>Fw,BlobFlatListSegment:()=>_C,BlobGetAccountInfoExceptionHeaders:()=>ST,BlobGetAccountInfoHeaders:()=>xT,BlobGetPropertiesExceptionHeaders:()=>Rw,BlobGetPropertiesHeaders:()=>Lw,BlobGetTagsExceptionHeaders:()=>ET,BlobGetTagsHeaders:()=>TT,BlobHierarchyListSegment:()=>SC,BlobItemInternal:()=>vC,BlobName:()=>yC,BlobPrefix:()=>CC,BlobPropertiesInternal:()=>bC,BlobQueryExceptionHeaders:()=>wT,BlobQueryHeaders:()=>CT,BlobReleaseLeaseExceptionHeaders:()=>iT,BlobReleaseLeaseHeaders:()=>rT,BlobRenewLeaseExceptionHeaders:()=>oT,BlobRenewLeaseHeaders:()=>aT,BlobServiceProperties:()=>ZS,BlobServiceStatistics:()=>rC,BlobSetExpiryExceptionHeaders:()=>Ww,BlobSetExpiryHeaders:()=>Uw,BlobSetHttpHeadersExceptionHeaders:()=>Kw,BlobSetHttpHeadersHeaders:()=>Gw,BlobSetImmutabilityPolicyExceptionHeaders:()=>Jw,BlobSetImmutabilityPolicyHeaders:()=>qw,BlobSetLegalHoldExceptionHeaders:()=>Qw,BlobSetLegalHoldHeaders:()=>Zw,BlobSetMetadataExceptionHeaders:()=>eT,BlobSetMetadataHeaders:()=>$w,BlobSetTagsExceptionHeaders:()=>OT,BlobSetTagsHeaders:()=>DT,BlobSetTierExceptionHeaders:()=>bT,BlobSetTierHeaders:()=>yT,BlobStartCopyFromURLExceptionHeaders:()=>mT,BlobStartCopyFromURLHeaders:()=>pT,BlobTag:()=>pC,BlobTags:()=>fC,BlobUndeleteExceptionHeaders:()=>Hw,BlobUndeleteHeaders:()=>Vw,Block:()=>EC,BlockBlobCommitBlockListExceptionHeaders:()=>uE,BlockBlobCommitBlockListHeaders:()=>lE,BlockBlobGetBlockListExceptionHeaders:()=>fE,BlockBlobGetBlockListHeaders:()=>dE,BlockBlobPutBlobFromUrlExceptionHeaders:()=>iE,BlockBlobPutBlobFromUrlHeaders:()=>rE,BlockBlobStageBlockExceptionHeaders:()=>oE,BlockBlobStageBlockFromURLExceptionHeaders:()=>cE,BlockBlobStageBlockFromURLHeaders:()=>sE,BlockBlobStageBlockHeaders:()=>aE,BlockBlobUploadExceptionHeaders:()=>nE,BlockBlobUploadHeaders:()=>tE,BlockList:()=>TC,BlockLookupList:()=>wC,ClearRange:()=>kC,ContainerAcquireLeaseExceptionHeaders:()=>bw,ContainerAcquireLeaseHeaders:()=>yw,ContainerBreakLeaseExceptionHeaders:()=>Ew,ContainerBreakLeaseHeaders:()=>Tw,ContainerChangeLeaseExceptionHeaders:()=>Ow,ContainerChangeLeaseHeaders:()=>Dw,ContainerCreateExceptionHeaders:()=>ew,ContainerCreateHeaders:()=>$C,ContainerDeleteExceptionHeaders:()=>iw,ContainerDeleteHeaders:()=>rw,ContainerFilterBlobsExceptionHeaders:()=>vw,ContainerFilterBlobsHeaders:()=>_w,ContainerGetAccessPolicyExceptionHeaders:()=>cw,ContainerGetAccessPolicyHeaders:()=>sw,ContainerGetAccountInfoExceptionHeaders:()=>Pw,ContainerGetAccountInfoHeaders:()=>Nw,ContainerGetPropertiesExceptionHeaders:()=>nw,ContainerGetPropertiesHeaders:()=>tw,ContainerItem:()=>oC,ContainerListBlobFlatSegmentExceptionHeaders:()=>Aw,ContainerListBlobFlatSegmentHeaders:()=>kw,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Mw,ContainerListBlobHierarchySegmentHeaders:()=>jw,ContainerProperties:()=>sC,ContainerReleaseLeaseExceptionHeaders:()=>Sw,ContainerReleaseLeaseHeaders:()=>xw,ContainerRenameExceptionHeaders:()=>mw,ContainerRenameHeaders:()=>pw,ContainerRenewLeaseExceptionHeaders:()=>ww,ContainerRenewLeaseHeaders:()=>Cw,ContainerRestoreExceptionHeaders:()=>fw,ContainerRestoreHeaders:()=>dw,ContainerSetAccessPolicyExceptionHeaders:()=>uw,ContainerSetAccessPolicyHeaders:()=>lw,ContainerSetMetadataExceptionHeaders:()=>ow,ContainerSetMetadataHeaders:()=>aw,ContainerSubmitBatchExceptionHeaders:()=>gw,ContainerSubmitBatchHeaders:()=>hw,CorsRule:()=>tC,DelimitedTextConfiguration:()=>NC,FilterBlobItem:()=>dC,FilterBlobSegment:()=>uC,GeoReplication:()=>iC,JsonTextConfiguration:()=>PC,KeyInfo:()=>cC,ListBlobsFlatSegmentResponse:()=>gC,ListBlobsHierarchySegmentResponse:()=>xC,ListContainersSegmentResponse:()=>aC,Logging:()=>QS,Metrics:()=>eC,PageBlobClearPagesExceptionHeaders:()=>PT,PageBlobClearPagesHeaders:()=>NT,PageBlobCopyIncrementalExceptionHeaders:()=>KT,PageBlobCopyIncrementalHeaders:()=>GT,PageBlobCreateExceptionHeaders:()=>AT,PageBlobCreateHeaders:()=>kT,PageBlobGetPageRangesDiffExceptionHeaders:()=>BT,PageBlobGetPageRangesDiffHeaders:()=>zT,PageBlobGetPageRangesExceptionHeaders:()=>RT,PageBlobGetPageRangesHeaders:()=>LT,PageBlobResizeExceptionHeaders:()=>HT,PageBlobResizeHeaders:()=>VT,PageBlobUpdateSequenceNumberExceptionHeaders:()=>WT,PageBlobUpdateSequenceNumberHeaders:()=>UT,PageBlobUploadPagesExceptionHeaders:()=>MT,PageBlobUploadPagesFromURLExceptionHeaders:()=>IT,PageBlobUploadPagesFromURLHeaders:()=>FT,PageBlobUploadPagesHeaders:()=>jT,PageList:()=>DC,PageRange:()=>OC,QueryFormat:()=>MC,QueryRequest:()=>AC,QuerySerialization:()=>jC,RetentionPolicy:()=>$S,ServiceFilterBlobsExceptionHeaders:()=>QC,ServiceFilterBlobsHeaders:()=>ZC,ServiceGetAccountInfoExceptionHeaders:()=>JC,ServiceGetAccountInfoHeaders:()=>qC,ServiceGetPropertiesExceptionHeaders:()=>BC,ServiceGetPropertiesHeaders:()=>zC,ServiceGetStatisticsExceptionHeaders:()=>HC,ServiceGetStatisticsHeaders:()=>VC,ServiceGetUserDelegationKeyExceptionHeaders:()=>KC,ServiceGetUserDelegationKeyHeaders:()=>GC,ServiceListContainersSegmentExceptionHeaders:()=>WC,ServiceListContainersSegmentHeaders:()=>UC,ServiceSetPropertiesExceptionHeaders:()=>RC,ServiceSetPropertiesHeaders:()=>LC,ServiceSubmitBatchExceptionHeaders:()=>XC,ServiceSubmitBatchHeaders:()=>YC,SignedIdentifier:()=>mC,StaticWebsite:()=>nC,StorageError:()=>H,UserDelegationKey:()=>lC});const ZS={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},QS={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},$S={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},eC={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},tC={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},nC={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},H={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},rC={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},iC={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},aC={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},oC={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},sC={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},cC={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},lC={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},uC={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},dC={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},fC={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},pC={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},mC={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},hC={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},gC={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},_C={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},vC={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},yC={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},bC={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},xC={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},SC={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},CC={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},wC={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},TC={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},EC={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},DC={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},OC={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},kC={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},AC={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},jC={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},MC={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},NC={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},PC={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},FC={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},IC={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},LC={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RC={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cw={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},gw={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_w={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},vw={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yw={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},bw={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xw={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Sw={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Cw={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},ww={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Tw={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ew={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dw={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ow={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kw={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nw={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},Pw={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Fw={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},Iw={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Lw={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rw={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zw={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bw={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vw={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hw={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uw={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ww={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Gw={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kw={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qw={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},Jw={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yw={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Xw={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zw={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},Qw={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$w={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eT={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tT={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},nT={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rT={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},iT={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aT={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},oT={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sT={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},cT={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lT={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},uT={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dT={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fT={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pT={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mT={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},hT={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gT={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},_T={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vT={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yT={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bT={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xT={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},ST={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},CT={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},wT={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},TT={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ET={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DT={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OT={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kT={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AT={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jT={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MT={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NT={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PT={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FT={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IT={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},LT={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RT={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zT={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BT={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VT={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HT={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UT={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WT={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GT={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KT={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qT={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JT={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YT={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XT={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZT={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QT={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},$T={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},eE={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tE={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nE={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rE={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iE={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},aE={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oE={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sE={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cE={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},lE={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uE={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dE={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fE={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},mE={parameterPath:`blobServiceProperties`,mapper:ZS},hE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},U={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},gE={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},_E={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},W={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},G={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},K={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},q={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},vE={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},yE={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bE={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},xE={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},SE={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},CE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},wE={parameterPath:`keyInfo`,mapper:cC},TE={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},EE={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},DE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},OE={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},kE={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},AE={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},jE={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ME={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},NE={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},PE={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},FE={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},IE={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},LE={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},J={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Y={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},RE={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},zE={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BE={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},VE={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},HE={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},UE={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},WE={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},GE={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},KE={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},qE={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},JE={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},YE={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},XE={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},ZE={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},QE={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},$E={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},eD={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},tD={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},nD={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},rD={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},iD={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},aD={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},oD={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},sD={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},cD={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},lD={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},uD={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},dD={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},fD={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},pD={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},mD={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},hD={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},gD={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},_D={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},vD={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},yD={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},bD={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xD={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},SD={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},CD={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},wD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},TD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},ED={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},DD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},OD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},kD={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},AD={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},jD={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},MD={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ND={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},PD={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},FD={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ID={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},LD={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},RD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},zD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},BD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},VD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},HD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},UD={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},WD={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},GD={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},KD={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},qD={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},JD={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},YD={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},XD={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},ZD={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},QD={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},$D={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},eO={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},tO={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},nO={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},rO={parameterPath:[`options`,`queryRequest`],mapper:AC},iO={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},aO={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},oO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},sO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},cO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},lO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},uO={parameterPath:[`options`,`tags`],mapper:fC},dO={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},fO={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},pO={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},mO={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},hO={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},gO={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},_O={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},vO={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},yO={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bO={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},xO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},SO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},CO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},wO={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},TO={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},EO={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},DO={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},OO={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},kO={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},AO={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},jO={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},MO={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},NO={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},PO={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},FO={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},IO={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},LO={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},RO={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},zO={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BO={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},VO={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},HO={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},UO={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},WO={parameterPath:`blocks`,mapper:wC},GO={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KO={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var qO=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},YO)}getProperties(e){return this.client.sendOperationRequest({options:e},XO)}getStatistics(e){return this.client.sendOperationRequest({options:e},ZO)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},QO)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},$O)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ek)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},tk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},nk)}};const JO=k_(XS,!0),YO={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:LC},default:{bodyMapper:H,headersMapper:RC}},requestBody:mE,queryParameters:[gE,_E,W],urlParameters:[U],headerParameters:[pE,hE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:JO},XO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:ZS,headersMapper:zC},default:{bodyMapper:H,headersMapper:BC}},queryParameters:[gE,_E,W],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},ZO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:rC,headersMapper:VC},default:{bodyMapper:H,headersMapper:HC}},queryParameters:[gE,W,vE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},QO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:aC,headersMapper:UC},default:{bodyMapper:H,headersMapper:WC}},queryParameters:[W,yE,bE,xE,SE,CE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},$O={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:lC,headersMapper:GC},default:{bodyMapper:H,headersMapper:KC}},requestBody:wE,queryParameters:[gE,W,TE],urlParameters:[U],headerParameters:[pE,hE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:JO},ek={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:qC},default:{bodyMapper:H,headersMapper:JC}},queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},tk={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:YC},default:{bodyMapper:H,headersMapper:XC}},requestBody:DE,queryParameters:[W,OE],urlParameters:[U],headerParameters:[hE,G,K,kE,AE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:JO},nk={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:uC,headersMapper:ZC},default:{bodyMapper:H,headersMapper:QC}},queryParameters:[W,xE,SE,jE,ME],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO};var rk=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},ak)}getProperties(e){return this.client.sendOperationRequest({options:e},ok)}delete(e){return this.client.sendOperationRequest({options:e},sk)}setMetadata(e){return this.client.sendOperationRequest({options:e},ck)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},lk)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},uk)}restore(e){return this.client.sendOperationRequest({options:e},dk)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},fk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},pk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},mk)}acquireLease(e){return this.client.sendOperationRequest({options:e},hk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},gk)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},_k)}breakLease(e){return this.client.sendOperationRequest({options:e},vk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},yk)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},bk)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},xk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Sk)}};const ik=k_(XS,!0),ak={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:$C},default:{bodyMapper:H,headersMapper:ew}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q,PE,FE,IE,LE],isXML:!0,serializer:ik},ok={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:tw},default:{bodyMapper:H,headersMapper:nw}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ik},sk={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:rw},default:{bodyMapper:H,headersMapper:iw}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q,J,Y,X],isXML:!0,serializer:ik},ck={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:aw},default:{bodyMapper:H,headersMapper:ow}},queryParameters:[W,NE,RE],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y],isXML:!0,serializer:ik},lk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:sw},default:{bodyMapper:H,headersMapper:cw}},queryParameters:[W,NE,zE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ik},uk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:lw},default:{bodyMapper:H,headersMapper:uw}},requestBody:BE,queryParameters:[W,NE,zE],urlParameters:[U],headerParameters:[pE,hE,G,K,FE,J,Y,X],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ik},dk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:dw},default:{bodyMapper:H,headersMapper:fw}},queryParameters:[W,NE,VE],urlParameters:[U],headerParameters:[G,K,q,HE,UE],isXML:!0,serializer:ik},fk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:pw},default:{bodyMapper:H,headersMapper:mw}},queryParameters:[W,NE,WE],urlParameters:[U],headerParameters:[G,K,q,GE,KE],isXML:!0,serializer:ik},pk={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:hw},default:{bodyMapper:H,headersMapper:gw}},requestBody:DE,queryParameters:[W,OE,NE],urlParameters:[U],headerParameters:[hE,G,K,kE,AE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ik},mk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:uC,headersMapper:_w},default:{bodyMapper:H,headersMapper:vw}},queryParameters:[W,xE,SE,jE,ME,NE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik},hk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:yw},default:{bodyMapper:H,headersMapper:bw}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,JE,YE,XE],isXML:!0,serializer:ik},gk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:xw},default:{bodyMapper:H,headersMapper:Sw}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,ZE,QE],isXML:!0,serializer:ik},_k={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Cw},default:{bodyMapper:H,headersMapper:ww}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E],isXML:!0,serializer:ik},vk={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:Tw},default:{bodyMapper:H,headersMapper:Ew}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,eD,tD],isXML:!0,serializer:ik},yk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Dw},default:{bodyMapper:H,headersMapper:Ow}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,nD,rD],isXML:!0,serializer:ik},bk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:gC,headersMapper:kw},default:{bodyMapper:H,headersMapper:Aw}},queryParameters:[W,yE,bE,xE,SE,NE,iD,aD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik},xk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:xC,headersMapper:jw},default:{bodyMapper:H,headersMapper:Mw}},queryParameters:[W,yE,bE,xE,SE,NE,iD,aD,oD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik},Sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Nw},default:{bodyMapper:H,headersMapper:Pw}},queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik};var Ck=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Tk)}getProperties(e){return this.client.sendOperationRequest({options:e},Ek)}delete(e){return this.client.sendOperationRequest({options:e},Dk)}undelete(e){return this.client.sendOperationRequest({options:e},Ok)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},kk)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Ak)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},jk)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Mk)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Nk)}setMetadata(e){return this.client.sendOperationRequest({options:e},Pk)}acquireLease(e){return this.client.sendOperationRequest({options:e},Fk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Ik)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Lk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Rk)}breakLease(e){return this.client.sendOperationRequest({options:e},zk)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Bk)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Vk)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Hk)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},Uk)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Wk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Gk)}query(e){return this.client.sendOperationRequest({options:e},Kk)}getTags(e){return this.client.sendOperationRequest({options:e},qk)}setTags(e){return this.client.sendOperationRequest({options:e},Jk)}};const wk=k_(XS,!0),Tk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Fw},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Fw},default:{bodyMapper:H,headersMapper:Iw}},queryParameters:[W,sD,cD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,lD,uD,dD,fD,pD,mD,hD,gD,_D],isXML:!0,serializer:wk},Ek={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:Lw},default:{bodyMapper:H,headersMapper:Rw}},queryParameters:[W,sD,cD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,fD,pD,mD,hD,gD,_D],isXML:!0,serializer:wk},Dk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:zw},default:{bodyMapper:H,headersMapper:Bw}},queryParameters:[W,sD,cD,yD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,_D,vD],isXML:!0,serializer:wk},Ok={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Vw},default:{bodyMapper:H,headersMapper:Hw}},queryParameters:[W,VE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:wk},kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Uw},default:{bodyMapper:H,headersMapper:Ww}},queryParameters:[W,bD],urlParameters:[U],headerParameters:[G,K,q,xD,SD],isXML:!0,serializer:wk},Ak={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Gw},default:{bodyMapper:H,headersMapper:Kw}},queryParameters:[_E,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,_D,CD,wD,TD,ED,DD,OD],isXML:!0,serializer:wk},jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:qw},default:{bodyMapper:H,headersMapper:Jw}},queryParameters:[W,sD,cD,kD],urlParameters:[U],headerParameters:[G,K,q,X,AD,jD],isXML:!0,serializer:wk},Mk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Yw},default:{bodyMapper:H,headersMapper:Xw}},queryParameters:[W,sD,cD,kD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:wk},Nk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Zw},default:{bodyMapper:H,headersMapper:Qw}},queryParameters:[W,sD,cD,MD],urlParameters:[U],headerParameters:[G,K,q,ND],isXML:!0,serializer:wk},Pk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$w},default:{bodyMapper:H,headersMapper:eT}},queryParameters:[W,RE],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,fD,pD,mD,hD,gD,_D,PD],isXML:!0,serializer:wk},Fk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tT},default:{bodyMapper:H,headersMapper:nT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,JE,YE,XE,hD,gD,_D],isXML:!0,serializer:wk},Ik={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:rT},default:{bodyMapper:H,headersMapper:iT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,ZE,QE,hD,gD,_D],isXML:!0,serializer:wk},Lk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:aT},default:{bodyMapper:H,headersMapper:oT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E,hD,gD,_D],isXML:!0,serializer:wk},Rk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:sT},default:{bodyMapper:H,headersMapper:cT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,nD,rD,hD,gD,_D],isXML:!0,serializer:wk},zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:lT},default:{bodyMapper:H,headersMapper:uT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,eD,tD,hD,gD,_D],isXML:!0,serializer:wk},Bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:dT},default:{bodyMapper:H,headersMapper:fT}},queryParameters:[W,FD],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,fD,pD,mD,hD,gD,_D,PD],isXML:!0,serializer:wk},Vk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:pT},default:{bodyMapper:H,headersMapper:mT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,hD,gD,_D,AD,jD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD],isXML:!0,serializer:wk},Hk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:hT},default:{bodyMapper:H,headersMapper:gT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,hD,gD,_D,AD,jD,PD,ID,RD,zD,BD,VD,UD,WD,KD,qD,JD,YD,XD,ZD],isXML:!0,serializer:wk},Uk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:_T},default:{bodyMapper:H,headersMapper:vT}},queryParameters:[W,QD,eO],urlParameters:[U],headerParameters:[G,K,q,J,$D],isXML:!0,serializer:wk},Wk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:yT},202:{headersMapper:yT},default:{bodyMapper:H,headersMapper:bT}},queryParameters:[W,sD,cD,tO],urlParameters:[U],headerParameters:[G,K,q,J,_D,LD,nO],isXML:!0,serializer:wk},Gk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:xT},default:{bodyMapper:H,headersMapper:ST}},queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:wk},Kk={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CT},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CT},default:{bodyMapper:H,headersMapper:wT}},requestBody:rO,queryParameters:[W,sD,iO],urlParameters:[U],headerParameters:[pE,hE,G,K,J,Y,X,fD,pD,mD,hD,gD,_D],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:wk},qk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:fC,headersMapper:TT},default:{bodyMapper:H,headersMapper:ET}},queryParameters:[W,sD,cD,aO],urlParameters:[U],headerParameters:[G,K,q,J,_D,oO,sO,cO,lO],isXML:!0,serializer:wk},Jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:DT},default:{bodyMapper:H,headersMapper:OT}},requestBody:uO,queryParameters:[W,cD,aO],urlParameters:[U],headerParameters:[pE,hE,G,K,J,_D,oO,sO,cO,lO,dO,fO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:wk};var Yk=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Zk)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Qk)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},$k)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},eA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},tA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},nA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},rA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},iA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},aA)}};const Xk=k_(XS,!0),Zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:kT},default:{bodyMapper:H,headersMapper:AT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,ID,WD,KD,pO,mO,hO],isXML:!0,serializer:Xk},Qk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:jT},default:{bodyMapper:H,headersMapper:MT}},requestBody:_O,queryParameters:[W,yO],urlParameters:[U],headerParameters:[G,K,kE,J,Y,X,lD,fD,pD,mD,hD,gD,_D,PD,dO,fO,gO,vO,bO,xO,SO,CO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Xk},$k={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:NT},default:{bodyMapper:H,headersMapper:PT}},queryParameters:[W,yO],urlParameters:[U],headerParameters:[G,K,q,kE,J,Y,X,lD,fD,pD,mD,hD,gD,_D,PD,xO,SO,CO,wO],isXML:!0,serializer:Xk},eA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:FT},default:{bodyMapper:H,headersMapper:IT}},queryParameters:[W,yO],urlParameters:[U],headerParameters:[G,K,q,kE,J,Y,X,fD,pD,mD,hD,gD,_D,PD,RD,zD,BD,VD,JD,YD,ZD,bO,xO,SO,CO,TO,EO,DO,OO],isXML:!0,serializer:Xk},tA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:DC,headersMapper:LT},default:{bodyMapper:H,headersMapper:RT}},queryParameters:[W,xE,SE,sD,kO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,lD,hD,gD,_D],isXML:!0,serializer:Xk},nA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:DC,headersMapper:zT},default:{bodyMapper:H,headersMapper:BT}},queryParameters:[W,xE,SE,sD,kO,AO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,lD,hD,gD,_D,jO],isXML:!0,serializer:Xk},rA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:VT},default:{bodyMapper:H,headersMapper:HT}},queryParameters:[_E,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,fD,pD,mD,hD,gD,_D,PD,mO],isXML:!0,serializer:Xk},iA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:UT},default:{bodyMapper:H,headersMapper:WT}},queryParameters:[_E,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,_D,hO,MO],isXML:!0,serializer:Xk},aA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:GT},default:{bodyMapper:H,headersMapper:KT}},queryParameters:[W,NO],urlParameters:[U],headerParameters:[G,K,q,Y,X,hD,gD,_D,UD],isXML:!0,serializer:Xk};var oA=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},cA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},lA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},uA)}seal(e){return this.client.sendOperationRequest({options:e},dA)}};const sA=k_(XS,!0),cA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:qT},default:{bodyMapper:H,headersMapper:JT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,WD,KD,PO],isXML:!0,serializer:sA},lA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:YT},default:{bodyMapper:H,headersMapper:XT}},requestBody:_O,queryParameters:[W,FO],urlParameters:[U],headerParameters:[G,K,kE,J,Y,X,fD,pD,mD,hD,gD,_D,PD,dO,fO,gO,vO,IO,LO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:sA},uA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:ZT},default:{bodyMapper:H,headersMapper:QT}},queryParameters:[W,FO],urlParameters:[U],headerParameters:[G,K,q,kE,J,Y,X,fD,pD,mD,hD,gD,_D,PD,RD,zD,BD,VD,JD,YD,ZD,dO,TO,DO,IO,LO,RO],isXML:!0,serializer:sA},dA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$T},default:{bodyMapper:H,headersMapper:eE}},queryParameters:[W,zO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,LO],isXML:!0,serializer:sA};var fA=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},mA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},hA)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},gA)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},_A)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},vA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},yA)}};const pA=k_(XS,!0),mA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tE},default:{bodyMapper:H,headersMapper:nE}},requestBody:_O,queryParameters:[W],urlParameters:[U],headerParameters:[G,K,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,ID,WD,KD,dO,fO,gO,vO,BO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:pA},hA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:rE},default:{bodyMapper:H,headersMapper:iE}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,PD,ID,RD,zD,BD,VD,HD,UD,WD,JD,YD,XD,ZD,dO,BO,VO],isXML:!0,serializer:pA},gA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:aE},default:{bodyMapper:H,headersMapper:oE}},requestBody:_O,queryParameters:[W,HO,UO],urlParameters:[U],headerParameters:[G,K,kE,J,fD,pD,mD,PD,dO,fO,gO,vO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:pA},_A={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:sE},default:{bodyMapper:H,headersMapper:cE}},queryParameters:[W,HO,UO],urlParameters:[U],headerParameters:[G,K,q,kE,J,fD,pD,mD,PD,RD,zD,BD,VD,JD,YD,ZD,TO,DO,RO],isXML:!0,serializer:pA},vA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:lE},default:{bodyMapper:H,headersMapper:uE}},requestBody:WO,queryParameters:[W,GO],urlParameters:[U],headerParameters:[pE,hE,G,K,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,ID,WD,KD,dO,fO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:pA},yA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:TC,headersMapper:dE},default:{bodyMapper:H,headersMapper:fE}},queryParameters:[W,sD,GO,KO],urlParameters:[U],headerParameters:[G,K,q,J,_D],isXML:!0,serializer:pA};var bA=class extends ay{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new qO(this),this.container=new rk(this),this.blob=new Ck(this),this.pageBlob=new Yk(this),this.appendBlob=new oA(this),this.blockBlob=new fA(this)}service;container;blob;pageBlob;appendBlob;blockBlob},xA=class extends bA{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function SA(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=EA(n),t.pathname=n,t.toString()}function CA(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function wA(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function TA(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=CA(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=wA(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=wA(e,`AccountName`),a=Buffer.from(wA(e,`AccountKey`),`base64`),!n){r=wA(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=wA(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=wA(e,`SharedAccessSignature`),r=wA(e,`AccountName`);if(r||=LA(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function EA(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function DA(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function OA(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function kA(e,t){return new URL(e).searchParams.get(t)??void 0}function AA(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function jA(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function MA(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function NA(e){return wg?Buffer.from(e).toString(`base64`):btoa(e)}function PA(e,t){return e.length>42&&(e=e.slice(0,42)),NA(e+FA(t.toString(),48-e.length,`0`))}function FA(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function IA(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function LA(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:RA(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function RA(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&FS.includes(e.port)}function zA(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function BA(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function VA(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function HA(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function UA(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function WA(e){return e?e.scheme+` `+e.value:void 0}function*GA(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function QA(e,t,n){return $A(e,t,n).sasQueryParameters}function $A(e,t,n){let r=e.version?e.version:kS,i=t instanceof fS?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new DS(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?oj(e,a):aj(e,a):nj(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?ij(e,a):rj(e,a):tj(e,i);if(r>=`2015-04-05`){if(i!==void 0)return ej(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function ej(e,t){if(e=cj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),a=t.computeHMACSHA256(i);return{sasQueryParameters:new ZA(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function tj(e,t){if(e=cj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function nj(e,t){if(e=cj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function rj(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function ij(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function aj(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function oj(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function sj(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function cj(e){let t=e.version?e.version:kS;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var lj=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=Cg(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},uj=class extends y{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new vg(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},dj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return wg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new uj(this.originalResponse.readableStreamBody,t,n,r,i)}};const fj=new Uint8Array([79,98,106,1]);var pj=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},mj;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(mj||={});var hj;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(hj||={});var gj=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case hj.NULL:case hj.BOOLEAN:case hj.INT:case hj.LONG:case hj.FLOAT:case hj.DOUBLE:case hj.BYTES:case hj.STRING:return new _j(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new yj(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case mj.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new xj(r,t.name);case mj.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new vj(t.symbols);case mj.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new bj(e.fromSchema(t.values));case mj.ARRAY:case mj.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},_j=class extends gj{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case hj.NULL:return pj.readNull();case hj.BOOLEAN:return pj.readBoolean(e,t);case hj.INT:return pj.readInt(e,t);case hj.LONG:return pj.readLong(e,t);case hj.FLOAT:return pj.readFloat(e,t);case hj.DOUBLE:return pj.readDouble(e,t);case hj.BYTES:return pj.readBytes(e,t);case hj.STRING:return pj.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},vj=class extends gj{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await pj.readInt(e,t);return this._symbols[n]}},yj=class extends gj{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await pj.readInt(e,t);return this._types[n].read(e,t)}},bj=class extends gj{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return pj.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},xj=class extends gj{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Sj(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await pj.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Sj(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await pj.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await pj.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},wj=class{};const Tj=new vg(`Reading from the avro stream was aborted.`);var Ej=class extends wj{_position;_readable;toUint8Array(e){return typeof e==`string`?A.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw Tj;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(Tj)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},Dj=class extends y{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new Cj(new Ej(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},Oj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return wg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new Dj(this.originalResponse.readableStreamBody,t)}},kj;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(kj||={});var Aj;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(Aj||={});function jj(e){if(e!==void 0)return e}function Mj(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Nj;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Nj||={});function Pj(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var Fj=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},Ij=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},Lj=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new Ij(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Fj(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},Rj=class extends Lj{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=Hj({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return bg(this.intervalInMs)}};const zj=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Hj(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Hj(t)):(t.isCancelled=!0,Hj(t))},Bj=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return Hj(t)},Vj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function Hj(e){return{state:{...e},cancel:zj,toString:Vj,update:Bj}}function Uj(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Wj;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(Wj||={});var Gj=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Wj.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new m}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=Wj.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function qj(e,t){return new Promise((n,r)=>{let i=re.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const Jj=S.promisify(re.stat),Yj=re.createReadStream;var Xj=class e extends KA{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=kA(this.url,MS.Parameters.SNAPSHOT),this._versionId=kA(this.url,MS.Parameters.VERSIONID)}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(OA(this.url,MS.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new Zj(this.url,this.pipeline)}getBlockBlobClient(){return new Qj(this.url,this.pipeline)}getPageBlobClient(){return new $j(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Mj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:wg?void 0:n.onProgress},range:e===0&&!t?void 0:Uj({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:UA(i.objectReplicationRules)};if(!wg)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new dj(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Uj({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return Mj(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},Mj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:UA(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:BA(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:VA({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new lj(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Mj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new Rj({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:WA(t.sourceAuthorization),tier:jj(t.tier),blobTagsString:zA(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(jj(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=jS),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await qj(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(RA(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:jj(t.tier),blobTagsString:zA(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof fS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=QA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(jA(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof fS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return $A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=QA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(jA(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return $A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},Zj=class e extends Xj{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Mj(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:zA(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},Mj(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Mj(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:Uj({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:WA(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},Qj=class e extends Xj{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(Mj(t.customerProvidedKey,this.isHttps),!wg)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new Oj(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:HA(t.inputTextConfiguration),outputSerialization:HA(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},Mj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:jj(n.tier),blobTagsString:zA(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:WA(t.sourceAuthorization),tier:jj(t.tier),blobTagsString:zA(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return Mj(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return Mj(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:Uj({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:WA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:jj(t.tier),blobTagsString:zA(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(wg){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/AS),r<4194304&&(r=jS))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${AS}`);let s=[],c=Cg(),l=0,u=new Gj(n.concurrency);for(let i=0;i{let u=PA(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await Jj(e)).size;return this.uploadSeekableInternal((t,n)=>()=>Yj(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=Cg(),s=0,c=[];return await new Wx(e,t,n,async(e,t)=>{let n=PA(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},$j=class e extends Xj{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:jj(t.tier),blobTagsString:zA(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},Mj(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:Uj({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Mj(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,Uj({offset:t,count:r}),0,Uj({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:WA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Uj({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Pj(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Uj({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:Uj({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*GA(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Pj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:Uj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:Uj({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*GA(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Pj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:Uj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},eM=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},tM=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};tM.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var nM=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};nM.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var rM=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},iM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},aM=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function oM(e,t,n){return iM(this,void 0,void 0,function*(){let r=new Xj(e),i=r.getBlockBlobClient(),a=new aM(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),R(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new eM(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw zr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var sM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function cM(e){return e?e>=200&&e<300:!1}function lM(e){return e?e>=500:!0}function uM(e){return e?[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout].includes(e):!1}function dM(e){return sM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function fM(e,t,n){return sM(this,arguments,void 0,function*(e,t,n,r=2,i=Tp,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!lM(l)))return c;if(l&&(u=uM(l),o=`Cache service responded with ${l}`),R(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){R(`${e} - Error is not retryable`);break}yield dM(i),s++}throw Error(`${e} failed: ${o}`)})}function pM(e,t){return sM(this,arguments,void 0,function*(e,t,n=2,r=Tp){return yield fM(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof Vn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function mM(e,t){return sM(this,arguments,void 0,function*(e,t,n=2,r=Tp){return yield fM(e,t,e=>e.message.statusCode,n,r)})}var hM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function gM(e,t){return hM(this,void 0,void 0,function*(){yield _.promisify(ge.pipeline)(e.message,t)})}var _M=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function vM(e,t){return hM(this,void 0,void 0,function*(){let n=a.createWriteStream(t),r=new Un(`actions/cache`),i=yield mM(`downloadCache`,()=>hM(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Ep,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${Ep} ms`)}),yield gM(i,n);let o=i.message.headers[`content-length`];if(o){let e=parseInt(o),n=Pp(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else R(`Unable to validate download, no Content-Length header`)})}function yM(e,t,n){return hM(this,void 0,void 0,function*(){let r=yield a.promises.open(t,`w`),i=new Un(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield mM(`downloadCacheMetadata`,()=>hM(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;thM(this,void 0,void 0,function*(){return yield bM(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new _M(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>hM(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function bM(e,t,n,r){return hM(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield CM(3e4,xM(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function xM(e,t,n,r){return hM(this,void 0,void 0,function*(){let i=yield mM(`downloadCachePart`,()=>hM(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function SM(e,t,n){return hM(this,void 0,void 0,function*(){let r=new Qj(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)R(`Unable to determine content length, downloading file with http-client...`),yield vM(e,t);else{let e=Math.min(134217728,k.constants.MAX_LENGTH),o=new _M(i),s=a.openSync(t,`w`);try{o.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!o.isDone();){let l=o.segmentOffset+o.segmentSize,u=Math.min(e,i-l);o.nextSegment(u);let d=yield CM(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&a.writeFileSync(s,d)}}finally{o.stopDisplayTimer(),a.closeSync(s)}}})}const CM=(e,t)=>hM(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function wM(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Upload concurrency: ${t.uploadConcurrency}`),R(`Upload chunk size: ${t.uploadChunkSize}`),t}function TM(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Download concurrency: ${t.downloadConcurrency}`),R(`Request timeout (ms): ${t.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),R(`Lookup only: ${t.lookupOnly}`),t}function EM(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function DM(){return EM()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function OM(){let e=DM();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var kM=P(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),AM=P(((e,t)=>{t.exports={version:kM().version}}))();function jM(){return`@actions/cache-${AM.version}`}var MM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function NM(e){let t=OM();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return R(`Resource Url: ${n}`),n}function PM(e,t){return`${e};api-version=${t}`}function FM(){return{headers:{Accept:PM(`application/json`,`6.0-preview.1`)}}}function IM(){let e=new Kn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new Un(jM(),[e],FM())}function LM(e,t,n){return MM(this,void 0,void 0,function*(){let r=IM(),i=Hp(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield pM(`getCacheEntry`,()=>MM(this,void 0,void 0,function*(){return r.getJson(NM(a))}));if(o.statusCode===204)return Lr()&&(yield RM(e[0],r,i)),null;if(!cM(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return jr(c),R(`Cache Result:`),R(JSON.stringify(s)),s})}function RM(e,t,n){return MM(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield pM(`listCache`,()=>MM(this,void 0,void 0,function*(){return t.getJson(NM(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){R(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])R(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function zM(e,t,n){return MM(this,void 0,void 0,function*(){let r=new ve(e),i=TM(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield SM(e,t,i):i.concurrentBlobDownloads?yield yM(e,t,i):yield vM(e,t):yield vM(e,t)})}function BM(e,t,n){return MM(this,void 0,void 0,function*(){let r=IM(),i={key:e,version:Hp(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield pM(`reserveCache`,()=>MM(this,void 0,void 0,function*(){return r.postJson(NM(`caches`),i)}))})}function VM(e,t){return`bytes ${e}-${t}/*`}function HM(e,t,n,r,i){return MM(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${VM(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":VM(r,i)},o=yield mM(`uploadChunk (start: ${r}, end: ${i})`,()=>MM(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!cM(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function UM(e,t,n,r){return MM(this,void 0,void 0,function*(){let i=Pp(n),o=NM(`caches/${t.toString()}`),s=a.openSync(n,`r`),c=wM(r),l=Vp(`uploadConcurrency`,c.uploadConcurrency),u=Vp(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];R(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>MM(this,void 0,void 0,function*(){for(;fa.createReadStream(n,{fd:s,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{a.closeSync(s)}})}function WM(e,t,n){return MM(this,void 0,void 0,function*(){let r={size:n};return yield pM(`commitCache`,()=>MM(this,void 0,void 0,function*(){return e.postJson(NM(`caches/${t.toString()}`),r)}))})}function GM(e,t,n,r){return MM(this,void 0,void 0,function*(){if(wM(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield oM(n,t,r)}else{let n=IM();R(`Upload cache`),yield UM(n,e,t,r),R(`Commiting cache`);let i=Pp(t);Br(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield WM(n,e,i);if(!cM(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Br(`Cache saved successfully`)}})}var KM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),qM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),JM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),YM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),XM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),ZM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=XM(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!==0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),QM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=YM(),n=ZM(),r=XM(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),$M=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),eN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=ZM(),n=XM(),r=$M(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),tN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),nN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),rN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,`__esModule`,{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=rN();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),aN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),oN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionTypeCheck=void 0;let t=iN(),n=aN();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),sN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionLongConvert=void 0;let t=iN();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),cN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonReader=void 0;let t=KM(),n=qM(),r=iN(),i=ZM(),a=$M(),o=sN();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),lN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonWriter=void 0;let t=qM(),n=ZM(),r=iN(),i=$M();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),uN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionScalarDefault=void 0;let t=iN(),n=sN(),r=ZM();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),dN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryReader=void 0;let t=YM(),n=iN(),r=sN(),i=uN();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryWriter=void 0;let t=YM(),n=iN(),r=$M(),i=ZM();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionCreate=void 0;let t=uN(),n=nN();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),mN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionEquals=void 0;let t=iN();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageType=void 0;let t=nN(),n=iN(),r=oN(),i=cN(),a=lN(),o=dN(),s=fN(),c=pN(),l=mN(),u=KM(),d=tN(),f=hN(),p=eN(),m=QM(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),_N=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containsMessageType=void 0;let t=nN();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),vN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),yN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=KM();Object.defineProperty(e,`typeofJsonValue`,{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,`isJsonObject`,{enumerable:!0,get:function(){return t.isJsonObject}});var n=qM();Object.defineProperty(e,`base64decode`,{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,`base64encode`,{enumerable:!0,get:function(){return n.base64encode}});var r=JM();Object.defineProperty(e,`utf8read`,{enumerable:!0,get:function(){return r.utf8read}});var i=YM();Object.defineProperty(e,`WireType`,{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,`mergeBinaryOptions`,{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,`UnknownFieldHandler`,{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=QM();Object.defineProperty(e,`BinaryReader`,{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,`binaryReadOptions`,{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=eN();Object.defineProperty(e,`BinaryWriter`,{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,`binaryWriteOptions`,{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=ZM();Object.defineProperty(e,`PbLong`,{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,`PbULong`,{enumerable:!0,get:function(){return s.PbULong}});var c=tN();Object.defineProperty(e,`jsonReadOptions`,{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,`jsonWriteOptions`,{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,`mergeJsonOptions`,{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=nN();Object.defineProperty(e,`MESSAGE_TYPE`,{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=gN();Object.defineProperty(e,`MessageType`,{enumerable:!0,get:function(){return u.MessageType}});var d=iN();Object.defineProperty(e,`ScalarType`,{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,`LongType`,{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,`RepeatType`,{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,`normalizeFieldInfo`,{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,`readFieldOptions`,{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,`readFieldOption`,{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,`readMessageOption`,{enumerable:!0,get:function(){return d.readMessageOption}});var f=oN();Object.defineProperty(e,`ReflectionTypeCheck`,{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=pN();Object.defineProperty(e,`reflectionCreate`,{enumerable:!0,get:function(){return p.reflectionCreate}});var m=uN();Object.defineProperty(e,`reflectionScalarDefault`,{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=mN();Object.defineProperty(e,`reflectionMergePartial`,{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=hN();Object.defineProperty(e,`reflectionEquals`,{enumerable:!0,get:function(){return g.reflectionEquals}});var _=dN();Object.defineProperty(e,`ReflectionBinaryReader`,{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=fN();Object.defineProperty(e,`ReflectionBinaryWriter`,{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=cN();Object.defineProperty(e,`ReflectionJsonReader`,{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=lN();Object.defineProperty(e,`ReflectionJsonWriter`,{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=_N();Object.defineProperty(e,`containsMessageType`,{enumerable:!0,get:function(){return x.containsMessageType}});var S=aN();Object.defineProperty(e,`isOneofGroup`,{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,`setOneofValue`,{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,`getOneofValue`,{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,`clearOneofValue`,{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,`getSelectedOneofValue`,{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=vN();Object.defineProperty(e,`listEnumValues`,{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,`listEnumNames`,{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,`listEnumNumbers`,{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,`isEnumObject`,{enumerable:!0,get:function(){return C.isEnumObject}});var w=rN();Object.defineProperty(e,`lowerCamelCase`,{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=$M();Object.defineProperty(e,`assert`,{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,`assertNever`,{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,`assertInt32`,{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,`assertUInt32`,{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,`assertFloat32`,{enumerable:!0,get:function(){return T.assertFloat32}})})),bN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=yN();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),xN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceType=void 0;let t=bN();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),SN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` +`)}}})),CN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeRpcOptions=void 0;let t=yN();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),wN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),TN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcOutputStreamController=void 0;let t=wN(),n=yN();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),EN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),DN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),ON=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),kN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),AN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTransport=void 0;let n=SN(),r=yN(),i=TN(),a=CN(),o=EN(),s=DN(),c=ON(),l=kN();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),jN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=yN();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),MN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),NN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xN();Object.defineProperty(e,`ServiceType`,{enumerable:!0,get:function(){return t.ServiceType}});var n=bN();Object.defineProperty(e,`readMethodOptions`,{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,`readMethodOption`,{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,`readServiceOption`,{enumerable:!0,get:function(){return n.readServiceOption}});var r=SN();Object.defineProperty(e,`RpcError`,{enumerable:!0,get:function(){return r.RpcError}});var i=CN();Object.defineProperty(e,`mergeRpcOptions`,{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=TN();Object.defineProperty(e,`RpcOutputStreamController`,{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=AN();Object.defineProperty(e,`TestTransport`,{enumerable:!0,get:function(){return o.TestTransport}});var s=wN();Object.defineProperty(e,`Deferred`,{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,`DeferredState`,{enumerable:!0,get:function(){return s.DeferredState}});var c=kN();Object.defineProperty(e,`DuplexStreamingCall`,{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=ON();Object.defineProperty(e,`ClientStreamingCall`,{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=DN();Object.defineProperty(e,`ServerStreamingCall`,{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=EN();Object.defineProperty(e,`UnaryCall`,{enumerable:!0,get:function(){return d.UnaryCall}});var f=jN();Object.defineProperty(e,`stackIntercept`,{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,`stackDuplexStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,`stackClientStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,`stackServerStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,`stackUnaryInterceptors`,{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=MN();Object.defineProperty(e,`ServerCallContextController`,{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=yN();const PN=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posPN}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posLN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=RN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>zN.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=BN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>VN.fromJson(e,{ignoreUnknownFields:!0}))}};function UN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(jr(t),jr(encodeURIComponent(t)))}catch(t){R(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function WN(e){if(typeof e!=`object`||!e){R(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&UN(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&UN(e.signed_download_url)}var GN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},KN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Up();this.baseUrl=OM(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new Un(e,[new Kn(i)])}request(e,t,n,r){return GN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;R(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>GN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return GN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&zr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new rM(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&R(`Raw Body: ${r}`),e instanceof nM||e instanceof rM)throw e;if(tM.isNetworkErrorCode(e?.code))throw new tM(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Br(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Fn.BadGateway,Fn.GatewayTimeout,Fn.InternalServerError,Fn.ServiceUnavailable].includes(e):!1}sleep(e){return GN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function qN(e){return new HN(new KN(jM(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var JN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const YN=process.platform===`win32`;function XN(){return JN(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Bp(),t=Op;if(e)return{path:e,type:wp.GNU};if(s(t))return{path:t,type:wp.BSD};break}case`darwin`:{let e=yield yr(`gtar`,!1);return e?{path:e,type:wp.GNU}:{path:yield yr(`tar`,!0),type:wp.BSD}}default:break}return{path:yield yr(`tar`,!0),type:wp.GNU}})}function ZN(e,t,n){return JN(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=zp(t),o=`cache.tar`,s=$N(),c=e.type===wp.BSD&&t!==Cp.Gzip&&YN;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--files-from`,Ap);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`);break}if(e.type===wp.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function QN(e,t){return JN(this,arguments,void 0,function*(e,t,n=``){let r,i=yield XN(),a=yield ZN(i,e,t,n),o=t===`create`?yield tP(i,e):yield eP(i,e,n),s=i.type===wp.BSD&&e!==Cp.Gzip&&YN;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function $N(){return process.env.GITHUB_WORKSPACE??process.cwd()}function eP(e,t,n){return JN(this,void 0,void 0,function*(){let r=e.type===wp.BSD&&t!==Cp.Gzip&&YN;switch(t){case Cp.Zstd:return r?[`zstd -d --long=30 --force -o`,kp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,YN?`"zstd -d --long=30"`:`unzstd --long=30`];case Cp.ZstdWithoutLong:return r?[`zstd -d --force -o`,kp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,YN?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function tP(e,t){return JN(this,void 0,void 0,function*(){let n=zp(t),r=e.type===wp.BSD&&t!==Cp.Gzip&&YN;switch(t){case Cp.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),kp]:[`--use-compress-program`,YN?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case Cp.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),kp]:[`--use-compress-program`,YN?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function nP(e,t){return JN(this,void 0,void 0,function*(){for(let n of e)try{yield Dr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function rP(e,t){return JN(this,void 0,void 0,function*(){yield nP(yield QN(t,`list`,e))})}function iP(e,t){return JN(this,void 0,void 0,function*(){yield vr($N()),yield nP(yield QN(t,`extract`,e))})}function aP(e,t,n){return JN(this,void 0,void 0,function*(){l(u.join(e,Ap),t.join(` +`)),yield nP(yield QN(n,`create`),e)})}var oP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},sP=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},cP=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},lP=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function uP(e){if(!e||e.length===0)throw new sP(`Path Validation Error: At least one directory or file path is required`)}function dP(e){if(e.length>512)throw new sP(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new sP(`Key Validation Error: ${e} cannot contain commas.`)}function fP(e,t,n,r){return oP(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=DM();switch(R(`Cache service version: ${a}`),uP(e),a){case`v2`:return yield mP(e,t,n,r,i);default:return yield pP(e,t,n,r,i)}})}function pP(e,t,n,r){return oP(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new sP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)dP(e);let o=yield Rp(),s=``;try{let t=yield LM(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Br(`Lookup only - skipping download`),t.cacheKey;s=u.join(yield Np(),zp(o)),R(`Archive Path: ${s}`),yield zM(t.archiveLocation,s,r),Lr()&&(yield rP(s,o));let n=Pp(s);return Br(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield iP(s,o),Br(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===sP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{yield Ip(s)}catch(e){R(`Failed to delete archive: ${e}`)}}})}function mP(e,t,n,r){return oP(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new sP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)dP(e);let o=``;try{let s=qN(),c=yield Rp(),l={key:t,restoreKeys:n,version:Hp(e,c,i)},d=yield s.GetCacheEntryDownloadURL(l);if(!d.ok){R(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===d.matchedKey?Br(`Cache hit for: ${d.matchedKey}`):Br(`Cache hit for restore-key: ${d.matchedKey}`),r?.lookupOnly)return Br(`Lookup only - skipping download`),d.matchedKey;o=u.join(yield Np(),zp(c)),R(`Archive path: ${o}`),R(`Starting download of archive to: ${o}`),yield zM(d.signedDownloadUrl,o,r);let f=Pp(o);return Br(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),Lr()&&(yield rP(o,c)),yield iP(o,c),Br(`Cache restored successfully`),d.matchedKey}catch(e){let t=e;if(t.name===sP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Ip(o))}catch(e){R(`Failed to delete archive: ${e}`)}}})}function hP(e,t,n){return oP(this,arguments,void 0,function*(e,t,n,r=!1){let i=DM();switch(R(`Cache service version: ${i}`),uP(e),dP(t),i){case`v2`:return yield _P(e,t,n,r);default:return yield gP(e,t,n,r)}})}function gP(e,t,n){return oP(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Rp(),a=-1,o=yield Fp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Np(),c=u.join(s,zp(i));R(`Archive Path: ${c}`);try{yield aP(s,o,i),Lr()&&(yield rP(c,i));let l=Pp(c);if(R(`File Size: ${l}`),l>10737418240&&!EM())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);R(`Reserving Cache`);let u=yield BM(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new cP(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);R(`Saving Cache (ID: ${a})`),yield GM(a,c,``,n)}catch(e){let t=e;if(t.name===sP.name)throw e;t.name===cP.name?Br(`Failed to save: ${t.message}`):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Ip(c)}catch(e){R(`Failed to delete archive: ${e}`)}}return a})}function _P(e,t,n){return oP(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Rp(),a=qN(),o=-1,s=yield Fp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Np(),l=u.join(c,zp(i));R(`Archive Path: ${l}`);try{yield aP(c,s,i),Lr()&&(yield rP(l,i));let u=Pp(l);R(`File Size: ${u}`),n.archiveSizeBytes=u,R(`Reserving Cache`);let d=Hp(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&zr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw R(`Failed to reserve cache: ${e}`),new cP(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${l}`),yield GM(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(R(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new lP(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===sP.name)throw e;t.name===cP.name?Br(`Failed to save: ${t.message}`):t.name===lP.name?zr(t.message):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Ip(l)}catch(e){R(`Failed to delete archive: ${e}`)}}return o})}function vP(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,R(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,R(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,R(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,R(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,R(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const yP=process.platform===`win32`;function bP(e){if(e=TP(e),yP&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=u.dirname(e);return yP&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=TP(t)),t}function xP(e,t){if(h(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),h(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),SP(t))return t;if(yP){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(wP(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return h(SP(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||yP&&e.endsWith(`\\`)||(e+=u.sep),e+t}function SP(e){return h(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=wP(e),yP?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function CP(e){return h(e,`isRooted parameter 'itemPath' must not be empty`),e=wP(e),yP?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function wP(e){return e||=``,yP?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function TP(e){return e?(e=wP(e),!e.endsWith(u.sep)||e===u.sep||yP&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var EP;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(EP||={});const DP=process.platform===`win32`;function OP(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=DP?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=DP?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=bP(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=bP(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function kP(e,t){let n=EP.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function AP(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const jP=(e,t,n)=>{let r=e instanceof RegExp?MP(e,n):e,i=t instanceof RegExp?MP(t,n):t,a=r!==null&&i!=null&&NP(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},MP=(e,t)=>{let n=t.match(e);return n?n[0]:null},NP=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},PP=`\0SLASH`+Math.random()+`\0`,FP=`\0OPEN`+Math.random()+`\0`,IP=`\0CLOSE`+Math.random()+`\0`,LP=`\0COMMA`+Math.random()+`\0`,RP=`\0PERIOD`+Math.random()+`\0`,zP=new RegExp(PP,`g`),BP=new RegExp(FP,`g`),VP=new RegExp(IP,`g`),HP=new RegExp(LP,`g`),UP=new RegExp(RP,`g`),WP=/\\\\/g,GP=/\\{/g,KP=/\\}/g,qP=/\\,/g,JP=/\\\./g;function YP(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function XP(e){return e.replace(WP,PP).replace(GP,FP).replace(KP,IP).replace(qP,LP).replace(JP,RP)}function ZP(e){return e.replace(zP,`\\`).replace(BP,`{`).replace(VP,`}`).replace(HP,`,`).replace(UP,`.`)}function QP(e){if(!e)return[``];let t=[],n=jP(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=QP(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function $P(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),iF(XP(e),n,!0).map(ZP)}function eF(e){return`{`+e+`}`}function tF(e){return/^-?0\d/.test(e)}function nF(e,t){return e<=t}function rF(e,t){return e>=t}function iF(e,t,n){let r=[],i=jP(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?iF(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+IP+i.post,iF(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=QP(i.body),d.length===1&&d[0]!==void 0&&(d=iF(d[0],t,!1).map(eF),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=YP(d[0]),t=YP(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(YP(d[2])),1):1,i=nF;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},oF={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},sF=e=>e.replace(/[[\]\\-]/g,`\\$&`),cF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),lF=e=>e.join(``),uF=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push(sF(d)+`-`+sF(t)):t===d&&r.push(sF(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(sF(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(sF(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var fF;const pF=new Set([`!`,`?`,`+`,`*`,`@`]),mF=e=>pF.has(e),hF=e=>mF(e.type),gF=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),_F=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),vF=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),yF=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),bF=`(?!\\.)`,xF=new Set([`[`,`.`]),SF=new Set([`..`,`.`]),CF=new Set(`().*{}+?[]^$\\!`),wF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),TF=`[^/]`,EF=TF+`*?`,DF=TF+`+?`;let OF=0;var kF=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++OF;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?fF.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&SF.has(this.#r[0]))){let n=xF,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?bF:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,dF(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,dF(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?bF:``)+DF;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?bF:``)+EF+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,dF(i),this.#t=!!this.#t,this.#n]}#x(){if(hF(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),jF=(e,t,n={})=>(aF(t),!n.nocomment&&t.charAt(0)===`#`?!1:new aI(t,n).match(e)),MF=/^\*+([^+@!?*[(]*)$/,NF=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),PF=e=>t=>t.endsWith(e),FF=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),IF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),LF=/^\*+\.\*+$/,RF=e=>!e.startsWith(`.`)&&e.includes(`.`),zF=e=>e!==`.`&&e!==`..`&&e.includes(`.`),BF=/^\.\*+$/,VF=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),HF=/^\*+$/,UF=e=>e.length!==0&&!e.startsWith(`.`),WF=e=>e.length!==0&&e!==`.`&&e!==`..`,GF=/^\?+([^+@!?*[(]*)?$/,KF=([e,t=``])=>{let n=XF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},qF=([e,t=``])=>{let n=ZF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},JF=([e,t=``])=>{let n=ZF([e]);return t?e=>n(e)&&e.endsWith(t):n},YF=([e,t=``])=>{let n=XF([e]);return t?e=>n(e)&&e.endsWith(t):n},XF=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},ZF=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},QF=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,$F={win32:{sep:`\\`},posix:{sep:`/`}};jF.sep=QF===`win32`?$F.win32.sep:$F.posix.sep;const eI=Symbol(`globstar **`);jF.GLOBSTAR=eI,jF.filter=(e,t={})=>n=>jF(n,e,t);const tI=(e,t={})=>Object.assign({},e,t);jF.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return jF;let t=jF;return Object.assign((n,r,i={})=>t(n,r,tI(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,tI(e,n))}static defaults(n){return t.defaults(tI(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,tI(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,tI(e,r))}},unescape:(n,r={})=>t.unescape(n,tI(e,r)),escape:(n,r={})=>t.escape(n,tI(e,r)),filter:(n,r={})=>t.filter(n,tI(e,r)),defaults:n=>t.defaults(tI(e,n)),makeRe:(n,r={})=>t.makeRe(n,tI(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,tI(e,r)),match:(n,r,i={})=>t.match(n,r,tI(e,i)),sep:t.sep,GLOBSTAR:eI})};const nI=(e,t={})=>(aF(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:$P(e,{max:t.braceExpandMax}));jF.braceExpand=nI,jF.makeRe=(e,t={})=>new aI(e,t).makeRe(),jF.match=(e,t,n={})=>{let r=new aI(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const rI=/[?*]|[+@!]\(.*?\)|\[|\]/,iI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var aI=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){aF(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||QF,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!rI.test(e[2]))&&!rI.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(eI)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(eI,i),o=t.lastIndexOf(eI),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?iI(e):e===eI?eI:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==eI||a===eI||(a===void 0?i!==void 0&&i!==eI?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==eI&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=eI))});let i=t.filter(e=>e!==eI);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return jF.defaults(e).Minimatch}};jF.AST=kF,jF.Minimatch=aI,jF.escape=AF,jF.unescape=dF;const oI=process.platform===`win32`;var sI=class{constructor(e){if(this.segments=[],typeof e==`string`)if(h(e,`Parameter 'itemPath' must not be empty`),e=TP(e),!CP(e))this.segments=e.split(u.sep);else{let t=e,n=bP(t);for(;n!==t;){let e=u.basename(t);this.segments.unshift(e),t=n,n=bP(t)}this.segments.unshift(t)}else{h(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new sI(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),cI?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:cI,nocomment:!0,noext:!0,nonegate:!0};a=cI?a.replace(/\\/g,`/`):a,this.minimatch=new aI(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=wP(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=TP(e),this.minimatch.match(e)?this.trailingSeparator?EP.Directory:EP.All:EP.None}partialMatch(e){return e=TP(e),bP(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(cI?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(cI?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new sI(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!CP(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=wP(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(SP(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(cI&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=xP(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(cI&&(n===`\\`||n.match(/^\\[^\\]/))){let t=xP(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=xP(e.globEscape(process.cwd()),n);return wP(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},uI=class{constructor(e,t){this.path=e,this.level=t}},dI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},fI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},pI=function(e){return this instanceof pI?(this.v=e,this):new pI(e)},mI=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof pI?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const hI=process.platform===`win32`;var gI=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=vP(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return dI(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=fI(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return mI(this,arguments,function*(){let t=vP(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new lI(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of OP(n)){R(`Search path '${e}'`);try{yield pI(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new uI(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=kP(n,o.path),c=!!s||AP(n,o.path);if(!s&&!c)continue;let l=yield pI(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&EP.Directory&&t.matchDirectories)yield yield pI(o.path);else if(!c)continue;let e=o.level+1,n=(yield pI(a.promises.readdir(o.path))).map(t=>new uI(u.join(o.path,t),e));r.push(...n.reverse())}else s&EP.File&&(yield yield pI(o.path))}})}static create(t,n){return dI(this,void 0,void 0,function*(){let r=new e(n);hI&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new tI(e));return r.searchPaths.push(...bP(r.patterns)),r})}static stat(e,t,n){return rI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},lI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},uI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function dI(e,t){return lI(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Rr:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=uI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(me.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var fI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function pI(e,t){return fI(this,void 0,void 0,function*(){return yield cI.create(e,t)})}function mI(e){return fI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),dI(yield pI(e,{followSymbolicLinks:i}),t,r)})}async function hI(e){let t=Od(e),n=jd(e.cacheDependencyPath,t);if(!n){Lr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Nr(`cache-hit`,!1);return}Rr(`Using lock file: ${n.path}`);let r=M(n.path);Rr(`Resolving dependency cache directory in: ${r}`);let i=await Nd(n.type,r);if(!i.length){Lr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Nr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Vr(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||pe(),o=de(),s=await mI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Vr(`CACHE_PRIMARY_KEY`,c);let u=await iP(i,c,l);u?(Rr(`Cache restored from key: ${u}`),Vr(`CACHE_MATCHED_KEY`,u),Nr(`cache-hit`,!0)):(Rr(`Cache not found`),Nr(`cache-hit`,!1))}async function gI(){let e=Hr(`CACHE_PRIMARY_KEY`),t=Hr(`CACHE_MATCHED_KEY`),n=Hr(`CACHE_PATHS`);if(!e){Rr(`No cache key found. Skipping cache save.`);return}if(!n){Rr(`No cache paths found. Skipping cache save.`);return}if(e===t){Rr(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Rr(`Empty cache paths. Skipping cache save.`);return}try{if(await sP(r,e)===-1){Lr(`Cache save failed or was skipped.`);return}Rr(`Cache saved with key: ${e}`)}catch(e){Lr(`Failed to save cache: ${String(e)}`)}}function _I(e,t){let n=Dd(e,t||Ed()),r;try{r=ae(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?bI(r):i===`package.json`?SI(r):vI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Rr(`Resolved Node.js version '${a}' from ${e}`),a}function vI(e){for(let t of e.split(` -`)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return yI(e)}}function yI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function bI(e){for(let t of e.split(` -`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(xI(e))return e}}}function xI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function SI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=CI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function CI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function wI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function TI(e){return e.replace(/^\w+:/,``)}function EI(e){return(TI(e)+`:_authtoken`).toLowerCase()}function DI(e){return`${TI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function OI(e){try{return ae(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function kI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}AI(n.href.endsWith(`/`)?n.href:n.href+`/`,wI(),t)}function AI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=TI(e).toLowerCase(),a=[],o=OI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(DI(e),`${r}registry=${e}`),ce(t,a.join(ue)),Or(`NPM_CONFIG_USERCONFIG`,t),Or(`PNPM_CONFIG_USERCONFIG`,t),Or(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const jI=new Set([`GITHUB_TOKEN`]),MI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function NI(e){return MI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!jI.has(e):!1}function PI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(EI(e))),envVarRefs:r}}function FI(e){let t=wI(),n=new Set(e.map(EI)),r=OI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(DI)].join(ue);if(Or(`NPM_CONFIG_USERCONFIG`,t),Or(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ce(t,i),Rr(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function II(e){let t=N(e,`.npmrc`),n=OI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=PI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(FI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!NI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Rr(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Or(e,process.env[e])}async function LI(e){Vr(`IS_POST`,`true`);let t=Od(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=_I(e.nodeVersionFile,t)),await zd(e),n&&(Rr(`Setting up Node.js ${n} via vp env use...`),await Tr(`vp`,[`env`,`use`,n])),e.registryUrl?kI(e.registryUrl,e.scope):II(t),e.cache&&await hI(e),e.runInstall.length>0&&await Ud(e),await RI(t)}async function RI(e){try{let t=(await Er(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Rr(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Vr(`INSTALLED_VERSION`,n),Nr(`version`,n)}catch(e){Lr(`Could not get vp version: ${String(e)}`),Nr(`version`,`unknown`)}}async function zI(e){e.cache&&await gI()}async function BI(){let e=Cd();Hr(`IS_POST`)===`true`?await zI(e):await LI(e)}BI().catch(e=>{console.error(e),Pr(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new lI(e));return r.searchPaths.push(...OP(r.patterns)),r})}static stat(e,t,n){return dI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},_I=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},vI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function yI(e,t){return _I(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Br:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=vI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var bI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function xI(e,t){return bI(this,void 0,void 0,function*(){return yield gI.create(e,t)})}function SI(e){return bI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),yI(yield xI(e,{followSymbolicLinks:i}),t,r)})}async function CI(e){let t=Ad(e),n=Nd(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}Br(`Using lock file: ${n.path}`);let r=M(n.path);Br(`Resolving dependency cache directory in: ${r}`);let i=await Fd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Ur(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await SI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Ur(`CACHE_PRIMARY_KEY`,c);let u=await fP(i,c,l);u?(Br(`Cache restored from key: ${u}`),Ur(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(Br(`Cache not found`),Fr(`cache-hit`,!1))}async function wI(){let e=Wr(`CACHE_PRIMARY_KEY`),t=Wr(`CACHE_MATCHED_KEY`),n=Wr(`CACHE_PATHS`);if(!e){Br(`No cache key found. Skipping cache save.`);return}if(!n){Br(`No cache paths found. Skipping cache save.`);return}if(e===t){Br(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Br(`Empty cache paths. Skipping cache save.`);return}try{if(await hP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}Br(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function TI(e,t){let n=kd(e,t||Od()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?OI(r):i===`package.json`?AI(r):EI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Br(`Resolved Node.js version '${a}' from ${e}`),a}function EI(e){for(let t of e.split(` +`)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return DI(e)}}function DI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function OI(e){for(let t of e.split(` +`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(kI(e))return e}}}function kI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function AI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=jI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function jI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function MI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function NI(e){return e.replace(/^\w+:/,``)}function PI(e){return(NI(e)+`:_authtoken`).toLowerCase()}function FI(e){return`${NI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function II(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function LI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}RI(n.href.endsWith(`/`)?n.href:n.href+`/`,MI(),t)}function RI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=NI(e).toLowerCase(),a=[],o=II(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(FI(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const zI=new Set([`GITHUB_TOKEN`]),BI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function VI(e){return BI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!zI.has(e):!1}function HI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(PI(e))),envVarRefs:r}}function UI(e){let t=MI(),n=new Set(e.map(PI)),r=II(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(FI)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function WI(e){let t=N(e,`.npmrc`),n=II(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=HI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(UI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!VI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function GI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=TI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?LI(e.registryUrl,e.scope):WI(t),e.cache&&await CI(e),e.sfw&&e.runInstall.length>0&&await Jd(),e.runInstall.length>0&&await Zd(e),await KI(t)}async function KI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function qI(e){e.cache&&await wI()}async function JI(){let e=Td();Wr(`IS_POST`)===`true`?await qI(e):await GI(e)}JI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index a14e55d..bc098c6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,7 @@ import { saveState, getState, setFailed, info, setOutput, warning } from "@actio import { exec, getExecOutput } from "@actions/exec"; import { getInputs } from "./inputs.js"; import { installVitePlus } from "./install-viteplus.js"; +import { installSfw } from "./install-sfw.js"; import { runViteInstall } from "./run-install.js"; import { restoreCache } from "./cache-restore.js"; import { saveCache } from "./cache-save.js"; @@ -43,7 +44,12 @@ async function runMain(inputs: Inputs): Promise { await restoreCache(inputs); } - // Step 6: Run vp install if requested + // Step 6: Install Socket Firewall Free if requested (must run before vp install) + if (inputs.sfw && inputs.runInstall.length > 0) { + await installSfw(); + } + + // Step 7: Run vp install if requested if (inputs.runInstall.length > 0) { await runViteInstall(inputs); } diff --git a/src/inputs.test.ts b/src/inputs.test.ts index a6c60c1..bdd6edd 100644 --- a/src/inputs.test.ts +++ b/src/inputs.test.ts @@ -29,6 +29,7 @@ describe("getInputs", () => { nodeVersionFile: undefined, workingDirectory: undefined, runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, }); @@ -106,6 +107,18 @@ describe("getInputs", () => { expect(inputs.cache).toBe(true); }); + it("should parse sfw input", () => { + vi.mocked(getInput).mockReturnValue(""); + vi.mocked(getBooleanInput).mockImplementation((name) => { + if (name === "sfw") return true; + return false; + }); + + const inputs = getInputs(); + + expect(inputs.sfw).toBe(true); + }); + it("should parse node-version-file input", () => { vi.mocked(getInput).mockImplementation((name) => { if (name === "node-version-file") return ".nvmrc"; diff --git a/src/inputs.ts b/src/inputs.ts index d7211c2..c3a9eb1 100644 --- a/src/inputs.ts +++ b/src/inputs.ts @@ -11,6 +11,7 @@ export function getInputs(): Inputs { nodeVersionFile: getInput("node-version-file") || undefined, workingDirectory: getInput("working-directory") || undefined, runInstall: parseRunInstall(getInput("run-install")), + sfw: getBooleanInput("sfw"), cache: getBooleanInput("cache"), cacheDependencyPath: getInput("cache-dependency-path") || undefined, registryUrl: getInput("registry-url") || undefined, diff --git a/src/install-sfw.test.ts b/src/install-sfw.test.ts new file mode 100644 index 0000000..6695770 --- /dev/null +++ b/src/install-sfw.test.ts @@ -0,0 +1,60 @@ +import { describe, it, expect } from "vite-plus/test"; +import { getSfwAssetName } from "./install-sfw.js"; + +describe("getSfwAssetName", () => { + it("returns macOS arm64 asset", () => { + expect(getSfwAssetName("darwin", "arm64", false)).toBe("sfw-free-macos-arm64"); + }); + + it("returns macOS x64 asset", () => { + expect(getSfwAssetName("darwin", "x64", false)).toBe("sfw-free-macos-x86_64"); + }); + + it("ignores isMusl on darwin", () => { + expect(getSfwAssetName("darwin", "arm64", true)).toBe("sfw-free-macos-arm64"); + expect(getSfwAssetName("darwin", "x64", true)).toBe("sfw-free-macos-x86_64"); + }); + + it("returns Linux glibc arm64 asset", () => { + expect(getSfwAssetName("linux", "arm64", false)).toBe("sfw-free-linux-arm64"); + }); + + it("returns Linux glibc x64 asset", () => { + expect(getSfwAssetName("linux", "x64", false)).toBe("sfw-free-linux-x86_64"); + }); + + it("returns Linux musl arm64 asset", () => { + expect(getSfwAssetName("linux", "arm64", true)).toBe("sfw-free-musl-linux-arm64"); + }); + + it("returns Linux musl x64 asset", () => { + expect(getSfwAssetName("linux", "x64", true)).toBe("sfw-free-musl-linux-x86_64"); + }); + + it("returns Windows arm64 asset", () => { + expect(getSfwAssetName("win32", "arm64", false)).toBe("sfw-free-windows-arm64.exe"); + }); + + it("returns Windows x64 asset", () => { + expect(getSfwAssetName("win32", "x64", false)).toBe("sfw-free-windows-x86_64.exe"); + }); + + it("ignores isMusl on win32", () => { + expect(getSfwAssetName("win32", "x64", true)).toBe("sfw-free-windows-x86_64.exe"); + }); + + it("throws on unsupported platform", () => { + expect(() => getSfwAssetName("freebsd" as NodeJS.Platform, "x64", false)).toThrow( + /freebsd\/x64/, + ); + }); + + it("throws on unsupported arch", () => { + expect(() => getSfwAssetName("linux", "ia32", false)).toThrow(/linux\/ia32/); + }); + + it("includes libc in error message for unsupported Linux arch", () => { + expect(() => getSfwAssetName("linux", "ia32", true)).toThrow(/musl/); + expect(() => getSfwAssetName("linux", "ia32", false)).toThrow(/glibc/); + }); +}); diff --git a/src/install-sfw.ts b/src/install-sfw.ts new file mode 100644 index 0000000..82a05b6 --- /dev/null +++ b/src/install-sfw.ts @@ -0,0 +1,109 @@ +import { info, warning, addPath } from "@actions/core"; +import { exec } from "@actions/exec"; +import { chmodSync, existsSync, mkdirSync } from "node:fs"; +import { join } from "node:path"; +import { setTimeout as sleep } from "node:timers/promises"; + +const SFW_RELEASE_BASE = "https://github.com/SocketDev/sfw-free/releases/latest/download"; +const INSTALL_MAX_ROUNDS = 2; +const INSTALL_RETRY_DELAY_MS = 2000; +const CURL_TIMEOUT_FLAGS = "--connect-timeout 5 --max-time 60"; +const PWSH_TIMEOUT_SEC = 60; + +export function isMuslLinux(): boolean { + if (process.platform !== "linux") return false; + try { + const report = process.report?.getReport() as + | { header?: { glibcVersionRuntime?: string } } + | undefined; + if (report?.header && !report.header.glibcVersionRuntime) { + return true; + } + } catch { + // fall through to filesystem fallback + } + return existsSync("/etc/alpine-release"); +} + +export function getSfwAssetName(platform: NodeJS.Platform, arch: string, isMusl: boolean): string { + if (platform === "darwin") { + if (arch === "arm64") return "sfw-free-macos-arm64"; + if (arch === "x64") return "sfw-free-macos-x86_64"; + } else if (platform === "linux") { + if (arch === "arm64") { + return isMusl ? "sfw-free-musl-linux-arm64" : "sfw-free-linux-arm64"; + } + if (arch === "x64") { + return isMusl ? "sfw-free-musl-linux-x86_64" : "sfw-free-linux-x86_64"; + } + } else if (platform === "win32") { + if (arch === "arm64") return "sfw-free-windows-arm64.exe"; + if (arch === "x64") return "sfw-free-windows-x86_64.exe"; + } + const libcSuffix = platform === "linux" ? ` (${isMusl ? "musl" : "glibc"})` : ""; + throw new Error(`Unsupported platform/arch for sfw: ${platform}/${arch}${libcSuffix}`); +} + +function getSfwBinDir(): string { + const tmp = process.env.RUNNER_TEMP || process.env.TMPDIR || process.env.TEMP || "/tmp"; + return join(tmp, "sfw-bin"); +} + +export async function installSfw(): Promise { + const assetName = getSfwAssetName(process.platform, process.arch, isMuslLinux()); + const url = `${SFW_RELEASE_BASE}/${assetName}`; + const binDir = getSfwBinDir(); + mkdirSync(binDir, { recursive: true }); + const binPath = join(binDir, process.platform === "win32" ? "sfw.exe" : "sfw"); + + info(`Installing sfw from ${url}...`); + + const maxAttempts = INSTALL_MAX_ROUNDS; + let failureReason = ""; + for (let attempt = 1; attempt <= maxAttempts; attempt++) { + try { + const exitCode = await runDownloadCommand(url, binPath); + if (exitCode === 0 && existsSync(binPath)) { + if (process.platform !== "win32") { + chmodSync(binPath, 0o755); + } + addPath(binDir); + info(`sfw installed at ${binPath}`); + return; + } + failureReason = `exit code ${exitCode}`; + } catch (error) { + failureReason = error instanceof Error ? error.message : String(error); + } + + if (attempt < maxAttempts) { + warning( + `Failed to install sfw from ${url} (${failureReason}). Retrying in ${INSTALL_RETRY_DELAY_MS}ms... (attempt ${attempt + 1}/${maxAttempts})`, + ); + await sleep(INSTALL_RETRY_DELAY_MS); + } + } + + throw new Error( + `Failed to install sfw from ${url} after ${maxAttempts} attempts: ${failureReason}`, + ); +} + +async function runDownloadCommand(url: string, outPath: string): Promise { + const options = { ignoreReturnCode: true }; + if (process.platform === "win32") { + return exec( + "pwsh", + [ + "-Command", + `Invoke-WebRequest -UseBasicParsing -Uri '${url}' -OutFile '${outPath}' -TimeoutSec ${PWSH_TIMEOUT_SEC}`, + ], + options, + ); + } + return exec( + "bash", + ["-c", `set -o pipefail; curl -fsSL ${CURL_TIMEOUT_FLAGS} -o '${outPath}' '${url}'`], + options, + ); +} diff --git a/src/install-viteplus.test.ts b/src/install-viteplus.test.ts index 128f13a..49593f4 100644 --- a/src/install-viteplus.test.ts +++ b/src/install-viteplus.test.ts @@ -24,6 +24,7 @@ const baseInputs: Inputs = { nodeVersionFile: undefined, workingDirectory: undefined, runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, registryUrl: undefined, diff --git a/src/run-install.ts b/src/run-install.ts index 908e39a..c71e217 100644 --- a/src/run-install.ts +++ b/src/run-install.ts @@ -15,18 +15,20 @@ export async function runViteInstall(inputs: Inputs): Promise { const projectDir = getConfiguredProjectDir(inputs); for (const options of inputs.runInstall) { - const args = ["install"]; + const installArgs = ["install"]; if (options.args) { - args.push(...options.args); + installArgs.push(...options.args); } + const cmd = inputs.sfw ? "sfw" : "vp"; + const args = inputs.sfw ? ["vp", ...installArgs] : installArgs; const cwd = getInstallCwd(projectDir, options.cwd); - const cmdStr = `vp ${args.join(" ")}`; + const cmdStr = `${cmd} ${args.join(" ")}`; startGroup(`Running ${cmdStr} in ${cwd}...`); try { - const { exitCode, stdout, stderr } = await getExecOutput("vp", args, { + const { exitCode, stdout, stderr } = await getExecOutput(cmd, args, { cwd, ignoreReturnCode: true, }); diff --git a/src/types.ts b/src/types.ts index be76545..b6d188a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -23,6 +23,7 @@ export interface Inputs { readonly nodeVersionFile?: string; readonly workingDirectory?: string; readonly runInstall: RunInstall[]; + readonly sfw: boolean; readonly cache: boolean; readonly cacheDependencyPath?: string; readonly registryUrl?: string; diff --git a/src/utils.test.ts b/src/utils.test.ts index fcd9a52..0d3169c 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -294,6 +294,7 @@ describe("getConfiguredProjectDir", () => { nodeVersionFile: undefined, workingDirectory: "web", runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, registryUrl: undefined, @@ -310,6 +311,7 @@ describe("getConfiguredProjectDir", () => { nodeVersionFile: undefined, workingDirectory: undefined, runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, registryUrl: undefined, @@ -328,6 +330,7 @@ describe("getConfiguredProjectDir", () => { nodeVersionFile: undefined, workingDirectory: "web", runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, registryUrl: undefined, @@ -348,6 +351,7 @@ describe("getConfiguredProjectDir", () => { nodeVersionFile: undefined, workingDirectory: "web", runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, registryUrl: undefined, @@ -381,6 +385,7 @@ describe("resolvePath", () => { nodeVersionFile: undefined, workingDirectory: "web", runInstall: [], + sfw: false, cache: false, cacheDependencyPath: undefined, registryUrl: undefined, From fafe07a12b35300813eaeb107d9c6d3263a76289 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 15:19:29 +0800 Subject: [PATCH 02/18] test(ci): add test-sfw-blocks-malicious job using lodahs canary New job installs `is-odd` benignly to put sfw on PATH, then runs `sfw vp install lodahs` (lodash typosquat) and asserts the install exits non-zero. `lodahs` is the same canary Socket uses in their bun-security-scanner workflow: https://github.com/SocketDev/bun-security-scanner/blob/main/.github/workflows/test.yml Verifies sfw actually intercepts malicious packages end-to-end, not just that the wrapping plumbing is wired. --- .github/workflows/test.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f0f54f..82becb2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -361,6 +361,49 @@ jobs: working-directory: test-project run: vp exec node -e "console.log(require('is-odd')(3))" + test-sfw-blocks-malicious: + # Verifies sfw actually intercepts a known-malicious package, not just + # that it wraps the install. Uses `lodahs` (lodash typosquat), the same + # canary SocketDev's own workflows use: + # https://github.com/SocketDev/bun-security-scanner/blob/main/.github/workflows/test.yml + # If this job ever stops blocking, either sfw is misconfigured or the + # canary itself has been delisted — swap it for another Socket-flagged + # package from https://socket.dev/blog/category/threat-research. + strategy: + fail-fast: false + matrix: + version: [latest, alpha] + runs-on: ubuntu-latest + steps: + - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 + + - name: Create test project with a benign dependency + shell: bash + run: | + mkdir -p test-project + cd test-project + echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json + + - name: Setup Vite+ (${{ matrix.version }}) with sfw and install benign dep + uses: ./ + with: + version: ${{ matrix.version }} + sfw: true + run-install: | + - cwd: test-project + cache: false + + - name: Assert sfw blocks malicious package (lodahs typosquat of lodash) + shell: bash + working-directory: test-project + run: | + if sfw vp install lodahs; then + echo "ERROR: sfw failed to block lodahs (lodash typosquat)" + exit 1 + else + echo "SUCCESS: sfw blocked lodahs as expected" + fi + build: runs-on: ubuntu-latest steps: From c4df4219edd3360ce6caebbc22170e911292fd46 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 15:34:05 +0800 Subject: [PATCH 03/18] ci: limit test-sfw to ubuntu-latest, document sfw rustls TLS limitation sfw v1.10.0 issues a CA cert with a present-but-empty EKU extension. OpenSSL accepts it; rustls (vp's TLS stack), Go crypto/x509, and other strict implementations reject it as UnknownIssuer. So `vp install` through sfw works on Ubuntu only because pnpm is preinstalled and vp skips the bootstrap fetch. On macOS / Windows, vp must fetch `https://registry.npmjs.org/pnpm/latest` and the handshake fails before sfw can inspect the install. Action still installs the sfw binary on all OSes (asset mapping unit- tested) so users can call `sfw npm ci` directly; only setup-vp's own run-install path is Linux-verified for now. Tracking upstream: https://github.com/SocketDev/sfw-free/issues/30 https://github.com/SocketDev/sfw-free/issues/43 --- .github/workflows/test.yml | 12 ++++++++++-- README.md | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82becb2..e08e2de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -293,12 +293,20 @@ jobs: run: vp exec node -e "console.log('vp exec works in Alpine')" test-sfw: + # Linux-only: sfw's MITM proxy issues a CA cert with a present-but-empty + # EKU extension. OpenSSL accepts it, but rustls / Go's crypto/x509 reject + # it as UnknownIssuer. vp is a Rust binary (rustls), so on macOS / Windows + # any HTTPS call vp makes through sfw fails the TLS handshake before sfw + # can inspect the install. Ubuntu happens to work because pnpm is + # preinstalled on the runner and vp skips its bootstrap fetch. + # Tracking upstream: + # https://github.com/SocketDev/sfw-free/issues/30 + # https://github.com/SocketDev/sfw-free/issues/43 strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] version: [latest, alpha] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 diff --git a/README.md b/README.md index bea74a6..6d4ee14 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,9 @@ steps: `sfw` is only applied when `run-install` is enabled; other `vp` commands (e.g. `vp env use`, `vp --version`) run unwrapped. +> [!IMPORTANT] +> **Linux-only on hosted GitHub runners.** `sfw` ships a self-signed CA whose certificate has an empty Extended Key Usage extension. Strict TLS stacks like rustls (used by `vp`) reject this as `UnknownIssuer`, so `vp install` fails the TLS handshake on macOS / Windows runners (which have to bootstrap pnpm through `sfw`'s proxy). Ubuntu runners work because pnpm is preinstalled, letting `vp install` skip the bootstrap fetch. The action will still install the `sfw` binary on macOS / Windows so users can call it directly (e.g. `sfw npm ci` in a follow-up step), but `setup-vp`'s own `run-install` step is only verified end-to-end on Linux. Track upstream at [SocketDev/sfw-free#30](https://github.com/SocketDev/sfw-free/issues/30) and [#43](https://github.com/SocketDev/sfw-free/issues/43). + ### Alpine Container Alpine Linux uses musl libc instead of glibc. Install compatibility packages before using the action: From f5f2b16de3f7b95fa5ce9398c03e7b55bd6a4529 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 15:50:33 +0800 Subject: [PATCH 04/18] feat(sfw): fall back to plain vp install on non-Linux with a warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sfw v1.10.0 issues a TLS cert with an empty EKU extension that vp's rustls rejects (UnknownIssuer). To keep `sfw: true` safe to set in cross-platform workflows, the action now: - Checks process.platform === 'linux' via isSfwSupported() - On non-Linux: emits a warning, skips the sfw binary download, and runs plain `vp install` (no sfw wrap) - On Linux: behavior unchanged — downloads sfw and runs `sfw vp install` CI: test-sfw matrix is restored to Linux/macOS/Windows. Linux asserts sfw is on PATH; macOS/Windows assert sfw is NOT on PATH (fallback) and the plain install still completes. Tracking upstream: https://github.com/SocketDev/sfw-free/issues/30 https://github.com/SocketDev/sfw-free/issues/43 --- .github/workflows/test.yml | 31 ++++++++++++----- README.md | 2 +- dist/index.mjs | 68 +++++++++++++++++++------------------- src/index.ts | 17 +++++++--- src/install-sfw.test.ts | 8 ++++- src/install-sfw.ts | 9 +++++ 6 files changed, 86 insertions(+), 49 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e08e2de..0b101ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -293,20 +293,22 @@ jobs: run: vp exec node -e "console.log('vp exec works in Alpine')" test-sfw: - # Linux-only: sfw's MITM proxy issues a CA cert with a present-but-empty - # EKU extension. OpenSSL accepts it, but rustls / Go's crypto/x509 reject - # it as UnknownIssuer. vp is a Rust binary (rustls), so on macOS / Windows - # any HTTPS call vp makes through sfw fails the TLS handshake before sfw - # can inspect the install. Ubuntu happens to work because pnpm is - # preinstalled on the runner and vp skips its bootstrap fetch. + # On Linux: sfw wraps vp install end-to-end (sfw binary downloaded, + # `sfw vp install` runs). + # On macOS / Windows: sfw is temporarily unsupported because sfw v1.10.0 + # issues a TLS cert with an empty EKU extension that vp's rustls rejects + # (UnknownIssuer). The action emits a warning and falls back to plain + # `vp install`; no sfw binary is downloaded. We assert that fallback by + # checking `sfw` is NOT on PATH while the install still succeeds. # Tracking upstream: # https://github.com/SocketDev/sfw-free/issues/30 # https://github.com/SocketDev/sfw-free/issues/43 strategy: fail-fast: false matrix: + os: [ubuntu-latest, macos-latest, windows-latest] version: [latest, alpha] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 @@ -326,10 +328,21 @@ jobs: - cwd: test-project cache: false - - name: Verify sfw is on PATH + - name: Verify sfw is on PATH (Linux only) + if: runner.os == 'Linux' run: sfw --version - - name: Verify dependency installed under sfw + - name: Verify sfw fallback on non-Linux (sfw NOT installed) + if: runner.os != 'Linux' + shell: bash + run: | + if command -v sfw >/dev/null 2>&1; then + echo "ERROR: expected sfw to be absent on ${{ runner.os }} (fallback path), but it is on PATH" + exit 1 + fi + echo "OK: sfw is not on PATH; fallback to plain vp install confirmed" + + - name: Verify dependency installed working-directory: test-project run: vp exec node -e "console.log(require('is-odd')(3))" diff --git a/README.md b/README.md index 6d4ee14..c0b8b9c 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ steps: `sfw` is only applied when `run-install` is enabled; other `vp` commands (e.g. `vp env use`, `vp --version`) run unwrapped. > [!IMPORTANT] -> **Linux-only on hosted GitHub runners.** `sfw` ships a self-signed CA whose certificate has an empty Extended Key Usage extension. Strict TLS stacks like rustls (used by `vp`) reject this as `UnknownIssuer`, so `vp install` fails the TLS handshake on macOS / Windows runners (which have to bootstrap pnpm through `sfw`'s proxy). Ubuntu runners work because pnpm is preinstalled, letting `vp install` skip the bootstrap fetch. The action will still install the `sfw` binary on macOS / Windows so users can call it directly (e.g. `sfw npm ci` in a follow-up step), but `setup-vp`'s own `run-install` step is only verified end-to-end on Linux. Track upstream at [SocketDev/sfw-free#30](https://github.com/SocketDev/sfw-free/issues/30) and [#43](https://github.com/SocketDev/sfw-free/issues/43). +> **Linux-only for now.** `sfw` ships a self-signed CA whose certificate has an empty Extended Key Usage extension. Strict TLS stacks like rustls (used by `vp`) reject it as `UnknownIssuer`, so `vp install` fails the TLS handshake on macOS / Windows. To keep `sfw: true` safe to set unconditionally in cross-platform workflows, the action **falls back to plain `vp install` with a warning on non-Linux platforms** — it does not download the `sfw` binary there. Once [SocketDev/sfw-free#30](https://github.com/SocketDev/sfw-free/issues/30) / [#43](https://github.com/SocketDev/sfw-free/issues/43) ship a fix, the platform check will be relaxed. ### Alpine Container diff --git a/dist/index.mjs b/dist/index.mjs index 4ddd642..a1f0ed3 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -190,50 +190,50 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ea,s=!fa.jitless,c=s&&Da.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Bs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Us(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Va(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ga(e,r,pa())))}),t)}const Ws=z(`$ZodUnion`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),ba(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),ba(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),ba(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>va(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Us(t,r,e,i)):Us(o,r,e,i)}}),Gs=z(`$ZodIntersection`,(e,t)=>{rs.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>qs(e,t,n)):qs(e,i,a)}});function Ks(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Oa(e)&&Oa(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ks(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Va(e))return e;let o=Ks(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Js=z(`$ZodEnum`,(e,t)=>{rs.init(e,t);let n=ma(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Aa.has(typeof e)).map(e=>typeof e==`string`?ja(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ys=z(`$ZodTransform`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ua;return n.value=i,n.fallback=!0,n}});function Xs(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Zs=z(`$ZodOptional`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Xs(e,r)):Xs(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Qs=z(`$ZodExactOptional`,(e,t)=>{Zs.init(e,t),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),$s=z(`$ZodNullable`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.innerType._zod.optin),ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)}|null)$`):void 0}),ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ec=z(`$ZodDefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>tc(e,t)):tc(r,t)}});function tc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const nc=z(`$ZodPrefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),rc=z(`$ZodNonOptional`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ic(t,e)):ic(i,e)}});function ic(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const ac=z(`$ZodCatch`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),oc=z(`$ZodPipe`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>t.in._zod.values),ba(e._zod,`optin`,()=>t.in._zod.optin),ba(e._zod,`optout`,()=>t.out._zod.optout),ba(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.in,n)):sc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.out,n)):sc(r,t.out,n)}});function sc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const cc=z(`$ZodReadonly`,(e,t)=>{rs.init(e,t),ba(e._zod,`propValues`,()=>t.innerType._zod.propValues),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`optin`,()=>t.innerType?._zod?.optin),ba(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(lc):lc(r)}});function lc(e){return e.value=Object.freeze(e.value),e}const uc=z(`$ZodCustom`,(e,t)=>{Uo.init(e,t),rs.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>dc(t,n,r,e));dc(i,n,r,e)}});function dc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(qa(e))}}var fc,pc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function mc(){return new pc}(fc=globalThis).__zod_globalRegistry??(fc.__zod_globalRegistry=mc());const hc=globalThis.__zod_globalRegistry;function gc(e,t){return new e({type:`string`,...B(t)})}function _c(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...B(t)})}function vc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...B(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...B(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...B(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...B(t)})}function Sc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...B(t)})}function Cc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...B(t)})}function wc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...B(t)})}function Tc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...B(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...B(t)})}function Dc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...B(t)})}function Oc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...B(t)})}function kc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...B(t)})}function Ac(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...B(t)})}function jc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...B(t)})}function Mc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...B(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...B(t)})}function Pc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...B(t)})}function Fc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...B(t)})}function Ic(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...B(t)})}function Lc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...B(t)})}function Rc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...B(t)})}function zc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...B(t)})}function Bc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...B(t)})}function Vc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...B(t)})}function Hc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...B(t)})}function Uc(e,t){return new e({type:`boolean`,...B(t)})}function Wc(e,t){return new e({type:`null`,...B(t)})}function Gc(e){return new e({type:`unknown`})}function Kc(e,t){return new e({type:`never`,...B(t)})}function qc(e,t){return new Wo({check:`max_length`,...B(t),maximum:e})}function Jc(e,t){return new Go({check:`min_length`,...B(t),minimum:e})}function Yc(e,t){return new Ko({check:`length_equals`,...B(t),length:e})}function Xc(e,t){return new Jo({check:`string_format`,format:`regex`,...B(t),pattern:e})}function Zc(e){return new Yo({check:`string_format`,format:`lowercase`,...B(e)})}function Qc(e){return new Xo({check:`string_format`,format:`uppercase`,...B(e)})}function $c(e,t){return new Zo({check:`string_format`,format:`includes`,...B(t),includes:e})}function el(e,t){return new Qo({check:`string_format`,format:`starts_with`,...B(t),prefix:e})}function tl(e,t){return new $o({check:`string_format`,format:`ends_with`,...B(t),suffix:e})}function nl(e){return new es({check:`overwrite`,tx:e})}function rl(e){return nl(t=>t.normalize(e))}function il(){return nl(e=>e.trim())}function al(){return nl(e=>e.toLowerCase())}function ol(){return nl(e=>e.toUpperCase())}function sl(){return nl(e=>wa(e))}function cl(e,t,n){return new e({type:`array`,element:t,...B(n)})}function ll(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...B(n)})}function ul(e,t){let n=dl(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(qa(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(qa(r))}},e(t.value,t)),t);return n}function dl(e,t){let n=new Uo({check:`custom`,...B(t)});return n._zod.check=e,n}function fl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??hc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function pl(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,pl(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&gl(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ml(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vl(t,`input`,e.processors),output:vl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function gl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return gl(r.element,n);if(r.type===`set`)return gl(r.valueType,n);if(r.type===`lazy`)return gl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return gl(r.innerType,n);if(r.type===`intersection`)return gl(r.left,n)||gl(r.right,n);if(r.type===`record`||r.type===`map`)return gl(r.keyType,n)||gl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:gl(r.in,n)||gl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(gl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(gl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(gl(e,n))return!0;return!!(r.rest&&gl(r.rest,n))}return!1}const _l=(e,t={})=>n=>{let r=fl({...n,processors:t});return pl(e,r),ml(r,e),hl(r,e)},vl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=fl({...i??{},target:a,io:t,processors:n});return pl(e,o),ml(o,e),hl(o,e)},yl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xl=(e,t,n,r)=>{n.type=`boolean`},Sl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Cl=(e,t,n,r)=>{n.not={}},wl=(e,t,n,r)=>{let i=e._zod.def,a=ma(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pl(a.element,t,{...r,path:[...r.path,`items`]})},Ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=pl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Al=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},jl=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ml=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Pl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Il=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;pl(o,t,r);let s=t.seen.get(e);s.ref=o},Ll=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Rl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},zl=z(`ZodISODateTime`,(e,t)=>{_s.init(e,t),mu.init(e,t)});function Bl(e){return zc(zl,e)}const Vl=z(`ZodISODate`,(e,t)=>{vs.init(e,t),mu.init(e,t)});function Hl(e){return Bc(Vl,e)}const Ul=z(`ZodISOTime`,(e,t)=>{ys.init(e,t),mu.init(e,t)});function Wl(e){return Vc(Ul,e)}const Gl=z(`ZodISODuration`,(e,t)=>{bs.init(e,t),mu.init(e,t)});function Kl(e){return Hc(Gl,e)}const ql=(e,t)=>{Ya.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qa(e,t)},flatten:{value:t=>Za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ha,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ha,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jl=z(`ZodError`,ql),Yl=z(`ZodError`,ql,{Parent:Error}),Xl=$a(Yl),Zl=eo(Yl),Ql=to(Yl),$l=ro(Yl),eu=ao(Yl),tu=oo(Yl),nu=so(Yl),ru=co(Yl),iu=lo(Yl),au=uo(Yl),ou=fo(Yl),su=po(Yl),cu=new WeakMap;function lu(e,t,n){let r=Object.getPrototypeOf(e),i=cu.get(r);if(i||(i=new Set,cu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const uu=z(`ZodType`,(e,t)=>(rs.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vl(e,`input`),output:vl(e,`output`)}}),e.toJSONSchema=_l(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Xl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>Zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$l(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eu(e,t,n),e.decode=(t,n)=>tu(e,t,n),e.encodeAsync=async(t,n)=>nu(e,t,n),e.decodeAsync=async(t,n)=>ru(e,t,n),e.safeEncode=(t,n)=>iu(e,t,n),e.safeDecode=(t,n)=>au(e,t,n),e.safeEncodeAsync=async(t,n)=>ou(e,t,n),e.safeDecodeAsync=async(t,n)=>su(e,t,n),lu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Sa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ma(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(yd(e,t))},superRefine(e,t){return this.check(bd(e,t))},overwrite(e){return this.check(nl(e))},optional(){return td(this)},exactOptional(){return rd(this)},nullable(){return ad(this)},nullish(){return td(ad(this))},nonoptional(e){return dd(this,e)},array(){return Uu(this)},or(e){return qu([this,e])},and(e){return Yu(this,e)},transform(e){return hd(this,$u(e))},default(e){return sd(this,e)},prefault(e){return ld(this,e)},catch(e){return pd(this,e)},pipe(e){return hd(this,e)},readonly(){return _d(this)},describe(e){let t=this.clone();return hc.add(t,{description:e}),t},meta(...e){if(e.length===0)return hc.get(this);let t=this.clone();return hc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return hc.get(e)?.description},configurable:!0}),e)),du=z(`_ZodString`,(e,t)=>{is.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,lu(e,`_ZodString`,{regex(...e){return this.check(Xc(...e))},includes(...e){return this.check($c(...e))},startsWith(...e){return this.check(el(...e))},endsWith(...e){return this.check(tl(...e))},min(...e){return this.check(Jc(...e))},max(...e){return this.check(qc(...e))},length(...e){return this.check(Yc(...e))},nonempty(...e){return this.check(Jc(1,...e))},lowercase(e){return this.check(Zc(e))},uppercase(e){return this.check(Qc(e))},trim(){return this.check(il())},normalize(...e){return this.check(rl(...e))},toLowerCase(){return this.check(al())},toUpperCase(){return this.check(ol())},slugify(){return this.check(sl())}})}),fu=z(`ZodString`,(e,t)=>{is.init(e,t),du.init(e,t),e.email=t=>e.check(_c(hu,t)),e.url=t=>e.check(Cc(vu,t)),e.jwt=t=>e.check(Rc(Nu,t)),e.emoji=t=>e.check(wc(yu,t)),e.guid=t=>e.check(vc(gu,t)),e.uuid=t=>e.check(yc(_u,t)),e.uuidv4=t=>e.check(bc(_u,t)),e.uuidv6=t=>e.check(xc(_u,t)),e.uuidv7=t=>e.check(Sc(_u,t)),e.nanoid=t=>e.check(Tc(bu,t)),e.guid=t=>e.check(vc(gu,t)),e.cuid=t=>e.check(Ec(xu,t)),e.cuid2=t=>e.check(Dc(Su,t)),e.ulid=t=>e.check(Oc(Cu,t)),e.base64=t=>e.check(Fc(Au,t)),e.base64url=t=>e.check(Ic(ju,t)),e.xid=t=>e.check(kc(wu,t)),e.ksuid=t=>e.check(Ac(Tu,t)),e.ipv4=t=>e.check(jc(Eu,t)),e.ipv6=t=>e.check(Mc(Du,t)),e.cidrv4=t=>e.check(Nc(Ou,t)),e.cidrv6=t=>e.check(Pc(ku,t)),e.e164=t=>e.check(Lc(Mu,t)),e.datetime=t=>e.check(Bl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Wl(t)),e.duration=t=>e.check(Kl(t))});function pu(e){return gc(fu,e)}const mu=z(`ZodStringFormat`,(e,t)=>{as.init(e,t),du.init(e,t)}),hu=z(`ZodEmail`,(e,t)=>{cs.init(e,t),mu.init(e,t)}),gu=z(`ZodGUID`,(e,t)=>{os.init(e,t),mu.init(e,t)}),_u=z(`ZodUUID`,(e,t)=>{ss.init(e,t),mu.init(e,t)}),vu=z(`ZodURL`,(e,t)=>{ls.init(e,t),mu.init(e,t)}),yu=z(`ZodEmoji`,(e,t)=>{us.init(e,t),mu.init(e,t)}),bu=z(`ZodNanoID`,(e,t)=>{ds.init(e,t),mu.init(e,t)}),xu=z(`ZodCUID`,(e,t)=>{fs.init(e,t),mu.init(e,t)}),Su=z(`ZodCUID2`,(e,t)=>{ps.init(e,t),mu.init(e,t)}),Cu=z(`ZodULID`,(e,t)=>{ms.init(e,t),mu.init(e,t)}),wu=z(`ZodXID`,(e,t)=>{hs.init(e,t),mu.init(e,t)}),Tu=z(`ZodKSUID`,(e,t)=>{gs.init(e,t),mu.init(e,t)}),Eu=z(`ZodIPv4`,(e,t)=>{xs.init(e,t),mu.init(e,t)}),Du=z(`ZodIPv6`,(e,t)=>{Ss.init(e,t),mu.init(e,t)}),Ou=z(`ZodCIDRv4`,(e,t)=>{Cs.init(e,t),mu.init(e,t)}),ku=z(`ZodCIDRv6`,(e,t)=>{ws.init(e,t),mu.init(e,t)}),Au=z(`ZodBase64`,(e,t)=>{Es.init(e,t),mu.init(e,t)}),ju=z(`ZodBase64URL`,(e,t)=>{Os.init(e,t),mu.init(e,t)}),Mu=z(`ZodE164`,(e,t)=>{ks.init(e,t),mu.init(e,t)}),Nu=z(`ZodJWT`,(e,t)=>{js.init(e,t),mu.init(e,t)}),Pu=z(`ZodBoolean`,(e,t)=>{Ms.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Fu(e){return Uc(Pu,e)}const Iu=z(`ZodNull`,(e,t)=>{Ns.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Lu(e){return Wc(Iu,e)}const Ru=z(`ZodUnknown`,(e,t)=>{Ps.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zu(){return Gc(Ru)}const Bu=z(`ZodNever`,(e,t)=>{Fs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function Vu(e){return Kc(Bu,e)}const Hu=z(`ZodArray`,(e,t)=>{Ls.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.element=t.element,lu(e,`ZodArray`,{min(e,t){return this.check(Jc(e,t))},nonempty(e){return this.check(Jc(1,e))},max(e,t){return this.check(qc(e,t))},length(e,t){return this.check(Yc(e,t))},unwrap(){return this.element}})});function Uu(e,t){return cl(Hu,e,t)}const Wu=z(`ZodObject`,(e,t)=>{Hs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),ba(e,`shape`,()=>t.shape),lu(e,`ZodObject`,{keyof(){return Zu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:zu()})},loose(){return this.clone({...this._zod.def,catchall:zu()})},strict(){return this.clone({...this._zod.def,catchall:Vu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ia(this,e)},safeExtend(e){return La(this,e)},merge(e){return Ra(this,e)},pick(e){return Pa(this,e)},omit(e){return Fa(this,e)},partial(...e){return za(ed,this,e[0])},required(...e){return Ba(ud,this,e[0])}})});function Gu(e,t){return new Wu({type:`object`,shape:e??{},...B(t)})}const Ku=z(`ZodUnion`,(e,t)=>{Ws.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.options=t.options});function qu(e,t){return new Ku({type:`union`,options:e,...B(t)})}const Ju=z(`ZodIntersection`,(e,t)=>{Gs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Yu(e,t){return new Ju({type:`intersection`,left:e,right:t})}const Xu=z(`ZodEnum`,(e,t)=>{Js.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})}});function Zu(e,t){return new Xu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Qu=z(`ZodTransform`,(e,t)=>{Ys.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new Qu({type:`transform`,transform:e})}const ed=z(`ZodOptional`,(e,t)=>{Zs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodExactOptional`,(e,t)=>{Qs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`optional`,innerType:e})}const id=z(`ZodNullable`,(e,t)=>{$s.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new id({type:`nullable`,innerType:e})}const od=z(`ZodDefault`,(e,t)=>{ec.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sd(e,t){return new od({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const cd=z(`ZodPrefault`,(e,t)=>{nc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const ud=z(`ZodNonOptional`,(e,t)=>{rc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dd(e,t){return new ud({type:`nonoptional`,innerType:e,...B(t)})}const fd=z(`ZodCatch`,(e,t)=>{ac.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pd(e,t){return new fd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const md=z(`ZodPipe`,(e,t)=>{oc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.in=t.in,e.out=t.out});function hd(e,t){return new md({type:`pipe`,in:e,out:t})}const gd=z(`ZodReadonly`,(e,t)=>{cc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new gd({type:`readonly`,innerType:e})}const vd=z(`ZodCustom`,(e,t)=>{uc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r)});function yd(e,t={}){return ll(vd,e,t)}function bd(e,t){return ul(e,t)}var xd=ca();const Sd=Gu({cwd:pu().optional(),args:Uu(pu()).optional()}),Cd=qu([Lu(),Fu(),Sd,Uu(Sd)]),wd=`Vite+`;function Td(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Ed(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Ed(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,xd.parse)(e);try{let e=Cd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Jl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Dd(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Od(){return process.env.GITHUB_WORKSPACE||process.cwd()}function kd(e,t){return ee(e)?e:N(t,e)}function Ad(e){if(!e.workingDirectory)return Od();let t=kd(e.workingDirectory,Od());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function jd(e,t){return t?kd(t,e):e}const Md=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Nd(e,t=Od()){if(e){let n=kd(e,t);if(ae(n)){let e=j(n),t=Md.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Pd(n,e)}return}let n=ce(t);for(let e of Md)if(n.includes(e.filename)){let n=N(t,e.filename);return Br(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Pd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Fd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Ld(t);default:return[]}}async function Id(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Ld(e){let t=await Id(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Rd=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],zd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Bd=2e3;async function Vd(e){let{version:t}=e;Br(`Installing ${wd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?zd:Rd,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Hd(e,n);if(t===0){Ud();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=cf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=cf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=ef(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=ef(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function uf(e,t){let n=sf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function df(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var ff=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),mf=P(((e,t)=>{var n=ff(),r=pf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=mf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new _f(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),yf?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:yf,nocomment:!0,noext:!0,nonegate:!0};a=yf?a.replace(/\\/g,`/`):a,this.minimatch=new vf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=af(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=of(e),this.minimatch.match(e)?this.trailingSeparator?sf.Directory:sf.All:sf.None}partialMatch(e){return e=of(e),ef(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(yf?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(yf?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new _f(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!rf(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=af(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(nf(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(yf&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=tf(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(yf&&(n===`\\`||n.match(/^\\[^\\]/))){let t=tf(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=tf(e.globEscape(process.cwd()),n);return af(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},xf=class{constructor(e,t){this.path=e,this.level=t}},Sf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Cf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},wf=function(e){return this instanceof wf?(this.v=e,this):new wf(e)},Tf=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof wf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Ef=process.platform===`win32`;var Df=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=Qd(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Sf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Cf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Tf(this,arguments,function*(){let t=Qd(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new bf(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of lf(n)){R(`Search path '${e}'`);try{yield wf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new xf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=uf(n,o.path),c=!!s||df(n,o.path);if(!s&&!c)continue;let l=yield wf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&sf.Directory&&t.matchDirectories)yield yield wf(o.path);else if(!c)continue;let e=o.level+1,n=(yield wf(a.promises.readdir(o.path))).map(t=>new xf(u.join(o.path,t),e));r.push(...n.reverse())}else s&sf.File&&(yield yield wf(o.path))}})}static create(t,n){return Sf(this,void 0,void 0,function*(){let r=new e(n);Ef&&(t=t.replace(/\r\n/g,` +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vl(t,`input`,e.processors),output:vl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function gl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return gl(r.element,n);if(r.type===`set`)return gl(r.valueType,n);if(r.type===`lazy`)return gl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return gl(r.innerType,n);if(r.type===`intersection`)return gl(r.left,n)||gl(r.right,n);if(r.type===`record`||r.type===`map`)return gl(r.keyType,n)||gl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:gl(r.in,n)||gl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(gl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(gl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(gl(e,n))return!0;return!!(r.rest&&gl(r.rest,n))}return!1}const _l=(e,t={})=>n=>{let r=fl({...n,processors:t});return pl(e,r),ml(r,e),hl(r,e)},vl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=fl({...i??{},target:a,io:t,processors:n});return pl(e,o),ml(o,e),hl(o,e)},yl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xl=(e,t,n,r)=>{n.type=`boolean`},Sl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Cl=(e,t,n,r)=>{n.not={}},wl=(e,t,n,r)=>{let i=e._zod.def,a=ma(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pl(a.element,t,{...r,path:[...r.path,`items`]})},Ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=pl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Al=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},jl=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ml=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Pl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Il=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;pl(o,t,r);let s=t.seen.get(e);s.ref=o},Ll=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Rl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},zl=z(`ZodISODateTime`,(e,t)=>{_s.init(e,t),mu.init(e,t)});function Bl(e){return zc(zl,e)}const Vl=z(`ZodISODate`,(e,t)=>{vs.init(e,t),mu.init(e,t)});function Hl(e){return Bc(Vl,e)}const Ul=z(`ZodISOTime`,(e,t)=>{ys.init(e,t),mu.init(e,t)});function Wl(e){return Vc(Ul,e)}const Gl=z(`ZodISODuration`,(e,t)=>{bs.init(e,t),mu.init(e,t)});function Kl(e){return Hc(Gl,e)}const ql=(e,t)=>{Ya.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qa(e,t)},flatten:{value:t=>Za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ha,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ha,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jl=z(`ZodError`,ql),Yl=z(`ZodError`,ql,{Parent:Error}),Xl=$a(Yl),Zl=eo(Yl),Ql=to(Yl),$l=ro(Yl),eu=ao(Yl),tu=oo(Yl),nu=so(Yl),ru=co(Yl),iu=lo(Yl),au=uo(Yl),ou=fo(Yl),su=po(Yl),cu=new WeakMap;function lu(e,t,n){let r=Object.getPrototypeOf(e),i=cu.get(r);if(i||(i=new Set,cu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const uu=z(`ZodType`,(e,t)=>(rs.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vl(e,`input`),output:vl(e,`output`)}}),e.toJSONSchema=_l(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Xl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>Zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$l(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eu(e,t,n),e.decode=(t,n)=>tu(e,t,n),e.encodeAsync=async(t,n)=>nu(e,t,n),e.decodeAsync=async(t,n)=>ru(e,t,n),e.safeEncode=(t,n)=>iu(e,t,n),e.safeDecode=(t,n)=>au(e,t,n),e.safeEncodeAsync=async(t,n)=>ou(e,t,n),e.safeDecodeAsync=async(t,n)=>su(e,t,n),lu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Sa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ma(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(yd(e,t))},superRefine(e,t){return this.check(bd(e,t))},overwrite(e){return this.check(nl(e))},optional(){return td(this)},exactOptional(){return rd(this)},nullable(){return ad(this)},nullish(){return td(ad(this))},nonoptional(e){return dd(this,e)},array(){return Uu(this)},or(e){return qu([this,e])},and(e){return Yu(this,e)},transform(e){return hd(this,$u(e))},default(e){return sd(this,e)},prefault(e){return ld(this,e)},catch(e){return pd(this,e)},pipe(e){return hd(this,e)},readonly(){return _d(this)},describe(e){let t=this.clone();return hc.add(t,{description:e}),t},meta(...e){if(e.length===0)return hc.get(this);let t=this.clone();return hc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return hc.get(e)?.description},configurable:!0}),e)),du=z(`_ZodString`,(e,t)=>{is.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,lu(e,`_ZodString`,{regex(...e){return this.check(Xc(...e))},includes(...e){return this.check($c(...e))},startsWith(...e){return this.check(el(...e))},endsWith(...e){return this.check(tl(...e))},min(...e){return this.check(Jc(...e))},max(...e){return this.check(qc(...e))},length(...e){return this.check(Yc(...e))},nonempty(...e){return this.check(Jc(1,...e))},lowercase(e){return this.check(Zc(e))},uppercase(e){return this.check(Qc(e))},trim(){return this.check(il())},normalize(...e){return this.check(rl(...e))},toLowerCase(){return this.check(al())},toUpperCase(){return this.check(ol())},slugify(){return this.check(sl())}})}),fu=z(`ZodString`,(e,t)=>{is.init(e,t),du.init(e,t),e.email=t=>e.check(_c(hu,t)),e.url=t=>e.check(Cc(vu,t)),e.jwt=t=>e.check(Rc(Nu,t)),e.emoji=t=>e.check(wc(yu,t)),e.guid=t=>e.check(vc(gu,t)),e.uuid=t=>e.check(yc(_u,t)),e.uuidv4=t=>e.check(bc(_u,t)),e.uuidv6=t=>e.check(xc(_u,t)),e.uuidv7=t=>e.check(Sc(_u,t)),e.nanoid=t=>e.check(Tc(bu,t)),e.guid=t=>e.check(vc(gu,t)),e.cuid=t=>e.check(Ec(xu,t)),e.cuid2=t=>e.check(Dc(Su,t)),e.ulid=t=>e.check(Oc(Cu,t)),e.base64=t=>e.check(Fc(Au,t)),e.base64url=t=>e.check(Ic(ju,t)),e.xid=t=>e.check(kc(wu,t)),e.ksuid=t=>e.check(Ac(Tu,t)),e.ipv4=t=>e.check(jc(Eu,t)),e.ipv6=t=>e.check(Mc(Du,t)),e.cidrv4=t=>e.check(Nc(Ou,t)),e.cidrv6=t=>e.check(Pc(ku,t)),e.e164=t=>e.check(Lc(Mu,t)),e.datetime=t=>e.check(Bl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Wl(t)),e.duration=t=>e.check(Kl(t))});function pu(e){return gc(fu,e)}const mu=z(`ZodStringFormat`,(e,t)=>{as.init(e,t),du.init(e,t)}),hu=z(`ZodEmail`,(e,t)=>{cs.init(e,t),mu.init(e,t)}),gu=z(`ZodGUID`,(e,t)=>{os.init(e,t),mu.init(e,t)}),_u=z(`ZodUUID`,(e,t)=>{ss.init(e,t),mu.init(e,t)}),vu=z(`ZodURL`,(e,t)=>{ls.init(e,t),mu.init(e,t)}),yu=z(`ZodEmoji`,(e,t)=>{us.init(e,t),mu.init(e,t)}),bu=z(`ZodNanoID`,(e,t)=>{ds.init(e,t),mu.init(e,t)}),xu=z(`ZodCUID`,(e,t)=>{fs.init(e,t),mu.init(e,t)}),Su=z(`ZodCUID2`,(e,t)=>{ps.init(e,t),mu.init(e,t)}),Cu=z(`ZodULID`,(e,t)=>{ms.init(e,t),mu.init(e,t)}),wu=z(`ZodXID`,(e,t)=>{hs.init(e,t),mu.init(e,t)}),Tu=z(`ZodKSUID`,(e,t)=>{gs.init(e,t),mu.init(e,t)}),Eu=z(`ZodIPv4`,(e,t)=>{xs.init(e,t),mu.init(e,t)}),Du=z(`ZodIPv6`,(e,t)=>{Ss.init(e,t),mu.init(e,t)}),Ou=z(`ZodCIDRv4`,(e,t)=>{Cs.init(e,t),mu.init(e,t)}),ku=z(`ZodCIDRv6`,(e,t)=>{ws.init(e,t),mu.init(e,t)}),Au=z(`ZodBase64`,(e,t)=>{Es.init(e,t),mu.init(e,t)}),ju=z(`ZodBase64URL`,(e,t)=>{Os.init(e,t),mu.init(e,t)}),Mu=z(`ZodE164`,(e,t)=>{ks.init(e,t),mu.init(e,t)}),Nu=z(`ZodJWT`,(e,t)=>{js.init(e,t),mu.init(e,t)}),Pu=z(`ZodBoolean`,(e,t)=>{Ms.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Fu(e){return Uc(Pu,e)}const Iu=z(`ZodNull`,(e,t)=>{Ns.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Lu(e){return Wc(Iu,e)}const Ru=z(`ZodUnknown`,(e,t)=>{Ps.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zu(){return Gc(Ru)}const Bu=z(`ZodNever`,(e,t)=>{Fs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function Vu(e){return Kc(Bu,e)}const Hu=z(`ZodArray`,(e,t)=>{Ls.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.element=t.element,lu(e,`ZodArray`,{min(e,t){return this.check(Jc(e,t))},nonempty(e){return this.check(Jc(1,e))},max(e,t){return this.check(qc(e,t))},length(e,t){return this.check(Yc(e,t))},unwrap(){return this.element}})});function Uu(e,t){return cl(Hu,e,t)}const Wu=z(`ZodObject`,(e,t)=>{Hs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),ba(e,`shape`,()=>t.shape),lu(e,`ZodObject`,{keyof(){return Zu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:zu()})},loose(){return this.clone({...this._zod.def,catchall:zu()})},strict(){return this.clone({...this._zod.def,catchall:Vu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ia(this,e)},safeExtend(e){return La(this,e)},merge(e){return Ra(this,e)},pick(e){return Pa(this,e)},omit(e){return Fa(this,e)},partial(...e){return za(ed,this,e[0])},required(...e){return Ba(ud,this,e[0])}})});function Gu(e,t){return new Wu({type:`object`,shape:e??{},...B(t)})}const Ku=z(`ZodUnion`,(e,t)=>{Ws.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.options=t.options});function qu(e,t){return new Ku({type:`union`,options:e,...B(t)})}const Ju=z(`ZodIntersection`,(e,t)=>{Gs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Yu(e,t){return new Ju({type:`intersection`,left:e,right:t})}const Xu=z(`ZodEnum`,(e,t)=>{Js.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})}});function Zu(e,t){return new Xu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Qu=z(`ZodTransform`,(e,t)=>{Ys.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new Qu({type:`transform`,transform:e})}const ed=z(`ZodOptional`,(e,t)=>{Zs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodExactOptional`,(e,t)=>{Qs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`optional`,innerType:e})}const id=z(`ZodNullable`,(e,t)=>{$s.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new id({type:`nullable`,innerType:e})}const od=z(`ZodDefault`,(e,t)=>{ec.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sd(e,t){return new od({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const cd=z(`ZodPrefault`,(e,t)=>{nc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const ud=z(`ZodNonOptional`,(e,t)=>{rc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dd(e,t){return new ud({type:`nonoptional`,innerType:e,...B(t)})}const fd=z(`ZodCatch`,(e,t)=>{ac.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pd(e,t){return new fd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const md=z(`ZodPipe`,(e,t)=>{oc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.in=t.in,e.out=t.out});function hd(e,t){return new md({type:`pipe`,in:e,out:t})}const gd=z(`ZodReadonly`,(e,t)=>{cc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new gd({type:`readonly`,innerType:e})}const vd=z(`ZodCustom`,(e,t)=>{uc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r)});function yd(e,t={}){return ll(vd,e,t)}function bd(e,t){return ul(e,t)}var xd=ca();const Sd=Gu({cwd:pu().optional(),args:Uu(pu()).optional()}),Cd=qu([Lu(),Fu(),Sd,Uu(Sd)]),wd=`Vite+`;function Td(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Ed(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Ed(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,xd.parse)(e);try{let e=Cd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Jl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Dd(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Od(){return process.env.GITHUB_WORKSPACE||process.cwd()}function kd(e,t){return ee(e)?e:N(t,e)}function Ad(e){if(!e.workingDirectory)return Od();let t=kd(e.workingDirectory,Od());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function jd(e,t){return t?kd(t,e):e}const Md=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Nd(e,t=Od()){if(e){let n=kd(e,t);if(ae(n)){let e=j(n),t=Md.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Pd(n,e)}return}let n=ce(t);for(let e of Md)if(n.includes(e.filename)){let n=N(t,e.filename);return Br(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Pd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Fd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Ld(t);default:return[]}}async function Id(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Ld(e){let t=await Id(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Rd=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],zd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Bd=2e3;async function Vd(e){let{version:t}=e;Br(`Installing ${wd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?zd:Rd,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Hd(e,n);if(t===0){Ud();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=lf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=lf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=tf(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=tf(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function df(e,t){let n=cf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function ff(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var pf=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),hf=P(((e,t)=>{var n=pf(),r=mf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=hf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new vf(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),bf?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:bf,nocomment:!0,noext:!0,nonegate:!0};a=bf?a.replace(/\\/g,`/`):a,this.minimatch=new yf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=of(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=sf(e),this.minimatch.match(e)?this.trailingSeparator?cf.Directory:cf.All:cf.None}partialMatch(e){return e=sf(e),tf(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(bf?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(bf?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new vf(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!af(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=of(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(rf(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(bf&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=nf(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(bf&&(n===`\\`||n.match(/^\\[^\\]/))){let t=nf(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=nf(e.globEscape(process.cwd()),n);return of(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},Sf=class{constructor(e,t){this.path=e,this.level=t}},Cf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},wf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},Tf=function(e){return this instanceof Tf?(this.v=e,this):new Tf(e)},Ef=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Tf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Df=process.platform===`win32`;var Of=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=$d(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Cf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=wf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Ef(this,arguments,function*(){let t=$d(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new xf(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of uf(n)){R(`Search path '${e}'`);try{yield Tf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new Sf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=df(n,o.path),c=!!s||ff(n,o.path);if(!s&&!c)continue;let l=yield Tf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&cf.Directory&&t.matchDirectories)yield yield Tf(o.path);else if(!c)continue;let e=o.level+1,n=(yield Tf(a.promises.readdir(o.path))).map(t=>new Sf(u.join(o.path,t),e));r.push(...n.reverse())}else s&cf.File&&(yield yield Tf(o.path))}})}static create(t,n){return Cf(this,void 0,void 0,function*(){let r=new e(n);Df&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new bf(e));return r.searchPaths.push(...lf(r.patterns)),r})}static stat(e,t,n){return Sf(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Of=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function kf(e,t){return Of(this,void 0,void 0,function*(){return yield Df.create(e,t)})}var Af=P(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),jf=P(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Mf=P(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Af(),a=jf();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Nf=P(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Pf=P(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),Ff=P(((e,t)=>{let n=jf(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Af(),{safeRe:a,t:o}=Mf(),s=Nf(),{compareIdentifiers:c}=Pf();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),If=P(((e,t)=>{let n=Ff();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Lf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Rf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),zf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Bf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Vf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).major})),Hf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).minor})),Uf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).patch})),Wf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Gf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Kf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(t,e,r)})),qf=P(((e,t)=>{let n=Gf();t.exports=(e,t)=>n(e,t,!0)})),Jf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Yf=P(((e,t)=>{let n=Jf();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Xf=P(((e,t)=>{let n=Jf();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Zf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)>0})),Qf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)<0})),$f=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)===0})),ep=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)!==0})),tp=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)>=0})),np=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)<=0})),rp=P(((e,t)=>{let n=$f(),r=ep(),i=Zf(),a=tp(),o=Qf(),s=np();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ip=P(((e,t)=>{let n=Ff(),r=If(),{safeRe:i,t:a}=Mf();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),ap=P(((e,t)=>{let n=If(),r=Af(),i=Ff(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),op=P(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),sp=P(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),cp=P(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Nf(),{safeRe:i,t:a}=Mf(),o=rp(),s=jf(),c=Ff(),l=sp()})),lp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),up=P(((e,t)=>{let n=sp();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),dp=P(((e,t)=>{let n=Ff(),r=sp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),fp=P(((e,t)=>{let n=Ff(),r=sp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),pp=P(((e,t)=>{let n=Ff(),r=sp(),i=Zf();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),mp=P(((e,t)=>{let n=sp();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),hp=P(((e,t)=>{let n=Ff(),r=cp(),{ANY:i}=r,a=sp(),o=lp(),s=Zf(),c=Qf(),l=np(),u=tp();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),gp=P(((e,t)=>{let n=hp();t.exports=(e,t,r)=>n(e,t,`>`,r)})),_p=P(((e,t)=>{let n=hp();t.exports=(e,t,r)=>n(e,t,`<`,r)})),vp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),yp=P(((e,t)=>{let n=lp(),r=Gf();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=sp(),r=cp(),{ANY:i}=r,a=lp(),o=Gf(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),xp=ke(P(((e,t)=>{let n=Mf(),r=Af(),i=Ff(),a=Pf();t.exports={parse:If(),valid:Lf(),clean:Rf(),inc:zf(),diff:Bf(),major:Vf(),minor:Hf(),patch:Uf(),prerelease:Wf(),compare:Gf(),rcompare:Kf(),compareLoose:qf(),compareBuild:Jf(),sort:Yf(),rsort:Xf(),gt:Zf(),lt:Qf(),eq:$f(),neq:ep(),gte:tp(),lte:np(),cmp:rp(),coerce:ip(),truncate:ap(),Comparator:cp(),Range:sp(),satisfies:lp(),toComparators:up(),maxSatisfying:dp(),minSatisfying:fp(),minVersion:pp(),validRange:mp(),outside:hp(),gtr:gp(),ltr:_p(),intersects:vp(),simplifyRange:yp(),subset:bp(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Sp;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Sp||={});var Cp;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(Cp||={});var wp;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(wp||={});const Tp=5e3,Ep=5e3,Dp=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Op=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kp=`cache.tar`,Ap=`manifest.txt`;var jp=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Mp=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Np(){return jp(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=u.join(n,`actions`,`temp`)}let n=u.join(t,i.randomUUID());return yield vr(n),n})}function Pp(e){return a.statSync(e).size}function Fp(e){return jp(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield kf(e.join(` -`),{implicitDescendants:!1});try{for(var c=!0,l=Mp(s.globGenerator()),d;d=yield l.next(),t=d.done,!t;c=!0){i=d.value,c=!1;let e=i,t=u.relative(o,e).replace(RegExp(`\\${u.sep}`,`g`),`/`);R(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Ip(e){return jp(this,void 0,void 0,function*(){return _.promisify(a.unlink)(e)})}function Lp(e){return jp(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),R(`Checking ${e} ${t.join(` `)}`);try{yield Dr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){R(e.message)}return n=n.trim(),R(n),n})}function Rp(){return jp(this,void 0,void 0,function*(){let e=yield Lp(`zstd`,[`--quiet`]);return R(`zstd version: ${xp.clean(e)}`),e===``?Cp.Gzip:Cp.ZstdWithoutLong})}function zp(e){return e===Cp.Gzip?Sp.Gzip:Sp.Zstd}function Bp(){return jp(this,void 0,void 0,function*(){return a.existsSync(Dp)?Dp:(yield Lp(`tar`)).toLowerCase().includes(`gnu tar`)?yr(`tar`):``})}function Vp(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Hp(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),i.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Up(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Wp=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Gp(e,...t){ye.stderr.write(`${S.format(e,...t)}${fe}`)}const Kp=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let qp,Jp=[],Yp=[];const Xp=[];Kp&&Qp(Kp);const Zp=Object.assign(e=>nm(e),{enable:Qp,enabled:$p,disable:tm,log:Gp});function Qp(e){qp=e,Jp=[],Yp=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Yp.push(e.substring(1)):Jp.push(e);for(let e of Xp)e.enabled=$p(e.namespace)}function $p(e){if(e.endsWith(`*`))return!0;for(let t of Yp)if(em(e,t))return!1;for(let t of Jp)if(em(e,t))return!0;return!1}function em(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function tm(){let e=qp||``;return Qp(``),e}function nm(e){let t=Object.assign(n,{enabled:$p(e),destroy:rm,log:Zp.log,namespace:e,extend:im});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Xp.push(t),t}function rm(){let e=Xp.indexOf(this);return e>=0?(Xp.splice(e,1),!0):!1}function im(e){let t=nm(`${this.namespace}:${e}`);return t.log=this.log,t}const am=[`verbose`,`info`,`warning`,`error`],om={verbose:400,info:300,warning:200,error:100};function sm(e,t){t.log=(...t)=>{e.log(...t)}}function cm(e){return am.includes(e)}function lm(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Zp(e.namespace);i.log=(...e)=>{Zp.log(...e)};function a(e){if(e&&!cm(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${am.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Zp.enable(n.join(`,`))}n&&(cm(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${am.join(`, `)}.`));function o(e){return!!(r&&om[e.level]<=om[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(sm(e,r),o(r)){let e=Zp.disable();Zp.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return sm(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const um=lm({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});um.logger;function dm(e){return um.createClientLogger(e)}function fm(e){return e.toLowerCase()}function*pm(e){for(let t of e.values())yield[t.name,t.value]}var mm=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(fm(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(fm(e))?.value}has(e){return this._headersMap.has(fm(e))}delete(e){this._headersMap.delete(fm(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return pm(this._headersMap)}};function hm(e){return new mm(e)}function gm(){return crypto.randomUUID()}var _m=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??hm(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||gm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function vm(e){return new _m(e)}const ym=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var bm=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!ym.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!ym.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function xm(){return bm.create()}function Sm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Cm(e){if(Sm(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const wm=C.custom,Tm=`REDACTED`,Em=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.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.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),Dm=[`api-version`];var Om=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Em.concat(e),t=Dm.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&Sm(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&Sm(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||Sm(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Tm);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Tm;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Tm;return t}};const km=new Om;var Am=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,`request`,{value:n.request,enumerable:!1}),Object.defineProperty(this,`response`,{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,wm,{value:()=>`RestError: ${this.message} \n ${km.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function jm(e){return e instanceof Am?!0:Cm(e)&&e.name===`RestError`}function Mm(e,t){return Buffer.from(e,t)}const Nm=dm(`ts-http-runtime`),Pm={};function Fm(e){return e&&typeof e.pipe==`function`}function Im(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Lm(e){return e&&typeof e.byteLength==`number`}var Rm=class extends b{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},zm=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Wp(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new Om;Nm.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Um(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new Rm(t);n.on(`error`,e=>{Nm.error(`Error in upload progress`,e)}),Fm(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Bm(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Vm(n,i):n;let l=e.onDownloadProgress;if(l){let e=new Rm(l);e.on(`error`,e=>{Nm.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Hm(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Fm(o)&&(t=Im(o));let r=Promise.resolve();Fm(s)&&(r=Im(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Nm.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?v.request(a,r):be.request(a,r);s.once(`error`,t=>{o(new Am(t.message,{code:t.code??Am.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Wp(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Fm(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Lm(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Nm.error(`Unrecognized body type`,n),o(new Am(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?v.globalAgent:(this.cachedHttpAgent||=new v.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return be.globalAgent;let t=e.tlsSettings??Pm,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Nm.info(`No cached TLS Agent exist, creating a new Agent`),r=new be.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Bm(e){let t=hm();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Vm(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=w.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=w.createInflate();return e.pipe(t),t}return e}function Hm(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new Am(`Error reading response as text: ${e.message}`,{code:Am.PARSE_ERROR}))})})}function Um(e){return e?Buffer.isBuffer(e)?e.length:Fm(e)?null:Lm(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Wm(){return new zm}function Gm(){return Wm()}function Km(e={}){let t=e.logger??Nm.info,n=new Om({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const qm=[`GET`,`HEAD`];function Jm(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Ym(r,await r(e),t,n)}}}async function Ym(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&qm.includes(a.method)||o===302&&qm.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Wp(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function eh(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const th=`Retry-After`,nh=[`retry-after-ms`,`x-ms-retry-after-ms`,th];function rh(e){if(e&&[429,503].includes(e.status))try{for(let t of nh){let n=eh(e,t);if(n===0||n)return n*(t===th?1e3:1)}let t=e.headers.get(th);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function ih(e){return Number.isFinite(rh(e))}function ah(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=rh(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function oh(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=ch(a),s=o&&e.ignoreSystemErrors,c=sh(i),l=c&&e.ignoreHttpStatusCodes;return i&&(ih(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:Qm(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function sh(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function ch(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const lh=dm(`ts-http-runtime retryPolicy`);function uh(e,t={maxRetries:3}){let n=t.logger||lh;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!jm(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Wp;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await $m(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function dh(e={}){return{name:`defaultRetryPolicy`,sendRequest:uh([ah(),oh(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const fh=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function ph(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function mh(){return{name:`formDataPolicy`,async sendRequest(e,t){if(fh&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=ph(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=hh(e.formData):await gh(e.formData,e),e.formData=void 0}return t(e)}}}function hh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function gh(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:hm({"Content-Disposition":`form-data; name="${t}"`}),body:Mm(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=hm();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var _h=P(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),vh=P(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=_h(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),yh=P(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=vh()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),bh=P(((e,t)=>{let n=F(`tty`),r=F(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=F(`supports-color`);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new xf(e));return r.searchPaths.push(...uf(r.patterns)),r})}static stat(e,t,n){return Cf(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},kf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Af(e,t){return kf(this,void 0,void 0,function*(){return yield Of.create(e,t)})}var jf=P(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Mf=P(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Nf=P(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=jf(),a=Mf();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Pf=P(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Ff=P(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),If=P(((e,t)=>{let n=Mf(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=jf(),{safeRe:a,t:o}=Nf(),s=Pf(),{compareIdentifiers:c}=Ff();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Lf=P(((e,t)=>{let n=If();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Rf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),zf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Bf=P(((e,t)=>{let n=If();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Vf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Hf=P(((e,t)=>{let n=If();t.exports=(e,t)=>new n(e,t).major})),Uf=P(((e,t)=>{let n=If();t.exports=(e,t)=>new n(e,t).minor})),Wf=P(((e,t)=>{let n=If();t.exports=(e,t)=>new n(e,t).patch})),Gf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Kf=P(((e,t)=>{let n=If();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),qf=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(t,e,r)})),Jf=P(((e,t)=>{let n=Kf();t.exports=(e,t)=>n(e,t,!0)})),Yf=P(((e,t)=>{let n=If();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Xf=P(((e,t)=>{let n=Yf();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Zf=P(((e,t)=>{let n=Yf();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Qf=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)>0})),$f=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)<0})),ep=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)===0})),tp=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)!==0})),np=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)>=0})),rp=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)<=0})),ip=P(((e,t)=>{let n=ep(),r=tp(),i=Qf(),a=np(),o=$f(),s=rp();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ap=P(((e,t)=>{let n=If(),r=Lf(),{safeRe:i,t:a}=Nf();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),op=P(((e,t)=>{let n=Lf(),r=jf(),i=If(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),sp=P(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),cp=P(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),lp=P(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Pf(),{safeRe:i,t:a}=Nf(),o=ip(),s=Mf(),c=If(),l=cp()})),up=P(((e,t)=>{let n=cp();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),dp=P(((e,t)=>{let n=cp();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),fp=P(((e,t)=>{let n=If(),r=cp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),pp=P(((e,t)=>{let n=If(),r=cp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),mp=P(((e,t)=>{let n=If(),r=cp(),i=Qf();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),hp=P(((e,t)=>{let n=cp();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),gp=P(((e,t)=>{let n=If(),r=lp(),{ANY:i}=r,a=cp(),o=up(),s=Qf(),c=$f(),l=rp(),u=np();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),_p=P(((e,t)=>{let n=gp();t.exports=(e,t,r)=>n(e,t,`>`,r)})),vp=P(((e,t)=>{let n=gp();t.exports=(e,t,r)=>n(e,t,`<`,r)})),yp=P(((e,t)=>{let n=cp();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),bp=P(((e,t)=>{let n=up(),r=Kf();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=cp(),r=lp(),{ANY:i}=r,a=up(),o=Kf(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),Sp=ke(P(((e,t)=>{let n=Nf(),r=jf(),i=If(),a=Ff();t.exports={parse:Lf(),valid:Rf(),clean:zf(),inc:Bf(),diff:Vf(),major:Hf(),minor:Uf(),patch:Wf(),prerelease:Gf(),compare:Kf(),rcompare:qf(),compareLoose:Jf(),compareBuild:Yf(),sort:Xf(),rsort:Zf(),gt:Qf(),lt:$f(),eq:ep(),neq:tp(),gte:np(),lte:rp(),cmp:ip(),coerce:ap(),truncate:op(),Comparator:lp(),Range:cp(),satisfies:up(),toComparators:dp(),maxSatisfying:fp(),minSatisfying:pp(),minVersion:mp(),validRange:hp(),outside:gp(),gtr:_p(),ltr:vp(),intersects:yp(),simplifyRange:bp(),subset:xp(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Cp;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Cp||={});var wp;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(wp||={});var Tp;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(Tp||={});const Ep=5e3,Dp=5e3,Op=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,kp=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ap=`cache.tar`,jp=`manifest.txt`;var Mp=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Np=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Pp(){return Mp(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=u.join(n,`actions`,`temp`)}let n=u.join(t,i.randomUUID());return yield vr(n),n})}function Fp(e){return a.statSync(e).size}function Ip(e){return Mp(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield Af(e.join(` +`),{implicitDescendants:!1});try{for(var c=!0,l=Np(s.globGenerator()),d;d=yield l.next(),t=d.done,!t;c=!0){i=d.value,c=!1;let e=i,t=u.relative(o,e).replace(RegExp(`\\${u.sep}`,`g`),`/`);R(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Lp(e){return Mp(this,void 0,void 0,function*(){return _.promisify(a.unlink)(e)})}function Rp(e){return Mp(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),R(`Checking ${e} ${t.join(` `)}`);try{yield Dr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){R(e.message)}return n=n.trim(),R(n),n})}function zp(){return Mp(this,void 0,void 0,function*(){let e=yield Rp(`zstd`,[`--quiet`]);return R(`zstd version: ${Sp.clean(e)}`),e===``?wp.Gzip:wp.ZstdWithoutLong})}function Bp(e){return e===wp.Gzip?Cp.Gzip:Cp.Zstd}function Vp(){return Mp(this,void 0,void 0,function*(){return a.existsSync(Op)?Op:(yield Rp(`tar`)).toLowerCase().includes(`gnu tar`)?yr(`tar`):``})}function Hp(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Up(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),i.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Wp(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Gp=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Kp(e,...t){ye.stderr.write(`${S.format(e,...t)}${fe}`)}const qp=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let Jp,Yp=[],Xp=[];const Zp=[];qp&&$p(qp);const Qp=Object.assign(e=>rm(e),{enable:$p,enabled:em,disable:nm,log:Kp});function $p(e){Jp=e,Yp=[],Xp=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Xp.push(e.substring(1)):Yp.push(e);for(let e of Zp)e.enabled=em(e.namespace)}function em(e){if(e.endsWith(`*`))return!0;for(let t of Xp)if(tm(e,t))return!1;for(let t of Yp)if(tm(e,t))return!0;return!1}function tm(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function nm(){let e=Jp||``;return $p(``),e}function rm(e){let t=Object.assign(n,{enabled:em(e),destroy:im,log:Qp.log,namespace:e,extend:am});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Zp.push(t),t}function im(){let e=Zp.indexOf(this);return e>=0?(Zp.splice(e,1),!0):!1}function am(e){let t=rm(`${this.namespace}:${e}`);return t.log=this.log,t}const om=[`verbose`,`info`,`warning`,`error`],sm={verbose:400,info:300,warning:200,error:100};function cm(e,t){t.log=(...t)=>{e.log(...t)}}function lm(e){return om.includes(e)}function um(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Qp(e.namespace);i.log=(...e)=>{Qp.log(...e)};function a(e){if(e&&!lm(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${om.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Qp.enable(n.join(`,`))}n&&(lm(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${om.join(`, `)}.`));function o(e){return!!(r&&sm[e.level]<=sm[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(cm(e,r),o(r)){let e=Qp.disable();Qp.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return cm(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const dm=um({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});dm.logger;function fm(e){return dm.createClientLogger(e)}function pm(e){return e.toLowerCase()}function*mm(e){for(let t of e.values())yield[t.name,t.value]}var hm=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(pm(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(pm(e))?.value}has(e){return this._headersMap.has(pm(e))}delete(e){this._headersMap.delete(pm(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return mm(this._headersMap)}};function gm(e){return new hm(e)}function _m(){return crypto.randomUUID()}var vm=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??gm(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||_m(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function ym(e){return new vm(e)}const bm=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var xm=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!bm.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!bm.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function Sm(){return xm.create()}function Cm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function wm(e){if(Cm(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const Tm=C.custom,Em=`REDACTED`,Dm=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.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.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),Om=[`api-version`];var km=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Dm.concat(e),t=Om.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&Cm(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&Cm(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||Cm(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Em);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Em;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Em;return t}};const Am=new km;var jm=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,`request`,{value:n.request,enumerable:!1}),Object.defineProperty(this,`response`,{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Tm,{value:()=>`RestError: ${this.message} \n ${Am.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function Mm(e){return e instanceof jm?!0:wm(e)&&e.name===`RestError`}function Nm(e,t){return Buffer.from(e,t)}const Pm=fm(`ts-http-runtime`),Fm={};function Im(e){return e&&typeof e.pipe==`function`}function Lm(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Rm(e){return e&&typeof e.byteLength==`number`}var zm=class extends b{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},Bm=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Gp(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new km;Pm.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Wm(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new zm(t);n.on(`error`,e=>{Pm.error(`Error in upload progress`,e)}),Im(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Vm(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Hm(n,i):n;let l=e.onDownloadProgress;if(l){let e=new zm(l);e.on(`error`,e=>{Pm.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Um(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Im(o)&&(t=Lm(o));let r=Promise.resolve();Im(s)&&(r=Lm(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Pm.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?v.request(a,r):be.request(a,r);s.once(`error`,t=>{o(new jm(t.message,{code:t.code??jm.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Gp(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Im(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Rm(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Pm.error(`Unrecognized body type`,n),o(new jm(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?v.globalAgent:(this.cachedHttpAgent||=new v.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return be.globalAgent;let t=e.tlsSettings??Fm,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Pm.info(`No cached TLS Agent exist, creating a new Agent`),r=new be.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Vm(e){let t=gm();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Hm(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=w.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=w.createInflate();return e.pipe(t),t}return e}function Um(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new jm(`Error reading response as text: ${e.message}`,{code:jm.PARSE_ERROR}))})})}function Wm(e){return e?Buffer.isBuffer(e)?e.length:Im(e)?null:Rm(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Gm(){return new Bm}function Km(){return Gm()}function qm(e={}){let t=e.logger??Pm.info,n=new km({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const Jm=[`GET`,`HEAD`];function Ym(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Xm(r,await r(e),t,n)}}}async function Xm(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&Jm.includes(a.method)||o===302&&Jm.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Gp(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function th(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const nh=`Retry-After`,rh=[`retry-after-ms`,`x-ms-retry-after-ms`,nh];function ih(e){if(e&&[429,503].includes(e.status))try{for(let t of rh){let n=th(e,t);if(n===0||n)return n*(t===nh?1e3:1)}let t=e.headers.get(nh);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function ah(e){return Number.isFinite(ih(e))}function oh(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=ih(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function sh(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=lh(a),s=o&&e.ignoreSystemErrors,c=ch(i),l=c&&e.ignoreHttpStatusCodes;return i&&(ah(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:$m(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function ch(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function lh(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const uh=fm(`ts-http-runtime retryPolicy`);function dh(e,t={maxRetries:3}){let n=t.logger||uh;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!Mm(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Gp;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await eh(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function fh(e={}){return{name:`defaultRetryPolicy`,sendRequest:dh([oh(),sh(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const ph=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function mh(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function hh(){return{name:`formDataPolicy`,async sendRequest(e,t){if(ph&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=mh(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=gh(e.formData):await _h(e.formData,e),e.formData=void 0}return t(e)}}}function gh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function _h(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:gm({"Content-Disposition":`form-data; name="${t}"`}),body:Nm(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=gm();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var vh=P(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),yh=P(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=vh(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),bh=P(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=yh()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),xh=P(((e,t)=>{let n=F(`tty`),r=F(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=F(`supports-color`);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` `).join(` `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+` -`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),xh=P(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=yh():t.exports=bh()})),Sh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(F(`http`)),a=r(F(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),Ch=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Agent=void 0;let a=r(F(`net`)),o=r(F(`http`)),s=F(`https`);i(Sh(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` -`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),wh=P((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(xh()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r +`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),Sh=P(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=bh():t.exports=xh()})),Ch=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(F(`http`)),a=r(F(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),wh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Agent=void 0;let a=r(F(`net`)),o=r(F(`http`)),s=F(`https`);i(Ch(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` +`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),Th=P((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(Sh()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r \r `);if(u===-1){n(`have not received end of HTTP headers yet...`),o();return}let d=l.slice(0,u).toString(`ascii`).split(`\r -`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),Th=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpsProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(F(`assert`)),c=i(xh()),l=Ch(),u=F(`url`),d=wh(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Eh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(xh()),c=F(`events`),l=Ch(),u=F(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r +`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),Eh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpsProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(F(`assert`)),c=i(Sh()),l=wh(),u=F(`url`),d=Th(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Dh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(Sh()),c=F(`events`),l=wh(),u=F(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Dh=Th(),Oh=Eh();const kh=[];let Ah=!1;const jh=new Map;function Mh(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Nh(){if(!process)return;let e=Mh(`HTTPS_PROXY`),t=Mh(`ALL_PROXY`),n=Mh(`HTTP_PROXY`);return e||t||n}function Ph(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Fh(){let e=Mh(`NO_PROXY`);return Ah=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Ih(e){if(!e&&(e=Nh(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Lh(){let e=Nh();return e?new URL(e):void 0}function Rh(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function zh(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Nm.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new Oh.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Dh.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Bh(e,t){Ah||kh.push(...Fh());let n=e?Rh(e):Lh(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Ph(e.url,t?.customNoProxyList??kh,t?.customNoProxyList?void 0:jh)?zh(e,r,n):e.proxySettings&&zh(e,r,Rh(e.proxySettings)),i(e)}}}function Vh(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Hh(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Uh(e){return typeof Blob<`u`&&e instanceof Blob}async function*Wh(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function Gh(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=Wh.bind(e)),e.values||=Wh.bind(e)}function Kh(e){return e instanceof ReadableStream?(Gh(e),_e.fromWeb(e)):e}function qh(e){return e instanceof Uint8Array?_e.from(Buffer.from(e)):Uh(e)?Kh(e.stream()):Kh(e)}async function Jh(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(qh);return _e.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Yh(){return`----AzSDKFormBoundary${gm()}`}function Xh(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Zh(e){if(e instanceof Uint8Array)return e.byteLength;if(Uh(e))return e.size===-1?void 0:e.size}function Qh(e){let t=0;for(let n of e){let e=Zh(n);if(e===void 0)return;t+=e}return t}async function $h(e,t,n){let r=[Mm(`--${n}`,`utf-8`),...t.flatMap(e=>[Mm(`\r -`,`utf-8`),Mm(Xh(e.headers),`utf-8`),Mm(`\r -`,`utf-8`),e.body,Mm(`\r\n--${n}`,`utf-8`)]),Mm(`--\r +`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Oh=Eh(),kh=Dh();const Ah=[];let jh=!1;const Mh=new Map;function Nh(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Ph(){if(!process)return;let e=Nh(`HTTPS_PROXY`),t=Nh(`ALL_PROXY`),n=Nh(`HTTP_PROXY`);return e||t||n}function Fh(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Ih(){let e=Nh(`NO_PROXY`);return jh=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Lh(e){if(!e&&(e=Ph(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Rh(){let e=Ph();return e?new URL(e):void 0}function zh(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function Bh(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Pm.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new kh.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Oh.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Vh(e,t){jh||Ah.push(...Ih());let n=e?zh(e):Rh(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Fh(e.url,t?.customNoProxyList??Ah,t?.customNoProxyList?void 0:Mh)?Bh(e,r,n):e.proxySettings&&Bh(e,r,zh(e.proxySettings)),i(e)}}}function Hh(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Uh(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Wh(e){return typeof Blob<`u`&&e instanceof Blob}async function*Gh(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function Kh(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=Gh.bind(e)),e.values||=Gh.bind(e)}function qh(e){return e instanceof ReadableStream?(Kh(e),_e.fromWeb(e)):e}function Jh(e){return e instanceof Uint8Array?_e.from(Buffer.from(e)):Wh(e)?qh(e.stream()):qh(e)}async function Yh(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(Jh);return _e.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Xh(){return`----AzSDKFormBoundary${_m()}`}function Zh(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Qh(e){if(e instanceof Uint8Array)return e.byteLength;if(Wh(e))return e.size===-1?void 0:e.size}function $h(e){let t=0;for(let n of e){let e=Qh(n);if(e===void 0)return;t+=e}return t}async function eg(e,t,n){let r=[Nm(`--${n}`,`utf-8`),...t.flatMap(e=>[Nm(`\r +`,`utf-8`),Nm(Zh(e.headers),`utf-8`),Nm(`\r +`,`utf-8`),e.body,Nm(`\r\n--${n}`,`utf-8`)]),Nm(`--\r \r -`,`utf-8`)],i=Qh(r);i&&e.headers.set(`Content-Length`,i),e.body=await Jh(r)}const eg=`multipartPolicy`,tg=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function ng(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!tg.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function rg(){return{name:eg,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?ng(n):n=Yh(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await $h(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function ig(){return xm()}const ag=lm({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});ag.logger;function og(e){return ag.createClientLogger(e)}const sg=og(`core-rest-pipeline`);function cg(e={}){return Km({logger:sg.info,...e})}function lg(e={}){return Jm(e)}function ug(){return`User-Agent`}async function dg(e){if(ye&&ye.versions){let t=`${de.type()} ${de.release()}; ${de.arch()}`,n=ye.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const fg=`1.22.3`;function pg(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function mg(){return ug()}async function hg(e){let t=new Map;t.set(`core-rest-pipeline`,fg),await dg(t);let n=pg(t);return e?`${e} ${n}`:n}const gg=mg();function _g(e={}){let t=hg(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(gg)||e.headers.set(gg,await t),n(e)}}}var vg=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function yg(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new vg(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function bg(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return yg(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function xg(e){if(Cm(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Sg(e){return Cm(e)}function Cg(){return gm()}const wg=fh,Tg=Symbol(`rawContent`);function Eg(e){return typeof e[Tg]==`function`}function Dg(e){return Eg(e)?e[Tg]():e}const Og=eg;function kg(){let e=rg();return{name:Og,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Eg(e.body)&&(e.body=Dg(e.body));return e.sendRequest(t,n)}}}function Ag(){return Xm()}function jg(e={}){return dh(e)}function Mg(){return mh()}function Ng(e){return Ih(e)}function Pg(e,t){return Bh(e,t)}function Fg(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Ig(e){return Vh(e)}function Lg(e){return Hh(e)}const Rg={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function zg(e={}){let t=new Bg(e.parentContext);return e.span&&(t=t.setValue(Rg.span,e.span)),e.namespace&&(t=t.setValue(Rg.namespace,e.namespace)),t}var Bg=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Vg=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Hg(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Ug(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Hg(),tracingContext:zg({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Wg(){return Vg.instrumenterImplementation||=Ug(),Vg.instrumenterImplementation}function Gg(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Wg().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(Rg.namespace)||(s=s.setValue(Rg.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(Rg.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Wg().withContext(e,t,...n)}function s(e){return Wg().parseTraceparentHeader(e)}function c(e){return Wg().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const Kg=Am;function qg(e){return jm(e)}function Jg(e={}){let t=hg(e.userAgentPrefix),n=new Om({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Yg();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Xg(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return Qg(s,t),t}catch(e){throw Zg(s,e),e}}}}function Yg(){try{return Gg({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:fg})}catch(e){sg.warning(`Error when creating the TracingClient: ${xg(e)}`);return}}function Xg(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){sg.warning(`Skipping creating a tracing span due to an error: ${xg(e)}`);return}}function Zg(e,t){try{e.setStatus({status:`error`,error:Sg(t)?t:void 0}),qg(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){sg.warning(`Skipping tracing span processing due to an error: ${xg(e)}`)}}function Qg(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){sg.warning(`Skipping tracing span processing due to an error: ${xg(e)}`)}}function $g(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function e_(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=$g(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function t_(e){let t=ig();return wg&&(e.agent&&t.addPolicy(Ig(e.agent)),e.tlsOptions&&t.addPolicy(Lg(e.tlsOptions)),t.addPolicy(Pg(e.proxyOptions)),t.addPolicy(Ag())),t.addPolicy(e_()),t.addPolicy(Mg(),{beforePolicies:[Og]}),t.addPolicy(_g(e.userAgentOptions)),t.addPolicy(Fg(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(kg(),{afterPhase:`Deserialize`}),t.addPolicy(jg(e.retryOptions),{phase:`Retry`}),t.addPolicy(Jg({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),wg&&t.addPolicy(lg(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(cg(e.loggingOptions),{afterPhase:`Sign`}),t}function n_(){let e=Gm();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?$g(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function r_(e){return hm(e)}function i_(e){return vm(e)}const a_={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function o_(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function c_(e,t){try{return[await t(e),void 0]}catch(e){if(qg(e)&&e.response)return[e.response,e];throw e}}async function l_(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function u_(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function d_(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function f_(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||sg,a={authorizeRequest:r?.authorizeRequest?.bind(r)??l_,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?s_(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await c_(e,t),u_(r)){let l=m_(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await d_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await c_(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await c_(e,t)),u_(r)&&(l=m_(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await d_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await c_(e,t))}}if(s)throw s;return r}}}function p_(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function m_(e){if(e)return p_(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function h_(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const g_=`DisableKeepAlivePolicy`;function __(){return{name:g_,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function v_(e){return e.getOrderedPolicies().some(e=>e.name===g_)}function y_(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function b_(e){return Buffer.from(e,`base64`)}function x_(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const S_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C_(e){return S_.test(e)}const w_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function T_(e){return w_.test(e)}function E_(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function D_(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return E_({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:x_(e.parsedBody,a)})}var O_=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=K_(this,e,t,n,!!this.isXML,i)):a=H_(this,e,t,n,!!this.isXML,i):a=V_(this,e,t,n,!!this.isXML,i):a=z_(n,t):a=R_(n,t):a=B_(o,t,n):a=L_(n,e.type.allowedValues,t):a=I_(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=Y_(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=X_(this,e,t,n,i)):a=Z_(this,e,t,n,i):a=M_(t):a=b_(t):a=F_(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function k_(e={},t=!1){return new O_(e,t)}function A_(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function j_(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return A_(y_(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function M_(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),b_(e)}}function N_(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function P_(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function F_(e){if(e)return new Date(e*1e3)}function I_(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&T_(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function L_(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function R_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=y_(t)}return t}function z_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=j_(t)}return t}function B_(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=P_(t)}else if(e.match(/^TimeSpan$/i)!==null&&!C_(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function V_(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function q_(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function J_(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function Y_(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;ev(e,t)&&(t=$_(e,t,n,`serializedName`));let o=G_(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=N_(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(N_(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!J_(e,i)&&(s[e]=n[e]);return s}function X_(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Z_(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function iv(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=av(e,r);!t.propertyFound&&n&&(t=av(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=iv(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function av(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function hv(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function gv(e,t,n,r){let i=200<=e.status&&e.status<300;if(hv(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new Kg(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===nv.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function _v(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new Kg(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||Kg.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function vv(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===nv.Stream&&t.add(Number(n))}return t}function yv(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function bv(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=cv(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(xv(e,a,i),Sv(e,a,i,t)),n(e)}}}function xv(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=iv(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,yv(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||yv(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Sv(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=iv(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=yv(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===nv.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=Cv(d,t,m,e.body,a);m===nv.Sequence?e.body=r(wv(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===nv.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=iv(t,r);if(i!=null){let t=r.mapper.serializedName||yv(r);e.formData[t]=n.serializer.serialize(r.mapper,i,yv(r),a)}}}}function Cv(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function wv(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function Tv(e={}){let t=t_(e??{});return e.credentialOptions&&t.addPolicy(f_({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(bv(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(dv(e.deserializationOptions),{phase:`Deserialize`}),t}let Ev;function Dv(){return Ev||=n_(),Ev}const Ov={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function kv(e,t,n,r){let i=jv(t,n,r),a=!1,o=Av(e,i);if(t.path){let e=Av(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),Mv(e)?(o=e,a=!0):o=Nv(o,e)}let{queryParams:s,sequenceParams:c}=Pv(t,n,r);return o=Iv(o,s,c,a),o}function Av(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function jv(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=iv(t,i,n),o=yv(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function Mv(e){return e.includes(`://`)}function Nv(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Pv(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=iv(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,yv(a));let t=a.collectionFormat?Ov[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||yv(a),o)}}return{queryParams:r,sequenceParams:i}}function Fv(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Iv(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Fv(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Lv=og(`core-client`);var Rv=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Lv.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Dv(),this.pipeline=e.pipeline||zv(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=i_({url:kv(n,t,e,this)});r.method=t.httpMethod;let i=cv(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=vv(t));try{let e=await this.sendRequest(r),n=D_(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=D_(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function zv(e){let t=Bv(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return Tv({...e,credentialOptions:n})}function Bv(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Vv={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Hv(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const Uv=async e=>{let t=Jv(e.request),n=Kv(e.response);if(n){let r=qv(n),i=Gv(e,r),a=Wv(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Vv.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Wv(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Hv(t))return t}function Gv(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Vv.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function Kv(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function qv(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Jv(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Yv=Symbol(`Original PipelineRequest`),Xv=Symbol.for(`@azure/core-client original request`);function Zv(e,t={}){let n=e[Yv],r=r_(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=i_({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Xv]=t.originalRequest),n}}function Qv(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:$v(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Yv?e:i===`clone`?()=>Qv(Zv(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function $v(e){return new ty(e.toJSON({preserveCase:!0}))}function ey(e){return e.toLowerCase()}var ty=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[ey(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[ey(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[ey(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[ey(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;niy(await e.sendRequest(Qv(t,{createProxy:!0})))}}const uy=`:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`;uy+``,``+uy;const dy=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function fy(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` -`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!ky(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,Dy(`InvalidTag`,t,Ay(e,a))}let l=Sy(e,a);if(l===!1)return Dy(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,Ay(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=wy(u,t);if(i===!0)r=!0;else return Dy(i.err.code,i.err.msg,Ay(e,n+i.err.line))}else if(s){if(!l.tagClosed)return Dy(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,Ay(e,a));if(u.trim().length>0)return Dy(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,Ay(e,o));if(n.length===0)return Dy(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,Ay(e,o));{let t=n.pop();if(c!==t.tagName){let n=Ay(e,t.tagStartPos);return Dy(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,Ay(e,o))}n.length==0&&(i=!0)}}else{let s=wy(u,t);if(s!==!0)return Dy(s.err.code,s.err.msg,Ay(e,a-u.length+s.err.line));if(i===!0)return Dy(`InvalidXml`,`Multiple possible root nodes found.`,Ay(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?Dy(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:Dy(`InvalidXml`,`Start tag expected.`,1)}function yy(e){return e===` `||e===` `||e===` -`||e===`\r`}function by(e,t){let n=t;for(;t5&&r===`xml`)return Dy(`InvalidXml`,`XML declaration allowed only at the start of the document.`,Ay(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function xy(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function Sy(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const Cy=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function wy(e,t){let n=fy(e,Cy),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Ny={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Py={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Fy={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Iy={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},Ly={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Ry={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},zy={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},By={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Vy={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Hy={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Uy={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Wy={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...My,...Ny,...Py,...Fy,...Iy,...Ly,...Ry,...zy,...By,...Vy,...Hy,...Uy,...Wy});const Gy={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ky={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},qy=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Jy(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(qy.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Yy(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Xy=`external`,Zy=`base`;function Qy(e){return!e||e===Xy?new Set([Xy]):e===`all`?new Set([`all`]):e===Zy?new Set([Zy]):Array.isArray(e)?new Set(e):new Set([Xy])}const $y=Object.freeze({allow:0,leave:1,remove:2,throw:3}),eb=new Set([9,10,13]);function tb(e){if(!e)return{xmlVersion:1,onLevel:$y.allow,nullLevel:$y.remove};let t=e.xmlVersion===1.1?1.1:1,n=$y[e.onNCR]??$y.allow,r=$y[e.nullNCR]??$y.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,$y.remove)}}var nb=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Qy(this._limit.applyLimitsTo??Xy),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Yy(Gy,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=tb(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Jy(t);this._externalMap=Yy(e)}addExternalEntity(e,t){Jy(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Yy(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Xy);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Zy}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!eb.has(e)?$y.remove:-1}_applyNCRAction(e,t,n){switch(e){case $y.allow:return String.fromCodePoint(n);case $y.remove:return``;case $y.leave:return;case $y.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r<$y.remove)return;let i=r===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,r);return this._applyNCRAction(i,e,n)}};const rb=e=>hy.includes(e)?`__`+e:e,ib={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:rb};function ab(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(hy.some(e=>n===e.toLowerCase())||gy.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ob(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:ob(!0)}const sb=function(e){let t=Object.assign({},ib,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&ab(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=rb),t.processEntities=ob(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let cb;cb=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var lb=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][cb]={startIndex:t})}static getMetaDataSymbol(){return cb}};const ub=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`;ub+``;const db=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`;db+``;const fb=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},pb=fb(ub,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),mb=fb(db,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),hb=(e=`1.0`)=>e===`1.1`?mb:pb,gb=(e,{xmlVersion:t=`1.0`}={})=>hb(t).qName.test(e);var _b=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&yb(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&yb(e,`!ATTLIST`,t))t+=8;else if(a&&yb(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(yb(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=vb(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=vb(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const Db=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Ob(e,t,n){if(!n.eNotation)return e;let r=t.match(Db);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function kb(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function Ab(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function jb(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Mb(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Nb=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Ib=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Fb(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Lb(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Rb(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var zb=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Wb,this.parseTextData=Bb,this.resolveNameSpace=Vb,this.buildAttributesMap=Ub,this.isItStopNode=Jb,this.replaceEntitiesValue=Kb,this.readStopNodeData=$b,this.saveTextToParentTag=qb,this.addChild=Gb,this.ignoreAttributesFn=Mb(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Gy};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Ky,...Hy}),this.entityDecoder=new nb({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Ib,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Pb;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?ex(e,s.parseTagValue,s.numberParseOptions):e}}function Vb(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Hb=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Ub(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=fy(e,Hb),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=tx(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Qb(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new lb(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Xb(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Xb(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Qb(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=tx(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Rb(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Lb(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new lb(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=tx(i.transformTagName,c,u,i));let e=new lb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new lb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new lb(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Gb(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Kb(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function qb(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Jb(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Yb(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Yb(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function $b(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Xb(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Xb(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Xb(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Qb(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function ex(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Eb(e,n)}else if(my(e))return e;else return``}function tx(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=nx(t,r),{tagName:t,tagExp:n}}function nx(e,t){if(gy.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return hy.includes(e)?t.onDangerousProperty(e):e}const rx=lb.getMetaDataSymbol();function ix(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ax(e,t,n,r){return ox(e,t,n,r)}function ox(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function sx(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function px(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function mx(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(xx(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function hx(e,t,n,r,i){return!n.sanitizeName||gb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function gx(e,t){let n=``;t.format&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=wx(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=dx(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=Sx(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${Sx(l[`:@`],t,p,r,a)}`,g;g=p?yx(l[u],t):_x(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function vx(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=px(e[i]),r=!0}return r?n:null}function yx(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function bx(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${px(i)}"`}return n}function xx(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const Ex={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Dx(e){if(this.options=Object.assign({},Ex,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,`utf-8`)],i=$h(r);i&&e.headers.set(`Content-Length`,i),e.body=await Yh(r)}const tg=`multipartPolicy`,ng=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function rg(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!ng.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function ig(){return{name:tg,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?rg(n):n=Xh(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await eg(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function ag(){return Sm()}const og=um({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});og.logger;function sg(e){return og.createClientLogger(e)}const cg=sg(`core-rest-pipeline`);function lg(e={}){return qm({logger:cg.info,...e})}function ug(e={}){return Ym(e)}function dg(){return`User-Agent`}async function fg(e){if(ye&&ye.versions){let t=`${de.type()} ${de.release()}; ${de.arch()}`,n=ye.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const pg=`1.22.3`;function mg(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function hg(){return dg()}async function gg(e){let t=new Map;t.set(`core-rest-pipeline`,pg),await fg(t);let n=mg(t);return e?`${e} ${n}`:n}const _g=hg();function vg(e={}){let t=gg(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(_g)||e.headers.set(_g,await t),n(e)}}}var yg=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function bg(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new yg(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function xg(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return bg(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function Sg(e){if(wm(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Cg(e){return wm(e)}function wg(){return _m()}const Tg=ph,Eg=Symbol(`rawContent`);function Dg(e){return typeof e[Eg]==`function`}function Og(e){return Dg(e)?e[Eg]():e}const kg=tg;function Ag(){let e=ig();return{name:kg,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Dg(e.body)&&(e.body=Og(e.body));return e.sendRequest(t,n)}}}function jg(){return Zm()}function Mg(e={}){return fh(e)}function Ng(){return hh()}function Pg(e){return Lh(e)}function Fg(e,t){return Vh(e,t)}function Ig(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Lg(e){return Hh(e)}function Rg(e){return Uh(e)}const zg={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function Bg(e={}){let t=new Vg(e.parentContext);return e.span&&(t=t.setValue(zg.span,e.span)),e.namespace&&(t=t.setValue(zg.namespace,e.namespace)),t}var Vg=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Hg=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Ug(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Wg(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Ug(),tracingContext:Bg({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Gg(){return Hg.instrumenterImplementation||=Wg(),Hg.instrumenterImplementation}function Kg(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Gg().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(zg.namespace)||(s=s.setValue(zg.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(zg.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Gg().withContext(e,t,...n)}function s(e){return Gg().parseTraceparentHeader(e)}function c(e){return Gg().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const qg=jm;function Jg(e){return Mm(e)}function Yg(e={}){let t=gg(e.userAgentPrefix),n=new km({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Xg();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Zg(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return $g(s,t),t}catch(e){throw Qg(s,e),e}}}}function Xg(){try{return Kg({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:pg})}catch(e){cg.warning(`Error when creating the TracingClient: ${Sg(e)}`);return}}function Zg(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){cg.warning(`Skipping creating a tracing span due to an error: ${Sg(e)}`);return}}function Qg(e,t){try{e.setStatus({status:`error`,error:Cg(t)?t:void 0}),Jg(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){cg.warning(`Skipping tracing span processing due to an error: ${Sg(e)}`)}}function $g(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){cg.warning(`Skipping tracing span processing due to an error: ${Sg(e)}`)}}function e_(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function t_(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=e_(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function n_(e){let t=ag();return Tg&&(e.agent&&t.addPolicy(Lg(e.agent)),e.tlsOptions&&t.addPolicy(Rg(e.tlsOptions)),t.addPolicy(Fg(e.proxyOptions)),t.addPolicy(jg())),t.addPolicy(t_()),t.addPolicy(Ng(),{beforePolicies:[kg]}),t.addPolicy(vg(e.userAgentOptions)),t.addPolicy(Ig(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(Ag(),{afterPhase:`Deserialize`}),t.addPolicy(Mg(e.retryOptions),{phase:`Retry`}),t.addPolicy(Yg({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),Tg&&t.addPolicy(ug(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(lg(e.loggingOptions),{afterPhase:`Sign`}),t}function r_(){let e=Km();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?e_(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function i_(e){return gm(e)}function a_(e){return ym(e)}const o_={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function s_(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function l_(e,t){try{return[await t(e),void 0]}catch(e){if(Jg(e)&&e.response)return[e.response,e];throw e}}async function u_(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function d_(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function f_(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function p_(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||cg,a={authorizeRequest:r?.authorizeRequest?.bind(r)??u_,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?c_(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await l_(e,t),d_(r)){let l=h_(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await f_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await l_(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await l_(e,t)),d_(r)&&(l=h_(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await f_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await l_(e,t))}}if(s)throw s;return r}}}function m_(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function h_(e){if(e)return m_(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function g_(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const __=`DisableKeepAlivePolicy`;function v_(){return{name:__,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function y_(e){return e.getOrderedPolicies().some(e=>e.name===__)}function b_(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function x_(e){return Buffer.from(e,`base64`)}function S_(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const C_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function w_(e){return C_.test(e)}const T_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function E_(e){return T_.test(e)}function D_(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function O_(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return D_({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:S_(e.parsedBody,a)})}var k_=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=q_(this,e,t,n,!!this.isXML,i)):a=U_(this,e,t,n,!!this.isXML,i):a=H_(this,e,t,n,!!this.isXML,i):a=B_(n,t):a=z_(n,t):a=V_(o,t,n):a=R_(n,e.type.allowedValues,t):a=L_(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=X_(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=Z_(this,e,t,n,i)):a=Q_(this,e,t,n,i):a=N_(t):a=x_(t):a=I_(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function A_(e={},t=!1){return new k_(e,t)}function j_(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function M_(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return j_(b_(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function N_(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),x_(e)}}function P_(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function F_(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function I_(e){if(e)return new Date(e*1e3)}function L_(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&E_(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function R_(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function z_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=b_(t)}return t}function B_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=M_(t)}return t}function V_(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=F_(t)}else if(e.match(/^TimeSpan$/i)!==null&&!w_(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function H_(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function J_(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function Y_(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function X_(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;tv(e,t)&&(t=ev(e,t,n,`serializedName`));let o=K_(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=P_(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(P_(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!Y_(e,i)&&(s[e]=n[e]);return s}function Z_(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Q_(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function av(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=ov(e,r);!t.propertyFound&&n&&(t=ov(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=av(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function ov(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function gv(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function _v(e,t,n,r){let i=200<=e.status&&e.status<300;if(gv(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new qg(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===rv.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function vv(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new qg(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||qg.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function yv(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===rv.Stream&&t.add(Number(n))}return t}function bv(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function xv(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=lv(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(Sv(e,a,i),Cv(e,a,i,t)),n(e)}}}function Sv(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=av(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,bv(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||bv(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Cv(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=av(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=bv(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===rv.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=wv(d,t,m,e.body,a);m===rv.Sequence?e.body=r(Tv(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===rv.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=av(t,r);if(i!=null){let t=r.mapper.serializedName||bv(r);e.formData[t]=n.serializer.serialize(r.mapper,i,bv(r),a)}}}}function wv(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function Tv(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function Ev(e={}){let t=n_(e??{});return e.credentialOptions&&t.addPolicy(p_({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(xv(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(fv(e.deserializationOptions),{phase:`Deserialize`}),t}let Dv;function Ov(){return Dv||=r_(),Dv}const kv={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function Av(e,t,n,r){let i=Mv(t,n,r),a=!1,o=jv(e,i);if(t.path){let e=jv(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),Nv(e)?(o=e,a=!0):o=Pv(o,e)}let{queryParams:s,sequenceParams:c}=Fv(t,n,r);return o=Lv(o,s,c,a),o}function jv(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function Mv(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=av(t,i,n),o=bv(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function Nv(e){return e.includes(`://`)}function Pv(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Fv(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=av(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,bv(a));let t=a.collectionFormat?kv[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||bv(a),o)}}return{queryParams:r,sequenceParams:i}}function Iv(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Lv(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Iv(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Rv=sg(`core-client`);var zv=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Rv.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Ov(),this.pipeline=e.pipeline||Bv(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=a_({url:Av(n,t,e,this)});r.method=t.httpMethod;let i=lv(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=yv(t));try{let e=await this.sendRequest(r),n=O_(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=O_(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function Bv(e){let t=Vv(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return Ev({...e,credentialOptions:n})}function Vv(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Hv={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Uv(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const Wv=async e=>{let t=Yv(e.request),n=qv(e.response);if(n){let r=Jv(n),i=Kv(e,r),a=Gv(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Hv.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Gv(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Uv(t))return t}function Kv(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Hv.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function qv(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function Jv(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Yv(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Xv=Symbol(`Original PipelineRequest`),Zv=Symbol.for(`@azure/core-client original request`);function Qv(e,t={}){let n=e[Xv],r=i_(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=a_({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Zv]=t.originalRequest),n}}function $v(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:ey(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Xv?e:i===`clone`?()=>$v(Qv(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function ey(e){return new ny(e.toJSON({preserveCase:!0}))}function ty(e){return e.toLowerCase()}var ny=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[ty(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[ty(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[ty(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[ty(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nay(await e.sendRequest($v(t,{createProxy:!0})))}}const dy=`:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`;dy+``,``+dy;const fy=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function py(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!Ay(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,Oy(`InvalidTag`,t,jy(e,a))}let l=Cy(e,a);if(l===!1)return Oy(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,jy(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=Ty(u,t);if(i===!0)r=!0;else return Oy(i.err.code,i.err.msg,jy(e,n+i.err.line))}else if(s){if(!l.tagClosed)return Oy(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,jy(e,a));if(u.trim().length>0)return Oy(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,jy(e,o));if(n.length===0)return Oy(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,jy(e,o));{let t=n.pop();if(c!==t.tagName){let n=jy(e,t.tagStartPos);return Oy(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,jy(e,o))}n.length==0&&(i=!0)}}else{let s=Ty(u,t);if(s!==!0)return Oy(s.err.code,s.err.msg,jy(e,a-u.length+s.err.line));if(i===!0)return Oy(`InvalidXml`,`Multiple possible root nodes found.`,jy(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?Oy(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:Oy(`InvalidXml`,`Start tag expected.`,1)}function by(e){return e===` `||e===` `||e===` +`||e===`\r`}function xy(e,t){let n=t;for(;t5&&r===`xml`)return Oy(`InvalidXml`,`XML declaration allowed only at the start of the document.`,jy(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function Sy(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function Cy(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const wy=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function Ty(e,t){let n=py(e,wy),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Py={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Fy={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Iy={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Ly={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},Ry={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},zy={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},By={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},Vy={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Hy={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Uy={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Wy={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Gy={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...Ny,...Py,...Fy,...Iy,...Ly,...Ry,...zy,...By,...Vy,...Hy,...Uy,...Wy,...Gy});const Ky={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},qy={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},Jy=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Yy(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(Jy.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Xy(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Zy=`external`,Qy=`base`;function $y(e){return!e||e===Zy?new Set([Zy]):e===`all`?new Set([`all`]):e===Qy?new Set([Qy]):Array.isArray(e)?new Set(e):new Set([Zy])}const eb=Object.freeze({allow:0,leave:1,remove:2,throw:3}),tb=new Set([9,10,13]);function nb(e){if(!e)return{xmlVersion:1,onLevel:eb.allow,nullLevel:eb.remove};let t=e.xmlVersion===1.1?1.1:1,n=eb[e.onNCR]??eb.allow,r=eb[e.nullNCR]??eb.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,eb.remove)}}var rb=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=$y(this._limit.applyLimitsTo??Zy),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Xy(Ky,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=nb(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Yy(t);this._externalMap=Xy(e)}addExternalEntity(e,t){Yy(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Xy(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Zy);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Qy}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!tb.has(e)?eb.remove:-1}_applyNCRAction(e,t,n){switch(e){case eb.allow:return String.fromCodePoint(n);case eb.remove:return``;case eb.leave:return;case eb.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&rgy.includes(e)?`__`+e:e,ab={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:ib};function ob(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(gy.some(e=>n===e.toLowerCase())||_y.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function sb(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:sb(!0)}const cb=function(e){let t=Object.assign({},ab,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&ob(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=ib),t.processEntities=sb(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let lb;lb=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var ub=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][lb]={startIndex:t})}static getMetaDataSymbol(){return lb}};const db=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`;db+``;const fb=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`;fb+``;const pb=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},mb=pb(db,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),hb=pb(fb,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),gb=(e=`1.0`)=>e===`1.1`?hb:mb,_b=(e,{xmlVersion:t=`1.0`}={})=>gb(t).qName.test(e);var vb=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&bb(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&bb(e,`!ATTLIST`,t))t+=8;else if(a&&bb(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(bb(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=yb(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=yb(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const Ob=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function kb(e,t,n){if(!n.eNotation)return e;let r=t.match(Ob);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function Ab(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function jb(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function Mb(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Nb(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Pb=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Lb=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Ib(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Rb(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function zb(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Bb=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Gb,this.parseTextData=Vb,this.resolveNameSpace=Hb,this.buildAttributesMap=Wb,this.isItStopNode=Yb,this.replaceEntitiesValue=qb,this.readStopNodeData=ex,this.saveTextToParentTag=Jb,this.addChild=Kb,this.ignoreAttributesFn=Nb(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Ky};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...qy,...Uy}),this.entityDecoder=new rb({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Lb,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Fb;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?tx(e,s.parseTagValue,s.numberParseOptions):e}}function Hb(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Ub=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Wb(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=py(e,Ub),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=nx(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=$b(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new ub(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Zb(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Zb(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=$b(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=nx(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=zb(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Rb(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new ub(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=nx(i.transformTagName,c,u,i));let e=new ub(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new ub(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new ub(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Kb(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function qb(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Jb(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Yb(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Xb(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Xb(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function ex(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Zb(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Zb(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Zb(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=$b(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function tx(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Db(e,n)}else if(hy(e))return e;else return``}function nx(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=rx(t,r),{tagName:t,tagExp:n}}function rx(e,t){if(_y.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return gy.includes(e)?t.onDangerousProperty(e):e}const ix=ub.getMetaDataSymbol();function ax(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ox(e,t,n,r){return sx(e,t,n,r)}function sx(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function cx(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function mx(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function hx(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(Sx(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function gx(e,t,n,r,i){return!n.sanitizeName||_b(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function _x(e,t){let n=``;t.format&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=Tx(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=fx(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=Cx(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${Cx(l[`:@`],t,p,r,a)}`,g;g=p?bx(l[u],t):vx(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function yx(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=mx(e[i]),r=!0}return r?n:null}function bx(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function xx(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${mx(i)}"`}return n}function Sx(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const Dx={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ox(e){if(this.options=Object.assign({},Dx,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e `,this.newLine=` -`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function Ox(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function kx(e,t,n,r,i){return!n.sanitizeName||gb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Dx.prototype.build=function(e){if(this.options.preserveOrder)return gx(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Ib,n=Ox(e,this.options);return this.j2x(e,0,t,n).val}},Dx.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:kx(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=kx(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Dx.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Dx.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Dx.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=dx(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function zx(e,t={}){if(!e)throw Error(`Document is empty`);let n=Px.validate(e);if(n!==!0)throw n;let r=new ux(Lx(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Bx=og(`storage-blob`);var Vx=class extends y{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Hx=x.constants.MAX_LENGTH;var Ux=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Hx);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Vx(this.buffers,this.size)}},Wx=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new m;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Ux(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Gx;function Kx(){return Gx||=n_(),Gx}var qx=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Jx={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},V={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function Yx(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Xx(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Zx(e){try{return new URL(e).pathname}catch{return}}function Qx(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var eS=class extends qx{constructor(e,t){super(e,t)}async sendRequest(e){return wg?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Yx(e.url,Jx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(V.COOKIE),e.headers.remove(V.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},tS=class{create(e,t){return new eS(e,t)}},nS=class extends qx{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},rS=class extends nS{constructor(e,t){super(e,t)}},iS=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},aS=class extends iS{create(e,t){return new rS(e,t)}};const oS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),sS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),cS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function lS(e,t){return uS(e,t)?-1:1}function uS(e,t){let n=[oS,sS,cS],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,V.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,V.CONTENT_ENCODING),this.getHeaderValueToSign(e,V.CONTENT_LENGTH),this.getHeaderValueToSign(e,V.CONTENT_MD5),this.getHeaderValueToSign(e,V.CONTENT_TYPE),this.getHeaderValueToSign(e,V.DATE),this.getHeaderValueToSign(e,V.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,V.IF_MATCH),this.getHeaderValueToSign(e,V.IF_NONE_MATCH),this.getHeaderValueToSign(e,V.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,V.RANGE)].join(` +`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function kx(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function Ax(e,t,n,r,i){return!n.sanitizeName||_b(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Ox.prototype.build=function(e){if(this.options.preserveOrder)return _x(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Lb,n=kx(e,this.options);return this.j2x(e,0,t,n).val}},Ox.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:Ax(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=Ax(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Ox.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Ox.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Ox.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=fx(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function Bx(e,t={}){if(!e)throw Error(`Document is empty`);let n=Fx.validate(e);if(n!==!0)throw n;let r=new dx(Rx(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Vx=sg(`storage-blob`);var Hx=class extends y{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Ux=x.constants.MAX_LENGTH;var Wx=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Ux);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Hx(this.buffers,this.size)}},Gx=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new m;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Wx(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Kx;function qx(){return Kx||=r_(),Kx}var Jx=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Yx={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},V={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function Xx(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Zx(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Qx(e){try{return new URL(e).pathname}catch{return}}function $x(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var tS=class extends Jx{constructor(e,t){super(e,t)}async sendRequest(e){return Tg?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Xx(e.url,Yx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(V.COOKIE),e.headers.remove(V.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},nS=class{create(e,t){return new tS(e,t)}},rS=class extends Jx{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},iS=class extends rS{constructor(e,t){super(e,t)}},aS=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},oS=class extends aS{create(e,t){return new iS(e,t)}};const sS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),cS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),lS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function uS(e,t){return dS(e,t)?-1:1}function dS(e,t){let n=[sS,cS,lS],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,V.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,V.CONTENT_ENCODING),this.getHeaderValueToSign(e,V.CONTENT_LENGTH),this.getHeaderValueToSign(e,V.CONTENT_MD5),this.getHeaderValueToSign(e,V.CONTENT_TYPE),this.getHeaderValueToSign(e,V.DATE),this.getHeaderValueToSign(e,V.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,V.IF_MATCH),this.getHeaderValueToSign(e,V.IF_NONE_MATCH),this.getHeaderValueToSign(e,V.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,V.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(V.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE));t.sort((e,t)=>lS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Zx(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=Qx(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},fS=class extends iS{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new dS(e,t,this)}computeHMACSHA256(e){return T(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const pS=og(`storage-common`);var mS;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(mS||={});const hS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},gS=new vg(`The operation was aborted.`);var _S=class extends qx{retryOptions;constructor(e,t,n=hS){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:hS.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):hS.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:hS.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:hS.maxRetryDelayInMs):hS.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:hS.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:hS.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Xx(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Yx(r.url,Jx.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(pS.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(pS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return pS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return pS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return pS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return pS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(pS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case mS.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case mS.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return pS.info(`RetryPolicy: Delay for ${r}ms`),$x(r,n,gS)}},vS=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new _S(e,t,this.retryOptions)}};function yS(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return wg?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Yx(e.url,Jx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(V.COOKIE),e.headers.delete(V.CONTENT_LENGTH),t(e))}}}function bS(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const xS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},SS=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],CS=new vg(`The operation was aborted.`);function wS(e={}){let t=e.retryPolicyType??xS.retryPolicyType,n=e.maxTries??xS.maxTries,r=e.retryDelayInMs??xS.retryDelayInMs,i=e.maxRetryDelayInMs??xS.maxRetryDelayInMs,a=e.secondaryHost??xS.secondaryHost,o=e.tryTimeoutInMs??xS.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return pS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of SS)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return pS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return pS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return pS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return pS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case mS.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case mS.FIXED:a=r;break}else a=Math.random()*1e3;return pS.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Yx(e.url,Jx.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Xx(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{pS.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(qg(e))pS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw pS.error(`RetryPolicy: Caught error, message: ${xg(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await $x(c(a,l),e.abortSignal,CS),l++}if(d)return d;throw f??new Kg(`RetryPolicy failed without known error.`)}}}function TS(e){function t(t){t.headers.set(V.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,V.CONTENT_LANGUAGE),n(t,V.CONTENT_ENCODING),n(t,V.CONTENT_LENGTH),n(t,V.CONTENT_MD5),n(t,V.CONTENT_TYPE),n(t,V.DATE),n(t,V.IF_MODIFIED_SINCE),n(t,V.IF_MATCH),n(t,V.IF_NONE_MATCH),n(t,V.IF_UNMODIFIED_SINCE),n(t,V.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(V.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE));t.sort((e,t)=>uS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Qx(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=$x(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},pS=class extends aS{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new fS(e,t,this)}computeHMACSHA256(e){return T(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const mS=sg(`storage-common`);var hS;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(hS||={});const gS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:hS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},_S=new yg(`The operation was aborted.`);var vS=class extends Jx{retryOptions;constructor(e,t,n=gS){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:gS.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):gS.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:gS.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:gS.maxRetryDelayInMs):gS.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:gS.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:gS.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Zx(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Xx(r.url,Yx.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(mS.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(mS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return mS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return mS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return mS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return mS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(mS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case hS.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case hS.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return mS.info(`RetryPolicy: Delay for ${r}ms`),eS(r,n,_S)}},yS=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new vS(e,t,this.retryOptions)}};function bS(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return Tg?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Xx(e.url,Yx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(V.COOKIE),e.headers.delete(V.CONTENT_LENGTH),t(e))}}}function xS(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const SS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:hS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},CS=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],wS=new yg(`The operation was aborted.`);function TS(e={}){let t=e.retryPolicyType??SS.retryPolicyType,n=e.maxTries??SS.maxTries,r=e.retryDelayInMs??SS.retryDelayInMs,i=e.maxRetryDelayInMs??SS.maxRetryDelayInMs,a=e.secondaryHost??SS.secondaryHost,o=e.tryTimeoutInMs??SS.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return mS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of CS)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return mS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return mS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return mS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return mS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case hS.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case hS.FIXED:a=r;break}else a=Math.random()*1e3;return mS.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Xx(e.url,Yx.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Zx(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{mS.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(Jg(e))mS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw mS.error(`RetryPolicy: Caught error, message: ${Sg(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await eS(c(a,l),e.abortSignal,wS),l++}if(d)return d;throw f??new qg(`RetryPolicy failed without known error.`)}}}function ES(e){function t(t){t.headers.set(V.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,V.CONTENT_LANGUAGE),n(t,V.CONTENT_ENCODING),n(t,V.CONTENT_LENGTH),n(t,V.CONTENT_MD5),n(t,V.CONTENT_TYPE),n(t,V.DATE),n(t,V.IF_MODIFIED_SINCE),n(t,V.IF_MATCH),n(t,V.IF_NONE_MATCH),n(t,V.IF_UNMODIFIED_SINCE),n(t,V.RANGE)].join(` `)+` -`+r(t)+i(t),o=T(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(V.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>lS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Zx(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=Qx(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function ES(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. -`),e}}}}var DS=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return T(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const OS=`12.31.0`,kS=`2026-02-06`,AS=5e4,jS=4*1024*1024,MS={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},NS=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),PS=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),FS=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function IS(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var LS=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function RS(e,t={}){e||=new aS;let n=new LS([],t);return n._credential=e,n}function zS(e){let t=[US,HS,WS,GS,KS,qS,YS];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>JS(e));return{wrappedPolicies:cy(n),afterRetry:e}}}}function BS(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?ly(t):Kx(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${OS}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=Tv({...n,loggingOptions:{additionalAllowedHeaderNames:NS,additionalAllowedQueryParameters:PS,logger:Bx.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:Rx,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:zx,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(bS()),i.addPolicy(wS(n.retryOptions),{phase:`Retry`}),i.addPolicy(ES()),i.addPolicy(yS());let a=zS(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=VS(e);h_(o)?i.addPolicy(f_({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Uv}}),{phase:`Sign`}):o instanceof fS&&i.addPolicy(TS({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function VS(e){if(e._credential)return e._credential;let t=new aS;for(let n of e.factories)if(h_(n.credential))t=n.credential;else if(HS(n))return n;return t}function HS(e){return e instanceof fS?!0:e.constructor.name===`StorageSharedKeyCredential`}function US(e){return e instanceof aS?!0:e.constructor.name===`AnonymousCredential`}function WS(e){return h_(e.credential)}function GS(e){return e instanceof tS?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function KS(e){return e instanceof vS?!0:e.constructor.name===`StorageRetryPolicyFactory`}function qS(e){return e.constructor.name===`TelemetryPolicyFactory`}function JS(e){return e.constructor.name===`InjectorPolicyFactory`}function YS(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var XS=De({AccessPolicy:()=>hC,AppendBlobAppendBlockExceptionHeaders:()=>XT,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>QT,AppendBlobAppendBlockFromUrlHeaders:()=>ZT,AppendBlobAppendBlockHeaders:()=>YT,AppendBlobCreateExceptionHeaders:()=>JT,AppendBlobCreateHeaders:()=>qT,AppendBlobSealExceptionHeaders:()=>eE,AppendBlobSealHeaders:()=>$T,ArrowConfiguration:()=>FC,ArrowField:()=>IC,BlobAbortCopyFromURLExceptionHeaders:()=>vT,BlobAbortCopyFromURLHeaders:()=>_T,BlobAcquireLeaseExceptionHeaders:()=>nT,BlobAcquireLeaseHeaders:()=>tT,BlobBreakLeaseExceptionHeaders:()=>uT,BlobBreakLeaseHeaders:()=>lT,BlobChangeLeaseExceptionHeaders:()=>cT,BlobChangeLeaseHeaders:()=>sT,BlobCopyFromURLExceptionHeaders:()=>gT,BlobCopyFromURLHeaders:()=>hT,BlobCreateSnapshotExceptionHeaders:()=>fT,BlobCreateSnapshotHeaders:()=>dT,BlobDeleteExceptionHeaders:()=>Bw,BlobDeleteHeaders:()=>zw,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Xw,BlobDeleteImmutabilityPolicyHeaders:()=>Yw,BlobDownloadExceptionHeaders:()=>Iw,BlobDownloadHeaders:()=>Fw,BlobFlatListSegment:()=>_C,BlobGetAccountInfoExceptionHeaders:()=>ST,BlobGetAccountInfoHeaders:()=>xT,BlobGetPropertiesExceptionHeaders:()=>Rw,BlobGetPropertiesHeaders:()=>Lw,BlobGetTagsExceptionHeaders:()=>ET,BlobGetTagsHeaders:()=>TT,BlobHierarchyListSegment:()=>SC,BlobItemInternal:()=>vC,BlobName:()=>yC,BlobPrefix:()=>CC,BlobPropertiesInternal:()=>bC,BlobQueryExceptionHeaders:()=>wT,BlobQueryHeaders:()=>CT,BlobReleaseLeaseExceptionHeaders:()=>iT,BlobReleaseLeaseHeaders:()=>rT,BlobRenewLeaseExceptionHeaders:()=>oT,BlobRenewLeaseHeaders:()=>aT,BlobServiceProperties:()=>ZS,BlobServiceStatistics:()=>rC,BlobSetExpiryExceptionHeaders:()=>Ww,BlobSetExpiryHeaders:()=>Uw,BlobSetHttpHeadersExceptionHeaders:()=>Kw,BlobSetHttpHeadersHeaders:()=>Gw,BlobSetImmutabilityPolicyExceptionHeaders:()=>Jw,BlobSetImmutabilityPolicyHeaders:()=>qw,BlobSetLegalHoldExceptionHeaders:()=>Qw,BlobSetLegalHoldHeaders:()=>Zw,BlobSetMetadataExceptionHeaders:()=>eT,BlobSetMetadataHeaders:()=>$w,BlobSetTagsExceptionHeaders:()=>OT,BlobSetTagsHeaders:()=>DT,BlobSetTierExceptionHeaders:()=>bT,BlobSetTierHeaders:()=>yT,BlobStartCopyFromURLExceptionHeaders:()=>mT,BlobStartCopyFromURLHeaders:()=>pT,BlobTag:()=>pC,BlobTags:()=>fC,BlobUndeleteExceptionHeaders:()=>Hw,BlobUndeleteHeaders:()=>Vw,Block:()=>EC,BlockBlobCommitBlockListExceptionHeaders:()=>uE,BlockBlobCommitBlockListHeaders:()=>lE,BlockBlobGetBlockListExceptionHeaders:()=>fE,BlockBlobGetBlockListHeaders:()=>dE,BlockBlobPutBlobFromUrlExceptionHeaders:()=>iE,BlockBlobPutBlobFromUrlHeaders:()=>rE,BlockBlobStageBlockExceptionHeaders:()=>oE,BlockBlobStageBlockFromURLExceptionHeaders:()=>cE,BlockBlobStageBlockFromURLHeaders:()=>sE,BlockBlobStageBlockHeaders:()=>aE,BlockBlobUploadExceptionHeaders:()=>nE,BlockBlobUploadHeaders:()=>tE,BlockList:()=>TC,BlockLookupList:()=>wC,ClearRange:()=>kC,ContainerAcquireLeaseExceptionHeaders:()=>bw,ContainerAcquireLeaseHeaders:()=>yw,ContainerBreakLeaseExceptionHeaders:()=>Ew,ContainerBreakLeaseHeaders:()=>Tw,ContainerChangeLeaseExceptionHeaders:()=>Ow,ContainerChangeLeaseHeaders:()=>Dw,ContainerCreateExceptionHeaders:()=>ew,ContainerCreateHeaders:()=>$C,ContainerDeleteExceptionHeaders:()=>iw,ContainerDeleteHeaders:()=>rw,ContainerFilterBlobsExceptionHeaders:()=>vw,ContainerFilterBlobsHeaders:()=>_w,ContainerGetAccessPolicyExceptionHeaders:()=>cw,ContainerGetAccessPolicyHeaders:()=>sw,ContainerGetAccountInfoExceptionHeaders:()=>Pw,ContainerGetAccountInfoHeaders:()=>Nw,ContainerGetPropertiesExceptionHeaders:()=>nw,ContainerGetPropertiesHeaders:()=>tw,ContainerItem:()=>oC,ContainerListBlobFlatSegmentExceptionHeaders:()=>Aw,ContainerListBlobFlatSegmentHeaders:()=>kw,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Mw,ContainerListBlobHierarchySegmentHeaders:()=>jw,ContainerProperties:()=>sC,ContainerReleaseLeaseExceptionHeaders:()=>Sw,ContainerReleaseLeaseHeaders:()=>xw,ContainerRenameExceptionHeaders:()=>mw,ContainerRenameHeaders:()=>pw,ContainerRenewLeaseExceptionHeaders:()=>ww,ContainerRenewLeaseHeaders:()=>Cw,ContainerRestoreExceptionHeaders:()=>fw,ContainerRestoreHeaders:()=>dw,ContainerSetAccessPolicyExceptionHeaders:()=>uw,ContainerSetAccessPolicyHeaders:()=>lw,ContainerSetMetadataExceptionHeaders:()=>ow,ContainerSetMetadataHeaders:()=>aw,ContainerSubmitBatchExceptionHeaders:()=>gw,ContainerSubmitBatchHeaders:()=>hw,CorsRule:()=>tC,DelimitedTextConfiguration:()=>NC,FilterBlobItem:()=>dC,FilterBlobSegment:()=>uC,GeoReplication:()=>iC,JsonTextConfiguration:()=>PC,KeyInfo:()=>cC,ListBlobsFlatSegmentResponse:()=>gC,ListBlobsHierarchySegmentResponse:()=>xC,ListContainersSegmentResponse:()=>aC,Logging:()=>QS,Metrics:()=>eC,PageBlobClearPagesExceptionHeaders:()=>PT,PageBlobClearPagesHeaders:()=>NT,PageBlobCopyIncrementalExceptionHeaders:()=>KT,PageBlobCopyIncrementalHeaders:()=>GT,PageBlobCreateExceptionHeaders:()=>AT,PageBlobCreateHeaders:()=>kT,PageBlobGetPageRangesDiffExceptionHeaders:()=>BT,PageBlobGetPageRangesDiffHeaders:()=>zT,PageBlobGetPageRangesExceptionHeaders:()=>RT,PageBlobGetPageRangesHeaders:()=>LT,PageBlobResizeExceptionHeaders:()=>HT,PageBlobResizeHeaders:()=>VT,PageBlobUpdateSequenceNumberExceptionHeaders:()=>WT,PageBlobUpdateSequenceNumberHeaders:()=>UT,PageBlobUploadPagesExceptionHeaders:()=>MT,PageBlobUploadPagesFromURLExceptionHeaders:()=>IT,PageBlobUploadPagesFromURLHeaders:()=>FT,PageBlobUploadPagesHeaders:()=>jT,PageList:()=>DC,PageRange:()=>OC,QueryFormat:()=>MC,QueryRequest:()=>AC,QuerySerialization:()=>jC,RetentionPolicy:()=>$S,ServiceFilterBlobsExceptionHeaders:()=>QC,ServiceFilterBlobsHeaders:()=>ZC,ServiceGetAccountInfoExceptionHeaders:()=>JC,ServiceGetAccountInfoHeaders:()=>qC,ServiceGetPropertiesExceptionHeaders:()=>BC,ServiceGetPropertiesHeaders:()=>zC,ServiceGetStatisticsExceptionHeaders:()=>HC,ServiceGetStatisticsHeaders:()=>VC,ServiceGetUserDelegationKeyExceptionHeaders:()=>KC,ServiceGetUserDelegationKeyHeaders:()=>GC,ServiceListContainersSegmentExceptionHeaders:()=>WC,ServiceListContainersSegmentHeaders:()=>UC,ServiceSetPropertiesExceptionHeaders:()=>RC,ServiceSetPropertiesHeaders:()=>LC,ServiceSubmitBatchExceptionHeaders:()=>XC,ServiceSubmitBatchHeaders:()=>YC,SignedIdentifier:()=>mC,StaticWebsite:()=>nC,StorageError:()=>H,UserDelegationKey:()=>lC});const ZS={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},QS={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},$S={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},eC={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},tC={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},nC={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},H={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},rC={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},iC={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},aC={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},oC={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},sC={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},cC={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},lC={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},uC={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},dC={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},fC={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},pC={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},mC={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},hC={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},gC={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},_C={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},vC={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},yC={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},bC={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},xC={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},SC={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},CC={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},wC={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},TC={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},EC={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},DC={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},OC={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},kC={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},AC={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},jC={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},MC={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},NC={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},PC={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},FC={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},IC={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},LC={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RC={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cw={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},gw={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_w={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},vw={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yw={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},bw={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xw={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Sw={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Cw={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},ww={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Tw={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ew={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dw={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ow={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kw={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nw={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},Pw={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Fw={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},Iw={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Lw={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rw={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zw={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bw={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vw={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hw={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uw={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ww={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Gw={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kw={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qw={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},Jw={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yw={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Xw={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zw={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},Qw={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$w={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eT={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tT={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},nT={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rT={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},iT={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aT={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},oT={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sT={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},cT={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lT={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},uT={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dT={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fT={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pT={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mT={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},hT={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gT={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},_T={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vT={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yT={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bT={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xT={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},ST={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},CT={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},wT={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},TT={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ET={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DT={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OT={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kT={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AT={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jT={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MT={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NT={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PT={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FT={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IT={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},LT={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RT={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zT={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BT={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VT={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HT={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UT={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WT={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GT={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KT={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qT={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JT={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YT={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XT={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZT={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QT={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},$T={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},eE={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tE={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nE={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rE={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iE={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},aE={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oE={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sE={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cE={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},lE={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uE={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dE={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fE={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},mE={parameterPath:`blobServiceProperties`,mapper:ZS},hE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},U={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},gE={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},_E={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},W={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},G={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},K={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},q={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},vE={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},yE={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bE={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},xE={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},SE={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},CE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},wE={parameterPath:`keyInfo`,mapper:cC},TE={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},EE={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},DE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},OE={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},kE={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},AE={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},jE={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ME={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},NE={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},PE={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},FE={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},IE={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},LE={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},J={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Y={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},RE={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},zE={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BE={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},VE={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},HE={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},UE={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},WE={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},GE={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},KE={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},qE={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},JE={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},YE={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},XE={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},ZE={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},QE={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},$E={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},eD={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},tD={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},nD={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},rD={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},iD={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},aD={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},oD={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},sD={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},cD={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},lD={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},uD={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},dD={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},fD={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},pD={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},mD={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},hD={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},gD={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},_D={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},vD={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},yD={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},bD={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xD={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},SD={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},CD={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},wD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},TD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},ED={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},DD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},OD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},kD={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},AD={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},jD={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},MD={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ND={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},PD={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},FD={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ID={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},LD={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},RD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},zD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},BD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},VD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},HD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},UD={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},WD={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},GD={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},KD={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},qD={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},JD={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},YD={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},XD={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},ZD={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},QD={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},$D={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},eO={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},tO={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},nO={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},rO={parameterPath:[`options`,`queryRequest`],mapper:AC},iO={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},aO={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},oO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},sO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},cO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},lO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},uO={parameterPath:[`options`,`tags`],mapper:fC},dO={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},fO={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},pO={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},mO={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},hO={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},gO={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},_O={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},vO={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},yO={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bO={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},xO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},SO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},CO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},wO={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},TO={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},EO={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},DO={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},OO={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},kO={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},AO={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},jO={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},MO={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},NO={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},PO={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},FO={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},IO={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},LO={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},RO={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},zO={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BO={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},VO={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},HO={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},UO={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},WO={parameterPath:`blocks`,mapper:wC},GO={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KO={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var qO=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},YO)}getProperties(e){return this.client.sendOperationRequest({options:e},XO)}getStatistics(e){return this.client.sendOperationRequest({options:e},ZO)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},QO)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},$O)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ek)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},tk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},nk)}};const JO=k_(XS,!0),YO={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:LC},default:{bodyMapper:H,headersMapper:RC}},requestBody:mE,queryParameters:[gE,_E,W],urlParameters:[U],headerParameters:[pE,hE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:JO},XO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:ZS,headersMapper:zC},default:{bodyMapper:H,headersMapper:BC}},queryParameters:[gE,_E,W],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},ZO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:rC,headersMapper:VC},default:{bodyMapper:H,headersMapper:HC}},queryParameters:[gE,W,vE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},QO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:aC,headersMapper:UC},default:{bodyMapper:H,headersMapper:WC}},queryParameters:[W,yE,bE,xE,SE,CE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},$O={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:lC,headersMapper:GC},default:{bodyMapper:H,headersMapper:KC}},requestBody:wE,queryParameters:[gE,W,TE],urlParameters:[U],headerParameters:[pE,hE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:JO},ek={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:qC},default:{bodyMapper:H,headersMapper:JC}},queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO},tk={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:YC},default:{bodyMapper:H,headersMapper:XC}},requestBody:DE,queryParameters:[W,OE],urlParameters:[U],headerParameters:[hE,G,K,kE,AE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:JO},nk={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:uC,headersMapper:ZC},default:{bodyMapper:H,headersMapper:QC}},queryParameters:[W,xE,SE,jE,ME],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:JO};var rk=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},ak)}getProperties(e){return this.client.sendOperationRequest({options:e},ok)}delete(e){return this.client.sendOperationRequest({options:e},sk)}setMetadata(e){return this.client.sendOperationRequest({options:e},ck)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},lk)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},uk)}restore(e){return this.client.sendOperationRequest({options:e},dk)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},fk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},pk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},mk)}acquireLease(e){return this.client.sendOperationRequest({options:e},hk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},gk)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},_k)}breakLease(e){return this.client.sendOperationRequest({options:e},vk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},yk)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},bk)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},xk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Sk)}};const ik=k_(XS,!0),ak={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:$C},default:{bodyMapper:H,headersMapper:ew}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q,PE,FE,IE,LE],isXML:!0,serializer:ik},ok={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:tw},default:{bodyMapper:H,headersMapper:nw}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ik},sk={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:rw},default:{bodyMapper:H,headersMapper:iw}},queryParameters:[W,NE],urlParameters:[U],headerParameters:[G,K,q,J,Y,X],isXML:!0,serializer:ik},ck={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:aw},default:{bodyMapper:H,headersMapper:ow}},queryParameters:[W,NE,RE],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y],isXML:!0,serializer:ik},lk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:sw},default:{bodyMapper:H,headersMapper:cw}},queryParameters:[W,NE,zE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ik},uk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:lw},default:{bodyMapper:H,headersMapper:uw}},requestBody:BE,queryParameters:[W,NE,zE],urlParameters:[U],headerParameters:[pE,hE,G,K,FE,J,Y,X],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ik},dk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:dw},default:{bodyMapper:H,headersMapper:fw}},queryParameters:[W,NE,VE],urlParameters:[U],headerParameters:[G,K,q,HE,UE],isXML:!0,serializer:ik},fk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:pw},default:{bodyMapper:H,headersMapper:mw}},queryParameters:[W,NE,WE],urlParameters:[U],headerParameters:[G,K,q,GE,KE],isXML:!0,serializer:ik},pk={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:hw},default:{bodyMapper:H,headersMapper:gw}},requestBody:DE,queryParameters:[W,OE,NE],urlParameters:[U],headerParameters:[hE,G,K,kE,AE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ik},mk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:uC,headersMapper:_w},default:{bodyMapper:H,headersMapper:vw}},queryParameters:[W,xE,SE,jE,ME,NE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik},hk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:yw},default:{bodyMapper:H,headersMapper:bw}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,JE,YE,XE],isXML:!0,serializer:ik},gk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:xw},default:{bodyMapper:H,headersMapper:Sw}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,ZE,QE],isXML:!0,serializer:ik},_k={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Cw},default:{bodyMapper:H,headersMapper:ww}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E],isXML:!0,serializer:ik},vk={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:Tw},default:{bodyMapper:H,headersMapper:Ew}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,eD,tD],isXML:!0,serializer:ik},yk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Dw},default:{bodyMapper:H,headersMapper:Ow}},queryParameters:[W,NE,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,nD,rD],isXML:!0,serializer:ik},bk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:gC,headersMapper:kw},default:{bodyMapper:H,headersMapper:Aw}},queryParameters:[W,yE,bE,xE,SE,NE,iD,aD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik},xk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:xC,headersMapper:jw},default:{bodyMapper:H,headersMapper:Mw}},queryParameters:[W,yE,bE,xE,SE,NE,iD,aD,oD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik},Sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Nw},default:{bodyMapper:H,headersMapper:Pw}},queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ik};var Ck=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Tk)}getProperties(e){return this.client.sendOperationRequest({options:e},Ek)}delete(e){return this.client.sendOperationRequest({options:e},Dk)}undelete(e){return this.client.sendOperationRequest({options:e},Ok)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},kk)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Ak)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},jk)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Mk)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Nk)}setMetadata(e){return this.client.sendOperationRequest({options:e},Pk)}acquireLease(e){return this.client.sendOperationRequest({options:e},Fk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Ik)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Lk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Rk)}breakLease(e){return this.client.sendOperationRequest({options:e},zk)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Bk)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Vk)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Hk)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},Uk)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Wk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Gk)}query(e){return this.client.sendOperationRequest({options:e},Kk)}getTags(e){return this.client.sendOperationRequest({options:e},qk)}setTags(e){return this.client.sendOperationRequest({options:e},Jk)}};const wk=k_(XS,!0),Tk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Fw},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Fw},default:{bodyMapper:H,headersMapper:Iw}},queryParameters:[W,sD,cD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,lD,uD,dD,fD,pD,mD,hD,gD,_D],isXML:!0,serializer:wk},Ek={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:Lw},default:{bodyMapper:H,headersMapper:Rw}},queryParameters:[W,sD,cD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,fD,pD,mD,hD,gD,_D],isXML:!0,serializer:wk},Dk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:zw},default:{bodyMapper:H,headersMapper:Bw}},queryParameters:[W,sD,cD,yD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,_D,vD],isXML:!0,serializer:wk},Ok={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Vw},default:{bodyMapper:H,headersMapper:Hw}},queryParameters:[W,VE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:wk},kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Uw},default:{bodyMapper:H,headersMapper:Ww}},queryParameters:[W,bD],urlParameters:[U],headerParameters:[G,K,q,xD,SD],isXML:!0,serializer:wk},Ak={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Gw},default:{bodyMapper:H,headersMapper:Kw}},queryParameters:[_E,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,_D,CD,wD,TD,ED,DD,OD],isXML:!0,serializer:wk},jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:qw},default:{bodyMapper:H,headersMapper:Jw}},queryParameters:[W,sD,cD,kD],urlParameters:[U],headerParameters:[G,K,q,X,AD,jD],isXML:!0,serializer:wk},Mk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Yw},default:{bodyMapper:H,headersMapper:Xw}},queryParameters:[W,sD,cD,kD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:wk},Nk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Zw},default:{bodyMapper:H,headersMapper:Qw}},queryParameters:[W,sD,cD,MD],urlParameters:[U],headerParameters:[G,K,q,ND],isXML:!0,serializer:wk},Pk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$w},default:{bodyMapper:H,headersMapper:eT}},queryParameters:[W,RE],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,fD,pD,mD,hD,gD,_D,PD],isXML:!0,serializer:wk},Fk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tT},default:{bodyMapper:H,headersMapper:nT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,JE,YE,XE,hD,gD,_D],isXML:!0,serializer:wk},Ik={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:rT},default:{bodyMapper:H,headersMapper:iT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,ZE,QE,hD,gD,_D],isXML:!0,serializer:wk},Lk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:aT},default:{bodyMapper:H,headersMapper:oT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E,hD,gD,_D],isXML:!0,serializer:wk},Rk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:sT},default:{bodyMapper:H,headersMapper:cT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,nD,rD,hD,gD,_D],isXML:!0,serializer:wk},zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:lT},default:{bodyMapper:H,headersMapper:uT}},queryParameters:[W,qE],urlParameters:[U],headerParameters:[G,K,q,Y,X,eD,tD,hD,gD,_D],isXML:!0,serializer:wk},Bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:dT},default:{bodyMapper:H,headersMapper:fT}},queryParameters:[W,FD],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,fD,pD,mD,hD,gD,_D,PD],isXML:!0,serializer:wk},Vk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:pT},default:{bodyMapper:H,headersMapper:mT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,hD,gD,_D,AD,jD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD],isXML:!0,serializer:wk},Hk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:hT},default:{bodyMapper:H,headersMapper:gT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,PE,J,Y,X,hD,gD,_D,AD,jD,PD,ID,RD,zD,BD,VD,UD,WD,KD,qD,JD,YD,XD,ZD],isXML:!0,serializer:wk},Uk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:_T},default:{bodyMapper:H,headersMapper:vT}},queryParameters:[W,QD,eO],urlParameters:[U],headerParameters:[G,K,q,J,$D],isXML:!0,serializer:wk},Wk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:yT},202:{headersMapper:yT},default:{bodyMapper:H,headersMapper:bT}},queryParameters:[W,sD,cD,tO],urlParameters:[U],headerParameters:[G,K,q,J,_D,LD,nO],isXML:!0,serializer:wk},Gk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:xT},default:{bodyMapper:H,headersMapper:ST}},queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:wk},Kk={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CT},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CT},default:{bodyMapper:H,headersMapper:wT}},requestBody:rO,queryParameters:[W,sD,iO],urlParameters:[U],headerParameters:[pE,hE,G,K,J,Y,X,fD,pD,mD,hD,gD,_D],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:wk},qk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:fC,headersMapper:TT},default:{bodyMapper:H,headersMapper:ET}},queryParameters:[W,sD,cD,aO],urlParameters:[U],headerParameters:[G,K,q,J,_D,oO,sO,cO,lO],isXML:!0,serializer:wk},Jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:DT},default:{bodyMapper:H,headersMapper:OT}},requestBody:uO,queryParameters:[W,cD,aO],urlParameters:[U],headerParameters:[pE,hE,G,K,J,_D,oO,sO,cO,lO,dO,fO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:wk};var Yk=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Zk)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Qk)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},$k)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},eA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},tA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},nA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},rA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},iA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},aA)}};const Xk=k_(XS,!0),Zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:kT},default:{bodyMapper:H,headersMapper:AT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,ID,WD,KD,pO,mO,hO],isXML:!0,serializer:Xk},Qk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:jT},default:{bodyMapper:H,headersMapper:MT}},requestBody:_O,queryParameters:[W,yO],urlParameters:[U],headerParameters:[G,K,kE,J,Y,X,lD,fD,pD,mD,hD,gD,_D,PD,dO,fO,gO,vO,bO,xO,SO,CO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Xk},$k={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:NT},default:{bodyMapper:H,headersMapper:PT}},queryParameters:[W,yO],urlParameters:[U],headerParameters:[G,K,q,kE,J,Y,X,lD,fD,pD,mD,hD,gD,_D,PD,xO,SO,CO,wO],isXML:!0,serializer:Xk},eA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:FT},default:{bodyMapper:H,headersMapper:IT}},queryParameters:[W,yO],urlParameters:[U],headerParameters:[G,K,q,kE,J,Y,X,fD,pD,mD,hD,gD,_D,PD,RD,zD,BD,VD,JD,YD,ZD,bO,xO,SO,CO,TO,EO,DO,OO],isXML:!0,serializer:Xk},tA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:DC,headersMapper:LT},default:{bodyMapper:H,headersMapper:RT}},queryParameters:[W,xE,SE,sD,kO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,lD,hD,gD,_D],isXML:!0,serializer:Xk},nA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:DC,headersMapper:zT},default:{bodyMapper:H,headersMapper:BT}},queryParameters:[W,xE,SE,sD,kO,AO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,lD,hD,gD,_D,jO],isXML:!0,serializer:Xk},rA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:VT},default:{bodyMapper:H,headersMapper:HT}},queryParameters:[_E,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,fD,pD,mD,hD,gD,_D,PD,mO],isXML:!0,serializer:Xk},iA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:UT},default:{bodyMapper:H,headersMapper:WT}},queryParameters:[_E,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,_D,hO,MO],isXML:!0,serializer:Xk},aA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:GT},default:{bodyMapper:H,headersMapper:KT}},queryParameters:[W,NO],urlParameters:[U],headerParameters:[G,K,q,Y,X,hD,gD,_D,UD],isXML:!0,serializer:Xk};var oA=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},cA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},lA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},uA)}seal(e){return this.client.sendOperationRequest({options:e},dA)}};const sA=k_(XS,!0),cA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:qT},default:{bodyMapper:H,headersMapper:JT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,WD,KD,PO],isXML:!0,serializer:sA},lA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:YT},default:{bodyMapper:H,headersMapper:XT}},requestBody:_O,queryParameters:[W,FO],urlParameters:[U],headerParameters:[G,K,kE,J,Y,X,fD,pD,mD,hD,gD,_D,PD,dO,fO,gO,vO,IO,LO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:sA},uA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:ZT},default:{bodyMapper:H,headersMapper:QT}},queryParameters:[W,FO],urlParameters:[U],headerParameters:[G,K,q,kE,J,Y,X,fD,pD,mD,hD,gD,_D,PD,RD,zD,BD,VD,JD,YD,ZD,dO,TO,DO,IO,LO,RO],isXML:!0,serializer:sA},dA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$T},default:{bodyMapper:H,headersMapper:eE}},queryParameters:[W,zO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,hD,gD,LO],isXML:!0,serializer:sA};var fA=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},mA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},hA)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},gA)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},_A)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},vA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},yA)}};const pA=k_(XS,!0),mA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tE},default:{bodyMapper:H,headersMapper:nE}},requestBody:_O,queryParameters:[W],urlParameters:[U],headerParameters:[G,K,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,ID,WD,KD,dO,fO,gO,vO,BO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:pA},hA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:rE},default:{bodyMapper:H,headersMapper:iE}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,kE,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,PD,ID,RD,zD,BD,VD,HD,UD,WD,JD,YD,XD,ZD,dO,BO,VO],isXML:!0,serializer:pA},gA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:aE},default:{bodyMapper:H,headersMapper:oE}},requestBody:_O,queryParameters:[W,HO,UO],urlParameters:[U],headerParameters:[G,K,kE,J,fD,pD,mD,PD,dO,fO,gO,vO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:pA},_A={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:sE},default:{bodyMapper:H,headersMapper:cE}},queryParameters:[W,HO,UO],urlParameters:[U],headerParameters:[G,K,q,kE,J,fD,pD,mD,PD,RD,zD,BD,VD,JD,YD,ZD,TO,DO,RO],isXML:!0,serializer:pA},vA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:lE},default:{bodyMapper:H,headersMapper:uE}},requestBody:WO,queryParameters:[W,GO],urlParameters:[U],headerParameters:[pE,hE,G,K,PE,J,Y,X,fD,pD,mD,hD,gD,_D,CD,wD,TD,ED,DD,OD,AD,jD,PD,ID,WD,KD,dO,fO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:pA},yA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:TC,headersMapper:dE},default:{bodyMapper:H,headersMapper:fE}},queryParameters:[W,sD,GO,KO],urlParameters:[U],headerParameters:[G,K,q,J,_D],isXML:!0,serializer:pA};var bA=class extends ay{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new qO(this),this.container=new rk(this),this.blob=new Ck(this),this.pageBlob=new Yk(this),this.appendBlob=new oA(this),this.blockBlob=new fA(this)}service;container;blob;pageBlob;appendBlob;blockBlob},xA=class extends bA{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function SA(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=EA(n),t.pathname=n,t.toString()}function CA(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function wA(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function TA(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=CA(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=wA(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=wA(e,`AccountName`),a=Buffer.from(wA(e,`AccountKey`),`base64`),!n){r=wA(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=wA(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=wA(e,`SharedAccessSignature`),r=wA(e,`AccountName`);if(r||=LA(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function EA(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function DA(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function OA(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function kA(e,t){return new URL(e).searchParams.get(t)??void 0}function AA(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function jA(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function MA(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function NA(e){return wg?Buffer.from(e).toString(`base64`):btoa(e)}function PA(e,t){return e.length>42&&(e=e.slice(0,42)),NA(e+FA(t.toString(),48-e.length,`0`))}function FA(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function IA(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function LA(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:RA(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function RA(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&FS.includes(e.port)}function zA(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function BA(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function VA(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function HA(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function UA(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function WA(e){return e?e.scheme+` `+e.value:void 0}function*GA(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function QA(e,t,n){return $A(e,t,n).sasQueryParameters}function $A(e,t,n){let r=e.version?e.version:kS,i=t instanceof fS?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new DS(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?oj(e,a):aj(e,a):nj(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?ij(e,a):rj(e,a):tj(e,i);if(r>=`2015-04-05`){if(i!==void 0)return ej(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function ej(e,t){if(e=cj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),a=t.computeHMACSHA256(i);return{sasQueryParameters:new ZA(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function tj(e,t){if(e=cj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function nj(e,t){if(e=cj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function rj(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function ij(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function aj(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function oj(e,t){if(e=cj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?qA.parse(e.permissions.toString()).toString():JA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?MA(e.startsOn,!1):``,e.expiresOn?MA(e.expiresOn,!1):``,sj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?MA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?MA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?YA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new ZA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function sj(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function cj(e){let t=e.version?e.version:kS;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var lj=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=Cg(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},uj=class extends y{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new vg(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},dj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return wg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new uj(this.originalResponse.readableStreamBody,t,n,r,i)}};const fj=new Uint8Array([79,98,106,1]);var pj=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},mj;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(mj||={});var hj;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(hj||={});var gj=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case hj.NULL:case hj.BOOLEAN:case hj.INT:case hj.LONG:case hj.FLOAT:case hj.DOUBLE:case hj.BYTES:case hj.STRING:return new _j(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new yj(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case mj.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new xj(r,t.name);case mj.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new vj(t.symbols);case mj.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new bj(e.fromSchema(t.values));case mj.ARRAY:case mj.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},_j=class extends gj{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case hj.NULL:return pj.readNull();case hj.BOOLEAN:return pj.readBoolean(e,t);case hj.INT:return pj.readInt(e,t);case hj.LONG:return pj.readLong(e,t);case hj.FLOAT:return pj.readFloat(e,t);case hj.DOUBLE:return pj.readDouble(e,t);case hj.BYTES:return pj.readBytes(e,t);case hj.STRING:return pj.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},vj=class extends gj{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await pj.readInt(e,t);return this._symbols[n]}},yj=class extends gj{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await pj.readInt(e,t);return this._types[n].read(e,t)}},bj=class extends gj{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return pj.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},xj=class extends gj{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Sj(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await pj.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Sj(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await pj.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await pj.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},wj=class{};const Tj=new vg(`Reading from the avro stream was aborted.`);var Ej=class extends wj{_position;_readable;toUint8Array(e){return typeof e==`string`?A.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw Tj;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(Tj)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},Dj=class extends y{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new Cj(new Ej(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},Oj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return wg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new Dj(this.originalResponse.readableStreamBody,t)}},kj;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(kj||={});var Aj;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(Aj||={});function jj(e){if(e!==void 0)return e}function Mj(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Nj;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Nj||={});function Pj(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var Fj=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},Ij=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},Lj=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new Ij(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Fj(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},Rj=class extends Lj{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=Hj({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return bg(this.intervalInMs)}};const zj=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Hj(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Hj(t)):(t.isCancelled=!0,Hj(t))},Bj=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return Hj(t)},Vj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function Hj(e){return{state:{...e},cancel:zj,toString:Vj,update:Bj}}function Uj(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Wj;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(Wj||={});var Gj=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Wj.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new m}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=Wj.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function qj(e,t){return new Promise((n,r)=>{let i=re.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const Jj=S.promisify(re.stat),Yj=re.createReadStream;var Xj=class e extends KA{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=kA(this.url,MS.Parameters.SNAPSHOT),this._versionId=kA(this.url,MS.Parameters.VERSIONID)}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(OA(this.url,MS.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new Zj(this.url,this.pipeline)}getBlockBlobClient(){return new Qj(this.url,this.pipeline)}getPageBlobClient(){return new $j(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Mj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:wg?void 0:n.onProgress},range:e===0&&!t?void 0:Uj({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:UA(i.objectReplicationRules)};if(!wg)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new dj(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Uj({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return Mj(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},Mj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:UA(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:BA(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:VA({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new lj(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Mj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new Rj({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:WA(t.sourceAuthorization),tier:jj(t.tier),blobTagsString:zA(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(jj(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=jS),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await qj(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(RA(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:jj(t.tier),blobTagsString:zA(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof fS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=QA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(jA(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof fS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return $A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=QA({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(jA(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return $A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},Zj=class e extends Xj{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Mj(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:zA(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},Mj(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Mj(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:Uj({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:WA(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},Qj=class e extends Xj{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(Mj(t.customerProvidedKey,this.isHttps),!wg)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new Oj(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:HA(t.inputTextConfiguration),outputSerialization:HA(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},Mj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:jj(n.tier),blobTagsString:zA(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:WA(t.sourceAuthorization),tier:jj(t.tier),blobTagsString:zA(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return Mj(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return Mj(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:Uj({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:WA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:jj(t.tier),blobTagsString:zA(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(wg){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/AS),r<4194304&&(r=jS))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${AS}`);let s=[],c=Cg(),l=0,u=new Gj(n.concurrency);for(let i=0;i{let u=PA(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await Jj(e)).size;return this.uploadSeekableInternal((t,n)=>()=>Yj(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=Cg(),s=0,c=[];return await new Wx(e,t,n,async(e,t)=>{let n=PA(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},$j=class e extends Xj{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=TA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=DA(DA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(OA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},Mj(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:jj(t.tier),blobTagsString:zA(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},Mj(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:Uj({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Mj(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,Uj({offset:t,count:r}),0,Uj({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:WA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Uj({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Pj(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Uj({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:Uj({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*GA(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Pj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:Uj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:Uj({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*GA(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Pj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:Uj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},eM=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},tM=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};tM.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var nM=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};nM.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var rM=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},iM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},aM=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function oM(e,t,n){return iM(this,void 0,void 0,function*(){let r=new Xj(e),i=r.getBlockBlobClient(),a=new aM(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),R(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new eM(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw zr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var sM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function cM(e){return e?e>=200&&e<300:!1}function lM(e){return e?e>=500:!0}function uM(e){return e?[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout].includes(e):!1}function dM(e){return sM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function fM(e,t,n){return sM(this,arguments,void 0,function*(e,t,n,r=2,i=Tp,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!lM(l)))return c;if(l&&(u=uM(l),o=`Cache service responded with ${l}`),R(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){R(`${e} - Error is not retryable`);break}yield dM(i),s++}throw Error(`${e} failed: ${o}`)})}function pM(e,t){return sM(this,arguments,void 0,function*(e,t,n=2,r=Tp){return yield fM(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof Vn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function mM(e,t){return sM(this,arguments,void 0,function*(e,t,n=2,r=Tp){return yield fM(e,t,e=>e.message.statusCode,n,r)})}var hM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function gM(e,t){return hM(this,void 0,void 0,function*(){yield _.promisify(ge.pipeline)(e.message,t)})}var _M=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function vM(e,t){return hM(this,void 0,void 0,function*(){let n=a.createWriteStream(t),r=new Un(`actions/cache`),i=yield mM(`downloadCache`,()=>hM(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Ep,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${Ep} ms`)}),yield gM(i,n);let o=i.message.headers[`content-length`];if(o){let e=parseInt(o),n=Pp(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else R(`Unable to validate download, no Content-Length header`)})}function yM(e,t,n){return hM(this,void 0,void 0,function*(){let r=yield a.promises.open(t,`w`),i=new Un(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield mM(`downloadCacheMetadata`,()=>hM(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;thM(this,void 0,void 0,function*(){return yield bM(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new _M(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>hM(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function bM(e,t,n,r){return hM(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield CM(3e4,xM(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function xM(e,t,n,r){return hM(this,void 0,void 0,function*(){let i=yield mM(`downloadCachePart`,()=>hM(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function SM(e,t,n){return hM(this,void 0,void 0,function*(){let r=new Qj(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)R(`Unable to determine content length, downloading file with http-client...`),yield vM(e,t);else{let e=Math.min(134217728,k.constants.MAX_LENGTH),o=new _M(i),s=a.openSync(t,`w`);try{o.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!o.isDone();){let l=o.segmentOffset+o.segmentSize,u=Math.min(e,i-l);o.nextSegment(u);let d=yield CM(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&a.writeFileSync(s,d)}}finally{o.stopDisplayTimer(),a.closeSync(s)}}})}const CM=(e,t)=>hM(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function wM(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Upload concurrency: ${t.uploadConcurrency}`),R(`Upload chunk size: ${t.uploadChunkSize}`),t}function TM(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Download concurrency: ${t.downloadConcurrency}`),R(`Request timeout (ms): ${t.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),R(`Lookup only: ${t.lookupOnly}`),t}function EM(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function DM(){return EM()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function OM(){let e=DM();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var kM=P(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),AM=P(((e,t)=>{t.exports={version:kM().version}}))();function jM(){return`@actions/cache-${AM.version}`}var MM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function NM(e){let t=OM();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return R(`Resource Url: ${n}`),n}function PM(e,t){return`${e};api-version=${t}`}function FM(){return{headers:{Accept:PM(`application/json`,`6.0-preview.1`)}}}function IM(){let e=new Kn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new Un(jM(),[e],FM())}function LM(e,t,n){return MM(this,void 0,void 0,function*(){let r=IM(),i=Hp(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield pM(`getCacheEntry`,()=>MM(this,void 0,void 0,function*(){return r.getJson(NM(a))}));if(o.statusCode===204)return Lr()&&(yield RM(e[0],r,i)),null;if(!cM(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return jr(c),R(`Cache Result:`),R(JSON.stringify(s)),s})}function RM(e,t,n){return MM(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield pM(`listCache`,()=>MM(this,void 0,void 0,function*(){return t.getJson(NM(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){R(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])R(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function zM(e,t,n){return MM(this,void 0,void 0,function*(){let r=new ve(e),i=TM(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield SM(e,t,i):i.concurrentBlobDownloads?yield yM(e,t,i):yield vM(e,t):yield vM(e,t)})}function BM(e,t,n){return MM(this,void 0,void 0,function*(){let r=IM(),i={key:e,version:Hp(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield pM(`reserveCache`,()=>MM(this,void 0,void 0,function*(){return r.postJson(NM(`caches`),i)}))})}function VM(e,t){return`bytes ${e}-${t}/*`}function HM(e,t,n,r,i){return MM(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${VM(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":VM(r,i)},o=yield mM(`uploadChunk (start: ${r}, end: ${i})`,()=>MM(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!cM(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function UM(e,t,n,r){return MM(this,void 0,void 0,function*(){let i=Pp(n),o=NM(`caches/${t.toString()}`),s=a.openSync(n,`r`),c=wM(r),l=Vp(`uploadConcurrency`,c.uploadConcurrency),u=Vp(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];R(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>MM(this,void 0,void 0,function*(){for(;fa.createReadStream(n,{fd:s,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{a.closeSync(s)}})}function WM(e,t,n){return MM(this,void 0,void 0,function*(){let r={size:n};return yield pM(`commitCache`,()=>MM(this,void 0,void 0,function*(){return e.postJson(NM(`caches/${t.toString()}`),r)}))})}function GM(e,t,n,r){return MM(this,void 0,void 0,function*(){if(wM(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield oM(n,t,r)}else{let n=IM();R(`Upload cache`),yield UM(n,e,t,r),R(`Commiting cache`);let i=Pp(t);Br(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield WM(n,e,i);if(!cM(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Br(`Cache saved successfully`)}})}var KM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),qM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),JM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),YM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),XM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),ZM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=XM(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!==0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),QM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=YM(),n=ZM(),r=XM(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),$M=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),eN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=ZM(),n=XM(),r=$M(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),tN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),nN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),rN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,`__esModule`,{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=rN();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),aN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),oN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionTypeCheck=void 0;let t=iN(),n=aN();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),sN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionLongConvert=void 0;let t=iN();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),cN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonReader=void 0;let t=KM(),n=qM(),r=iN(),i=ZM(),a=$M(),o=sN();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),lN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonWriter=void 0;let t=qM(),n=ZM(),r=iN(),i=$M();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),uN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionScalarDefault=void 0;let t=iN(),n=sN(),r=ZM();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),dN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryReader=void 0;let t=YM(),n=iN(),r=sN(),i=uN();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryWriter=void 0;let t=YM(),n=iN(),r=$M(),i=ZM();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionCreate=void 0;let t=uN(),n=nN();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),mN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionEquals=void 0;let t=iN();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageType=void 0;let t=nN(),n=iN(),r=oN(),i=cN(),a=lN(),o=dN(),s=fN(),c=pN(),l=mN(),u=KM(),d=tN(),f=hN(),p=eN(),m=QM(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),_N=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containsMessageType=void 0;let t=nN();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),vN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),yN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=KM();Object.defineProperty(e,`typeofJsonValue`,{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,`isJsonObject`,{enumerable:!0,get:function(){return t.isJsonObject}});var n=qM();Object.defineProperty(e,`base64decode`,{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,`base64encode`,{enumerable:!0,get:function(){return n.base64encode}});var r=JM();Object.defineProperty(e,`utf8read`,{enumerable:!0,get:function(){return r.utf8read}});var i=YM();Object.defineProperty(e,`WireType`,{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,`mergeBinaryOptions`,{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,`UnknownFieldHandler`,{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=QM();Object.defineProperty(e,`BinaryReader`,{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,`binaryReadOptions`,{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=eN();Object.defineProperty(e,`BinaryWriter`,{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,`binaryWriteOptions`,{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=ZM();Object.defineProperty(e,`PbLong`,{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,`PbULong`,{enumerable:!0,get:function(){return s.PbULong}});var c=tN();Object.defineProperty(e,`jsonReadOptions`,{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,`jsonWriteOptions`,{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,`mergeJsonOptions`,{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=nN();Object.defineProperty(e,`MESSAGE_TYPE`,{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=gN();Object.defineProperty(e,`MessageType`,{enumerable:!0,get:function(){return u.MessageType}});var d=iN();Object.defineProperty(e,`ScalarType`,{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,`LongType`,{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,`RepeatType`,{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,`normalizeFieldInfo`,{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,`readFieldOptions`,{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,`readFieldOption`,{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,`readMessageOption`,{enumerable:!0,get:function(){return d.readMessageOption}});var f=oN();Object.defineProperty(e,`ReflectionTypeCheck`,{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=pN();Object.defineProperty(e,`reflectionCreate`,{enumerable:!0,get:function(){return p.reflectionCreate}});var m=uN();Object.defineProperty(e,`reflectionScalarDefault`,{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=mN();Object.defineProperty(e,`reflectionMergePartial`,{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=hN();Object.defineProperty(e,`reflectionEquals`,{enumerable:!0,get:function(){return g.reflectionEquals}});var _=dN();Object.defineProperty(e,`ReflectionBinaryReader`,{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=fN();Object.defineProperty(e,`ReflectionBinaryWriter`,{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=cN();Object.defineProperty(e,`ReflectionJsonReader`,{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=lN();Object.defineProperty(e,`ReflectionJsonWriter`,{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=_N();Object.defineProperty(e,`containsMessageType`,{enumerable:!0,get:function(){return x.containsMessageType}});var S=aN();Object.defineProperty(e,`isOneofGroup`,{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,`setOneofValue`,{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,`getOneofValue`,{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,`clearOneofValue`,{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,`getSelectedOneofValue`,{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=vN();Object.defineProperty(e,`listEnumValues`,{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,`listEnumNames`,{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,`listEnumNumbers`,{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,`isEnumObject`,{enumerable:!0,get:function(){return C.isEnumObject}});var w=rN();Object.defineProperty(e,`lowerCamelCase`,{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=$M();Object.defineProperty(e,`assert`,{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,`assertNever`,{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,`assertInt32`,{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,`assertUInt32`,{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,`assertFloat32`,{enumerable:!0,get:function(){return T.assertFloat32}})})),bN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=yN();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),xN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceType=void 0;let t=bN();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),SN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` -`)}}})),CN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeRpcOptions=void 0;let t=yN();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),wN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),TN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcOutputStreamController=void 0;let t=wN(),n=yN();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),EN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),DN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),ON=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),kN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),AN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTransport=void 0;let n=SN(),r=yN(),i=TN(),a=CN(),o=EN(),s=DN(),c=ON(),l=kN();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),jN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=yN();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),MN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),NN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xN();Object.defineProperty(e,`ServiceType`,{enumerable:!0,get:function(){return t.ServiceType}});var n=bN();Object.defineProperty(e,`readMethodOptions`,{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,`readMethodOption`,{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,`readServiceOption`,{enumerable:!0,get:function(){return n.readServiceOption}});var r=SN();Object.defineProperty(e,`RpcError`,{enumerable:!0,get:function(){return r.RpcError}});var i=CN();Object.defineProperty(e,`mergeRpcOptions`,{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=TN();Object.defineProperty(e,`RpcOutputStreamController`,{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=AN();Object.defineProperty(e,`TestTransport`,{enumerable:!0,get:function(){return o.TestTransport}});var s=wN();Object.defineProperty(e,`Deferred`,{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,`DeferredState`,{enumerable:!0,get:function(){return s.DeferredState}});var c=kN();Object.defineProperty(e,`DuplexStreamingCall`,{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=ON();Object.defineProperty(e,`ClientStreamingCall`,{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=DN();Object.defineProperty(e,`ServerStreamingCall`,{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=EN();Object.defineProperty(e,`UnaryCall`,{enumerable:!0,get:function(){return d.UnaryCall}});var f=jN();Object.defineProperty(e,`stackIntercept`,{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,`stackDuplexStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,`stackClientStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,`stackServerStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,`stackUnaryInterceptors`,{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=MN();Object.defineProperty(e,`ServerCallContextController`,{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=yN();const PN=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posPN}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posLN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=RN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>zN.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=BN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>VN.fromJson(e,{ignoreUnknownFields:!0}))}};function UN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(jr(t),jr(encodeURIComponent(t)))}catch(t){R(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function WN(e){if(typeof e!=`object`||!e){R(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&UN(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&UN(e.signed_download_url)}var GN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},KN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Up();this.baseUrl=OM(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new Un(e,[new Kn(i)])}request(e,t,n,r){return GN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;R(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>GN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return GN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&zr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new rM(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&R(`Raw Body: ${r}`),e instanceof nM||e instanceof rM)throw e;if(tM.isNetworkErrorCode(e?.code))throw new tM(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Br(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Fn.BadGateway,Fn.GatewayTimeout,Fn.InternalServerError,Fn.ServiceUnavailable].includes(e):!1}sleep(e){return GN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function qN(e){return new HN(new KN(jM(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var JN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const YN=process.platform===`win32`;function XN(){return JN(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Bp(),t=Op;if(e)return{path:e,type:wp.GNU};if(s(t))return{path:t,type:wp.BSD};break}case`darwin`:{let e=yield yr(`gtar`,!1);return e?{path:e,type:wp.GNU}:{path:yield yr(`tar`,!0),type:wp.BSD}}default:break}return{path:yield yr(`tar`,!0),type:wp.GNU}})}function ZN(e,t,n){return JN(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=zp(t),o=`cache.tar`,s=$N(),c=e.type===wp.BSD&&t!==Cp.Gzip&&YN;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--files-from`,Ap);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`);break}if(e.type===wp.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function QN(e,t){return JN(this,arguments,void 0,function*(e,t,n=``){let r,i=yield XN(),a=yield ZN(i,e,t,n),o=t===`create`?yield tP(i,e):yield eP(i,e,n),s=i.type===wp.BSD&&e!==Cp.Gzip&&YN;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function $N(){return process.env.GITHUB_WORKSPACE??process.cwd()}function eP(e,t,n){return JN(this,void 0,void 0,function*(){let r=e.type===wp.BSD&&t!==Cp.Gzip&&YN;switch(t){case Cp.Zstd:return r?[`zstd -d --long=30 --force -o`,kp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,YN?`"zstd -d --long=30"`:`unzstd --long=30`];case Cp.ZstdWithoutLong:return r?[`zstd -d --force -o`,kp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,YN?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function tP(e,t){return JN(this,void 0,void 0,function*(){let n=zp(t),r=e.type===wp.BSD&&t!==Cp.Gzip&&YN;switch(t){case Cp.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),kp]:[`--use-compress-program`,YN?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case Cp.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),kp]:[`--use-compress-program`,YN?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function nP(e,t){return JN(this,void 0,void 0,function*(){for(let n of e)try{yield Dr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function rP(e,t){return JN(this,void 0,void 0,function*(){yield nP(yield QN(t,`list`,e))})}function iP(e,t){return JN(this,void 0,void 0,function*(){yield vr($N()),yield nP(yield QN(t,`extract`,e))})}function aP(e,t,n){return JN(this,void 0,void 0,function*(){l(u.join(e,Ap),t.join(` -`)),yield nP(yield QN(n,`create`),e)})}var oP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},sP=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},cP=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},lP=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function uP(e){if(!e||e.length===0)throw new sP(`Path Validation Error: At least one directory or file path is required`)}function dP(e){if(e.length>512)throw new sP(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new sP(`Key Validation Error: ${e} cannot contain commas.`)}function fP(e,t,n,r){return oP(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=DM();switch(R(`Cache service version: ${a}`),uP(e),a){case`v2`:return yield mP(e,t,n,r,i);default:return yield pP(e,t,n,r,i)}})}function pP(e,t,n,r){return oP(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new sP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)dP(e);let o=yield Rp(),s=``;try{let t=yield LM(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Br(`Lookup only - skipping download`),t.cacheKey;s=u.join(yield Np(),zp(o)),R(`Archive Path: ${s}`),yield zM(t.archiveLocation,s,r),Lr()&&(yield rP(s,o));let n=Pp(s);return Br(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield iP(s,o),Br(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===sP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{yield Ip(s)}catch(e){R(`Failed to delete archive: ${e}`)}}})}function mP(e,t,n,r){return oP(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new sP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)dP(e);let o=``;try{let s=qN(),c=yield Rp(),l={key:t,restoreKeys:n,version:Hp(e,c,i)},d=yield s.GetCacheEntryDownloadURL(l);if(!d.ok){R(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===d.matchedKey?Br(`Cache hit for: ${d.matchedKey}`):Br(`Cache hit for restore-key: ${d.matchedKey}`),r?.lookupOnly)return Br(`Lookup only - skipping download`),d.matchedKey;o=u.join(yield Np(),zp(c)),R(`Archive path: ${o}`),R(`Starting download of archive to: ${o}`),yield zM(d.signedDownloadUrl,o,r);let f=Pp(o);return Br(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),Lr()&&(yield rP(o,c)),yield iP(o,c),Br(`Cache restored successfully`),d.matchedKey}catch(e){let t=e;if(t.name===sP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Ip(o))}catch(e){R(`Failed to delete archive: ${e}`)}}})}function hP(e,t,n){return oP(this,arguments,void 0,function*(e,t,n,r=!1){let i=DM();switch(R(`Cache service version: ${i}`),uP(e),dP(t),i){case`v2`:return yield _P(e,t,n,r);default:return yield gP(e,t,n,r)}})}function gP(e,t,n){return oP(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Rp(),a=-1,o=yield Fp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Np(),c=u.join(s,zp(i));R(`Archive Path: ${c}`);try{yield aP(s,o,i),Lr()&&(yield rP(c,i));let l=Pp(c);if(R(`File Size: ${l}`),l>10737418240&&!EM())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);R(`Reserving Cache`);let u=yield BM(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new cP(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);R(`Saving Cache (ID: ${a})`),yield GM(a,c,``,n)}catch(e){let t=e;if(t.name===sP.name)throw e;t.name===cP.name?Br(`Failed to save: ${t.message}`):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Ip(c)}catch(e){R(`Failed to delete archive: ${e}`)}}return a})}function _P(e,t,n){return oP(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Rp(),a=qN(),o=-1,s=yield Fp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Np(),l=u.join(c,zp(i));R(`Archive Path: ${l}`);try{yield aP(c,s,i),Lr()&&(yield rP(l,i));let u=Pp(l);R(`File Size: ${u}`),n.archiveSizeBytes=u,R(`Reserving Cache`);let d=Hp(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&zr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw R(`Failed to reserve cache: ${e}`),new cP(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${l}`),yield GM(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(R(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new lP(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===sP.name)throw e;t.name===cP.name?Br(`Failed to save: ${t.message}`):t.name===lP.name?zr(t.message):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Ip(l)}catch(e){R(`Failed to delete archive: ${e}`)}}return o})}function vP(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,R(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,R(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,R(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,R(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,R(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const yP=process.platform===`win32`;function bP(e){if(e=TP(e),yP&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=u.dirname(e);return yP&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=TP(t)),t}function xP(e,t){if(h(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),h(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),SP(t))return t;if(yP){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(wP(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return h(SP(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||yP&&e.endsWith(`\\`)||(e+=u.sep),e+t}function SP(e){return h(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=wP(e),yP?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function CP(e){return h(e,`isRooted parameter 'itemPath' must not be empty`),e=wP(e),yP?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function wP(e){return e||=``,yP?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function TP(e){return e?(e=wP(e),!e.endsWith(u.sep)||e===u.sep||yP&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var EP;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(EP||={});const DP=process.platform===`win32`;function OP(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=DP?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=DP?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=bP(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=bP(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function kP(e,t){let n=EP.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function AP(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const jP=(e,t,n)=>{let r=e instanceof RegExp?MP(e,n):e,i=t instanceof RegExp?MP(t,n):t,a=r!==null&&i!=null&&NP(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},MP=(e,t)=>{let n=t.match(e);return n?n[0]:null},NP=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},PP=`\0SLASH`+Math.random()+`\0`,FP=`\0OPEN`+Math.random()+`\0`,IP=`\0CLOSE`+Math.random()+`\0`,LP=`\0COMMA`+Math.random()+`\0`,RP=`\0PERIOD`+Math.random()+`\0`,zP=new RegExp(PP,`g`),BP=new RegExp(FP,`g`),VP=new RegExp(IP,`g`),HP=new RegExp(LP,`g`),UP=new RegExp(RP,`g`),WP=/\\\\/g,GP=/\\{/g,KP=/\\}/g,qP=/\\,/g,JP=/\\\./g;function YP(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function XP(e){return e.replace(WP,PP).replace(GP,FP).replace(KP,IP).replace(qP,LP).replace(JP,RP)}function ZP(e){return e.replace(zP,`\\`).replace(BP,`{`).replace(VP,`}`).replace(HP,`,`).replace(UP,`.`)}function QP(e){if(!e)return[``];let t=[],n=jP(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=QP(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function $P(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),iF(XP(e),n,!0).map(ZP)}function eF(e){return`{`+e+`}`}function tF(e){return/^-?0\d/.test(e)}function nF(e,t){return e<=t}function rF(e,t){return e>=t}function iF(e,t,n){let r=[],i=jP(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?iF(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+IP+i.post,iF(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=QP(i.body),d.length===1&&d[0]!==void 0&&(d=iF(d[0],t,!1).map(eF),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=YP(d[0]),t=YP(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(YP(d[2])),1):1,i=nF;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},oF={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},sF=e=>e.replace(/[[\]\\-]/g,`\\$&`),cF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),lF=e=>e.join(``),uF=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push(sF(d)+`-`+sF(t)):t===d&&r.push(sF(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(sF(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(sF(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var fF;const pF=new Set([`!`,`?`,`+`,`*`,`@`]),mF=e=>pF.has(e),hF=e=>mF(e.type),gF=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),_F=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),vF=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),yF=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),bF=`(?!\\.)`,xF=new Set([`[`,`.`]),SF=new Set([`..`,`.`]),CF=new Set(`().*{}+?[]^$\\!`),wF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),TF=`[^/]`,EF=TF+`*?`,DF=TF+`+?`;let OF=0;var kF=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++OF;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?fF.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&SF.has(this.#r[0]))){let n=xF,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?bF:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,dF(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,dF(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?bF:``)+DF;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?bF:``)+EF+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,dF(i),this.#t=!!this.#t,this.#n]}#x(){if(hF(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),jF=(e,t,n={})=>(aF(t),!n.nocomment&&t.charAt(0)===`#`?!1:new aI(t,n).match(e)),MF=/^\*+([^+@!?*[(]*)$/,NF=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),PF=e=>t=>t.endsWith(e),FF=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),IF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),LF=/^\*+\.\*+$/,RF=e=>!e.startsWith(`.`)&&e.includes(`.`),zF=e=>e!==`.`&&e!==`..`&&e.includes(`.`),BF=/^\.\*+$/,VF=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),HF=/^\*+$/,UF=e=>e.length!==0&&!e.startsWith(`.`),WF=e=>e.length!==0&&e!==`.`&&e!==`..`,GF=/^\?+([^+@!?*[(]*)?$/,KF=([e,t=``])=>{let n=XF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},qF=([e,t=``])=>{let n=ZF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},JF=([e,t=``])=>{let n=ZF([e]);return t?e=>n(e)&&e.endsWith(t):n},YF=([e,t=``])=>{let n=XF([e]);return t?e=>n(e)&&e.endsWith(t):n},XF=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},ZF=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},QF=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,$F={win32:{sep:`\\`},posix:{sep:`/`}};jF.sep=QF===`win32`?$F.win32.sep:$F.posix.sep;const eI=Symbol(`globstar **`);jF.GLOBSTAR=eI,jF.filter=(e,t={})=>n=>jF(n,e,t);const tI=(e,t={})=>Object.assign({},e,t);jF.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return jF;let t=jF;return Object.assign((n,r,i={})=>t(n,r,tI(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,tI(e,n))}static defaults(n){return t.defaults(tI(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,tI(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,tI(e,r))}},unescape:(n,r={})=>t.unescape(n,tI(e,r)),escape:(n,r={})=>t.escape(n,tI(e,r)),filter:(n,r={})=>t.filter(n,tI(e,r)),defaults:n=>t.defaults(tI(e,n)),makeRe:(n,r={})=>t.makeRe(n,tI(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,tI(e,r)),match:(n,r,i={})=>t.match(n,r,tI(e,i)),sep:t.sep,GLOBSTAR:eI})};const nI=(e,t={})=>(aF(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:$P(e,{max:t.braceExpandMax}));jF.braceExpand=nI,jF.makeRe=(e,t={})=>new aI(e,t).makeRe(),jF.match=(e,t,n={})=>{let r=new aI(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const rI=/[?*]|[+@!]\(.*?\)|\[|\]/,iI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var aI=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){aF(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||QF,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!rI.test(e[2]))&&!rI.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(eI)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(eI,i),o=t.lastIndexOf(eI),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?iI(e):e===eI?eI:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==eI||a===eI||(a===void 0?i!==void 0&&i!==eI?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==eI&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=eI))});let i=t.filter(e=>e!==eI);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return jF.defaults(e).Minimatch}};jF.AST=kF,jF.Minimatch=aI,jF.escape=AF,jF.unescape=dF;const oI=process.platform===`win32`;var sI=class{constructor(e){if(this.segments=[],typeof e==`string`)if(h(e,`Parameter 'itemPath' must not be empty`),e=TP(e),!CP(e))this.segments=e.split(u.sep);else{let t=e,n=bP(t);for(;n!==t;){let e=u.basename(t);this.segments.unshift(e),t=n,n=bP(t)}this.segments.unshift(t)}else{h(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new sI(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),cI?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:cI,nocomment:!0,noext:!0,nonegate:!0};a=cI?a.replace(/\\/g,`/`):a,this.minimatch=new aI(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=wP(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=TP(e),this.minimatch.match(e)?this.trailingSeparator?EP.Directory:EP.All:EP.None}partialMatch(e){return e=TP(e),bP(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(cI?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(cI?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new sI(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!CP(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=wP(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(SP(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(cI&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=xP(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(cI&&(n===`\\`||n.match(/^\\[^\\]/))){let t=xP(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=xP(e.globEscape(process.cwd()),n);return wP(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},uI=class{constructor(e,t){this.path=e,this.level=t}},dI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},fI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},pI=function(e){return this instanceof pI?(this.v=e,this):new pI(e)},mI=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof pI?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const hI=process.platform===`win32`;var gI=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=vP(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return dI(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=fI(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return mI(this,arguments,function*(){let t=vP(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new lI(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of OP(n)){R(`Search path '${e}'`);try{yield pI(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new uI(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=kP(n,o.path),c=!!s||AP(n,o.path);if(!s&&!c)continue;let l=yield pI(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&EP.Directory&&t.matchDirectories)yield yield pI(o.path);else if(!c)continue;let e=o.level+1,n=(yield pI(a.promises.readdir(o.path))).map(t=>new uI(u.join(o.path,t),e));r.push(...n.reverse())}else s&EP.File&&(yield yield pI(o.path))}})}static create(t,n){return dI(this,void 0,void 0,function*(){let r=new e(n);hI&&(t=t.replace(/\r\n/g,` +`+r(t)+i(t),o=T(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(V.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>uS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Qx(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=$x(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function DS(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. +`),e}}}}var OS=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return T(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const kS=`12.31.0`,AS=`2026-02-06`,jS=5e4,MS=4*1024*1024,NS={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},PS=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),FS=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),IS=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function LS(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var RS=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function zS(e,t={}){e||=new oS;let n=new RS([],t);return n._credential=e,n}function BS(e){let t=[WS,US,GS,KS,qS,JS,XS];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>YS(e));return{wrappedPolicies:ly(n),afterRetry:e}}}}function VS(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?uy(t):qx(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${kS}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=Ev({...n,loggingOptions:{additionalAllowedHeaderNames:PS,additionalAllowedQueryParameters:FS,logger:Vx.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:zx,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:Bx,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(xS()),i.addPolicy(TS(n.retryOptions),{phase:`Retry`}),i.addPolicy(DS()),i.addPolicy(bS());let a=BS(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=HS(e);g_(o)?i.addPolicy(p_({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Wv}}),{phase:`Sign`}):o instanceof pS&&i.addPolicy(ES({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function HS(e){if(e._credential)return e._credential;let t=new oS;for(let n of e.factories)if(g_(n.credential))t=n.credential;else if(US(n))return n;return t}function US(e){return e instanceof pS?!0:e.constructor.name===`StorageSharedKeyCredential`}function WS(e){return e instanceof oS?!0:e.constructor.name===`AnonymousCredential`}function GS(e){return g_(e.credential)}function KS(e){return e instanceof nS?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function qS(e){return e instanceof yS?!0:e.constructor.name===`StorageRetryPolicyFactory`}function JS(e){return e.constructor.name===`TelemetryPolicyFactory`}function YS(e){return e.constructor.name===`InjectorPolicyFactory`}function XS(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var ZS=De({AccessPolicy:()=>gC,AppendBlobAppendBlockExceptionHeaders:()=>ZT,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>$T,AppendBlobAppendBlockFromUrlHeaders:()=>QT,AppendBlobAppendBlockHeaders:()=>XT,AppendBlobCreateExceptionHeaders:()=>YT,AppendBlobCreateHeaders:()=>JT,AppendBlobSealExceptionHeaders:()=>tE,AppendBlobSealHeaders:()=>eE,ArrowConfiguration:()=>IC,ArrowField:()=>LC,BlobAbortCopyFromURLExceptionHeaders:()=>yT,BlobAbortCopyFromURLHeaders:()=>vT,BlobAcquireLeaseExceptionHeaders:()=>rT,BlobAcquireLeaseHeaders:()=>nT,BlobBreakLeaseExceptionHeaders:()=>dT,BlobBreakLeaseHeaders:()=>uT,BlobChangeLeaseExceptionHeaders:()=>lT,BlobChangeLeaseHeaders:()=>cT,BlobCopyFromURLExceptionHeaders:()=>_T,BlobCopyFromURLHeaders:()=>gT,BlobCreateSnapshotExceptionHeaders:()=>pT,BlobCreateSnapshotHeaders:()=>fT,BlobDeleteExceptionHeaders:()=>Vw,BlobDeleteHeaders:()=>Bw,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Zw,BlobDeleteImmutabilityPolicyHeaders:()=>Xw,BlobDownloadExceptionHeaders:()=>Lw,BlobDownloadHeaders:()=>Iw,BlobFlatListSegment:()=>vC,BlobGetAccountInfoExceptionHeaders:()=>CT,BlobGetAccountInfoHeaders:()=>ST,BlobGetPropertiesExceptionHeaders:()=>zw,BlobGetPropertiesHeaders:()=>Rw,BlobGetTagsExceptionHeaders:()=>DT,BlobGetTagsHeaders:()=>ET,BlobHierarchyListSegment:()=>CC,BlobItemInternal:()=>yC,BlobName:()=>bC,BlobPrefix:()=>wC,BlobPropertiesInternal:()=>xC,BlobQueryExceptionHeaders:()=>TT,BlobQueryHeaders:()=>wT,BlobReleaseLeaseExceptionHeaders:()=>aT,BlobReleaseLeaseHeaders:()=>iT,BlobRenewLeaseExceptionHeaders:()=>sT,BlobRenewLeaseHeaders:()=>oT,BlobServiceProperties:()=>QS,BlobServiceStatistics:()=>iC,BlobSetExpiryExceptionHeaders:()=>Gw,BlobSetExpiryHeaders:()=>Ww,BlobSetHttpHeadersExceptionHeaders:()=>qw,BlobSetHttpHeadersHeaders:()=>Kw,BlobSetImmutabilityPolicyExceptionHeaders:()=>Yw,BlobSetImmutabilityPolicyHeaders:()=>Jw,BlobSetLegalHoldExceptionHeaders:()=>$w,BlobSetLegalHoldHeaders:()=>Qw,BlobSetMetadataExceptionHeaders:()=>tT,BlobSetMetadataHeaders:()=>eT,BlobSetTagsExceptionHeaders:()=>kT,BlobSetTagsHeaders:()=>OT,BlobSetTierExceptionHeaders:()=>xT,BlobSetTierHeaders:()=>bT,BlobStartCopyFromURLExceptionHeaders:()=>hT,BlobStartCopyFromURLHeaders:()=>mT,BlobTag:()=>mC,BlobTags:()=>pC,BlobUndeleteExceptionHeaders:()=>Uw,BlobUndeleteHeaders:()=>Hw,Block:()=>DC,BlockBlobCommitBlockListExceptionHeaders:()=>dE,BlockBlobCommitBlockListHeaders:()=>uE,BlockBlobGetBlockListExceptionHeaders:()=>pE,BlockBlobGetBlockListHeaders:()=>fE,BlockBlobPutBlobFromUrlExceptionHeaders:()=>aE,BlockBlobPutBlobFromUrlHeaders:()=>iE,BlockBlobStageBlockExceptionHeaders:()=>sE,BlockBlobStageBlockFromURLExceptionHeaders:()=>lE,BlockBlobStageBlockFromURLHeaders:()=>cE,BlockBlobStageBlockHeaders:()=>oE,BlockBlobUploadExceptionHeaders:()=>rE,BlockBlobUploadHeaders:()=>nE,BlockList:()=>EC,BlockLookupList:()=>TC,ClearRange:()=>AC,ContainerAcquireLeaseExceptionHeaders:()=>xw,ContainerAcquireLeaseHeaders:()=>bw,ContainerBreakLeaseExceptionHeaders:()=>Dw,ContainerBreakLeaseHeaders:()=>Ew,ContainerChangeLeaseExceptionHeaders:()=>kw,ContainerChangeLeaseHeaders:()=>Ow,ContainerCreateExceptionHeaders:()=>tw,ContainerCreateHeaders:()=>ew,ContainerDeleteExceptionHeaders:()=>aw,ContainerDeleteHeaders:()=>iw,ContainerFilterBlobsExceptionHeaders:()=>yw,ContainerFilterBlobsHeaders:()=>vw,ContainerGetAccessPolicyExceptionHeaders:()=>lw,ContainerGetAccessPolicyHeaders:()=>cw,ContainerGetAccountInfoExceptionHeaders:()=>Fw,ContainerGetAccountInfoHeaders:()=>Pw,ContainerGetPropertiesExceptionHeaders:()=>rw,ContainerGetPropertiesHeaders:()=>nw,ContainerItem:()=>sC,ContainerListBlobFlatSegmentExceptionHeaders:()=>jw,ContainerListBlobFlatSegmentHeaders:()=>Aw,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Nw,ContainerListBlobHierarchySegmentHeaders:()=>Mw,ContainerProperties:()=>cC,ContainerReleaseLeaseExceptionHeaders:()=>Cw,ContainerReleaseLeaseHeaders:()=>Sw,ContainerRenameExceptionHeaders:()=>hw,ContainerRenameHeaders:()=>mw,ContainerRenewLeaseExceptionHeaders:()=>Tw,ContainerRenewLeaseHeaders:()=>ww,ContainerRestoreExceptionHeaders:()=>pw,ContainerRestoreHeaders:()=>fw,ContainerSetAccessPolicyExceptionHeaders:()=>dw,ContainerSetAccessPolicyHeaders:()=>uw,ContainerSetMetadataExceptionHeaders:()=>sw,ContainerSetMetadataHeaders:()=>ow,ContainerSubmitBatchExceptionHeaders:()=>_w,ContainerSubmitBatchHeaders:()=>gw,CorsRule:()=>nC,DelimitedTextConfiguration:()=>PC,FilterBlobItem:()=>fC,FilterBlobSegment:()=>dC,GeoReplication:()=>aC,JsonTextConfiguration:()=>FC,KeyInfo:()=>lC,ListBlobsFlatSegmentResponse:()=>_C,ListBlobsHierarchySegmentResponse:()=>SC,ListContainersSegmentResponse:()=>oC,Logging:()=>$S,Metrics:()=>tC,PageBlobClearPagesExceptionHeaders:()=>FT,PageBlobClearPagesHeaders:()=>PT,PageBlobCopyIncrementalExceptionHeaders:()=>qT,PageBlobCopyIncrementalHeaders:()=>KT,PageBlobCreateExceptionHeaders:()=>jT,PageBlobCreateHeaders:()=>AT,PageBlobGetPageRangesDiffExceptionHeaders:()=>VT,PageBlobGetPageRangesDiffHeaders:()=>BT,PageBlobGetPageRangesExceptionHeaders:()=>zT,PageBlobGetPageRangesHeaders:()=>RT,PageBlobResizeExceptionHeaders:()=>UT,PageBlobResizeHeaders:()=>HT,PageBlobUpdateSequenceNumberExceptionHeaders:()=>GT,PageBlobUpdateSequenceNumberHeaders:()=>WT,PageBlobUploadPagesExceptionHeaders:()=>NT,PageBlobUploadPagesFromURLExceptionHeaders:()=>LT,PageBlobUploadPagesFromURLHeaders:()=>IT,PageBlobUploadPagesHeaders:()=>MT,PageList:()=>OC,PageRange:()=>kC,QueryFormat:()=>NC,QueryRequest:()=>jC,QuerySerialization:()=>MC,RetentionPolicy:()=>eC,ServiceFilterBlobsExceptionHeaders:()=>$C,ServiceFilterBlobsHeaders:()=>QC,ServiceGetAccountInfoExceptionHeaders:()=>YC,ServiceGetAccountInfoHeaders:()=>JC,ServiceGetPropertiesExceptionHeaders:()=>VC,ServiceGetPropertiesHeaders:()=>BC,ServiceGetStatisticsExceptionHeaders:()=>UC,ServiceGetStatisticsHeaders:()=>HC,ServiceGetUserDelegationKeyExceptionHeaders:()=>qC,ServiceGetUserDelegationKeyHeaders:()=>KC,ServiceListContainersSegmentExceptionHeaders:()=>GC,ServiceListContainersSegmentHeaders:()=>WC,ServiceSetPropertiesExceptionHeaders:()=>zC,ServiceSetPropertiesHeaders:()=>RC,ServiceSubmitBatchExceptionHeaders:()=>ZC,ServiceSubmitBatchHeaders:()=>XC,SignedIdentifier:()=>hC,StaticWebsite:()=>rC,StorageError:()=>H,UserDelegationKey:()=>uC});const QS={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},$S={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},eC={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},tC={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},nC={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},rC={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},H={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},iC={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},aC={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},oC={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},sC={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},cC={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},lC={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},uC={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},dC={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},fC={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},pC={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},mC={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},hC={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},gC={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},_C={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},vC={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},yC={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},bC={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},xC={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},SC={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},CC={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},wC={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},TC={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},EC={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},DC={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},OC={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},kC={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},AC={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},jC={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},MC={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},NC={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},PC={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},FC={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},IC={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},LC={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},RC={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cw={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gw={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},_w={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vw={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},yw={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bw={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},xw={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Sw={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Cw={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ww={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Tw={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ew={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Dw={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ow={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},kw={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nw={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Pw={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},Fw={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Iw={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},Lw={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rw={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zw={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bw={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vw={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hw={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uw={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ww={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Gw={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kw={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qw={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Jw={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},Yw={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Xw={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Zw={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Qw={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},$w={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eT={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tT={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nT={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},rT={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iT={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},aT={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oT={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},sT={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cT={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},lT={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uT={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},dT={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fT={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pT={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mT={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hT={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},gT={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_T={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},vT={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yT={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bT={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xT={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ST={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},CT={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wT={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},TT={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ET={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DT={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OT={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kT={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AT={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jT={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MT={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NT={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PT={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FT={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IT={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LT={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},RT={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zT={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BT={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VT={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HT={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UT={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WT={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GT={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KT={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qT={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JT={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YT={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XT={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZT={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QT={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$T={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},eE={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},tE={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nE={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rE={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iE={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aE={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},oE={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sE={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cE={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lE={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},uE={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dE={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fE={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pE={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},hE={parameterPath:`blobServiceProperties`,mapper:QS},gE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},U={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},_E={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},vE={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},W={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},G={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},K={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},q={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},yE={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bE={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xE={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},SE={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},CE={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},wE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},TE={parameterPath:`keyInfo`,mapper:lC},EE={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},DE={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},OE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},kE={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},AE={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},jE={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},ME={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},NE={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},PE={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},FE={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},IE={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},LE={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},RE={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},J={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Y={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},zE={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BE={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},VE={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},HE={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},UE={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},WE={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},GE={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KE={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},qE={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},JE={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},YE={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},XE={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},ZE={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},QE={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},$E={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},eD={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},tD={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},nD={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},rD={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},iD={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},aD={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},oD={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},sD={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},cD={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},lD={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},uD={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},dD={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},fD={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},pD={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},mD={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},hD={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},gD={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},_D={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},vD={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},yD={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},bD={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},xD={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},SD={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},CD={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},wD={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},TD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},ED={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},DD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},OD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},kD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},AD={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jD={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},MD={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},ND={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},PD={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},FD={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},ID={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LD={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},RD={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},zD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},BD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},VD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},HD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},UD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},WD={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},GD={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},KD={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},qD={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},JD={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},YD={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},XD={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},ZD={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},QD={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},$D={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},eO={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},tO={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},nO={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rO={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},iO={parameterPath:[`options`,`queryRequest`],mapper:jC},aO={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},oO={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},cO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},lO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},uO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},dO={parameterPath:[`options`,`tags`],mapper:pC},fO={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},pO={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},mO={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},hO={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},gO={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},_O={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},vO={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},yO={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},bO={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xO={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},SO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},CO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},wO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},TO={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},EO={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},DO={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},OO={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},kO={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},AO={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jO={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},MO={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},NO={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},PO={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},FO={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},IO={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LO={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},RO={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},zO={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},BO={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},VO={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},HO={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},UO={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},WO={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},GO={parameterPath:`blocks`,mapper:TC},KO={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},qO={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var JO=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},XO)}getProperties(e){return this.client.sendOperationRequest({options:e},ZO)}getStatistics(e){return this.client.sendOperationRequest({options:e},QO)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},$O)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},ek)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},tk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},nk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},rk)}};const YO=A_(ZS,!0),XO={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:RC},default:{bodyMapper:H,headersMapper:zC}},requestBody:hE,queryParameters:[_E,vE,W],urlParameters:[U],headerParameters:[mE,gE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},ZO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:QS,headersMapper:BC},default:{bodyMapper:H,headersMapper:VC}},queryParameters:[_E,vE,W],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},QO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:iC,headersMapper:HC},default:{bodyMapper:H,headersMapper:UC}},queryParameters:[_E,W,yE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},$O={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:oC,headersMapper:WC},default:{bodyMapper:H,headersMapper:GC}},queryParameters:[W,bE,xE,SE,CE,wE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},ek={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:uC,headersMapper:KC},default:{bodyMapper:H,headersMapper:qC}},requestBody:TE,queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[mE,gE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},tk={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:JC},default:{bodyMapper:H,headersMapper:YC}},queryParameters:[vE,W,DE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},nk={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:XC},default:{bodyMapper:H,headersMapper:ZC}},requestBody:OE,queryParameters:[W,kE],urlParameters:[U],headerParameters:[gE,G,K,AE,jE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},rk={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:dC,headersMapper:QC},default:{bodyMapper:H,headersMapper:$C}},queryParameters:[W,SE,CE,ME,NE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO};var ik=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},ok)}getProperties(e){return this.client.sendOperationRequest({options:e},sk)}delete(e){return this.client.sendOperationRequest({options:e},ck)}setMetadata(e){return this.client.sendOperationRequest({options:e},lk)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},uk)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},dk)}restore(e){return this.client.sendOperationRequest({options:e},fk)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},pk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},mk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},hk)}acquireLease(e){return this.client.sendOperationRequest({options:e},gk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},_k)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},vk)}breakLease(e){return this.client.sendOperationRequest({options:e},yk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},bk)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},xk)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Sk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ck)}};const ak=A_(ZS,!0),ok={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:ew},default:{bodyMapper:H,headersMapper:tw}},queryParameters:[W,PE],urlParameters:[U],headerParameters:[G,K,q,FE,IE,LE,RE],isXML:!0,serializer:ak},sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:nw},default:{bodyMapper:H,headersMapper:rw}},queryParameters:[W,PE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ak},ck={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:iw},default:{bodyMapper:H,headersMapper:aw}},queryParameters:[W,PE],urlParameters:[U],headerParameters:[G,K,q,J,Y,X],isXML:!0,serializer:ak},lk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ow},default:{bodyMapper:H,headersMapper:sw}},queryParameters:[W,PE,zE],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y],isXML:!0,serializer:ak},uk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:cw},default:{bodyMapper:H,headersMapper:lw}},queryParameters:[W,PE,BE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ak},dk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:uw},default:{bodyMapper:H,headersMapper:dw}},requestBody:VE,queryParameters:[W,PE,BE],urlParameters:[U],headerParameters:[mE,gE,G,K,IE,J,Y,X],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ak},fk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:fw},default:{bodyMapper:H,headersMapper:pw}},queryParameters:[W,PE,HE],urlParameters:[U],headerParameters:[G,K,q,UE,WE],isXML:!0,serializer:ak},pk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:mw},default:{bodyMapper:H,headersMapper:hw}},queryParameters:[W,PE,GE],urlParameters:[U],headerParameters:[G,K,q,KE,qE],isXML:!0,serializer:ak},mk={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:gw},default:{bodyMapper:H,headersMapper:_w}},requestBody:OE,queryParameters:[W,kE,PE],urlParameters:[U],headerParameters:[gE,G,K,AE,jE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ak},hk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:dC,headersMapper:vw},default:{bodyMapper:H,headersMapper:yw}},queryParameters:[W,SE,CE,ME,NE,PE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak},gk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:bw},default:{bodyMapper:H,headersMapper:xw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,YE,XE,ZE],isXML:!0,serializer:ak},_k={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Sw},default:{bodyMapper:H,headersMapper:Cw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E],isXML:!0,serializer:ak},vk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ww},default:{bodyMapper:H,headersMapper:Tw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,eD],isXML:!0,serializer:ak},yk={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:Ew},default:{bodyMapper:H,headersMapper:Dw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,tD,nD],isXML:!0,serializer:ak},bk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ow},default:{bodyMapper:H,headersMapper:kw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,rD,iD],isXML:!0,serializer:ak},xk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:_C,headersMapper:Aw},default:{bodyMapper:H,headersMapper:jw}},queryParameters:[W,bE,xE,SE,CE,PE,aD,oD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak},Sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:SC,headersMapper:Mw},default:{bodyMapper:H,headersMapper:Nw}},queryParameters:[W,bE,xE,SE,CE,PE,aD,oD,sD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak},Ck={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Pw},default:{bodyMapper:H,headersMapper:Fw}},queryParameters:[vE,W,DE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak};var wk=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Ek)}getProperties(e){return this.client.sendOperationRequest({options:e},Dk)}delete(e){return this.client.sendOperationRequest({options:e},Ok)}undelete(e){return this.client.sendOperationRequest({options:e},kk)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},Ak)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},jk)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Mk)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Nk)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Pk)}setMetadata(e){return this.client.sendOperationRequest({options:e},Fk)}acquireLease(e){return this.client.sendOperationRequest({options:e},Ik)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Lk)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Rk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},zk)}breakLease(e){return this.client.sendOperationRequest({options:e},Bk)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Vk)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Hk)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Uk)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},Wk)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Gk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Kk)}query(e){return this.client.sendOperationRequest({options:e},qk)}getTags(e){return this.client.sendOperationRequest({options:e},Jk)}setTags(e){return this.client.sendOperationRequest({options:e},Yk)}};const Tk=A_(ZS,!0),Ek={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Iw},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Iw},default:{bodyMapper:H,headersMapper:Lw}},queryParameters:[W,cD,lD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,uD,dD,fD,pD,mD,hD,gD,_D,vD],isXML:!0,serializer:Tk},Dk={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:Rw},default:{bodyMapper:H,headersMapper:zw}},queryParameters:[W,cD,lD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,pD,mD,hD,gD,_D,vD],isXML:!0,serializer:Tk},Ok={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:Bw},default:{bodyMapper:H,headersMapper:Vw}},queryParameters:[W,cD,lD,bD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,vD,yD],isXML:!0,serializer:Tk},kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Hw},default:{bodyMapper:H,headersMapper:Uw}},queryParameters:[W,HE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:Tk},Ak={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ww},default:{bodyMapper:H,headersMapper:Gw}},queryParameters:[W,xD],urlParameters:[U],headerParameters:[G,K,q,SD,CD],isXML:!0,serializer:Tk},jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Kw},default:{bodyMapper:H,headersMapper:qw}},queryParameters:[vE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,vD,wD,TD,ED,DD,OD,kD],isXML:!0,serializer:Tk},Mk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Jw},default:{bodyMapper:H,headersMapper:Yw}},queryParameters:[W,cD,lD,AD],urlParameters:[U],headerParameters:[G,K,q,X,jD,MD],isXML:!0,serializer:Tk},Nk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Xw},default:{bodyMapper:H,headersMapper:Zw}},queryParameters:[W,cD,lD,AD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:Tk},Pk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Qw},default:{bodyMapper:H,headersMapper:$w}},queryParameters:[W,cD,lD,ND],urlParameters:[U],headerParameters:[G,K,q,PD],isXML:!0,serializer:Tk},Fk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:eT},default:{bodyMapper:H,headersMapper:tT}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,pD,mD,hD,gD,_D,vD,FD],isXML:!0,serializer:Tk},Ik={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:nT},default:{bodyMapper:H,headersMapper:rT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,YE,XE,ZE,gD,_D,vD],isXML:!0,serializer:Tk},Lk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:iT},default:{bodyMapper:H,headersMapper:aT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E,gD,_D,vD],isXML:!0,serializer:Tk},Rk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:oT},default:{bodyMapper:H,headersMapper:sT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,eD,gD,_D,vD],isXML:!0,serializer:Tk},zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:cT},default:{bodyMapper:H,headersMapper:lT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,rD,iD,gD,_D,vD],isXML:!0,serializer:Tk},Bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:uT},default:{bodyMapper:H,headersMapper:dT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,tD,nD,gD,_D,vD],isXML:!0,serializer:Tk},Vk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:fT},default:{bodyMapper:H,headersMapper:pT}},queryParameters:[W,ID],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,pD,mD,hD,gD,_D,vD,FD],isXML:!0,serializer:Tk},Hk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:mT},default:{bodyMapper:H,headersMapper:hT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,gD,_D,vD,jD,MD,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD],isXML:!0,serializer:Tk},Uk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:gT},default:{bodyMapper:H,headersMapper:_T}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,gD,_D,vD,jD,MD,FD,LD,zD,BD,VD,HD,WD,GD,qD,JD,YD,XD,ZD,QD],isXML:!0,serializer:Tk},Wk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:vT},default:{bodyMapper:H,headersMapper:yT}},queryParameters:[W,$D,tO],urlParameters:[U],headerParameters:[G,K,q,J,eO],isXML:!0,serializer:Tk},Gk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:bT},202:{headersMapper:bT},default:{bodyMapper:H,headersMapper:xT}},queryParameters:[W,cD,lD,nO],urlParameters:[U],headerParameters:[G,K,q,J,vD,RD,rO],isXML:!0,serializer:Tk},Kk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:ST},default:{bodyMapper:H,headersMapper:CT}},queryParameters:[vE,W,DE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:Tk},qk={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:wT},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:wT},default:{bodyMapper:H,headersMapper:TT}},requestBody:iO,queryParameters:[W,cD,aO],urlParameters:[U],headerParameters:[mE,gE,G,K,J,Y,X,pD,mD,hD,gD,_D,vD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Tk},Jk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:pC,headersMapper:ET},default:{bodyMapper:H,headersMapper:DT}},queryParameters:[W,cD,lD,oO],urlParameters:[U],headerParameters:[G,K,q,J,vD,sO,cO,lO,uO],isXML:!0,serializer:Tk},Yk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:OT},default:{bodyMapper:H,headersMapper:kT}},requestBody:dO,queryParameters:[W,lD,oO],urlParameters:[U],headerParameters:[mE,gE,G,K,J,vD,sO,cO,lO,uO,fO,pO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Tk};var Xk=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Qk)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},$k)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},eA)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},tA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},nA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},rA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},iA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},aA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},oA)}};const Zk=A_(ZS,!0),Qk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:AT},default:{bodyMapper:H,headersMapper:jT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,mO,hO,gO],isXML:!0,serializer:Zk},$k={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:MT},default:{bodyMapper:H,headersMapper:NT}},requestBody:vO,queryParameters:[W,bO],urlParameters:[U],headerParameters:[G,K,AE,J,Y,X,uD,pD,mD,hD,gD,_D,vD,FD,fO,pO,_O,yO,xO,SO,CO,wO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Zk},eA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:PT},default:{bodyMapper:H,headersMapper:FT}},queryParameters:[W,bO],urlParameters:[U],headerParameters:[G,K,q,AE,J,Y,X,uD,pD,mD,hD,gD,_D,vD,FD,SO,CO,wO,TO],isXML:!0,serializer:Zk},tA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:IT},default:{bodyMapper:H,headersMapper:LT}},queryParameters:[W,bO],urlParameters:[U],headerParameters:[G,K,q,AE,J,Y,X,pD,mD,hD,gD,_D,vD,FD,zD,BD,VD,HD,YD,XD,QD,xO,SO,CO,wO,EO,DO,OO,kO],isXML:!0,serializer:Zk},nA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:OC,headersMapper:RT},default:{bodyMapper:H,headersMapper:zT}},queryParameters:[W,SE,CE,cD,AO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,uD,gD,_D,vD],isXML:!0,serializer:Zk},rA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:OC,headersMapper:BT},default:{bodyMapper:H,headersMapper:VT}},queryParameters:[W,SE,CE,cD,AO,jO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,uD,gD,_D,vD,MO],isXML:!0,serializer:Zk},iA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:HT},default:{bodyMapper:H,headersMapper:UT}},queryParameters:[vE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,pD,mD,hD,gD,_D,vD,FD,hO],isXML:!0,serializer:Zk},aA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:WT},default:{bodyMapper:H,headersMapper:GT}},queryParameters:[vE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,vD,gO,NO],isXML:!0,serializer:Zk},oA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:KT},default:{bodyMapper:H,headersMapper:qT}},queryParameters:[W,PO],urlParameters:[U],headerParameters:[G,K,q,Y,X,gD,_D,vD,WD],isXML:!0,serializer:Zk};var sA=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},lA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},uA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},dA)}seal(e){return this.client.sendOperationRequest({options:e},fA)}};const cA=A_(ZS,!0),lA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:JT},default:{bodyMapper:H,headersMapper:YT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,GD,qD,FO],isXML:!0,serializer:cA},uA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:XT},default:{bodyMapper:H,headersMapper:ZT}},requestBody:vO,queryParameters:[W,IO],urlParameters:[U],headerParameters:[G,K,AE,J,Y,X,pD,mD,hD,gD,_D,vD,FD,fO,pO,_O,yO,LO,RO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:cA},dA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:QT},default:{bodyMapper:H,headersMapper:$T}},queryParameters:[W,IO],urlParameters:[U],headerParameters:[G,K,q,AE,J,Y,X,pD,mD,hD,gD,_D,vD,FD,zD,BD,VD,HD,YD,XD,QD,fO,EO,OO,LO,RO,zO],isXML:!0,serializer:cA},fA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:eE},default:{bodyMapper:H,headersMapper:tE}},queryParameters:[W,BO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,RO],isXML:!0,serializer:cA};var pA=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},hA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},gA)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},_A)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},vA)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},yA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},bA)}};const mA=A_(ZS,!0),hA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:nE},default:{bodyMapper:H,headersMapper:rE}},requestBody:vO,queryParameters:[W],urlParameters:[U],headerParameters:[G,K,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,fO,pO,_O,yO,VO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:mA},gA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:iE},default:{bodyMapper:H,headersMapper:aE}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,FD,LD,zD,BD,VD,HD,UD,WD,GD,YD,XD,ZD,QD,fO,VO,HO],isXML:!0,serializer:mA},_A={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:oE},default:{bodyMapper:H,headersMapper:sE}},requestBody:vO,queryParameters:[W,UO,WO],urlParameters:[U],headerParameters:[G,K,AE,J,pD,mD,hD,FD,fO,pO,_O,yO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:mA},vA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:cE},default:{bodyMapper:H,headersMapper:lE}},queryParameters:[W,UO,WO],urlParameters:[U],headerParameters:[G,K,q,AE,J,pD,mD,hD,FD,zD,BD,VD,HD,YD,XD,QD,EO,OO,zO],isXML:!0,serializer:mA},yA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:uE},default:{bodyMapper:H,headersMapper:dE}},requestBody:GO,queryParameters:[W,KO],urlParameters:[U],headerParameters:[mE,gE,G,K,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,fO,pO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:mA},bA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:EC,headersMapper:fE},default:{bodyMapper:H,headersMapper:pE}},queryParameters:[W,cD,KO,qO],urlParameters:[U],headerParameters:[G,K,q,J,vD],isXML:!0,serializer:mA};var xA=class extends oy{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new JO(this),this.container=new ik(this),this.blob=new wk(this),this.pageBlob=new Xk(this),this.appendBlob=new sA(this),this.blockBlob=new pA(this)}service;container;blob;pageBlob;appendBlob;blockBlob},SA=class extends xA{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function CA(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=DA(n),t.pathname=n,t.toString()}function wA(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function TA(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function EA(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=wA(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=TA(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=TA(e,`AccountName`),a=Buffer.from(TA(e,`AccountKey`),`base64`),!n){r=TA(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=TA(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=TA(e,`SharedAccessSignature`),r=TA(e,`AccountName`);if(r||=RA(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function DA(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function OA(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function kA(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function AA(e,t){return new URL(e).searchParams.get(t)??void 0}function jA(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function MA(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function NA(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function PA(e){return Tg?Buffer.from(e).toString(`base64`):btoa(e)}function FA(e,t){return e.length>42&&(e=e.slice(0,42)),PA(e+IA(t.toString(),48-e.length,`0`))}function IA(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function LA(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function RA(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:zA(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function zA(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&IS.includes(e.port)}function BA(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function VA(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function HA(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function UA(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function WA(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function GA(e){return e?e.scheme+` `+e.value:void 0}function*KA(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function $A(e,t,n){return ej(e,t,n).sasQueryParameters}function ej(e,t,n){let r=e.version?e.version:AS,i=t instanceof pS?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new OS(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?sj(e,a):oj(e,a):rj(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?aj(e,a):ij(e,a):nj(e,i);if(r>=`2015-04-05`){if(i!==void 0)return tj(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function tj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),a=t.computeHMACSHA256(i);return{sasQueryParameters:new QA(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function nj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function rj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function ij(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function aj(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function oj(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function sj(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function cj(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function lj(e){let t=e.version?e.version:AS;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var uj=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=wg(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},dj=class extends y{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new yg(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},fj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Tg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new dj(this.originalResponse.readableStreamBody,t,n,r,i)}};const pj=new Uint8Array([79,98,106,1]);var mj=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},hj;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(hj||={});var gj;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(gj||={});var _j=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case gj.NULL:case gj.BOOLEAN:case gj.INT:case gj.LONG:case gj.FLOAT:case gj.DOUBLE:case gj.BYTES:case gj.STRING:return new vj(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new bj(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case hj.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new Sj(r,t.name);case hj.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new yj(t.symbols);case hj.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new xj(e.fromSchema(t.values));case hj.ARRAY:case hj.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},vj=class extends _j{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case gj.NULL:return mj.readNull();case gj.BOOLEAN:return mj.readBoolean(e,t);case gj.INT:return mj.readInt(e,t);case gj.LONG:return mj.readLong(e,t);case gj.FLOAT:return mj.readFloat(e,t);case gj.DOUBLE:return mj.readDouble(e,t);case gj.BYTES:return mj.readBytes(e,t);case gj.STRING:return mj.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},yj=class extends _j{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await mj.readInt(e,t);return this._symbols[n]}},bj=class extends _j{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await mj.readInt(e,t);return this._types[n].read(e,t)}},xj=class extends _j{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return mj.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},Sj=class extends _j{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Cj(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await mj.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Cj(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await mj.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await mj.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},Tj=class{};const Ej=new yg(`Reading from the avro stream was aborted.`);var Dj=class extends Tj{_position;_readable;toUint8Array(e){return typeof e==`string`?A.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw Ej;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(Ej)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},Oj=class extends y{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new wj(new Dj(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},kj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Tg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new Oj(this.originalResponse.readableStreamBody,t)}},Aj;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(Aj||={});var jj;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(jj||={});function Mj(e){if(e!==void 0)return e}function Nj(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Pj;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Pj||={});function Fj(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var Ij=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},Lj=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},Rj=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new Lj(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Ij(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},zj=class extends Rj{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=Uj({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return xg(this.intervalInMs)}};const Bj=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Uj(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Uj(t)):(t.isCancelled=!0,Uj(t))},Vj=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return Uj(t)},Hj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function Uj(e){return{state:{...e},cancel:Bj,toString:Hj,update:Vj}}function Wj(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Gj;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(Gj||={});var Kj=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Gj.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new m}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=Gj.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function Jj(e,t){return new Promise((n,r)=>{let i=re.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const Yj=S.promisify(re.stat),Xj=re.createReadStream;var Zj=class e extends qA{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=AA(this.url,NS.Parameters.SNAPSHOT),this._versionId=AA(this.url,NS.Parameters.VERSIONID)}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(kA(this.url,NS.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new Qj(this.url,this.pipeline)}getBlockBlobClient(){return new $j(this.url,this.pipeline)}getPageBlobClient(){return new eM(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Tg?void 0:n.onProgress},range:e===0&&!t?void 0:Wj({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:WA(i.objectReplicationRules)};if(!Tg)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new fj(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Wj({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return Nj(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:WA(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:VA(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:HA({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new uj(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new zj({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:GA(t.sourceAuthorization),tier:Mj(t.tier),blobTagsString:BA(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(Mj(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=MS),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await Jj(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(zA(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:Mj(t.tier),blobTagsString:BA(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof pS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=$A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(MA(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof pS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return ej({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=$A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(MA(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return ej({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},Qj=class e extends Zj{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:BA(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:Wj({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:GA(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},$j=class e extends Zj{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(Nj(t.customerProvidedKey,this.isHttps),!Tg)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new kj(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:UA(t.inputTextConfiguration),outputSerialization:UA(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Mj(n.tier),blobTagsString:BA(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:GA(t.sourceAuthorization),tier:Mj(t.tier),blobTagsString:BA(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return Nj(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:Wj({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:GA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Mj(t.tier),blobTagsString:BA(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(Tg){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/jS),r<4194304&&(r=MS))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${jS}`);let s=[],c=wg(),l=0,u=new Kj(n.concurrency);for(let i=0;i{let u=FA(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await Yj(e)).size;return this.uploadSeekableInternal((t,n)=>()=>Xj(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=wg(),s=0,c=[];return await new Gx(e,t,n,async(e,t)=>{let n=FA(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},eM=class e extends Zj{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Mj(t.tier),blobTagsString:BA(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:Wj({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Nj(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,Wj({offset:t,count:r}),0,Wj({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:GA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Wj({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Fj(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Wj({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:Wj({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*KA(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Fj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:Wj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:Wj({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*KA(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Fj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:Wj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},tM=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},nM=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};nM.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var rM=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};rM.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var iM=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},aM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},oM=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function sM(e,t,n){return aM(this,void 0,void 0,function*(){let r=new Zj(e),i=r.getBlockBlobClient(),a=new oM(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),R(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new tM(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw zr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var cM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function lM(e){return e?e>=200&&e<300:!1}function uM(e){return e?e>=500:!0}function dM(e){return e?[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout].includes(e):!1}function fM(e){return cM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function pM(e,t,n){return cM(this,arguments,void 0,function*(e,t,n,r=2,i=Ep,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!uM(l)))return c;if(l&&(u=dM(l),o=`Cache service responded with ${l}`),R(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){R(`${e} - Error is not retryable`);break}yield fM(i),s++}throw Error(`${e} failed: ${o}`)})}function mM(e,t){return cM(this,arguments,void 0,function*(e,t,n=2,r=Ep){return yield pM(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof Vn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function hM(e,t){return cM(this,arguments,void 0,function*(e,t,n=2,r=Ep){return yield pM(e,t,e=>e.message.statusCode,n,r)})}var gM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function _M(e,t){return gM(this,void 0,void 0,function*(){yield _.promisify(ge.pipeline)(e.message,t)})}var vM=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function yM(e,t){return gM(this,void 0,void 0,function*(){let n=a.createWriteStream(t),r=new Un(`actions/cache`),i=yield hM(`downloadCache`,()=>gM(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Dp,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${Dp} ms`)}),yield _M(i,n);let o=i.message.headers[`content-length`];if(o){let e=parseInt(o),n=Fp(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else R(`Unable to validate download, no Content-Length header`)})}function bM(e,t,n){return gM(this,void 0,void 0,function*(){let r=yield a.promises.open(t,`w`),i=new Un(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield hM(`downloadCacheMetadata`,()=>gM(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;tgM(this,void 0,void 0,function*(){return yield xM(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new vM(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>gM(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function xM(e,t,n,r){return gM(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield wM(3e4,SM(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function SM(e,t,n,r){return gM(this,void 0,void 0,function*(){let i=yield hM(`downloadCachePart`,()=>gM(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function CM(e,t,n){return gM(this,void 0,void 0,function*(){let r=new $j(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)R(`Unable to determine content length, downloading file with http-client...`),yield yM(e,t);else{let e=Math.min(134217728,k.constants.MAX_LENGTH),o=new vM(i),s=a.openSync(t,`w`);try{o.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!o.isDone();){let l=o.segmentOffset+o.segmentSize,u=Math.min(e,i-l);o.nextSegment(u);let d=yield wM(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&a.writeFileSync(s,d)}}finally{o.stopDisplayTimer(),a.closeSync(s)}}})}const wM=(e,t)=>gM(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function TM(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Upload concurrency: ${t.uploadConcurrency}`),R(`Upload chunk size: ${t.uploadChunkSize}`),t}function EM(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Download concurrency: ${t.downloadConcurrency}`),R(`Request timeout (ms): ${t.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),R(`Lookup only: ${t.lookupOnly}`),t}function DM(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function OM(){return DM()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function kM(){let e=OM();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var AM=P(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),jM=P(((e,t)=>{t.exports={version:AM().version}}))();function MM(){return`@actions/cache-${jM.version}`}var NM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function PM(e){let t=kM();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return R(`Resource Url: ${n}`),n}function FM(e,t){return`${e};api-version=${t}`}function IM(){return{headers:{Accept:FM(`application/json`,`6.0-preview.1`)}}}function LM(){let e=new Kn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new Un(MM(),[e],IM())}function RM(e,t,n){return NM(this,void 0,void 0,function*(){let r=LM(),i=Up(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield mM(`getCacheEntry`,()=>NM(this,void 0,void 0,function*(){return r.getJson(PM(a))}));if(o.statusCode===204)return Lr()&&(yield zM(e[0],r,i)),null;if(!lM(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return jr(c),R(`Cache Result:`),R(JSON.stringify(s)),s})}function zM(e,t,n){return NM(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield mM(`listCache`,()=>NM(this,void 0,void 0,function*(){return t.getJson(PM(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){R(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])R(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function BM(e,t,n){return NM(this,void 0,void 0,function*(){let r=new ve(e),i=EM(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield CM(e,t,i):i.concurrentBlobDownloads?yield bM(e,t,i):yield yM(e,t):yield yM(e,t)})}function VM(e,t,n){return NM(this,void 0,void 0,function*(){let r=LM(),i={key:e,version:Up(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield mM(`reserveCache`,()=>NM(this,void 0,void 0,function*(){return r.postJson(PM(`caches`),i)}))})}function HM(e,t){return`bytes ${e}-${t}/*`}function UM(e,t,n,r,i){return NM(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${HM(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":HM(r,i)},o=yield hM(`uploadChunk (start: ${r}, end: ${i})`,()=>NM(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!lM(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WM(e,t,n,r){return NM(this,void 0,void 0,function*(){let i=Fp(n),o=PM(`caches/${t.toString()}`),s=a.openSync(n,`r`),c=TM(r),l=Hp(`uploadConcurrency`,c.uploadConcurrency),u=Hp(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];R(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>NM(this,void 0,void 0,function*(){for(;fa.createReadStream(n,{fd:s,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{a.closeSync(s)}})}function GM(e,t,n){return NM(this,void 0,void 0,function*(){let r={size:n};return yield mM(`commitCache`,()=>NM(this,void 0,void 0,function*(){return e.postJson(PM(`caches/${t.toString()}`),r)}))})}function KM(e,t,n,r){return NM(this,void 0,void 0,function*(){if(TM(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield sM(n,t,r)}else{let n=LM();R(`Upload cache`),yield WM(n,e,t,r),R(`Commiting cache`);let i=Fp(t);Br(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield GM(n,e,i);if(!lM(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Br(`Cache saved successfully`)}})}var qM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),JM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),YM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),XM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),ZM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),QM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=ZM(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!==0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),$M=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=XM(),n=QM(),r=ZM(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),eN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),tN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=QM(),n=ZM(),r=eN(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),nN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),rN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),iN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,`__esModule`,{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=iN();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),oN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),sN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionTypeCheck=void 0;let t=aN(),n=oN();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),cN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionLongConvert=void 0;let t=aN();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),lN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonReader=void 0;let t=qM(),n=JM(),r=aN(),i=QM(),a=eN(),o=cN();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),uN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonWriter=void 0;let t=JM(),n=QM(),r=aN(),i=eN();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),dN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionScalarDefault=void 0;let t=aN(),n=cN(),r=QM();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),fN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryReader=void 0;let t=XM(),n=aN(),r=cN(),i=dN();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryWriter=void 0;let t=XM(),n=aN(),r=eN(),i=QM();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionCreate=void 0;let t=dN(),n=rN();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),hN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionEquals=void 0;let t=aN();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageType=void 0;let t=rN(),n=aN(),r=sN(),i=lN(),a=uN(),o=fN(),s=pN(),c=mN(),l=hN(),u=qM(),d=nN(),f=gN(),p=tN(),m=$M(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),vN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containsMessageType=void 0;let t=rN();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),yN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),bN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=qM();Object.defineProperty(e,`typeofJsonValue`,{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,`isJsonObject`,{enumerable:!0,get:function(){return t.isJsonObject}});var n=JM();Object.defineProperty(e,`base64decode`,{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,`base64encode`,{enumerable:!0,get:function(){return n.base64encode}});var r=YM();Object.defineProperty(e,`utf8read`,{enumerable:!0,get:function(){return r.utf8read}});var i=XM();Object.defineProperty(e,`WireType`,{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,`mergeBinaryOptions`,{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,`UnknownFieldHandler`,{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=$M();Object.defineProperty(e,`BinaryReader`,{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,`binaryReadOptions`,{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=tN();Object.defineProperty(e,`BinaryWriter`,{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,`binaryWriteOptions`,{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=QM();Object.defineProperty(e,`PbLong`,{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,`PbULong`,{enumerable:!0,get:function(){return s.PbULong}});var c=nN();Object.defineProperty(e,`jsonReadOptions`,{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,`jsonWriteOptions`,{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,`mergeJsonOptions`,{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=rN();Object.defineProperty(e,`MESSAGE_TYPE`,{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=_N();Object.defineProperty(e,`MessageType`,{enumerable:!0,get:function(){return u.MessageType}});var d=aN();Object.defineProperty(e,`ScalarType`,{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,`LongType`,{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,`RepeatType`,{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,`normalizeFieldInfo`,{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,`readFieldOptions`,{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,`readFieldOption`,{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,`readMessageOption`,{enumerable:!0,get:function(){return d.readMessageOption}});var f=sN();Object.defineProperty(e,`ReflectionTypeCheck`,{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=mN();Object.defineProperty(e,`reflectionCreate`,{enumerable:!0,get:function(){return p.reflectionCreate}});var m=dN();Object.defineProperty(e,`reflectionScalarDefault`,{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=hN();Object.defineProperty(e,`reflectionMergePartial`,{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=gN();Object.defineProperty(e,`reflectionEquals`,{enumerable:!0,get:function(){return g.reflectionEquals}});var _=fN();Object.defineProperty(e,`ReflectionBinaryReader`,{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=pN();Object.defineProperty(e,`ReflectionBinaryWriter`,{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=lN();Object.defineProperty(e,`ReflectionJsonReader`,{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=uN();Object.defineProperty(e,`ReflectionJsonWriter`,{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=vN();Object.defineProperty(e,`containsMessageType`,{enumerable:!0,get:function(){return x.containsMessageType}});var S=oN();Object.defineProperty(e,`isOneofGroup`,{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,`setOneofValue`,{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,`getOneofValue`,{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,`clearOneofValue`,{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,`getSelectedOneofValue`,{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=yN();Object.defineProperty(e,`listEnumValues`,{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,`listEnumNames`,{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,`listEnumNumbers`,{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,`isEnumObject`,{enumerable:!0,get:function(){return C.isEnumObject}});var w=iN();Object.defineProperty(e,`lowerCamelCase`,{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=eN();Object.defineProperty(e,`assert`,{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,`assertNever`,{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,`assertInt32`,{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,`assertUInt32`,{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,`assertFloat32`,{enumerable:!0,get:function(){return T.assertFloat32}})})),xN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=bN();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),SN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceType=void 0;let t=xN();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),CN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` +`)}}})),wN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeRpcOptions=void 0;let t=bN();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),TN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),EN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcOutputStreamController=void 0;let t=TN(),n=bN();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),DN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),ON=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),kN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),AN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),jN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTransport=void 0;let n=CN(),r=bN(),i=EN(),a=wN(),o=DN(),s=ON(),c=kN(),l=AN();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),MN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=bN();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),NN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),PN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=SN();Object.defineProperty(e,`ServiceType`,{enumerable:!0,get:function(){return t.ServiceType}});var n=xN();Object.defineProperty(e,`readMethodOptions`,{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,`readMethodOption`,{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,`readServiceOption`,{enumerable:!0,get:function(){return n.readServiceOption}});var r=CN();Object.defineProperty(e,`RpcError`,{enumerable:!0,get:function(){return r.RpcError}});var i=wN();Object.defineProperty(e,`mergeRpcOptions`,{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=EN();Object.defineProperty(e,`RpcOutputStreamController`,{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=jN();Object.defineProperty(e,`TestTransport`,{enumerable:!0,get:function(){return o.TestTransport}});var s=TN();Object.defineProperty(e,`Deferred`,{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,`DeferredState`,{enumerable:!0,get:function(){return s.DeferredState}});var c=AN();Object.defineProperty(e,`DuplexStreamingCall`,{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=kN();Object.defineProperty(e,`ClientStreamingCall`,{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=ON();Object.defineProperty(e,`ServerStreamingCall`,{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=DN();Object.defineProperty(e,`UnaryCall`,{enumerable:!0,get:function(){return d.UnaryCall}});var f=MN();Object.defineProperty(e,`stackIntercept`,{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,`stackDuplexStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,`stackClientStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,`stackServerStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,`stackUnaryInterceptors`,{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=NN();Object.defineProperty(e,`ServerCallContextController`,{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=bN();const FN=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posRN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=zN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>BN.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=VN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>HN.fromJson(e,{ignoreUnknownFields:!0}))}};function WN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(jr(t),jr(encodeURIComponent(t)))}catch(t){R(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function GN(e){if(typeof e!=`object`||!e){R(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&WN(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&WN(e.signed_download_url)}var KN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},qN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Wp();this.baseUrl=kM(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new Un(e,[new Kn(i)])}request(e,t,n,r){return KN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;R(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>KN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return KN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&zr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new iM(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&R(`Raw Body: ${r}`),e instanceof rM||e instanceof iM)throw e;if(nM.isNetworkErrorCode(e?.code))throw new nM(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Br(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Fn.BadGateway,Fn.GatewayTimeout,Fn.InternalServerError,Fn.ServiceUnavailable].includes(e):!1}sleep(e){return KN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function JN(e){return new UN(new qN(MM(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var YN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const XN=process.platform===`win32`;function ZN(){return YN(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Vp(),t=kp;if(e)return{path:e,type:Tp.GNU};if(s(t))return{path:t,type:Tp.BSD};break}case`darwin`:{let e=yield yr(`gtar`,!1);return e?{path:e,type:Tp.GNU}:{path:yield yr(`tar`,!0),type:Tp.BSD}}default:break}return{path:yield yr(`tar`,!0),type:Tp.GNU}})}function QN(e,t,n){return YN(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=Bp(t),o=`cache.tar`,s=eP(),c=e.type===Tp.BSD&&t!==wp.Gzip&&XN;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--files-from`,jp);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`);break}if(e.type===Tp.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function $N(e,t){return YN(this,arguments,void 0,function*(e,t,n=``){let r,i=yield ZN(),a=yield QN(i,e,t,n),o=t===`create`?yield nP(i,e):yield tP(i,e,n),s=i.type===Tp.BSD&&e!==wp.Gzip&&XN;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function eP(){return process.env.GITHUB_WORKSPACE??process.cwd()}function tP(e,t,n){return YN(this,void 0,void 0,function*(){let r=e.type===Tp.BSD&&t!==wp.Gzip&&XN;switch(t){case wp.Zstd:return r?[`zstd -d --long=30 --force -o`,Ap,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,XN?`"zstd -d --long=30"`:`unzstd --long=30`];case wp.ZstdWithoutLong:return r?[`zstd -d --force -o`,Ap,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,XN?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function nP(e,t){return YN(this,void 0,void 0,function*(){let n=Bp(t),r=e.type===Tp.BSD&&t!==wp.Gzip&&XN;switch(t){case wp.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),Ap]:[`--use-compress-program`,XN?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case wp.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),Ap]:[`--use-compress-program`,XN?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function rP(e,t){return YN(this,void 0,void 0,function*(){for(let n of e)try{yield Dr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function iP(e,t){return YN(this,void 0,void 0,function*(){yield rP(yield $N(t,`list`,e))})}function aP(e,t){return YN(this,void 0,void 0,function*(){yield vr(eP()),yield rP(yield $N(t,`extract`,e))})}function oP(e,t,n){return YN(this,void 0,void 0,function*(){l(u.join(e,jp),t.join(` +`)),yield rP(yield $N(n,`create`),e)})}var sP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},cP=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},lP=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},uP=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function dP(e){if(!e||e.length===0)throw new cP(`Path Validation Error: At least one directory or file path is required`)}function fP(e){if(e.length>512)throw new cP(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new cP(`Key Validation Error: ${e} cannot contain commas.`)}function pP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=OM();switch(R(`Cache service version: ${a}`),dP(e),a){case`v2`:return yield hP(e,t,n,r,i);default:return yield mP(e,t,n,r,i)}})}function mP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new cP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)fP(e);let o=yield zp(),s=``;try{let t=yield RM(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Br(`Lookup only - skipping download`),t.cacheKey;s=u.join(yield Pp(),Bp(o)),R(`Archive Path: ${s}`),yield BM(t.archiveLocation,s,r),Lr()&&(yield iP(s,o));let n=Fp(s);return Br(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield aP(s,o),Br(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===cP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{yield Lp(s)}catch(e){R(`Failed to delete archive: ${e}`)}}})}function hP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new cP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)fP(e);let o=``;try{let s=JN(),c=yield zp(),l={key:t,restoreKeys:n,version:Up(e,c,i)},d=yield s.GetCacheEntryDownloadURL(l);if(!d.ok){R(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===d.matchedKey?Br(`Cache hit for: ${d.matchedKey}`):Br(`Cache hit for restore-key: ${d.matchedKey}`),r?.lookupOnly)return Br(`Lookup only - skipping download`),d.matchedKey;o=u.join(yield Pp(),Bp(c)),R(`Archive path: ${o}`),R(`Starting download of archive to: ${o}`),yield BM(d.signedDownloadUrl,o,r);let f=Fp(o);return Br(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),Lr()&&(yield iP(o,c)),yield aP(o,c),Br(`Cache restored successfully`),d.matchedKey}catch(e){let t=e;if(t.name===cP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Lp(o))}catch(e){R(`Failed to delete archive: ${e}`)}}})}function gP(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){let i=OM();switch(R(`Cache service version: ${i}`),dP(e),fP(t),i){case`v2`:return yield vP(e,t,n,r);default:return yield _P(e,t,n,r)}})}function _P(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield zp(),a=-1,o=yield Ip(e);if(R(`Cache Paths:`),R(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Pp(),c=u.join(s,Bp(i));R(`Archive Path: ${c}`);try{yield oP(s,o,i),Lr()&&(yield iP(c,i));let l=Fp(c);if(R(`File Size: ${l}`),l>10737418240&&!DM())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);R(`Reserving Cache`);let u=yield VM(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new lP(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);R(`Saving Cache (ID: ${a})`),yield KM(a,c,``,n)}catch(e){let t=e;if(t.name===cP.name)throw e;t.name===lP.name?Br(`Failed to save: ${t.message}`):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Lp(c)}catch(e){R(`Failed to delete archive: ${e}`)}}return a})}function vP(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield zp(),a=JN(),o=-1,s=yield Ip(e);if(R(`Cache Paths:`),R(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Pp(),l=u.join(c,Bp(i));R(`Archive Path: ${l}`);try{yield oP(c,s,i),Lr()&&(yield iP(l,i));let u=Fp(l);R(`File Size: ${u}`),n.archiveSizeBytes=u,R(`Reserving Cache`);let d=Up(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&zr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw R(`Failed to reserve cache: ${e}`),new lP(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${l}`),yield KM(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(R(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new uP(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===cP.name)throw e;t.name===lP.name?Br(`Failed to save: ${t.message}`):t.name===uP.name?zr(t.message):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Lp(l)}catch(e){R(`Failed to delete archive: ${e}`)}}return o})}function yP(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,R(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,R(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,R(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,R(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,R(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const bP=process.platform===`win32`;function xP(e){if(e=EP(e),bP&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=u.dirname(e);return bP&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=EP(t)),t}function SP(e,t){if(h(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),h(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),CP(t))return t;if(bP){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(TP(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return h(CP(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||bP&&e.endsWith(`\\`)||(e+=u.sep),e+t}function CP(e){return h(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=TP(e),bP?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function wP(e){return h(e,`isRooted parameter 'itemPath' must not be empty`),e=TP(e),bP?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function TP(e){return e||=``,bP?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function EP(e){return e?(e=TP(e),!e.endsWith(u.sep)||e===u.sep||bP&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var DP;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(DP||={});const OP=process.platform===`win32`;function kP(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=OP?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=OP?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=xP(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=xP(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function AP(e,t){let n=DP.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function jP(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const MP=(e,t,n)=>{let r=e instanceof RegExp?NP(e,n):e,i=t instanceof RegExp?NP(t,n):t,a=r!==null&&i!=null&&PP(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},NP=(e,t)=>{let n=t.match(e);return n?n[0]:null},PP=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},FP=`\0SLASH`+Math.random()+`\0`,IP=`\0OPEN`+Math.random()+`\0`,LP=`\0CLOSE`+Math.random()+`\0`,RP=`\0COMMA`+Math.random()+`\0`,zP=`\0PERIOD`+Math.random()+`\0`,BP=new RegExp(FP,`g`),VP=new RegExp(IP,`g`),HP=new RegExp(LP,`g`),UP=new RegExp(RP,`g`),WP=new RegExp(zP,`g`),GP=/\\\\/g,KP=/\\{/g,qP=/\\}/g,JP=/\\,/g,YP=/\\\./g;function XP(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ZP(e){return e.replace(GP,FP).replace(KP,IP).replace(qP,LP).replace(JP,RP).replace(YP,zP)}function QP(e){return e.replace(BP,`\\`).replace(VP,`{`).replace(HP,`}`).replace(UP,`,`).replace(WP,`.`)}function $P(e){if(!e)return[``];let t=[],n=MP(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=$P(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function eF(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),aF(ZP(e),n,!0).map(QP)}function tF(e){return`{`+e+`}`}function nF(e){return/^-?0\d/.test(e)}function rF(e,t){return e<=t}function iF(e,t){return e>=t}function aF(e,t,n){let r=[],i=MP(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?aF(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+LP+i.post,aF(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=$P(i.body),d.length===1&&d[0]!==void 0&&(d=aF(d[0],t,!1).map(tF),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=XP(d[0]),t=XP(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(XP(d[2])),1):1,i=rF;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},sF={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},cF=e=>e.replace(/[[\]\\-]/g,`\\$&`),lF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),uF=e=>e.join(``),dF=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push(cF(d)+`-`+cF(t)):t===d&&r.push(cF(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(cF(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(cF(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var pF;const mF=new Set([`!`,`?`,`+`,`*`,`@`]),hF=e=>mF.has(e),gF=e=>hF(e.type),_F=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),vF=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),yF=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),bF=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),xF=`(?!\\.)`,SF=new Set([`[`,`.`]),CF=new Set([`..`,`.`]),wF=new Set(`().*{}+?[]^$\\!`),TF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),EF=`[^/]`,DF=EF+`*?`,OF=EF+`+?`;let kF=0;var AF=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++kF;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?pF.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&CF.has(this.#r[0]))){let n=SF,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?xF:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,fF(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,fF(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?xF:``)+OF;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?xF:``)+DF+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,fF(i),this.#t=!!this.#t,this.#n]}#x(){if(gF(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),MF=(e,t,n={})=>(oF(t),!n.nocomment&&t.charAt(0)===`#`?!1:new oI(t,n).match(e)),NF=/^\*+([^+@!?*[(]*)$/,PF=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),FF=e=>t=>t.endsWith(e),IF=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),LF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),RF=/^\*+\.\*+$/,zF=e=>!e.startsWith(`.`)&&e.includes(`.`),BF=e=>e!==`.`&&e!==`..`&&e.includes(`.`),VF=/^\.\*+$/,HF=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),UF=/^\*+$/,WF=e=>e.length!==0&&!e.startsWith(`.`),GF=e=>e.length!==0&&e!==`.`&&e!==`..`,KF=/^\?+([^+@!?*[(]*)?$/,qF=([e,t=``])=>{let n=ZF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},JF=([e,t=``])=>{let n=QF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},YF=([e,t=``])=>{let n=QF([e]);return t?e=>n(e)&&e.endsWith(t):n},XF=([e,t=``])=>{let n=ZF([e]);return t?e=>n(e)&&e.endsWith(t):n},ZF=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},QF=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},$F=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,eI={win32:{sep:`\\`},posix:{sep:`/`}};MF.sep=$F===`win32`?eI.win32.sep:eI.posix.sep;const tI=Symbol(`globstar **`);MF.GLOBSTAR=tI,MF.filter=(e,t={})=>n=>MF(n,e,t);const nI=(e,t={})=>Object.assign({},e,t);MF.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return MF;let t=MF;return Object.assign((n,r,i={})=>t(n,r,nI(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,nI(e,n))}static defaults(n){return t.defaults(nI(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,nI(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,nI(e,r))}},unescape:(n,r={})=>t.unescape(n,nI(e,r)),escape:(n,r={})=>t.escape(n,nI(e,r)),filter:(n,r={})=>t.filter(n,nI(e,r)),defaults:n=>t.defaults(nI(e,n)),makeRe:(n,r={})=>t.makeRe(n,nI(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,nI(e,r)),match:(n,r,i={})=>t.match(n,r,nI(e,i)),sep:t.sep,GLOBSTAR:tI})};const rI=(e,t={})=>(oF(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:eF(e,{max:t.braceExpandMax}));MF.braceExpand=rI,MF.makeRe=(e,t={})=>new oI(e,t).makeRe(),MF.match=(e,t,n={})=>{let r=new oI(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const iI=/[?*]|[+@!]\(.*?\)|\[|\]/,aI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var oI=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){oF(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||$F,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!iI.test(e[2]))&&!iI.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(tI)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(tI,i),o=t.lastIndexOf(tI),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?aI(e):e===tI?tI:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==tI||a===tI||(a===void 0?i!==void 0&&i!==tI?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==tI&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=tI))});let i=t.filter(e=>e!==tI);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return MF.defaults(e).Minimatch}};MF.AST=AF,MF.Minimatch=oI,MF.escape=jF,MF.unescape=fF;const sI=process.platform===`win32`;var cI=class{constructor(e){if(this.segments=[],typeof e==`string`)if(h(e,`Parameter 'itemPath' must not be empty`),e=EP(e),!wP(e))this.segments=e.split(u.sep);else{let t=e,n=xP(t);for(;n!==t;){let e=u.basename(t);this.segments.unshift(e),t=n,n=xP(t)}this.segments.unshift(t)}else{h(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new cI(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),lI?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:lI,nocomment:!0,noext:!0,nonegate:!0};a=lI?a.replace(/\\/g,`/`):a,this.minimatch=new oI(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=TP(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=EP(e),this.minimatch.match(e)?this.trailingSeparator?DP.Directory:DP.All:DP.None}partialMatch(e){return e=EP(e),xP(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(lI?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(lI?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new cI(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!wP(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=TP(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(CP(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(lI&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=SP(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(lI&&(n===`\\`||n.match(/^\\[^\\]/))){let t=SP(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=SP(e.globEscape(process.cwd()),n);return TP(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},dI=class{constructor(e,t){this.path=e,this.level=t}},fI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},pI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},mI=function(e){return this instanceof mI?(this.v=e,this):new mI(e)},hI=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof mI?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const gI=process.platform===`win32`;var _I=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=yP(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return fI(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=pI(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return hI(this,arguments,function*(){let t=yP(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new uI(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of kP(n)){R(`Search path '${e}'`);try{yield mI(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new dI(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=AP(n,o.path),c=!!s||jP(n,o.path);if(!s&&!c)continue;let l=yield mI(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&DP.Directory&&t.matchDirectories)yield yield mI(o.path);else if(!c)continue;let e=o.level+1,n=(yield mI(a.promises.readdir(o.path))).map(t=>new dI(u.join(o.path,t),e));r.push(...n.reverse())}else s&DP.File&&(yield yield mI(o.path))}})}static create(t,n){return fI(this,void 0,void 0,function*(){let r=new e(n);gI&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new lI(e));return r.searchPaths.push(...OP(r.patterns)),r})}static stat(e,t,n){return dI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},_I=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},vI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function yI(e,t){return _I(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Br:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=vI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var bI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function xI(e,t){return bI(this,void 0,void 0,function*(){return yield gI.create(e,t)})}function SI(e){return bI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),yI(yield xI(e,{followSymbolicLinks:i}),t,r)})}async function CI(e){let t=Ad(e),n=Nd(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}Br(`Using lock file: ${n.path}`);let r=M(n.path);Br(`Resolving dependency cache directory in: ${r}`);let i=await Fd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Ur(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await SI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Ur(`CACHE_PRIMARY_KEY`,c);let u=await fP(i,c,l);u?(Br(`Cache restored from key: ${u}`),Ur(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(Br(`Cache not found`),Fr(`cache-hit`,!1))}async function wI(){let e=Wr(`CACHE_PRIMARY_KEY`),t=Wr(`CACHE_MATCHED_KEY`),n=Wr(`CACHE_PATHS`);if(!e){Br(`No cache key found. Skipping cache save.`);return}if(!n){Br(`No cache paths found. Skipping cache save.`);return}if(e===t){Br(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Br(`Empty cache paths. Skipping cache save.`);return}try{if(await hP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}Br(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function TI(e,t){let n=kd(e,t||Od()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?OI(r):i===`package.json`?AI(r):EI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Br(`Resolved Node.js version '${a}' from ${e}`),a}function EI(e){for(let t of e.split(` -`)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return DI(e)}}function DI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function OI(e){for(let t of e.split(` -`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(kI(e))return e}}}function kI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function AI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=jI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function jI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function MI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function NI(e){return e.replace(/^\w+:/,``)}function PI(e){return(NI(e)+`:_authtoken`).toLowerCase()}function FI(e){return`${NI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function II(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function LI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}RI(n.href.endsWith(`/`)?n.href:n.href+`/`,MI(),t)}function RI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=NI(e).toLowerCase(),a=[],o=II(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(FI(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const zI=new Set([`GITHUB_TOKEN`]),BI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function VI(e){return BI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!zI.has(e):!1}function HI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(PI(e))),envVarRefs:r}}function UI(e){let t=MI(),n=new Set(e.map(PI)),r=II(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(FI)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function WI(e){let t=N(e,`.npmrc`),n=II(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=HI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(UI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!VI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function GI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=TI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?LI(e.registryUrl,e.scope):WI(t),e.cache&&await CI(e),e.sfw&&e.runInstall.length>0&&await Jd(),e.runInstall.length>0&&await Zd(e),await KI(t)}async function KI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function qI(e){e.cache&&await wI()}async function JI(){let e=Td();Wr(`IS_POST`)===`true`?await qI(e):await GI(e)}JI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new uI(e));return r.searchPaths.push(...kP(r.patterns)),r})}static stat(e,t,n){return fI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},vI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},yI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function bI(e,t){return vI(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Br:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=yI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var xI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function SI(e,t){return xI(this,void 0,void 0,function*(){return yield _I.create(e,t)})}function CI(e){return xI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),bI(yield SI(e,{followSymbolicLinks:i}),t,r)})}async function wI(e){let t=Ad(e),n=Nd(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}Br(`Using lock file: ${n.path}`);let r=M(n.path);Br(`Resolving dependency cache directory in: ${r}`);let i=await Fd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Ur(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await CI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Ur(`CACHE_PRIMARY_KEY`,c);let u=await pP(i,c,l);u?(Br(`Cache restored from key: ${u}`),Ur(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(Br(`Cache not found`),Fr(`cache-hit`,!1))}async function TI(){let e=Wr(`CACHE_PRIMARY_KEY`),t=Wr(`CACHE_MATCHED_KEY`),n=Wr(`CACHE_PATHS`);if(!e){Br(`No cache key found. Skipping cache save.`);return}if(!n){Br(`No cache paths found. Skipping cache save.`);return}if(e===t){Br(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Br(`Empty cache paths. Skipping cache save.`);return}try{if(await gP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}Br(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function EI(e,t){let n=kd(e,t||Od()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?kI(r):i===`package.json`?jI(r):DI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Br(`Resolved Node.js version '${a}' from ${e}`),a}function DI(e){for(let t of e.split(` +`)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return OI(e)}}function OI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function kI(e){for(let t of e.split(` +`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;e.sfw&&!Gd()&&(zr(`sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/SocketDev/sfw-free/issues/30`),r=!1),r&&e.runInstall.length>0&&await Yd(),e.runInstall.length>0&&await Qd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=Td();Wr(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index bc098c6..34382b9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import { saveState, getState, setFailed, info, setOutput, warning } from "@actio import { exec, getExecOutput } from "@actions/exec"; import { getInputs } from "./inputs.js"; import { installVitePlus } from "./install-viteplus.js"; -import { installSfw } from "./install-sfw.js"; +import { installSfw, isSfwSupported } from "./install-sfw.js"; import { runViteInstall } from "./run-install.js"; import { restoreCache } from "./cache-restore.js"; import { saveCache } from "./cache-save.js"; @@ -44,14 +44,23 @@ async function runMain(inputs: Inputs): Promise { await restoreCache(inputs); } - // Step 6: Install Socket Firewall Free if requested (must run before vp install) - if (inputs.sfw && inputs.runInstall.length > 0) { + // Step 6: Install Socket Firewall Free if requested (must run before vp install). + // On non-Linux platforms, sfw is temporarily unsupported (see isSfwSupported) + // and we fall back to plain `vp install` with a warning. + let effectiveSfw = inputs.sfw; + if (inputs.sfw && !isSfwSupported()) { + warning( + `sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/SocketDev/sfw-free/issues/30`, + ); + effectiveSfw = false; + } + if (effectiveSfw && inputs.runInstall.length > 0) { await installSfw(); } // Step 7: Run vp install if requested if (inputs.runInstall.length > 0) { - await runViteInstall(inputs); + await runViteInstall({ ...inputs, sfw: effectiveSfw }); } // Print version info at the end diff --git a/src/install-sfw.test.ts b/src/install-sfw.test.ts index 6695770..03cd7a5 100644 --- a/src/install-sfw.test.ts +++ b/src/install-sfw.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from "vite-plus/test"; -import { getSfwAssetName } from "./install-sfw.js"; +import { getSfwAssetName, isSfwSupported } from "./install-sfw.js"; describe("getSfwAssetName", () => { it("returns macOS arm64 asset", () => { @@ -58,3 +58,9 @@ describe("getSfwAssetName", () => { expect(() => getSfwAssetName("linux", "ia32", false)).toThrow(/glibc/); }); }); + +describe("isSfwSupported", () => { + it("returns true on Linux, false elsewhere (matches current platform)", () => { + expect(isSfwSupported()).toBe(process.platform === "linux"); + }); +}); diff --git a/src/install-sfw.ts b/src/install-sfw.ts index 82a05b6..3daf319 100644 --- a/src/install-sfw.ts +++ b/src/install-sfw.ts @@ -10,6 +10,15 @@ const INSTALL_RETRY_DELAY_MS = 2000; const CURL_TIMEOUT_FLAGS = "--connect-timeout 5 --max-time 60"; const PWSH_TIMEOUT_SEC = 60; +// sfw v1.10.0 issues a TLS cert with an empty Extended Key Usage extension. +// vp uses rustls, which strictly rejects it (UnknownIssuer). So on macOS / +// Windows, `sfw vp install` fails the TLS handshake before sfw can inspect +// anything. Until SocketDev/sfw-free#30 and #43 are resolved, we only enable +// the wrap on Linux and fall back to plain `vp install` everywhere else. +export function isSfwSupported(): boolean { + return process.platform === "linux"; +} + export function isMuslLinux(): boolean { if (process.platform !== "linux") return false; try { From b3e3a5825c1ccbe66563d79ef19c5886f030e4ed Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:31:07 +0800 Subject: [PATCH 05/18] chore: point sfw non-Linux warning at setup-vp tracker issue The warning now links to voidzero-dev/setup-vp#73 (the consolidated follow-up tracker) instead of SocketDev/sfw-free#30, since #73 is the single place that aggregates both the upstream sfw fix and the vp-side work needed to lift the Linux-only restriction. --- dist/index.mjs | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.mjs b/dist/index.mjs index a1f0ed3..0cf6f08 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -236,4 +236,4 @@ More info on storage limits: https://docs.github.com/en/billing/managing-billing `));let i=t.split(` `).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new uI(e));return r.searchPaths.push(...kP(r.patterns)),r})}static stat(e,t,n){return fI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},vI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},yI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function bI(e,t){return vI(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Br:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=yI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var xI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function SI(e,t){return xI(this,void 0,void 0,function*(){return yield _I.create(e,t)})}function CI(e){return xI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),bI(yield SI(e,{followSymbolicLinks:i}),t,r)})}async function wI(e){let t=Ad(e),n=Nd(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}Br(`Using lock file: ${n.path}`);let r=M(n.path);Br(`Resolving dependency cache directory in: ${r}`);let i=await Fd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Ur(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await CI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Ur(`CACHE_PRIMARY_KEY`,c);let u=await pP(i,c,l);u?(Br(`Cache restored from key: ${u}`),Ur(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(Br(`Cache not found`),Fr(`cache-hit`,!1))}async function TI(){let e=Wr(`CACHE_PRIMARY_KEY`),t=Wr(`CACHE_MATCHED_KEY`),n=Wr(`CACHE_PATHS`);if(!e){Br(`No cache key found. Skipping cache save.`);return}if(!n){Br(`No cache paths found. Skipping cache save.`);return}if(e===t){Br(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Br(`Empty cache paths. Skipping cache save.`);return}try{if(await gP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}Br(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function EI(e,t){let n=kd(e,t||Od()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?kI(r):i===`package.json`?jI(r):DI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Br(`Resolved Node.js version '${a}' from ${e}`),a}function DI(e){for(let t of e.split(` `)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return OI(e)}}function OI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function kI(e){for(let t of e.split(` -`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;e.sfw&&!Gd()&&(zr(`sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/SocketDev/sfw-free/issues/30`),r=!1),r&&e.runInstall.length>0&&await Yd(),e.runInstall.length>0&&await Qd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=Td();Wr(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file +`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;e.sfw&&!Gd()&&(zr(`sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`),r=!1),r&&e.runInstall.length>0&&await Yd(),e.runInstall.length>0&&await Qd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=Td();Wr(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 34382b9..257939a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,7 +50,7 @@ async function runMain(inputs: Inputs): Promise { let effectiveSfw = inputs.sfw; if (inputs.sfw && !isSfwSupported()) { warning( - `sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/SocketDev/sfw-free/issues/30`, + `sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`, ); effectiveSfw = false; } From 4d71ec239634cc67cc6465ff13ceff919b240af7 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:39:37 +0800 Subject: [PATCH 06/18] docs: point README sfw fallback note at setup-vp#73 tracker Replace the direct SocketDev/sfw-free#30 / #43 references with a link to the consolidated voidzero-dev/setup-vp#73 tracker, which already links out to both upstream issues plus the vp-side work needed. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0b8b9c..fb494eb 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ steps: `sfw` is only applied when `run-install` is enabled; other `vp` commands (e.g. `vp env use`, `vp --version`) run unwrapped. > [!IMPORTANT] -> **Linux-only for now.** `sfw` ships a self-signed CA whose certificate has an empty Extended Key Usage extension. Strict TLS stacks like rustls (used by `vp`) reject it as `UnknownIssuer`, so `vp install` fails the TLS handshake on macOS / Windows. To keep `sfw: true` safe to set unconditionally in cross-platform workflows, the action **falls back to plain `vp install` with a warning on non-Linux platforms** — it does not download the `sfw` binary there. Once [SocketDev/sfw-free#30](https://github.com/SocketDev/sfw-free/issues/30) / [#43](https://github.com/SocketDev/sfw-free/issues/43) ship a fix, the platform check will be relaxed. +> **Linux-only for now.** `sfw` ships a self-signed CA whose certificate has an empty Extended Key Usage extension. Strict TLS stacks like rustls (used by `vp`) reject it as `UnknownIssuer`, so `vp install` fails the TLS handshake on macOS / Windows. To keep `sfw: true` safe to set unconditionally in cross-platform workflows, the action **falls back to plain `vp install` with a warning on non-Linux platforms** — it does not download the `sfw` binary there. The platform check will be relaxed once the upstream work tracked in [voidzero-dev/setup-vp#73](https://github.com/voidzero-dev/setup-vp/issues/73) lands. ### Alpine Container From b0bece418695cf1f3cec6368e7ee8bdf943deb5b Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:40:39 +0800 Subject: [PATCH 07/18] docs(ci): collapse sfw-free issue references to setup-vp#73 tracker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test-sfw job header now points to voidzero-dev/setup-vp#73 (which already fans out to SocketDev/sfw-free#30 / #43 and the vp-side work) instead of duplicating the upstream links. The lodahs canary citation to SocketDev/bun-security-scanner is left in place — it's a pattern reference, not an upstream tracking link. --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b101ff..c55306d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -300,9 +300,7 @@ jobs: # (UnknownIssuer). The action emits a warning and falls back to plain # `vp install`; no sfw binary is downloaded. We assert that fallback by # checking `sfw` is NOT on PATH while the install still succeeds. - # Tracking upstream: - # https://github.com/SocketDev/sfw-free/issues/30 - # https://github.com/SocketDev/sfw-free/issues/43 + # Tracking: https://github.com/voidzero-dev/setup-vp/issues/73 strategy: fail-fast: false matrix: From f0618a40ffb826e35e8852722a9775d15a2ac202 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:43:21 +0800 Subject: [PATCH 08/18] docs: point isSfwSupported comment at setup-vp#73 tracker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment used to enumerate the specific sfw v1.10.0 EKU symptoms and the SocketDev/sfw-free#30/#43 upstream issues. Those details belong on the tracker — the source comment just needs to point readers to it. --- src/install-sfw.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/install-sfw.ts b/src/install-sfw.ts index 3daf319..cfccb86 100644 --- a/src/install-sfw.ts +++ b/src/install-sfw.ts @@ -10,11 +10,10 @@ const INSTALL_RETRY_DELAY_MS = 2000; const CURL_TIMEOUT_FLAGS = "--connect-timeout 5 --max-time 60"; const PWSH_TIMEOUT_SEC = 60; -// sfw v1.10.0 issues a TLS cert with an empty Extended Key Usage extension. -// vp uses rustls, which strictly rejects it (UnknownIssuer). So on macOS / -// Windows, `sfw vp install` fails the TLS handshake before sfw can inspect -// anything. Until SocketDev/sfw-free#30 and #43 are resolved, we only enable -// the wrap on Linux and fall back to plain `vp install` everywhere else. +// sfw is temporarily only enabled on Linux. On macOS / Windows, `sfw vp install` +// fails the TLS handshake before sfw can inspect anything because of a stack of +// upstream issues in sfw + vp. Tracking + cleanup checklist: +// https://github.com/voidzero-dev/setup-vp/issues/73 export function isSfwSupported(): boolean { return process.platform === "linux"; } From d2ed525c3a117ccc2dfa9d0819425f5ebc2e2210 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:47:05 +0800 Subject: [PATCH 09/18] test(ci): add test-sfw-package-managers covering pnpm/npm/yarn/bun New Linux-only job iterates over each package manager vp auto-detects via lockfile and verifies `sfw vp install` succeeds end-to-end with each. bun is marked experimental (continue-on-error) since sfw does not officially list it as a supported PM. --- .github/workflows/test.yml | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c55306d..c8b9a30 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -380,6 +380,59 @@ jobs: working-directory: test-project run: vp exec node -e "console.log(require('is-odd')(3))" + test-sfw-package-managers: + # Verify sfw wraps vp install across all package managers vp auto-detects + # via lockfile (pnpm, npm, yarn, bun). The lockfile presence tells vp + # which PM to delegate to; an empty/minimal lockfile is fine because each + # PM regenerates it on install. + # Linux only — sfw is gated to Linux until the upstream work in + # https://github.com/voidzero-dev/setup-vp/issues/73 lands. + # Note: bun is not officially listed as a supported package manager by sfw + # (https://github.com/SocketDev/sfw-free), so its job is allowed to fail + # without breaking CI; failures there should be reported upstream. + strategy: + fail-fast: false + matrix: + version: [latest, alpha] + package-manager: + - { name: pnpm, lockfile: pnpm-lock.yaml, contents: "", experimental: false } + - { + name: npm, + lockfile: package-lock.json, + contents: '{"name":"test-project","lockfileVersion":3}', + experimental: false, + } + - { name: yarn, lockfile: yarn.lock, contents: "", experimental: false } + - { name: bun, lockfile: bun.lock, contents: "", experimental: true } + runs-on: ubuntu-latest + continue-on-error: ${{ matrix.package-manager.experimental }} + steps: + - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 + + - name: Create test project with ${{ matrix.package-manager.lockfile }} + shell: bash + run: | + mkdir -p test-project + cd test-project + echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json + printf '%s' '${{ matrix.package-manager.contents }}' > ${{ matrix.package-manager.lockfile }} + + - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager.name }} + uses: ./ + with: + version: ${{ matrix.version }} + sfw: true + run-install: | + - cwd: test-project + cache: false + + - name: Verify sfw is on PATH + run: sfw --version + + - name: Verify dependency installed under sfw via ${{ matrix.package-manager.name }} + working-directory: test-project + run: vp exec node -e "console.log(require('is-odd')(3))" + test-sfw-blocks-malicious: # Verifies sfw actually intercepts a known-malicious package, not just # that it wraps the install. Uses `lodahs` (lodash typosquat), the same From f13d0baa5d4fa5cd158847d335cf57a3cd2a7d4b Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:49:43 +0800 Subject: [PATCH 10/18] test(ci): fix yarn job + promote bun to required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - yarn: set YARN_ENABLE_IMMUTABLE_INSTALLS=false so Yarn Berry can regenerate the empty yarn.lock under CI (the previous failure was YN0028 — sfw itself worked fine, fetching 1 package successfully). - bun: drop the experimental/continue-on-error flag — bun installs through sfw cleanly in the first run, so failures should gate CI. --- .github/workflows/test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c8b9a30..280dd10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -387,25 +387,20 @@ jobs: # PM regenerates it on install. # Linux only — sfw is gated to Linux until the upstream work in # https://github.com/voidzero-dev/setup-vp/issues/73 lands. - # Note: bun is not officially listed as a supported package manager by sfw - # (https://github.com/SocketDev/sfw-free), so its job is allowed to fail - # without breaking CI; failures there should be reported upstream. strategy: fail-fast: false matrix: version: [latest, alpha] package-manager: - - { name: pnpm, lockfile: pnpm-lock.yaml, contents: "", experimental: false } + - { name: pnpm, lockfile: pnpm-lock.yaml, contents: "" } - { name: npm, lockfile: package-lock.json, contents: '{"name":"test-project","lockfileVersion":3}', - experimental: false, } - - { name: yarn, lockfile: yarn.lock, contents: "", experimental: false } - - { name: bun, lockfile: bun.lock, contents: "", experimental: true } + - { name: yarn, lockfile: yarn.lock, contents: "" } + - { name: bun, lockfile: bun.lock, contents: "" } runs-on: ubuntu-latest - continue-on-error: ${{ matrix.package-manager.experimental }} steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 @@ -419,6 +414,11 @@ jobs: - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager.name }} uses: ./ + env: + # Yarn Berry auto-enables immutable installs under CI, which makes + # the bootstrap from an empty yarn.lock fail with YN0028. Allow the + # regeneration. No-op for the other package managers. + YARN_ENABLE_IMMUTABLE_INSTALLS: "false" with: version: ${{ matrix.version }} sfw: true From 9fbb519e3afe4235bf5358179fb033018e9d2483 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:52:08 +0800 Subject: [PATCH 11/18] test(ci): force Yarn nodeLinker=node-modules so verify step is uniform Yarn Berry's default Plug'n'Play linker means a plain `node -e require('is-odd')` from the verify step can't resolve the module (it's in .yarn/cache, not node_modules). Add a .yarnrc.yml only for the yarn matrix entry so all four package managers produce the same node_modules layout for the test. --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 280dd10..2676151 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -412,6 +412,15 @@ jobs: echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json printf '%s' '${{ matrix.package-manager.contents }}' > ${{ matrix.package-manager.lockfile }} + - name: Configure Yarn for plain node-modules linker + if: matrix.package-manager.name == 'yarn' + # Yarn Berry defaults to Plug'n'Play, which makes plain `require()` + # from a non-yarn-wrapped node process fail to resolve modules. Force + # the classic node-modules linker so the verify step is uniform with + # the other package managers. + run: | + echo "nodeLinker: node-modules" > test-project/.yarnrc.yml + - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager.name }} uses: ./ env: From e6024b3b5ea5b627a4af5506224c1bb1da826712 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 16:55:19 +0800 Subject: [PATCH 12/18] test(ci): merge test-sfw and test-sfw-package-managers into one matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The split was over-engineering — they test orthogonal axes (platform fallback × package-manager diversity) that compose naturally in a single matrix. Merged: os × version × package-manager with excludes so non-Linux only runs the default PM (pnpm). 12 jobs total instead of 14: - Linux × {pnpm,npm,yarn,bun} × {latest,alpha} = 8 (sfw wrap) - {macos,windows} × pnpm × {latest,alpha} = 4 (sfw fallback) Failure isolation improves too — a yellow check now reads `test-sfw (windows-latest, latest, pnpm)` so you see which exact combo broke. --- .github/workflows/test.yml | 113 ++++++++++++++----------------------- 1 file changed, 41 insertions(+), 72 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2676151..ee4e7a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -293,32 +293,63 @@ jobs: run: vp exec node -e "console.log('vp exec works in Alpine')" test-sfw: - # On Linux: sfw wraps vp install end-to-end (sfw binary downloaded, - # `sfw vp install` runs). - # On macOS / Windows: sfw is temporarily unsupported because sfw v1.10.0 - # issues a TLS cert with an empty EKU extension that vp's rustls rejects - # (UnknownIssuer). The action emits a warning and falls back to plain - # `vp install`; no sfw binary is downloaded. We assert that fallback by - # checking `sfw` is NOT on PATH while the install still succeeds. + # On Linux: sfw wraps vp install end-to-end. Verify across all package + # managers vp auto-detects via lockfile (pnpm/npm/yarn/bun). + # On macOS / Windows: sfw is temporarily unsupported; the action emits a + # warning and falls back to plain `vp install` with no sfw binary + # downloaded. We verify the fallback once per non-Linux OS using the + # default package manager (pnpm) — the PM diversity matrix is Linux-only + # because the sfw wrap is Linux-only. # Tracking: https://github.com/voidzero-dev/setup-vp/issues/73 strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] version: [latest, alpha] + package-manager: [pnpm, npm, yarn, bun] + exclude: + # Non-Linux only needs one fallback check per OS — sfw isn't + # invoked there, so PM diversity adds no coverage. + - { os: macos-latest, package-manager: npm } + - { os: macos-latest, package-manager: yarn } + - { os: macos-latest, package-manager: bun } + - { os: windows-latest, package-manager: npm } + - { os: windows-latest, package-manager: yarn } + - { os: windows-latest, package-manager: bun } runs-on: ${{ matrix.os }} steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 - - name: Create test project with a real dependency + - name: Create test project for ${{ matrix.package-manager }} shell: bash run: | + case "${{ matrix.package-manager }}" in + pnpm) LOCKFILE=pnpm-lock.yaml; CONTENTS='' ;; + npm) LOCKFILE=package-lock.json; CONTENTS='{"name":"test-project","lockfileVersion":3}' ;; + yarn) LOCKFILE=yarn.lock; CONTENTS='' ;; + bun) LOCKFILE=bun.lock; CONTENTS='' ;; + esac mkdir -p test-project cd test-project echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json + printf '%s' "$CONTENTS" > "$LOCKFILE" - - name: Setup Vite+ (${{ matrix.version }}) with sfw + - name: Configure Yarn for plain node-modules linker + if: matrix.package-manager == 'yarn' + # Yarn Berry defaults to Plug'n'Play, which makes plain `require()` + # from a non-yarn-wrapped node process fail to resolve modules. Force + # the classic node-modules linker so the verify step is uniform. + shell: bash + run: | + echo "nodeLinker: node-modules" > test-project/.yarnrc.yml + + - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager }} uses: ./ + env: + # Yarn Berry auto-enables immutable installs under CI, which makes + # the bootstrap from an empty yarn.lock fail with YN0028. Allow the + # regeneration. No-op for the other package managers. + YARN_ENABLE_IMMUTABLE_INSTALLS: "false" with: version: ${{ matrix.version }} sfw: true @@ -340,7 +371,7 @@ jobs: fi echo "OK: sfw is not on PATH; fallback to plain vp install confirmed" - - name: Verify dependency installed + - name: Verify dependency installed via ${{ matrix.package-manager }} working-directory: test-project run: vp exec node -e "console.log(require('is-odd')(3))" @@ -380,68 +411,6 @@ jobs: working-directory: test-project run: vp exec node -e "console.log(require('is-odd')(3))" - test-sfw-package-managers: - # Verify sfw wraps vp install across all package managers vp auto-detects - # via lockfile (pnpm, npm, yarn, bun). The lockfile presence tells vp - # which PM to delegate to; an empty/minimal lockfile is fine because each - # PM regenerates it on install. - # Linux only — sfw is gated to Linux until the upstream work in - # https://github.com/voidzero-dev/setup-vp/issues/73 lands. - strategy: - fail-fast: false - matrix: - version: [latest, alpha] - package-manager: - - { name: pnpm, lockfile: pnpm-lock.yaml, contents: "" } - - { - name: npm, - lockfile: package-lock.json, - contents: '{"name":"test-project","lockfileVersion":3}', - } - - { name: yarn, lockfile: yarn.lock, contents: "" } - - { name: bun, lockfile: bun.lock, contents: "" } - runs-on: ubuntu-latest - steps: - - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 - - - name: Create test project with ${{ matrix.package-manager.lockfile }} - shell: bash - run: | - mkdir -p test-project - cd test-project - echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json - printf '%s' '${{ matrix.package-manager.contents }}' > ${{ matrix.package-manager.lockfile }} - - - name: Configure Yarn for plain node-modules linker - if: matrix.package-manager.name == 'yarn' - # Yarn Berry defaults to Plug'n'Play, which makes plain `require()` - # from a non-yarn-wrapped node process fail to resolve modules. Force - # the classic node-modules linker so the verify step is uniform with - # the other package managers. - run: | - echo "nodeLinker: node-modules" > test-project/.yarnrc.yml - - - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager.name }} - uses: ./ - env: - # Yarn Berry auto-enables immutable installs under CI, which makes - # the bootstrap from an empty yarn.lock fail with YN0028. Allow the - # regeneration. No-op for the other package managers. - YARN_ENABLE_IMMUTABLE_INSTALLS: "false" - with: - version: ${{ matrix.version }} - sfw: true - run-install: | - - cwd: test-project - cache: false - - - name: Verify sfw is on PATH - run: sfw --version - - - name: Verify dependency installed under sfw via ${{ matrix.package-manager.name }} - working-directory: test-project - run: vp exec node -e "console.log(require('is-odd')(3))" - test-sfw-blocks-malicious: # Verifies sfw actually intercepts a known-malicious package, not just # that it wraps the install. Uses `lodahs` (lodash typosquat), the same From aa92f44d9b6948061dc19606091cf02bdc28f377 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 17:04:37 +0800 Subject: [PATCH 13/18] ci+docs: address code-review findings on the matrix-merge diff - case statement: add `*)` default branch so future axis additions fail loudly with a clear message instead of opaquely at the redirect. - yarn config: move `enableImmutableInstalls: false` from the action's env block into the same `.yarnrc.yml` that already sets `nodeLinker`. Survives any future env-sanitization vp might apply to spawned subprocesses. - yarn config step: add explicit `runner.os == 'Linux'` gate so a future PR that broadens cross-OS coverage doesn't accidentally run it on Windows where Yarn-Berry-on-bash has historically been flaky. - non-Linux fallback assert: check `$RUNNER_TEMP/sfw-bin/sfw[.exe]` doesn't exist (the exact path the action would have created) rather than `command -v sfw` so a runner image that pre-installs sfw globally doesn't false-fail the assertion. - isSfwSupported comment: restore the in-tree technical breadcrumb (empty-EKU + rustls) so future maintainers have context when setup-vp#73 eventually closes. --- .github/workflows/test.yml | 37 ++++++++++++++++++++++--------------- src/install-sfw.ts | 7 ++++--- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ee4e7a6..3744bf7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -328,28 +328,31 @@ jobs: npm) LOCKFILE=package-lock.json; CONTENTS='{"name":"test-project","lockfileVersion":3}' ;; yarn) LOCKFILE=yarn.lock; CONTENTS='' ;; bun) LOCKFILE=bun.lock; CONTENTS='' ;; + *) echo "Unsupported package-manager: ${{ matrix.package-manager }}" >&2; exit 1 ;; esac mkdir -p test-project cd test-project echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json printf '%s' "$CONTENTS" > "$LOCKFILE" - - name: Configure Yarn for plain node-modules linker - if: matrix.package-manager == 'yarn' - # Yarn Berry defaults to Plug'n'Play, which makes plain `require()` - # from a non-yarn-wrapped node process fail to resolve modules. Force - # the classic node-modules linker so the verify step is uniform. + - name: Configure Yarn .yarnrc.yml (Linux + yarn only) + if: matrix.package-manager == 'yarn' && runner.os == 'Linux' + # nodeLinker=node-modules: Yarn Berry defaults to Plug'n'Play, which + # makes plain `require()` from a non-yarn-wrapped node process fail. + # enableImmutableInstalls=false: Yarn Berry auto-enables immutable + # installs under CI, which makes the bootstrap from an empty + # yarn.lock fail with YN0028. Setting it here (instead of via the + # YARN_ENABLE_IMMUTABLE_INSTALLS env var) survives any future + # env-sanitization vp might apply to spawned subprocesses. shell: bash run: | - echo "nodeLinker: node-modules" > test-project/.yarnrc.yml + { + echo "nodeLinker: node-modules" + echo "enableImmutableInstalls: false" + } > test-project/.yarnrc.yml - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager }} uses: ./ - env: - # Yarn Berry auto-enables immutable installs under CI, which makes - # the bootstrap from an empty yarn.lock fail with YN0028. Allow the - # regeneration. No-op for the other package managers. - YARN_ENABLE_IMMUTABLE_INSTALLS: "false" with: version: ${{ matrix.version }} sfw: true @@ -361,15 +364,19 @@ jobs: if: runner.os == 'Linux' run: sfw --version - - name: Verify sfw fallback on non-Linux (sfw NOT installed) + - name: Verify sfw fallback on non-Linux (action did not install sfw) if: runner.os != 'Linux' shell: bash + # Check the exact path getSfwBinDir() would have created rather than + # `command -v sfw`, so a runner image that happens to ship sfw + # globally (or a leftover from a prior self-hosted job) doesn't + # false-fail this assertion. run: | - if command -v sfw >/dev/null 2>&1; then - echo "ERROR: expected sfw to be absent on ${{ runner.os }} (fallback path), but it is on PATH" + if [ -e "$RUNNER_TEMP/sfw-bin/sfw" ] || [ -e "$RUNNER_TEMP/sfw-bin/sfw.exe" ]; then + echo "ERROR: expected the action to skip the sfw download on ${{ runner.os }}, but $RUNNER_TEMP/sfw-bin/sfw[.exe] exists" exit 1 fi - echo "OK: sfw is not on PATH; fallback to plain vp install confirmed" + echo "OK: action did not install sfw; fallback to plain vp install confirmed" - name: Verify dependency installed via ${{ matrix.package-manager }} working-directory: test-project diff --git a/src/install-sfw.ts b/src/install-sfw.ts index cfccb86..30bffda 100644 --- a/src/install-sfw.ts +++ b/src/install-sfw.ts @@ -10,9 +10,10 @@ const INSTALL_RETRY_DELAY_MS = 2000; const CURL_TIMEOUT_FLAGS = "--connect-timeout 5 --max-time 60"; const PWSH_TIMEOUT_SEC = 60; -// sfw is temporarily only enabled on Linux. On macOS / Windows, `sfw vp install` -// fails the TLS handshake before sfw can inspect anything because of a stack of -// upstream issues in sfw + vp. Tracking + cleanup checklist: +// sfw is temporarily only enabled on Linux: sfw's CA cert has an empty +// Extended Key Usage extension that rustls (used by vp) rejects, so +// `sfw vp install` fails the TLS handshake on macOS / Windows before sfw can +// inspect anything. Tracking + cleanup checklist: // https://github.com/voidzero-dev/setup-vp/issues/73 export function isSfwSupported(): boolean { return process.platform === "linux"; From 381ef2bc0f0ed53676e75057eca925c6a8a38307 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 19:35:36 +0800 Subject: [PATCH 14/18] ci+src: handle PR #72 review comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses the Copilot review threads on PR #72: - action.yml: input description now documents Linux-only behavior and the macOS/Windows fallback so Marketplace/IDE listings don't imply cross-platform support. - isSfwSupported(): also returns false when getSfwAssetName can't resolve an asset for the current arch (e.g. Linux self-hosted runner on riscv64). Previously installSfw would throw; now we fall back to plain vp install like we do on macOS/Windows. - index.ts: fallback warning only fires when run-install is actually enabled — workflows that set sfw:true but install separately no longer see noise. - test-sfw-blocks-malicious: grep stdout/stderr for an sfw-specific block marker in addition to checking exit code, so npm 404 / network / vp crash can't silently masquerade as "sfw blocked it". Explicitly NOT pinning the sfw version (per maintainer guidance): keeping releases/latest so users automatically pick up upstream malware-detection updates. Added a comment explaining the tradeoff. --- .github/workflows/test.yml | 20 ++++++++++++++++---- action.yml | 2 +- dist/index.mjs | 4 ++-- src/index.ts | 6 ++++-- src/install-sfw.ts | 20 +++++++++++++++++--- 5 files changed, 40 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3744bf7..3a64826 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -453,13 +453,25 @@ jobs: - name: Assert sfw blocks malicious package (lodahs typosquat of lodash) shell: bash working-directory: test-project + # Exit code alone isn't sufficient: a non-zero exit from npm 404, + # network blip, or vp crash would also produce a false positive. We + # also require an sfw-specific block marker in the combined output + # so an unrelated failure doesn't get reported as "sfw blocked it". run: | - if sfw vp install lodahs; then - echo "ERROR: sfw failed to block lodahs (lodash typosquat)" + set +e + OUTPUT=$(sfw vp install lodahs 2>&1) + CODE=$? + set -e + printf '%s\n' "$OUTPUT" + if [ "$CODE" -eq 0 ]; then + echo "::error::sfw failed to block lodahs — install exited 0" exit 1 - else - echo "SUCCESS: sfw blocked lodahs as expected" fi + if ! printf '%s' "$OUTPUT" | grep -qiE "(socket firewall|blocked|malware|sfw)"; then + echo "::error::sfw vp install exited $CODE but no Socket Firewall marker found in output — likely failed for a non-sfw reason (canary delisted? network? vp crash?). Swap the canary if Socket has delisted lodahs." + exit 1 + fi + echo "OK: sfw blocked lodahs (exit $CODE, Socket Firewall marker present)" build: runs-on: ubuntu-latest diff --git a/action.yml b/action.yml index 044964b..99e77ba 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ inputs: required: false default: "true" sfw: - description: "Wrap `vp install` with Socket Firewall Free (sfw) to block malicious dependency fetches. Downloads the sfw binary from https://github.com/SocketDev/sfw-free/releases. See https://docs.socket.dev/docs/socket-firewall-free." + description: "Wrap `vp install` with Socket Firewall Free (sfw) to block malicious dependency fetches. Currently Linux-only: on macOS/Windows the action emits a warning and falls back to plain `vp install` (no sfw binary downloaded). Tracking: https://github.com/voidzero-dev/setup-vp/issues/73. See also https://docs.socket.dev/docs/socket-firewall-free." required: false default: "false" node-version: diff --git a/dist/index.mjs b/dist/index.mjs index 0cf6f08..feff4e0 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -190,7 +190,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ea,s=!fa.jitless,c=s&&Da.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Bs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Us(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Va(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ga(e,r,pa())))}),t)}const Ws=z(`$ZodUnion`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),ba(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),ba(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),ba(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>va(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Us(t,r,e,i)):Us(o,r,e,i)}}),Gs=z(`$ZodIntersection`,(e,t)=>{rs.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>qs(e,t,n)):qs(e,i,a)}});function Ks(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Oa(e)&&Oa(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ks(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Va(e))return e;let o=Ks(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Js=z(`$ZodEnum`,(e,t)=>{rs.init(e,t);let n=ma(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Aa.has(typeof e)).map(e=>typeof e==`string`?ja(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ys=z(`$ZodTransform`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ua;return n.value=i,n.fallback=!0,n}});function Xs(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Zs=z(`$ZodOptional`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Xs(e,r)):Xs(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Qs=z(`$ZodExactOptional`,(e,t)=>{Zs.init(e,t),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),$s=z(`$ZodNullable`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.innerType._zod.optin),ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)}|null)$`):void 0}),ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ec=z(`$ZodDefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>tc(e,t)):tc(r,t)}});function tc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const nc=z(`$ZodPrefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),rc=z(`$ZodNonOptional`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ic(t,e)):ic(i,e)}});function ic(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const ac=z(`$ZodCatch`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),oc=z(`$ZodPipe`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>t.in._zod.values),ba(e._zod,`optin`,()=>t.in._zod.optin),ba(e._zod,`optout`,()=>t.out._zod.optout),ba(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.in,n)):sc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.out,n)):sc(r,t.out,n)}});function sc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const cc=z(`$ZodReadonly`,(e,t)=>{rs.init(e,t),ba(e._zod,`propValues`,()=>t.innerType._zod.propValues),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`optin`,()=>t.innerType?._zod?.optin),ba(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(lc):lc(r)}});function lc(e){return e.value=Object.freeze(e.value),e}const uc=z(`$ZodCustom`,(e,t)=>{Uo.init(e,t),rs.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>dc(t,n,r,e));dc(i,n,r,e)}});function dc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(qa(e))}}var fc,pc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function mc(){return new pc}(fc=globalThis).__zod_globalRegistry??(fc.__zod_globalRegistry=mc());const hc=globalThis.__zod_globalRegistry;function gc(e,t){return new e({type:`string`,...B(t)})}function _c(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...B(t)})}function vc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...B(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...B(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...B(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...B(t)})}function Sc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...B(t)})}function Cc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...B(t)})}function wc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...B(t)})}function Tc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...B(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...B(t)})}function Dc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...B(t)})}function Oc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...B(t)})}function kc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...B(t)})}function Ac(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...B(t)})}function jc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...B(t)})}function Mc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...B(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...B(t)})}function Pc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...B(t)})}function Fc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...B(t)})}function Ic(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...B(t)})}function Lc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...B(t)})}function Rc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...B(t)})}function zc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...B(t)})}function Bc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...B(t)})}function Vc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...B(t)})}function Hc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...B(t)})}function Uc(e,t){return new e({type:`boolean`,...B(t)})}function Wc(e,t){return new e({type:`null`,...B(t)})}function Gc(e){return new e({type:`unknown`})}function Kc(e,t){return new e({type:`never`,...B(t)})}function qc(e,t){return new Wo({check:`max_length`,...B(t),maximum:e})}function Jc(e,t){return new Go({check:`min_length`,...B(t),minimum:e})}function Yc(e,t){return new Ko({check:`length_equals`,...B(t),length:e})}function Xc(e,t){return new Jo({check:`string_format`,format:`regex`,...B(t),pattern:e})}function Zc(e){return new Yo({check:`string_format`,format:`lowercase`,...B(e)})}function Qc(e){return new Xo({check:`string_format`,format:`uppercase`,...B(e)})}function $c(e,t){return new Zo({check:`string_format`,format:`includes`,...B(t),includes:e})}function el(e,t){return new Qo({check:`string_format`,format:`starts_with`,...B(t),prefix:e})}function tl(e,t){return new $o({check:`string_format`,format:`ends_with`,...B(t),suffix:e})}function nl(e){return new es({check:`overwrite`,tx:e})}function rl(e){return nl(t=>t.normalize(e))}function il(){return nl(e=>e.trim())}function al(){return nl(e=>e.toLowerCase())}function ol(){return nl(e=>e.toUpperCase())}function sl(){return nl(e=>wa(e))}function cl(e,t,n){return new e({type:`array`,element:t,...B(n)})}function ll(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...B(n)})}function ul(e,t){let n=dl(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(qa(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(qa(r))}},e(t.value,t)),t);return n}function dl(e,t){let n=new Uo({check:`custom`,...B(t)});return n._zod.check=e,n}function fl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??hc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function pl(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,pl(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&gl(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ml(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vl(t,`input`,e.processors),output:vl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function gl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return gl(r.element,n);if(r.type===`set`)return gl(r.valueType,n);if(r.type===`lazy`)return gl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return gl(r.innerType,n);if(r.type===`intersection`)return gl(r.left,n)||gl(r.right,n);if(r.type===`record`||r.type===`map`)return gl(r.keyType,n)||gl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:gl(r.in,n)||gl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(gl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(gl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(gl(e,n))return!0;return!!(r.rest&&gl(r.rest,n))}return!1}const _l=(e,t={})=>n=>{let r=fl({...n,processors:t});return pl(e,r),ml(r,e),hl(r,e)},vl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=fl({...i??{},target:a,io:t,processors:n});return pl(e,o),ml(o,e),hl(o,e)},yl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xl=(e,t,n,r)=>{n.type=`boolean`},Sl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Cl=(e,t,n,r)=>{n.not={}},wl=(e,t,n,r)=>{let i=e._zod.def,a=ma(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pl(a.element,t,{...r,path:[...r.path,`items`]})},Ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=pl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Al=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},jl=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ml=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Pl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Il=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;pl(o,t,r);let s=t.seen.get(e);s.ref=o},Ll=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Rl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},zl=z(`ZodISODateTime`,(e,t)=>{_s.init(e,t),mu.init(e,t)});function Bl(e){return zc(zl,e)}const Vl=z(`ZodISODate`,(e,t)=>{vs.init(e,t),mu.init(e,t)});function Hl(e){return Bc(Vl,e)}const Ul=z(`ZodISOTime`,(e,t)=>{ys.init(e,t),mu.init(e,t)});function Wl(e){return Vc(Ul,e)}const Gl=z(`ZodISODuration`,(e,t)=>{bs.init(e,t),mu.init(e,t)});function Kl(e){return Hc(Gl,e)}const ql=(e,t)=>{Ya.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qa(e,t)},flatten:{value:t=>Za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ha,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ha,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jl=z(`ZodError`,ql),Yl=z(`ZodError`,ql,{Parent:Error}),Xl=$a(Yl),Zl=eo(Yl),Ql=to(Yl),$l=ro(Yl),eu=ao(Yl),tu=oo(Yl),nu=so(Yl),ru=co(Yl),iu=lo(Yl),au=uo(Yl),ou=fo(Yl),su=po(Yl),cu=new WeakMap;function lu(e,t,n){let r=Object.getPrototypeOf(e),i=cu.get(r);if(i||(i=new Set,cu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const uu=z(`ZodType`,(e,t)=>(rs.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vl(e,`input`),output:vl(e,`output`)}}),e.toJSONSchema=_l(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Xl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>Zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$l(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eu(e,t,n),e.decode=(t,n)=>tu(e,t,n),e.encodeAsync=async(t,n)=>nu(e,t,n),e.decodeAsync=async(t,n)=>ru(e,t,n),e.safeEncode=(t,n)=>iu(e,t,n),e.safeDecode=(t,n)=>au(e,t,n),e.safeEncodeAsync=async(t,n)=>ou(e,t,n),e.safeDecodeAsync=async(t,n)=>su(e,t,n),lu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Sa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ma(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(yd(e,t))},superRefine(e,t){return this.check(bd(e,t))},overwrite(e){return this.check(nl(e))},optional(){return td(this)},exactOptional(){return rd(this)},nullable(){return ad(this)},nullish(){return td(ad(this))},nonoptional(e){return dd(this,e)},array(){return Uu(this)},or(e){return qu([this,e])},and(e){return Yu(this,e)},transform(e){return hd(this,$u(e))},default(e){return sd(this,e)},prefault(e){return ld(this,e)},catch(e){return pd(this,e)},pipe(e){return hd(this,e)},readonly(){return _d(this)},describe(e){let t=this.clone();return hc.add(t,{description:e}),t},meta(...e){if(e.length===0)return hc.get(this);let t=this.clone();return hc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return hc.get(e)?.description},configurable:!0}),e)),du=z(`_ZodString`,(e,t)=>{is.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,lu(e,`_ZodString`,{regex(...e){return this.check(Xc(...e))},includes(...e){return this.check($c(...e))},startsWith(...e){return this.check(el(...e))},endsWith(...e){return this.check(tl(...e))},min(...e){return this.check(Jc(...e))},max(...e){return this.check(qc(...e))},length(...e){return this.check(Yc(...e))},nonempty(...e){return this.check(Jc(1,...e))},lowercase(e){return this.check(Zc(e))},uppercase(e){return this.check(Qc(e))},trim(){return this.check(il())},normalize(...e){return this.check(rl(...e))},toLowerCase(){return this.check(al())},toUpperCase(){return this.check(ol())},slugify(){return this.check(sl())}})}),fu=z(`ZodString`,(e,t)=>{is.init(e,t),du.init(e,t),e.email=t=>e.check(_c(hu,t)),e.url=t=>e.check(Cc(vu,t)),e.jwt=t=>e.check(Rc(Nu,t)),e.emoji=t=>e.check(wc(yu,t)),e.guid=t=>e.check(vc(gu,t)),e.uuid=t=>e.check(yc(_u,t)),e.uuidv4=t=>e.check(bc(_u,t)),e.uuidv6=t=>e.check(xc(_u,t)),e.uuidv7=t=>e.check(Sc(_u,t)),e.nanoid=t=>e.check(Tc(bu,t)),e.guid=t=>e.check(vc(gu,t)),e.cuid=t=>e.check(Ec(xu,t)),e.cuid2=t=>e.check(Dc(Su,t)),e.ulid=t=>e.check(Oc(Cu,t)),e.base64=t=>e.check(Fc(Au,t)),e.base64url=t=>e.check(Ic(ju,t)),e.xid=t=>e.check(kc(wu,t)),e.ksuid=t=>e.check(Ac(Tu,t)),e.ipv4=t=>e.check(jc(Eu,t)),e.ipv6=t=>e.check(Mc(Du,t)),e.cidrv4=t=>e.check(Nc(Ou,t)),e.cidrv6=t=>e.check(Pc(ku,t)),e.e164=t=>e.check(Lc(Mu,t)),e.datetime=t=>e.check(Bl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Wl(t)),e.duration=t=>e.check(Kl(t))});function pu(e){return gc(fu,e)}const mu=z(`ZodStringFormat`,(e,t)=>{as.init(e,t),du.init(e,t)}),hu=z(`ZodEmail`,(e,t)=>{cs.init(e,t),mu.init(e,t)}),gu=z(`ZodGUID`,(e,t)=>{os.init(e,t),mu.init(e,t)}),_u=z(`ZodUUID`,(e,t)=>{ss.init(e,t),mu.init(e,t)}),vu=z(`ZodURL`,(e,t)=>{ls.init(e,t),mu.init(e,t)}),yu=z(`ZodEmoji`,(e,t)=>{us.init(e,t),mu.init(e,t)}),bu=z(`ZodNanoID`,(e,t)=>{ds.init(e,t),mu.init(e,t)}),xu=z(`ZodCUID`,(e,t)=>{fs.init(e,t),mu.init(e,t)}),Su=z(`ZodCUID2`,(e,t)=>{ps.init(e,t),mu.init(e,t)}),Cu=z(`ZodULID`,(e,t)=>{ms.init(e,t),mu.init(e,t)}),wu=z(`ZodXID`,(e,t)=>{hs.init(e,t),mu.init(e,t)}),Tu=z(`ZodKSUID`,(e,t)=>{gs.init(e,t),mu.init(e,t)}),Eu=z(`ZodIPv4`,(e,t)=>{xs.init(e,t),mu.init(e,t)}),Du=z(`ZodIPv6`,(e,t)=>{Ss.init(e,t),mu.init(e,t)}),Ou=z(`ZodCIDRv4`,(e,t)=>{Cs.init(e,t),mu.init(e,t)}),ku=z(`ZodCIDRv6`,(e,t)=>{ws.init(e,t),mu.init(e,t)}),Au=z(`ZodBase64`,(e,t)=>{Es.init(e,t),mu.init(e,t)}),ju=z(`ZodBase64URL`,(e,t)=>{Os.init(e,t),mu.init(e,t)}),Mu=z(`ZodE164`,(e,t)=>{ks.init(e,t),mu.init(e,t)}),Nu=z(`ZodJWT`,(e,t)=>{js.init(e,t),mu.init(e,t)}),Pu=z(`ZodBoolean`,(e,t)=>{Ms.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Fu(e){return Uc(Pu,e)}const Iu=z(`ZodNull`,(e,t)=>{Ns.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Lu(e){return Wc(Iu,e)}const Ru=z(`ZodUnknown`,(e,t)=>{Ps.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zu(){return Gc(Ru)}const Bu=z(`ZodNever`,(e,t)=>{Fs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function Vu(e){return Kc(Bu,e)}const Hu=z(`ZodArray`,(e,t)=>{Ls.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.element=t.element,lu(e,`ZodArray`,{min(e,t){return this.check(Jc(e,t))},nonempty(e){return this.check(Jc(1,e))},max(e,t){return this.check(qc(e,t))},length(e,t){return this.check(Yc(e,t))},unwrap(){return this.element}})});function Uu(e,t){return cl(Hu,e,t)}const Wu=z(`ZodObject`,(e,t)=>{Hs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),ba(e,`shape`,()=>t.shape),lu(e,`ZodObject`,{keyof(){return Zu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:zu()})},loose(){return this.clone({...this._zod.def,catchall:zu()})},strict(){return this.clone({...this._zod.def,catchall:Vu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ia(this,e)},safeExtend(e){return La(this,e)},merge(e){return Ra(this,e)},pick(e){return Pa(this,e)},omit(e){return Fa(this,e)},partial(...e){return za(ed,this,e[0])},required(...e){return Ba(ud,this,e[0])}})});function Gu(e,t){return new Wu({type:`object`,shape:e??{},...B(t)})}const Ku=z(`ZodUnion`,(e,t)=>{Ws.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.options=t.options});function qu(e,t){return new Ku({type:`union`,options:e,...B(t)})}const Ju=z(`ZodIntersection`,(e,t)=>{Gs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Yu(e,t){return new Ju({type:`intersection`,left:e,right:t})}const Xu=z(`ZodEnum`,(e,t)=>{Js.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})}});function Zu(e,t){return new Xu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Qu=z(`ZodTransform`,(e,t)=>{Ys.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new Qu({type:`transform`,transform:e})}const ed=z(`ZodOptional`,(e,t)=>{Zs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodExactOptional`,(e,t)=>{Qs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`optional`,innerType:e})}const id=z(`ZodNullable`,(e,t)=>{$s.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new id({type:`nullable`,innerType:e})}const od=z(`ZodDefault`,(e,t)=>{ec.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sd(e,t){return new od({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const cd=z(`ZodPrefault`,(e,t)=>{nc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const ud=z(`ZodNonOptional`,(e,t)=>{rc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dd(e,t){return new ud({type:`nonoptional`,innerType:e,...B(t)})}const fd=z(`ZodCatch`,(e,t)=>{ac.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pd(e,t){return new fd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const md=z(`ZodPipe`,(e,t)=>{oc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.in=t.in,e.out=t.out});function hd(e,t){return new md({type:`pipe`,in:e,out:t})}const gd=z(`ZodReadonly`,(e,t)=>{cc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new gd({type:`readonly`,innerType:e})}const vd=z(`ZodCustom`,(e,t)=>{uc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r)});function yd(e,t={}){return ll(vd,e,t)}function bd(e,t){return ul(e,t)}var xd=ca();const Sd=Gu({cwd:pu().optional(),args:Uu(pu()).optional()}),Cd=qu([Lu(),Fu(),Sd,Uu(Sd)]),wd=`Vite+`;function Td(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Ed(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Ed(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,xd.parse)(e);try{let e=Cd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Jl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Dd(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Od(){return process.env.GITHUB_WORKSPACE||process.cwd()}function kd(e,t){return ee(e)?e:N(t,e)}function Ad(e){if(!e.workingDirectory)return Od();let t=kd(e.workingDirectory,Od());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function jd(e,t){return t?kd(t,e):e}const Md=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Nd(e,t=Od()){if(e){let n=kd(e,t);if(ae(n)){let e=j(n),t=Md.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Pd(n,e)}return}let n=ce(t);for(let e of Md)if(n.includes(e.filename)){let n=N(t,e.filename);return Br(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Pd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Fd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Ld(t);default:return[]}}async function Id(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Ld(e){let t=await Id(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Rd=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],zd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Bd=2e3;async function Vd(e){let{version:t}=e;Br(`Installing ${wd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?zd:Rd,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Hd(e,n);if(t===0){Ud();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=lf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=lf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=tf(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=tf(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function df(e,t){let n=cf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function ff(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var pf=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),hf=P(((e,t)=>{var n=pf(),r=mf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=hf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b1&&e.reused===`ref`){a(n);continue}}}function hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vl(t,`input`,e.processors),output:vl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function gl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return gl(r.element,n);if(r.type===`set`)return gl(r.valueType,n);if(r.type===`lazy`)return gl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return gl(r.innerType,n);if(r.type===`intersection`)return gl(r.left,n)||gl(r.right,n);if(r.type===`record`||r.type===`map`)return gl(r.keyType,n)||gl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:gl(r.in,n)||gl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(gl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(gl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(gl(e,n))return!0;return!!(r.rest&&gl(r.rest,n))}return!1}const _l=(e,t={})=>n=>{let r=fl({...n,processors:t});return pl(e,r),ml(r,e),hl(r,e)},vl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=fl({...i??{},target:a,io:t,processors:n});return pl(e,o),ml(o,e),hl(o,e)},yl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xl=(e,t,n,r)=>{n.type=`boolean`},Sl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Cl=(e,t,n,r)=>{n.not={}},wl=(e,t,n,r)=>{let i=e._zod.def,a=ma(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pl(a.element,t,{...r,path:[...r.path,`items`]})},Ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=pl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Al=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},jl=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ml=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Pl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Il=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;pl(o,t,r);let s=t.seen.get(e);s.ref=o},Ll=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Rl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},zl=z(`ZodISODateTime`,(e,t)=>{_s.init(e,t),mu.init(e,t)});function Bl(e){return zc(zl,e)}const Vl=z(`ZodISODate`,(e,t)=>{vs.init(e,t),mu.init(e,t)});function Hl(e){return Bc(Vl,e)}const Ul=z(`ZodISOTime`,(e,t)=>{ys.init(e,t),mu.init(e,t)});function Wl(e){return Vc(Ul,e)}const Gl=z(`ZodISODuration`,(e,t)=>{bs.init(e,t),mu.init(e,t)});function Kl(e){return Hc(Gl,e)}const ql=(e,t)=>{Ya.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qa(e,t)},flatten:{value:t=>Za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ha,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ha,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jl=z(`ZodError`,ql),Yl=z(`ZodError`,ql,{Parent:Error}),Xl=$a(Yl),Zl=eo(Yl),Ql=to(Yl),$l=ro(Yl),eu=ao(Yl),tu=oo(Yl),nu=so(Yl),ru=co(Yl),iu=lo(Yl),au=uo(Yl),ou=fo(Yl),su=po(Yl),cu=new WeakMap;function lu(e,t,n){let r=Object.getPrototypeOf(e),i=cu.get(r);if(i||(i=new Set,cu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const uu=z(`ZodType`,(e,t)=>(rs.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vl(e,`input`),output:vl(e,`output`)}}),e.toJSONSchema=_l(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Xl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>Zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$l(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eu(e,t,n),e.decode=(t,n)=>tu(e,t,n),e.encodeAsync=async(t,n)=>nu(e,t,n),e.decodeAsync=async(t,n)=>ru(e,t,n),e.safeEncode=(t,n)=>iu(e,t,n),e.safeDecode=(t,n)=>au(e,t,n),e.safeEncodeAsync=async(t,n)=>ou(e,t,n),e.safeDecodeAsync=async(t,n)=>su(e,t,n),lu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Sa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ma(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(yd(e,t))},superRefine(e,t){return this.check(bd(e,t))},overwrite(e){return this.check(nl(e))},optional(){return td(this)},exactOptional(){return rd(this)},nullable(){return ad(this)},nullish(){return td(ad(this))},nonoptional(e){return dd(this,e)},array(){return Uu(this)},or(e){return qu([this,e])},and(e){return Yu(this,e)},transform(e){return hd(this,$u(e))},default(e){return sd(this,e)},prefault(e){return ld(this,e)},catch(e){return pd(this,e)},pipe(e){return hd(this,e)},readonly(){return _d(this)},describe(e){let t=this.clone();return hc.add(t,{description:e}),t},meta(...e){if(e.length===0)return hc.get(this);let t=this.clone();return hc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return hc.get(e)?.description},configurable:!0}),e)),du=z(`_ZodString`,(e,t)=>{is.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,lu(e,`_ZodString`,{regex(...e){return this.check(Xc(...e))},includes(...e){return this.check($c(...e))},startsWith(...e){return this.check(el(...e))},endsWith(...e){return this.check(tl(...e))},min(...e){return this.check(Jc(...e))},max(...e){return this.check(qc(...e))},length(...e){return this.check(Yc(...e))},nonempty(...e){return this.check(Jc(1,...e))},lowercase(e){return this.check(Zc(e))},uppercase(e){return this.check(Qc(e))},trim(){return this.check(il())},normalize(...e){return this.check(rl(...e))},toLowerCase(){return this.check(al())},toUpperCase(){return this.check(ol())},slugify(){return this.check(sl())}})}),fu=z(`ZodString`,(e,t)=>{is.init(e,t),du.init(e,t),e.email=t=>e.check(_c(hu,t)),e.url=t=>e.check(Cc(vu,t)),e.jwt=t=>e.check(Rc(Nu,t)),e.emoji=t=>e.check(wc(yu,t)),e.guid=t=>e.check(vc(gu,t)),e.uuid=t=>e.check(yc(_u,t)),e.uuidv4=t=>e.check(bc(_u,t)),e.uuidv6=t=>e.check(xc(_u,t)),e.uuidv7=t=>e.check(Sc(_u,t)),e.nanoid=t=>e.check(Tc(bu,t)),e.guid=t=>e.check(vc(gu,t)),e.cuid=t=>e.check(Ec(xu,t)),e.cuid2=t=>e.check(Dc(Su,t)),e.ulid=t=>e.check(Oc(Cu,t)),e.base64=t=>e.check(Fc(Au,t)),e.base64url=t=>e.check(Ic(ju,t)),e.xid=t=>e.check(kc(wu,t)),e.ksuid=t=>e.check(Ac(Tu,t)),e.ipv4=t=>e.check(jc(Eu,t)),e.ipv6=t=>e.check(Mc(Du,t)),e.cidrv4=t=>e.check(Nc(Ou,t)),e.cidrv6=t=>e.check(Pc(ku,t)),e.e164=t=>e.check(Lc(Mu,t)),e.datetime=t=>e.check(Bl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Wl(t)),e.duration=t=>e.check(Kl(t))});function pu(e){return gc(fu,e)}const mu=z(`ZodStringFormat`,(e,t)=>{as.init(e,t),du.init(e,t)}),hu=z(`ZodEmail`,(e,t)=>{cs.init(e,t),mu.init(e,t)}),gu=z(`ZodGUID`,(e,t)=>{os.init(e,t),mu.init(e,t)}),_u=z(`ZodUUID`,(e,t)=>{ss.init(e,t),mu.init(e,t)}),vu=z(`ZodURL`,(e,t)=>{ls.init(e,t),mu.init(e,t)}),yu=z(`ZodEmoji`,(e,t)=>{us.init(e,t),mu.init(e,t)}),bu=z(`ZodNanoID`,(e,t)=>{ds.init(e,t),mu.init(e,t)}),xu=z(`ZodCUID`,(e,t)=>{fs.init(e,t),mu.init(e,t)}),Su=z(`ZodCUID2`,(e,t)=>{ps.init(e,t),mu.init(e,t)}),Cu=z(`ZodULID`,(e,t)=>{ms.init(e,t),mu.init(e,t)}),wu=z(`ZodXID`,(e,t)=>{hs.init(e,t),mu.init(e,t)}),Tu=z(`ZodKSUID`,(e,t)=>{gs.init(e,t),mu.init(e,t)}),Eu=z(`ZodIPv4`,(e,t)=>{xs.init(e,t),mu.init(e,t)}),Du=z(`ZodIPv6`,(e,t)=>{Ss.init(e,t),mu.init(e,t)}),Ou=z(`ZodCIDRv4`,(e,t)=>{Cs.init(e,t),mu.init(e,t)}),ku=z(`ZodCIDRv6`,(e,t)=>{ws.init(e,t),mu.init(e,t)}),Au=z(`ZodBase64`,(e,t)=>{Es.init(e,t),mu.init(e,t)}),ju=z(`ZodBase64URL`,(e,t)=>{Os.init(e,t),mu.init(e,t)}),Mu=z(`ZodE164`,(e,t)=>{ks.init(e,t),mu.init(e,t)}),Nu=z(`ZodJWT`,(e,t)=>{js.init(e,t),mu.init(e,t)}),Pu=z(`ZodBoolean`,(e,t)=>{Ms.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Fu(e){return Uc(Pu,e)}const Iu=z(`ZodNull`,(e,t)=>{Ns.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Lu(e){return Wc(Iu,e)}const Ru=z(`ZodUnknown`,(e,t)=>{Ps.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zu(){return Gc(Ru)}const Bu=z(`ZodNever`,(e,t)=>{Fs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function Vu(e){return Kc(Bu,e)}const Hu=z(`ZodArray`,(e,t)=>{Ls.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.element=t.element,lu(e,`ZodArray`,{min(e,t){return this.check(Jc(e,t))},nonempty(e){return this.check(Jc(1,e))},max(e,t){return this.check(qc(e,t))},length(e,t){return this.check(Yc(e,t))},unwrap(){return this.element}})});function Uu(e,t){return cl(Hu,e,t)}const Wu=z(`ZodObject`,(e,t)=>{Hs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),ba(e,`shape`,()=>t.shape),lu(e,`ZodObject`,{keyof(){return Zu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:zu()})},loose(){return this.clone({...this._zod.def,catchall:zu()})},strict(){return this.clone({...this._zod.def,catchall:Vu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ia(this,e)},safeExtend(e){return La(this,e)},merge(e){return Ra(this,e)},pick(e){return Pa(this,e)},omit(e){return Fa(this,e)},partial(...e){return za(ed,this,e[0])},required(...e){return Ba(ud,this,e[0])}})});function Gu(e,t){return new Wu({type:`object`,shape:e??{},...B(t)})}const Ku=z(`ZodUnion`,(e,t)=>{Ws.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.options=t.options});function qu(e,t){return new Ku({type:`union`,options:e,...B(t)})}const Ju=z(`ZodIntersection`,(e,t)=>{Gs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Yu(e,t){return new Ju({type:`intersection`,left:e,right:t})}const Xu=z(`ZodEnum`,(e,t)=>{Js.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})}});function Zu(e,t){return new Xu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Qu=z(`ZodTransform`,(e,t)=>{Ys.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new Qu({type:`transform`,transform:e})}const ed=z(`ZodOptional`,(e,t)=>{Zs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodExactOptional`,(e,t)=>{Qs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`optional`,innerType:e})}const id=z(`ZodNullable`,(e,t)=>{$s.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new id({type:`nullable`,innerType:e})}const od=z(`ZodDefault`,(e,t)=>{ec.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sd(e,t){return new od({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const cd=z(`ZodPrefault`,(e,t)=>{nc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const ud=z(`ZodNonOptional`,(e,t)=>{rc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dd(e,t){return new ud({type:`nonoptional`,innerType:e,...B(t)})}const fd=z(`ZodCatch`,(e,t)=>{ac.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pd(e,t){return new fd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const md=z(`ZodPipe`,(e,t)=>{oc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.in=t.in,e.out=t.out});function hd(e,t){return new md({type:`pipe`,in:e,out:t})}const gd=z(`ZodReadonly`,(e,t)=>{cc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new gd({type:`readonly`,innerType:e})}const vd=z(`ZodCustom`,(e,t)=>{uc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r)});function yd(e,t={}){return ll(vd,e,t)}function bd(e,t){return ul(e,t)}var xd=ca();const Sd=Gu({cwd:pu().optional(),args:Uu(pu()).optional()}),Cd=qu([Lu(),Fu(),Sd,Uu(Sd)]),wd=`Vite+`;function Td(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Ed(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Ed(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,xd.parse)(e);try{let e=Cd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Jl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Dd(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Od(){return process.env.GITHUB_WORKSPACE||process.cwd()}function kd(e,t){return ee(e)?e:N(t,e)}function Ad(e){if(!e.workingDirectory)return Od();let t=kd(e.workingDirectory,Od());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function jd(e,t){return t?kd(t,e):e}const Md=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Nd(e,t=Od()){if(e){let n=kd(e,t);if(ae(n)){let e=j(n),t=Md.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Pd(n,e)}return}let n=ce(t);for(let e of Md)if(n.includes(e.filename)){let n=N(t,e.filename);return Br(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Pd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Fd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Ld(t);default:return[]}}async function Id(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Ld(e){let t=await Id(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Rd=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],zd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Bd=2e3;async function Vd(e){let{version:t}=e;Br(`Installing ${wd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?zd:Rd,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Hd(e,n);if(t===0){Ud();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=lf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=lf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=tf(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=tf(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function df(e,t){let n=cf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function ff(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var pf=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),hf=P(((e,t)=>{var n=pf(),r=mf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=hf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new vf(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),bf?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:bf,nocomment:!0,noext:!0,nonegate:!0};a=bf?a.replace(/\\/g,`/`):a,this.minimatch=new yf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=of(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=sf(e),this.minimatch.match(e)?this.trailingSeparator?cf.Directory:cf.All:cf.None}partialMatch(e){return e=sf(e),tf(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(bf?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(bf?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new vf(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!af(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=of(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(rf(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(bf&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=nf(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(bf&&(n===`\\`||n.match(/^\\[^\\]/))){let t=nf(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=nf(e.globEscape(process.cwd()),n);return of(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},Sf=class{constructor(e,t){this.path=e,this.level=t}},Cf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},wf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},Tf=function(e){return this instanceof Tf?(this.v=e,this):new Tf(e)},Ef=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Tf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Df=process.platform===`win32`;var Of=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=$d(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Cf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=wf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Ef(this,arguments,function*(){let t=$d(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new xf(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of uf(n)){R(`Search path '${e}'`);try{yield Tf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new Sf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=df(n,o.path),c=!!s||ff(n,o.path);if(!s&&!c)continue;let l=yield Tf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&cf.Directory&&t.matchDirectories)yield yield Tf(o.path);else if(!c)continue;let e=o.level+1,n=(yield Tf(a.promises.readdir(o.path))).map(t=>new Sf(u.join(o.path,t),e));r.push(...n.reverse())}else s&cf.File&&(yield yield Tf(o.path))}})}static create(t,n){return Cf(this,void 0,void 0,function*(){let r=new e(n);Df&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` @@ -236,4 +236,4 @@ More info on storage limits: https://docs.github.com/en/billing/managing-billing `));let i=t.split(` `).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new uI(e));return r.searchPaths.push(...kP(r.patterns)),r})}static stat(e,t,n){return fI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},vI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},yI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function bI(e,t){return vI(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Br:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=yI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var xI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function SI(e,t){return xI(this,void 0,void 0,function*(){return yield _I.create(e,t)})}function CI(e){return xI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),bI(yield SI(e,{followSymbolicLinks:i}),t,r)})}async function wI(e){let t=Ad(e),n=Nd(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}Br(`Using lock file: ${n.path}`);let r=M(n.path);Br(`Resolving dependency cache directory in: ${r}`);let i=await Fd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Ur(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await CI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Ur(`CACHE_PRIMARY_KEY`,c);let u=await pP(i,c,l);u?(Br(`Cache restored from key: ${u}`),Ur(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(Br(`Cache not found`),Fr(`cache-hit`,!1))}async function TI(){let e=Wr(`CACHE_PRIMARY_KEY`),t=Wr(`CACHE_MATCHED_KEY`),n=Wr(`CACHE_PATHS`);if(!e){Br(`No cache key found. Skipping cache save.`);return}if(!n){Br(`No cache paths found. Skipping cache save.`);return}if(e===t){Br(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Br(`Empty cache paths. Skipping cache save.`);return}try{if(await gP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}Br(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function EI(e,t){let n=kd(e,t||Od()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?kI(r):i===`package.json`?jI(r):DI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Br(`Resolved Node.js version '${a}' from ${e}`),a}function DI(e){for(let t of e.split(` `)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return OI(e)}}function OI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function kI(e){for(let t of e.split(` -`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;e.sfw&&!Gd()&&(zr(`sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`),r=!1),r&&e.runInstall.length>0&&await Yd(),e.runInstall.length>0&&await Qd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=Td();Wr(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file +`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;e.sfw&&e.runInstall.length>0&&!Gd()&&(zr(`sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`),r=!1),r&&e.runInstall.length>0&&await Yd(),e.runInstall.length>0&&await Qd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=Td();Wr(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 257939a..32e2ed5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -46,9 +46,11 @@ async function runMain(inputs: Inputs): Promise { // Step 6: Install Socket Firewall Free if requested (must run before vp install). // On non-Linux platforms, sfw is temporarily unsupported (see isSfwSupported) - // and we fall back to plain `vp install` with a warning. + // and we fall back to plain `vp install` with a warning. Only emit the + // warning / override when run-install is enabled — otherwise sfw wouldn't be + // invoked anyway and the message is just noise. let effectiveSfw = inputs.sfw; - if (inputs.sfw && !isSfwSupported()) { + if (inputs.sfw && inputs.runInstall.length > 0 && !isSfwSupported()) { warning( `sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`, ); diff --git a/src/install-sfw.ts b/src/install-sfw.ts index 30bffda..889d3aa 100644 --- a/src/install-sfw.ts +++ b/src/install-sfw.ts @@ -4,6 +4,12 @@ import { chmodSync, existsSync, mkdirSync } from "node:fs"; import { join } from "node:path"; import { setTimeout as sleep } from "node:timers/promises"; +// Track upstream's latest tagged release rather than pinning a specific +// version: sfw is an actively-evolving security tool and a pinned version +// would freeze users on a release the moment a malware-detection update +// shipped upstream. The corresponding risk is reproducibility — a re-run +// of the same commit may pick up a newer sfw — which is a tradeoff we +// accept for now. const SFW_RELEASE_BASE = "https://github.com/SocketDev/sfw-free/releases/latest/download"; const INSTALL_MAX_ROUNDS = 2; const INSTALL_RETRY_DELAY_MS = 2000; @@ -13,10 +19,18 @@ const PWSH_TIMEOUT_SEC = 60; // sfw is temporarily only enabled on Linux: sfw's CA cert has an empty // Extended Key Usage extension that rustls (used by vp) rejects, so // `sfw vp install` fails the TLS handshake on macOS / Windows before sfw can -// inspect anything. Tracking + cleanup checklist: -// https://github.com/voidzero-dev/setup-vp/issues/73 +// inspect anything. We also fall back when no sfw asset exists for the +// runner's arch (e.g., riscv64, ppc64 self-hosted Linux runners), so the +// action degrades gracefully instead of throwing. Tracking + cleanup +// checklist: https://github.com/voidzero-dev/setup-vp/issues/73 export function isSfwSupported(): boolean { - return process.platform === "linux"; + if (process.platform !== "linux") return false; + try { + getSfwAssetName(process.platform, process.arch, isMuslLinux()); + return true; + } catch { + return false; + } } export function isMuslLinux(): boolean { From 2e0144f457d07400408da88a4aa17f3abbc3d76c Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 19:39:08 +0800 Subject: [PATCH 15/18] ci: only test latest vp release in test-sfw matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop the [latest, alpha] axis from test-sfw — sfw is decoupled from vp's release channel, and the OS × package-manager matrix is already 6 cells. Other test jobs (test, test-node-version, test-cache-*) still cover the alpha channel for vp itself. Cuts test-sfw from 12 jobs to 6. --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a64826..066f422 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -304,8 +304,13 @@ jobs: strategy: fail-fast: false matrix: + # Only the latest vp release here — the OS × package-manager matrix + # is already large (4 PMs × 3 OSes with excludes = 6 cells), and the + # sfw wrap is decoupled from vp's release channel. Other test jobs + # (test-cache-*, test-node-version, etc.) still cover the alpha + # channel for vp itself. + version: [latest] os: [ubuntu-latest, macos-latest, windows-latest] - version: [latest, alpha] package-manager: [pnpm, npm, yarn, bun] exclude: # Non-Linux only needs one fallback check per OS — sfw isn't From 65e179deb99b6c9c13886a05802e607df3bbd9eb Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 19:39:46 +0800 Subject: [PATCH 16/18] ci: also drop alpha from test-sfw-alpine and test-sfw-blocks-malicious MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consistent with the test-sfw slim-down: sfw's musl asset selection and block behavior are both decoupled from vp's release channel, so testing both vp versions adds no signal — only doubles CI cost. Other test jobs still cover the alpha channel for vp itself. --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 066f422..443e30e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -391,7 +391,8 @@ jobs: strategy: fail-fast: false matrix: - version: [latest, alpha] + # Latest only — sfw musl-asset selection is decoupled from vp release. + version: [latest] runs-on: ubuntu-latest container: image: alpine:3.23 @@ -434,7 +435,8 @@ jobs: strategy: fail-fast: false matrix: - version: [latest, alpha] + # Latest only — sfw block behavior is decoupled from vp release. + version: [latest] runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 From b6a100fe28076884691ad8f750d6601635fc1e2a Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 19:41:33 +0800 Subject: [PATCH 17/18] ci: drop single-value version axis from sfw jobs entirely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A one-value matrix is dead weight — let vp version fall to the action's default (`latest` per action.yml) and remove the matrix axis from test-sfw, test-sfw-alpine, and test-sfw-blocks-malicious. test-sfw-alpine and test-sfw-blocks-malicious had `version` as their ONLY matrix axis, so they drop the `strategy.matrix` block entirely and become plain single-cell jobs. --- .github/workflows/test.yml | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 443e30e..97770c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -301,15 +301,12 @@ jobs: # default package manager (pnpm) — the PM diversity matrix is Linux-only # because the sfw wrap is Linux-only. # Tracking: https://github.com/voidzero-dev/setup-vp/issues/73 + # vp version is left at the action default (`latest`) — sfw is decoupled + # from vp's release channel. Other test jobs (test-cache-*, + # test-node-version, etc.) still cover the alpha channel for vp itself. strategy: fail-fast: false matrix: - # Only the latest vp release here — the OS × package-manager matrix - # is already large (4 PMs × 3 OSes with excludes = 6 cells), and the - # sfw wrap is decoupled from vp's release channel. Other test jobs - # (test-cache-*, test-node-version, etc.) still cover the alpha - # channel for vp itself. - version: [latest] os: [ubuntu-latest, macos-latest, windows-latest] package-manager: [pnpm, npm, yarn, bun] exclude: @@ -356,10 +353,9 @@ jobs: echo "enableImmutableInstalls: false" } > test-project/.yarnrc.yml - - name: Setup Vite+ (${{ matrix.version }}) with sfw + ${{ matrix.package-manager }} + - name: Setup Vite+ with sfw + ${{ matrix.package-manager }} uses: ./ with: - version: ${{ matrix.version }} sfw: true run-install: | - cwd: test-project @@ -388,11 +384,8 @@ jobs: run: vp exec node -e "console.log(require('is-odd')(3))" test-sfw-alpine: - strategy: - fail-fast: false - matrix: - # Latest only — sfw musl-asset selection is decoupled from vp release. - version: [latest] + # vp version is left at the action default (`latest`) — sfw's musl asset + # selection is decoupled from vp's release channel. runs-on: ubuntu-latest container: image: alpine:3.23 @@ -408,10 +401,9 @@ jobs: cd test-project echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json - - name: Setup Vite+ (${{ matrix.version }}) with sfw (musl) + - name: Setup Vite+ with sfw (musl) uses: ./ with: - version: ${{ matrix.version }} sfw: true run-install: | - cwd: test-project @@ -432,11 +424,8 @@ jobs: # If this job ever stops blocking, either sfw is misconfigured or the # canary itself has been delisted — swap it for another Socket-flagged # package from https://socket.dev/blog/category/threat-research. - strategy: - fail-fast: false - matrix: - # Latest only — sfw block behavior is decoupled from vp release. - version: [latest] + # vp version is left at the action default (`latest`) — sfw block behavior + # is decoupled from vp's release channel. runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 @@ -448,10 +437,9 @@ jobs: cd test-project echo '{"name":"test-project","private":true,"dependencies":{"is-odd":"^3.0.1"}}' > package.json - - name: Setup Vite+ (${{ matrix.version }}) with sfw and install benign dep + - name: Setup Vite+ with sfw and install benign dep uses: ./ with: - version: ${{ matrix.version }} sfw: true run-install: | - cwd: test-project From c69ca6fd607b2ef6365f5c2f7d5b54df80fe4773 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 26 May 2026 22:09:27 +0800 Subject: [PATCH 18/18] ci+src: fix code-review findings on commits since aa92f44 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Headline fix: lodahs block-marker grep was functionally broken — sfw prints `Protected by Socket Firewall` and `=== Socket Firewall ===` on EVERY invocation, not just real blocks. The previous regex `(socket firewall|blocked|malware|sfw)` matched those banner lines, so any non-zero exit from `sfw vp install lodahs` (npm 404, network blip, canary delisting, vp crash) would silently pass as "sfw blocked it". Confirmed against the actual CI log of test-sfw-blocks-malicious: the banner is printed even on a clean install of `is-odd`. The unique block-line is: " - blocked npm package: name: lodahs; version: ...; reason: ..." Switched the assertion to a literal-string `grep -qF` on that line. Other findings addressed: - src/index.ts diagnostic now includes process.arch and isMuslLinux() so the message doesn't claim "only supported on Linux" on a Linux runner with an unsupported arch (riscv64, ppc64, ia32). - Added an info() log for `sfw: true` + (unsupported || run-install: false) so the no-op is visible — previously the gating change silenced the only signal in that combo. - isSfwSupported() defensive `!!asset` check: if getSfwAssetName is ever refactored from throw → return undefined, the predicate stays correct instead of silently flipping to always-true. - Stale comment about "non-Linux platforms" updated — isSfwSupported now also returns false on Linux+unsupported-arch. - TODO comments near test-sfw-alpine and test-sfw-blocks-malicious so a future re-matrixing restores `strategy.fail-fast: false`. --- .github/workflows/test.yml | 22 +++++++-- dist/index.mjs | 96 +++++++++++++++++++------------------- src/index.ts | 32 +++++++++---- src/install-sfw.ts | 7 ++- 4 files changed, 92 insertions(+), 65 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97770c7..d1acf27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -386,6 +386,9 @@ jobs: test-sfw-alpine: # vp version is left at the action default (`latest`) — sfw's musl asset # selection is decoupled from vp's release channel. + # NOTE: if this job is later re-matrixed (alpha+latest, multiple alpine + # versions, etc.), restore `strategy: { fail-fast: false }` so a flake in + # one shard doesn't cancel the others. runs-on: ubuntu-latest container: image: alpine:3.23 @@ -426,6 +429,9 @@ jobs: # package from https://socket.dev/blog/category/threat-research. # vp version is left at the action default (`latest`) — sfw block behavior # is decoupled from vp's release channel. + # NOTE: if this job is later re-matrixed, restore + # `strategy: { fail-fast: false }` so a flake in one shard doesn't cancel + # the others. runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 @@ -450,8 +456,14 @@ jobs: working-directory: test-project # Exit code alone isn't sufficient: a non-zero exit from npm 404, # network blip, or vp crash would also produce a false positive. We - # also require an sfw-specific block marker in the combined output - # so an unrelated failure doesn't get reported as "sfw blocked it". + # also require the literal sfw block-line for lodahs in the combined + # output so an unrelated failure doesn't get reported as "sfw blocked + # it". The block-line format observed in CI is: + # " - blocked npm package: name: lodahs; version: ...; reason: ..." + # The banner "Protected by Socket Firewall" and the "=== Socket + # Firewall ===" header are emitted on EVERY sfw invocation, so neither + # of those is a usable marker — use the unique "blocked npm package: + # name: lodahs" line instead. run: | set +e OUTPUT=$(sfw vp install lodahs 2>&1) @@ -462,11 +474,11 @@ jobs: echo "::error::sfw failed to block lodahs — install exited 0" exit 1 fi - if ! printf '%s' "$OUTPUT" | grep -qiE "(socket firewall|blocked|malware|sfw)"; then - echo "::error::sfw vp install exited $CODE but no Socket Firewall marker found in output — likely failed for a non-sfw reason (canary delisted? network? vp crash?). Swap the canary if Socket has delisted lodahs." + if ! printf '%s' "$OUTPUT" | grep -qF -- "blocked npm package: name: lodahs"; then + echo "::error::sfw vp install exited $CODE but the lodahs block-line was not in the output — likely failed for a non-sfw reason (canary delisted, network blip, vp crash, or sfw output format changed). Swap the canary if Socket has delisted lodahs, or update the marker grep if sfw's block-line format changed." exit 1 fi - echo "OK: sfw blocked lodahs (exit $CODE, Socket Firewall marker present)" + echo "OK: sfw blocked lodahs (exit $CODE, block-line found)" build: runs-on: ubuntu-latest diff --git a/dist/index.mjs b/dist/index.mjs index feff4e0..4f8ce51 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -13,15 +13,15 @@ Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),type ${n.count} ${n.noun} ${n.is} pending: ${e.format(t)} -`.trim())}}})),qt=P(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=I(),i=wt();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),Jt=P(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),Yt=P(((e,t)=>{let n=gt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),Xt=P(((e,t)=>{let n=Dt();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),Zt=P(((e,t)=>{let n=L(),{InvalidArgumentError:r,RequestAbortedError:i}=I(),a=Jt();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),Qt=P(((e,t)=>{let{isIP:n}=F(`node:net`),{lookup:r}=F(`node:dns`),i=Jt(),{InvalidArgumentError:a,InformationalError:o}=I(),s=2**31-1;var c=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new o(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),s=this.pick(e,a,i.affinity),c;c=typeof s.port==`number`?`:${s.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${s.family===6?`[${s.address}]`:s.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){r(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===s?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===s?o.offset=0:o.offset++;let c=o.offset%o.ips.length;return r=o.ips[c]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(c,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new l(this,e,t)}},l=class extends i{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};t.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new a(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new a(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new a(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new a(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new a(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new a(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,r;r=t?e?.affinity??null:e?.affinity??4;let i=new c({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0});return e=>function(t,r){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return n(a.hostname)===0?(i.runLookup(a,t,(n,o)=>{if(n)return r.onError(n);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:r},t))}),!0):e(t,r)}}})),$t=P(((e,t)=>{let{kConstruct:n}=Ge(),{kEnumerableProperty:r}=L(),{iteratorMixin:i,isValidHeaderName:a,isValidHeaderValue:o}=ct(),{webidl:s}=st(),c=F(`node:assert`),l=F(`node:util`),u=Symbol(`headers map`),d=Symbol(`headers map sorted`);function f(e){return e===10||e===13||e===9||e===32}function p(e){let t=0,n=e.length;for(;n>t&&f(e.charCodeAt(n-1));)--n;for(;n>t&&f(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function m(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function h(e,t,n){if(n=p(n),!a(t))throw s.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(y(e)===`immutable`)throw TypeError(`immutable`);return x(e).append(t,n,!1)}function g(e,t){return e[0]>1),t[s][0]<=l[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=l}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[u])t[e++]=[n,r],c(r!==null);return t.sort(g)}}},v=class e{#e;#t;constructor(e=void 0){s.util.markAsUncloneable(this),e!==n&&(this.#t=new _,this.#e=`none`,e!==void 0&&(e=s.converters.HeadersInit(e,`Headers contructor`,`init`),m(this,e)))}append(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),h(this,t,n)}delete(t){if(s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.delete`),t=s.converters.ByteString(t,`Headers.delete`,`name`),!a(t))throw s.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),n=p(n),!a(t))throw s.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){s.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[d](){if(this.#t[d])return this.#t[d];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[d]=t;for(let r=0;r>`](e,t,n,r.bind(e)):s.converters[`record`](e,t,n)}throw s.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},t.exports={fill:m,compareHeaderName:g,Headers:v,HeadersList:_,getHeadersGuard:y,setHeadersGuard:b,setHeadersList:S,getHeadersList:x}})),en=P(((e,t)=>{let{Headers:n,HeadersList:r,fill:i,getHeadersGuard:a,setHeadersGuard:o,setHeadersList:s}=$t(),{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:f,bodyUnusable:p}=pt(),m=L(),h=F(`node:util`),{kEnumerableProperty:g}=m,{isValidReasonPhrase:_,isCancelled:v,isAborted:y,isBlobLike:b,serializeJavascriptValueToJSONString:x,isErrorLike:S,isomorphicEncode:C,environmentSettingsObject:w}=ct(),{redirectStatusSet:T,nullBodyStatus:E}=it(),{kState:D,kHeaders:O}=lt(),{webidl:k}=st(),{FormData:A}=dt(),{URLSerializer:j}=ot(),{kConstruct:M}=Ge(),ee=F(`node:assert`),{types:N}=F(`node:util`),te=new TextEncoder(`utf-8`);var ne=class e{static error(){return de(ae(),`immutable`)}static json(e,t={}){k.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=k.converters.ResponseInit(t));let n=c(te.encode(x(e))),r=de(ie({}),`response`);return ue(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){k.argumentLengthCheck(arguments,1,`Response.redirect`),e=k.converters.USVString(e),t=k.converters[`unsigned short`](t);let n;try{n=new URL(e,w.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!T.has(t))throw RangeError(`Invalid status code ${t}`);let r=de(ie({}),`immutable`);r[D].status=t;let i=C(j(n));return r[D].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(k.util.markAsUncloneable(this),e===M)return;e!==null&&(e=k.converters.BodyInit(e)),t=k.converters.ResponseInit(t),this[D]=ie({}),this[O]=new n(M),o(this[O],`response`),s(this[O],this[D].headersList);let r=null;if(e!=null){let[t,n]=c(e);r={body:t,type:n}}ue(this,t,r)}get type(){return k.brandCheck(this,e),this[D].type}get url(){k.brandCheck(this,e);let t=this[D].urlList,n=t[t.length-1]??null;return n===null?``:j(n,!0)}get redirected(){return k.brandCheck(this,e),this[D].urlList.length>1}get status(){return k.brandCheck(this,e),this[D].status}get ok(){return k.brandCheck(this,e),this[D].status>=200&&this[D].status<=299}get statusText(){return k.brandCheck(this,e),this[D].statusText}get headers(){return k.brandCheck(this,e),this[O]}get body(){return k.brandCheck(this,e),this[D].body?this[D].body.stream:null}get bodyUsed(){return k.brandCheck(this,e),!!this[D].body&&m.isDisturbed(this[D].body.stream)}clone(){if(k.brandCheck(this,e),p(this))throw k.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=re(this[D]);return d&&this[D].body?.stream&&f.register(this,new WeakRef(this[D].body.stream)),de(t,a(this[O]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};u(ne),Object.defineProperties(ne.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(ne,{json:g,redirect:g,error:g});function re(e){if(e.internalResponse)return ce(re(e.internalResponse),e.type);let t=ie({...e,body:null});return e.body!=null&&(t.body=l(t,e.body)),t}function ie(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new r(e?.headersList):new r,urlList:e?.urlList?[...e.urlList]:[]}}function ae(e){return ie({type:`error`,status:0,error:S(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function oe(e){return e.type===`error`&&e.status===0}function se(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return ee(!(n in t)),e[n]=r,!0}})}function ce(e,t){if(t===`basic`)return se(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return se(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return se(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return se(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});ee(!1)}function le(e,t=null){return ee(v(e)),y(e)?ae(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):ae(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function ue(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!_(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[D].status=t.status),`statusText`in t&&t.statusText!=null&&(e[D].statusText=t.statusText),`headers`in t&&t.headers!=null&&i(e[O],t.headers),n){if(E.includes(e.status))throw k.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[D].body=n.body,n.type!=null&&!e[D].headersList.contains(`content-type`,!0)&&e[D].headersList.append(`content-type`,n.type,!0)}}function de(e,t){let r=new ne(M);return r[D]=e,r[O]=new n(M),s(r[O],e.headersList),o(r[O],t),d&&e.body?.stream&&f.register(r,new WeakRef(e.body.stream)),r}k.converters.ReadableStream=k.interfaceConverter(ReadableStream),k.converters.FormData=k.interfaceConverter(A),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?k.converters.USVString(e,t,n):b(e)?k.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||N.isArrayBuffer(e)?k.converters.BufferSource(e,t,n):m.isFormDataLike(e)?k.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?k.converters.URLSearchParams(e,t,n):k.converters.DOMString(e,t,n)},k.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?k.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:k.converters.XMLHttpRequestBodyInit(e,t,n)},k.converters.ResponseInit=k.dictionaryConverter([{key:`status`,converter:k.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:k.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:k.converters.HeadersInit}]),t.exports={isNetworkError:oe,makeNetworkError:ae,makeResponse:ie,makeAppropriateNetworkError:le,filterResponse:ce,Response:ne,cloneResponse:re,fromInnerResponse:de}})),tn=P(((e,t)=>{let{kConnected:n,kSize:r}=Ge();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),nn=P(((e,t)=>{let{extractBody:n,mixinBody:r,cloneBody:i,bodyUnusable:a}=pt(),{Headers:o,fill:s,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:f}=$t(),{FinalizationRegistry:p}=tn()(),m=L(),h=F(`node:util`),{isValidHTTPToken:g,sameOrigin:_,environmentSettingsObject:v}=ct(),{forbiddenMethodsSet:y,corsSafeListedMethodsSet:b,referrerPolicy:x,requestRedirect:S,requestMode:C,requestCredentials:w,requestCache:T,requestDuplex:E}=it(),{kEnumerableProperty:D,normalizedMethodRecordsBase:O,normalizedMethodRecords:k}=m,{kHeaders:A,kSignal:j,kState:M,kDispatcher:ee}=lt(),{webidl:N}=st(),{URLSerializer:te}=ot(),{kConstruct:ne}=Ge(),re=F(`node:assert`),{getMaxListeners:ie,setMaxListeners:ae,getEventListeners:oe,defaultMaxListeners:se}=F(`node:events`),ce=Symbol(`abortController`),le=new p(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),ue=new WeakMap;function de(e){return t;function t(){let n=e.deref();if(n!==void 0){le.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=ue.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}ue.delete(n.signal)}}}}let fe=!1;var pe=class e{constructor(t,r={}){if(N.util.markAsUncloneable(this),t===ne)return;let i=`Request constructor`;N.argumentLengthCheck(arguments,1,i),t=N.converters.RequestInfo(t,i,`input`),r=N.converters.RequestInit(r,i,`init`);let u=null,p=null,h=v.settingsObject.baseUrl,x=null;if(typeof t==`string`){this[ee]=r.dispatcher;let e;try{e=new URL(t,h)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);u=me({urlList:[e]}),p=`cors`}else this[ee]=r.dispatcher||t[ee],re(t instanceof e),u=t[M],x=t[j];let S=v.settingsObject.origin,C=`client`;if(u.window?.constructor?.name===`EnvironmentSettingsObject`&&_(u.window,S)&&(C=u.window),r.window!=null)throw TypeError(`'window' option '${C}' must be null`);`window`in r&&(C=`no-window`),u=me({method:u.method,headersList:u.headersList,unsafeRequest:u.unsafeRequest,client:v.settingsObject,window:C,priority:u.priority,origin:u.origin,referrer:u.referrer,referrerPolicy:u.referrerPolicy,mode:u.mode,credentials:u.credentials,cache:u.cache,redirect:u.redirect,integrity:u.integrity,keepalive:u.keepalive,reloadNavigation:u.reloadNavigation,historyNavigation:u.historyNavigation,urlList:[...u.urlList]});let w=Object.keys(r).length!==0;if(w&&(u.mode===`navigate`&&(u.mode=`same-origin`),u.reloadNavigation=!1,u.historyNavigation=!1,u.origin=`client`,u.referrer=`client`,u.referrerPolicy=``,u.url=u.urlList[u.urlList.length-1],u.urlList=[u.url]),r.referrer!==void 0){let e=r.referrer;if(e===``)u.referrer=`no-referrer`;else{let t;try{t=new URL(e,h)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||S&&!_(t,v.settingsObject.baseUrl)?u.referrer=`client`:u.referrer=t}}r.referrerPolicy!==void 0&&(u.referrerPolicy=r.referrerPolicy);let T;if(T=r.mode===void 0?p:r.mode,T===`navigate`)throw N.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(T!=null&&(u.mode=T),r.credentials!==void 0&&(u.credentials=r.credentials),r.cache!==void 0&&(u.cache=r.cache),u.cache===`only-if-cached`&&u.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(r.redirect!==void 0&&(u.redirect=r.redirect),r.integrity!=null&&(u.integrity=String(r.integrity)),r.keepalive!==void 0&&(u.keepalive=!!r.keepalive),r.method!==void 0){let e=r.method,t=k[e];if(t!==void 0)u.method=t;else{if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(y.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=O[t]??e,u.method=e}!fe&&u.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`}),fe=!0)}r.signal!==void 0&&(x=r.signal),this[M]=u;let E=new AbortController;if(this[j]=E.signal,x!=null){if(!x||typeof x.aborted!=`boolean`||typeof x.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(x.aborted)E.abort(x.reason);else{this[ce]=E;let e=de(new WeakRef(E));try{(typeof ie==`function`&&ie(x)===se||oe(x,`abort`).length>=se)&&ae(1500,x)}catch{}m.addAbortListener(x,e),le.register(E,{signal:x,abort:e},e)}}if(this[A]=new o(ne),d(this[A],u.headersList),l(this[A],`request`),T===`no-cors`){if(!b.has(u.method))throw TypeError(`'${u.method} is unsupported in no-cors mode.`);l(this[A],`request-no-cors`)}if(w){let e=f(this[A]),t=r.headers===void 0?new c(e):r.headers;if(e.clear(),t instanceof c){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else s(this[A],t)}let D=t instanceof e?t[M].body:null;if((r.body!=null||D!=null)&&(u.method===`GET`||u.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let te=null;if(r.body!=null){let[e,t]=n(r.body,u.keepalive);te=e,t&&!f(this[A]).contains(`content-type`,!0)&&this[A].append(`content-type`,t)}let ue=te??D;if(ue!=null&&ue.source==null){if(te!=null&&r.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(u.mode!==`same-origin`&&u.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);u.useCORSPreflightFlag=!0}let pe=ue;if(te==null&&D!=null){if(a(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;D.stream.pipeThrough(e),pe={source:D.source,length:D.length,stream:e.readable}}this[M].body=pe}get method(){return N.brandCheck(this,e),this[M].method}get url(){return N.brandCheck(this,e),te(this[M].url)}get headers(){return N.brandCheck(this,e),this[A]}get destination(){return N.brandCheck(this,e),this[M].destination}get referrer(){return N.brandCheck(this,e),this[M].referrer===`no-referrer`?``:this[M].referrer===`client`?`about:client`:this[M].referrer.toString()}get referrerPolicy(){return N.brandCheck(this,e),this[M].referrerPolicy}get mode(){return N.brandCheck(this,e),this[M].mode}get credentials(){return this[M].credentials}get cache(){return N.brandCheck(this,e),this[M].cache}get redirect(){return N.brandCheck(this,e),this[M].redirect}get integrity(){return N.brandCheck(this,e),this[M].integrity}get keepalive(){return N.brandCheck(this,e),this[M].keepalive}get isReloadNavigation(){return N.brandCheck(this,e),this[M].reloadNavigation}get isHistoryNavigation(){return N.brandCheck(this,e),this[M].historyNavigation}get signal(){return N.brandCheck(this,e),this[j]}get body(){return N.brandCheck(this,e),this[M].body?this[M].body.stream:null}get bodyUsed(){return N.brandCheck(this,e),!!this[M].body&&m.isDisturbed(this[M].body.stream)}get duplex(){return N.brandCheck(this,e),`half`}clone(){if(N.brandCheck(this,e),a(this))throw TypeError(`unusable`);let t=he(this[M]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=ue.get(this.signal);e===void 0&&(e=new Set,ue.set(this.signal,e));let t=new WeakRef(n);e.add(t),m.addAbortListener(n.signal,de(t))}return ge(t,n.signal,u(this[A]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};r(pe);function me(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function he(e){let t=me({...e,body:null});return e.body!=null&&(t.body=i(t,e.body)),t}function ge(e,t,n){let r=new pe(ne);return r[M]=e,r[j]=t,r[A]=new o(ne),d(r[A],e.headersList),l(r[A],n),r}Object.defineProperties(pe.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),N.converters.Request=N.interfaceConverter(pe),N.converters.RequestInfo=function(e,t,n){return typeof e==`string`?N.converters.USVString(e,t,n):e instanceof pe?N.converters.Request(e,t,n):N.converters.USVString(e,t,n)},N.converters.AbortSignal=N.interfaceConverter(AbortSignal),N.converters.RequestInit=N.dictionaryConverter([{key:`method`,converter:N.converters.ByteString},{key:`headers`,converter:N.converters.HeadersInit},{key:`body`,converter:N.nullableConverter(N.converters.BodyInit)},{key:`referrer`,converter:N.converters.USVString},{key:`referrerPolicy`,converter:N.converters.DOMString,allowedValues:x},{key:`mode`,converter:N.converters.DOMString,allowedValues:C},{key:`credentials`,converter:N.converters.DOMString,allowedValues:w},{key:`cache`,converter:N.converters.DOMString,allowedValues:T},{key:`redirect`,converter:N.converters.DOMString,allowedValues:S},{key:`integrity`,converter:N.converters.DOMString},{key:`keepalive`,converter:N.converters.boolean},{key:`signal`,converter:N.nullableConverter(e=>N.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:N.converters.any},{key:`duplex`,converter:N.converters.DOMString,allowedValues:E},{key:`dispatcher`,converter:N.converters.any}]),t.exports={Request:pe,makeRequest:me,fromInnerRequest:ge,cloneRequest:he}})),rn=P(((e,t)=>{let{makeNetworkError:n,makeAppropriateNetworkError:r,filterResponse:i,makeResponse:a,fromInnerResponse:o}=en(),{HeadersList:s}=$t(),{Request:c,cloneRequest:l}=nn(),u=F(`node:zlib`),{bytesMatch:d,makePolicyContainer:f,clonePolicyContainer:p,requestBadPort:m,TAOCheck:h,appendRequestOriginHeader:g,responseLocationURL:_,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:x,appendFetchMetadata:S,corsCheck:C,crossOriginResourcePolicyCheck:w,determineRequestsReferrer:T,coarsenedSharedCurrentTime:E,createDeferredPromise:D,isBlobLike:O,sameOrigin:k,isCancelled:A,isAborted:j,isErrorLike:M,fullyReadBody:ee,readableStreamClose:N,isomorphicEncode:te,urlIsLocal:ne,urlIsHttpHttpsScheme:re,urlHasHttpsScheme:ie,clampAndCoarsenConnectionTimingInfo:ae,simpleRangeHeaderValue:oe,buildContentRange:se,createInflate:ce,extractMimeType:le}=ct(),{kState:ue,kDispatcher:de}=lt(),fe=F(`node:assert`),{safelyExtractBody:pe,extractBody:me}=pt(),{redirectStatusSet:he,nullBodyStatus:ge,safeMethodsSet:_e,requestBodyHeader:ve,subresourceSet:ye}=it(),be=F(`node:events`),{Readable:xe,pipeline:Se,finished:Ce}=F(`node:stream`),{addAbortListener:we,isErrored:Te,isReadable:Ee,bufferToLowerCasedHeaderName:P}=L(),{dataURLProcessor:De,serializeAMimeType:Oe,minimizeSupportedMimeType:ke}=ot(),{getGlobalDispatcher:Ae}=qt(),{webidl:je}=st(),{STATUS_CODES:Me}=F(`node:http`),Ne=[`GET`,`HEAD`],Pe=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,Fe;var Ie=class extends be{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function Le(e){ze(e,`fetch`)}function Re(e,t=void 0){je.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=D(),r;try{r=new c(e,t)}catch(e){return n.reject(e),n.promise}let i=r[ue];if(r.signal.aborted)return Ve(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,s=!1,l=null;return we(r.signal,()=>{s=!0,fe(l!=null),l.abort(r.signal.reason);let e=a?.deref();Ve(n,i,e,r.signal.reason)}),l=He({request:i,processResponseEndOfBody:Le,processResponse:e=>{if(!s){if(e.aborted){Ve(n,i,a,l.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(o(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[de]}),n.promise}function ze(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;re(n)&&r!==null&&(e.timingAllowPassed||(r=x({startTime:r.startTime}),i=``),r.endTime=E(),e.timingInfo=r,Be(r,n.href,t,globalThis,i))}let Be=performance.markResourceTiming;function Ve(e,t,n,r){if(e&&e.reject(r),t.body!=null&&Ee(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[ue];i.body!=null&&Ee(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function He({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Ae()}){fe(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=x({startTime:E(l)}),d={controller:new Ie(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return fe(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=f():e.policyContainer=p(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,ye.has(e.destination),Ue(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Ue(e,t=!1){let r=e.request,a=null;if(r.localURLsOnly&&!ne(v(r))&&(a=n(`local URLs only`)),b(r),m(r)===`blocked`&&(a=n(`bad port`)),r.referrerPolicy===``&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!==`no-referrer`&&(r.referrer=T(r)),a===null&&(a=await(async()=>{let t=v(r);return k(t,r.url)&&r.responseTainting===`basic`||t.protocol===`data:`||r.mode===`navigate`||r.mode===`websocket`?(r.responseTainting=`basic`,await We(e)):r.mode===`same-origin`?n(`request mode cannot be "same-origin"`):r.mode===`no-cors`?r.redirect===`follow`?(r.responseTainting=`opaque`,await We(e)):n(`redirect mode cannot be "follow" for "no-cors" request`):re(v(r))?(r.responseTainting=`cors`,await Ke(e)):n(`URL scheme must be a HTTP(S) scheme`)})()),t)return a;a.status!==0&&!a.internalResponse&&(r.responseTainting,r.responseTainting===`basic`?a=i(a,`basic`):r.responseTainting===`cors`?a=i(a,`cors`):r.responseTainting===`opaque`?a=i(a,`opaque`):fe(!1));let o=a.status===0?a:a.internalResponse;if(o.urlList.length===0&&o.urlList.push(...r.urlList),r.timingAllowFailed||(a.timingAllowPassed=!0),a.type===`opaque`&&o.status===206&&o.rangeRequested&&!r.headers.contains(`range`,!0)&&(a=o=n()),a.status!==0&&(r.method===`HEAD`||r.method===`CONNECT`||ge.includes(o.status))&&(o.body=null,e.controller.dump=!0),r.integrity){let t=t=>I(e,n(t));if(r.responseTainting===`opaque`||a.body==null){t(a.error);return}await ee(a.body,n=>{if(!d(n,r.integrity)){t(`integrity mismatch`);return}a.body=pe(n)[0],I(e,a)},t)}else I(e,a)}function We(e){if(A(e)&&e.request.redirectCount===0)return Promise.resolve(r(e));let{request:t}=e,{protocol:i}=v(t);switch(i){case`about:`:return Promise.resolve(n(`about scheme is not supported`));case`blob:`:{Fe||=F(`node:buffer`).resolveObjectURL;let e=v(t);if(e.search.length!==0)return Promise.resolve(n(`NetworkError when attempting to fetch resource.`));let r=Fe(e.toString());if(t.method!==`GET`||!O(r))return Promise.resolve(n(`invalid method`));let i=a(),o=r.size,s=te(`${o}`),c=r.type;if(t.headersList.contains(`range`,!0)){i.rangeRequested=!0;let e=oe(t.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let{rangeStartValue:a,rangeEndValue:s}=e;if(a===null)a=o-s,s=a+s-1;else{if(a>=o)return Promise.resolve(n(`Range start is greater than the blob's size.`));(s===null||s>=o)&&(s=o-1)}let l=r.slice(a,s,c);i.body=me(l)[0];let u=te(`${l.size}`),d=se(a,s,o);i.status=206,i.statusText=`Partial Content`,i.headersList.set(`content-length`,u,!0),i.headersList.set(`content-type`,c,!0),i.headersList.set(`content-range`,d,!0)}else{let e=me(r);i.statusText=`OK`,i.body=e[0],i.headersList.set(`content-length`,s,!0),i.headersList.set(`content-type`,c,!0)}return Promise.resolve(i)}case`data:`:{let e=De(v(t));if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let r=Oe(e.mimeType);return Promise.resolve(a({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:r}]],body:pe(e.body)[0]}))}case`file:`:return Promise.resolve(n(`not implemented... yet...`));case`http:`:case`https:`:return Ke(e).catch(e=>n(e));default:return Promise.resolve(n(`unknown scheme`))}}function Ge(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function I(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=x(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=le(t.headersList);e!==`failure`&&(a.contentType=ke(e))}e.request.initiatorType!=null&&Be(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():Ce(i.body.stream,()=>{r()})}async function Ke(e){let t=e.request,r=null,i=null,a=e.timingInfo;if(t.serviceWorkers,r===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=r=await Je(e),t.responseTainting===`cors`&&C(t,r)===`failure`)return n(`cors failure`);h(t,r)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||r.type===`opaque`)&&w(t.origin,t.client,t.destination,i)===`blocked`?n(`blocked`):(he.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?r=n(`unexpected redirect`):t.redirect===`manual`?r=i:t.redirect===`follow`?r=await qe(e,r):fe(!1)),r.timingInfo=a,r)}function qe(e,t){let r=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=_(i,v(r).hash),a==null)return t}catch(e){return Promise.resolve(n(e))}if(!re(a))return Promise.resolve(n(`URL scheme must be a HTTP(S) scheme`));if(r.redirectCount===20)return Promise.resolve(n(`redirect count exceeded`));if(r.redirectCount+=1,r.mode===`cors`&&(a.username||a.password)&&!k(r,a))return Promise.resolve(n(`cross origin not allowed for request mode "cors"`));if(r.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(n(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(n());if([301,302].includes(i.status)&&r.method===`POST`||i.status===303&&!Ne.includes(r.method)){r.method=`GET`,r.body=null;for(let e of ve)r.headersList.delete(e)}k(v(r),a)||(r.headersList.delete(`authorization`,!0),r.headersList.delete(`proxy-authorization`,!0),r.headersList.delete(`cookie`,!0),r.headersList.delete(`host`,!0)),r.body!=null&&(fe(r.body.source!=null),r.body=pe(r.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=E(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(a),y(r,i),Ue(e,!0)}async function Je(e,t=!1,i=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=l(a),o={...e},o.request=s);let u=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=te(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,te(s.referrer.href),!0),g(s),S(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Pe),s.cache===`default`&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(ie(v(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return n(`only if cached`);let e=await Ye(o,u,i);!_e.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=u,c.status===407)return a.window===`no-window`?n():A(e)?r(e):n(`proxy authentication required`);if(c.status===421&&!i&&(a.body==null||a.body.source!=null)){if(A(e))return r(e);e.controller.connection.destroy(),c=await Je(e,t,!0)}return c}async function Ye(e,t=!1,i=!1){fe(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let o=e.request,c=null,l=e.timingInfo;o.cache=`no-store`,o.mode;let d=null;if(o.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(o.body!=null){let t=async function*(t){A(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{A(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{A(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};d=(async function*(){try{for await(let e of o.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:o}=await g({body:d});if(o)c=a({status:n,statusText:r,headersList:i,socket:o});else{let o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next(),c=a({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),r(e,t)):n(t)}let f=async()=>{await e.controller.resume()},p=t=>{A(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});c.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(j(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){N(e.controller.controller),Ge(e,c);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),Te(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){j(e)?(c.aborted=!0,Ee(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):Ee(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:M(t)?t:void 0})),e.controller.connection.destroy()}return c;function g({body:t}){let n=v(o),r=e.controller.dispatcher;return new Promise((i,a)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:o.method,body:r.isMockActive?o.body&&(o.body.source||o.body.stream):t,headers:o.headersList.entries,maxRedirections:0,upgrade:o.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=ae(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=E(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=E(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let c=``,l=new s;for(let e=0;e5)return a(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)d.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)d.push(ce({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`br`)d.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}));else{d.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:d.length?Se(this.body,...d,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),a(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new s;for(let e=0;e{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`)}})),on=P(((e,t)=>{let{webidl:n}=st(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),sn=P(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.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:n}})),cn=P(((e,t)=>{let{kState:n,kError:r,kResult:i,kAborted:a,kLastProgressEventFired:o}=an(),{ProgressEvent:s}=on(),{getEncoding:c}=sn(),{serializeAMimeType:l,parseMIMEType:u}=ot(),{types:d}=F(`node:util`),{StringDecoder:f}=F(`string_decoder`),{btoa:p}=F(`node:buffer`),m={enumerable:!0,writable:!1,configurable:!1};function h(e,t,s,c){if(e[n]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[n]=`loading`,e[i]=null,e[r]=null;let l=t.stream().getReader(),u=[],f=l.read(),p=!0;(async()=>{for(;!e[a];)try{let{done:m,value:h}=await f;if(p&&!e[a]&&queueMicrotask(()=>{g(`loadstart`,e)}),p=!1,!m&&d.isUint8Array(h))u.push(h),(e[o]===void 0||Date.now()-e[o]>=50)&&!e[a]&&(e[o]=Date.now(),queueMicrotask(()=>{g(`progress`,e)})),f=l.read();else if(m){queueMicrotask(()=>{e[n]=`done`;try{let n=_(u,s,t.type,c);if(e[a])return;e[i]=n,g(`load`,e)}catch(t){e[r]=t,g(`error`,e)}e[n]!==`loading`&&g(`loadend`,e)});break}}catch(t){if(e[a])return;queueMicrotask(()=>{e[n]=`done`,e[r]=t,g(`error`,e),e[n]!==`loading`&&g(`loadend`,e)});break}})()}function g(e,t){let n=new s(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=u(n||`application/octet-stream`);r!==`failure`&&(t+=l(r)),t+=`;base64,`;let i=new f(`latin1`);for(let n of e)t+=p(i.write(n));return t+=p(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=c(r)),t===`failure`&&n){let e=u(n);e!==`failure`&&(t=c(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),v(e,t)}case`ArrayBuffer`:return b(e).buffer;case`BinaryString`:{let t=``,n=new f(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function v(e,t){let n=b(e),r=y(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function y(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function b(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}t.exports={staticPropertyDescriptors:m,readOperation:h,fireAProgressEvent:g}})),ln=P(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=cn(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=an(),{webidl:u}=st(),{kEnumerableProperty:d}=L();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),un=P(((e,t)=>{t.exports={kConstruct:Ge().kConstruct}})),dn=P(((e,t)=>{let n=F(`node:assert`),{URLSerializer:r}=ot(),{isValidHeaderName:i}=ct();function a(e,t,n=!1){return r(e,n)===r(t,n)}function o(e){n(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),i(n)&&t.push(n);return t}t.exports={urlEquals:a,getFieldValues:o}})),fn=P(((e,t)=>{let{kConstruct:n}=un(),{urlEquals:r,getFieldValues:i}=dn(),{kEnumerableProperty:a,isDisturbed:o}=L(),{webidl:s}=st(),{Response:c,cloneResponse:l,fromInnerResponse:u}=en(),{Request:d,fromInnerRequest:f}=nn(),{kState:p}=lt(),{fetching:m}=rn(),{urlIsHttpHttpsScheme:h,createDeferredPromise:g,readAllBytes:_}=ct(),v=F(`node:assert`);var y=class e{#e;constructor(){arguments[0]!==n&&s.illegalConstructor(),s.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){s.brandCheck(this,e);let r=`Cache.match`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){s.brandCheck(this,e);let n=`Cache.add`;s.argumentLengthCheck(arguments,1,n),t=s.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){s.brandCheck(this,e);let n=`Cache.addAll`;s.argumentLengthCheck(arguments,1,n);let r=[],a=[];for(let e of t){if(e===void 0)throw s.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=s.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[p];if(!h(t.url)||t.method!==`GET`)throw s.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new d(e)[p];if(!h(t.url))throw s.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,a.push(t);let c=g();o.push(m({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)c.reject(s.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=i(e.headersList.get(`vary`));for(let e of t)if(e===`*`){c.reject(s.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){c.reject(new DOMException(`aborted`,`AbortError`));return}c.resolve(e)}})),r.push(c.promise)}let c=await Promise.all(r),l=[],u=0;for(let e of c){let t={type:`put`,request:a[u],response:e};l.push(t),u++}let f=g(),_=null;try{this.#t(l)}catch(e){_=e}return queueMicrotask(()=>{_===null?f.resolve(void 0):f.reject(_)}),f.promise}async put(t,n){s.brandCheck(this,e);let r=`Cache.put`;s.argumentLengthCheck(arguments,2,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.Response(n,r,`response`);let a=null;if(a=t instanceof d?t[p]:new d(t)[p],!h(a.url)||a.method!==`GET`)throw s.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let c=n[p];if(c.status===206)throw s.errors.exception({header:r,message:`Got 206 status`});if(c.headersList.contains(`vary`)){let e=i(c.headersList.get(`vary`));for(let t of e)if(t===`*`)throw s.errors.exception({header:r,message:`Got * vary field value`})}if(c.body&&(o(c.body.stream)||c.body.stream.locked))throw s.errors.exception({header:r,message:`Response body is locked or disturbed`});let u=l(c),f=g();c.body==null?f.resolve(void 0):_(c.body.stream.getReader()).then(f.resolve,f.reject);let m=[],v={type:`put`,request:a,response:u};m.push(v);let y=await f.promise;u.body!=null&&(u.body.source=y);let b=g(),x=null;try{this.#t(m)}catch(e){x=e}return queueMicrotask(()=>{x===null?b.resolve():b.reject(x)}),b.promise}async delete(t,n={}){s.brandCheck(this,e);let r=`Cache.delete`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return!1}else v(typeof t==`string`),i=new d(t)[p];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let c=g(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new d(t)[p]);let a=g(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=f(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!h(i.url))throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,a){let o=new URL(e.url),s=new URL(t.url);if(a?.ignoreSearch&&(s.search=``,o.search=``),!r(o,s,!0))return!1;if(n==null||a?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=i(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof d){if(r=e[p],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new d(e)[p]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=u(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(y.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:a,matchAll:a,add:a,addAll:a,put:a,delete:a,keys:a});let b=[{key:`ignoreSearch`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:s.converters.boolean,defaultValue:()=>!1}];s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:`cacheName`,converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(c),s.converters[`sequence`]=s.sequenceConverter(s.converters.RequestInfo),t.exports={Cache:y}})),pn=P(((e,t)=>{let{kConstruct:n}=un(),{Cache:r}=fn(),{webidl:i}=st(),{kEnumerableProperty:a}=L();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),mn=P(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),hn=P(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),gn=P(((e,t)=>{let{maxNameValuePairSize:n,maxAttributeValueSize:r}=mn(),{isCTLExcludingHtab:i}=hn(),{collectASequenceOfCodePointsFast:a}=ot(),o=F(`node:assert`);function s(e){if(i(e))return null;let t=``,r=``,o=``,s=``;if(e.includes(`;`)){let n={position:0};t=a(`;`,e,n),r=e.slice(n.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};o=a(`=`,t,e),s=t.slice(e.position+1)}return o=o.trim(),s=s.trim(),o.length+s.length>n?null:{name:o,value:s,...c(r)}}function c(e,t={}){if(e.length===0)return t;o(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=a(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let i=``,s=``;if(n.includes(`=`)){let e={position:0};i=a(`=`,n,e),s=n.slice(e.position+1)}else i=n;if(i=i.trim(),s=s.trim(),s.length>r)return c(e,t);let l=i.toLowerCase();if(l===`expires`)t.expires=new Date(s);else if(l===`max-age`){let n=s.charCodeAt(0);if((n<48||n>57)&&s[0]!==`-`||!/^\d+$/.test(s))return c(e,t);t.maxAge=Number(s)}else if(l===`domain`){let e=s;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(l===`path`){let e=``;e=s.length===0||s[0]!==`/`?`/`:s,t.path=e}else if(l===`secure`)t.secure=!0;else if(l===`httponly`)t.httpOnly=!0;else if(l===`samesite`){let e=`Default`,n=s.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${i}=${s}`);return c(e,t)}t.exports={parseSetCookie:s,parseUnparsedAttributes:c}})),_n=P(((e,t)=>{let{parseSetCookie:n}=gn(),{stringify:r}=hn(),{webidl:i}=st(),{Headers:a}=$t();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),vn=P(((e,t)=>{let{webidl:n}=st(),{kEnumerableProperty:r}=L(),{kConstruct:i}=Ge(),{MessagePort:a}=F(`node:worker_threads`);var o=class e extends Event{#e;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]),n.util.markAsUncloneable(this);return}let r=`MessageEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.MessageEventInit(t,r,`eventInitDict`),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get data(){return n.brandCheck(this,e),this.#e.data}get origin(){return n.brandCheck(this,e),this.#e.origin}get lastEventId(){return n.brandCheck(this,e),this.#e.lastEventId}get source(){return n.brandCheck(this,e),this.#e.source}get ports(){return n.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,r=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return n.brandCheck(this,e),n.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:r,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(i,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:s}=o;delete o.createFastMessageEvent;var c=class e extends Event{#e;constructor(e,t={}){let r=`CloseEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.CloseEventInit(t),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get wasClean(){return n.brandCheck(this,e),this.#e.wasClean}get code(){return n.brandCheck(this,e),this.#e.code}get reason(){return n.brandCheck(this,e),this.#e.reason}},l=class e extends Event{#e;constructor(e,t){let r=`ErrorEvent constructor`;n.argumentLengthCheck(arguments,1,r),super(e,t),n.util.markAsUncloneable(this),e=n.converters.DOMString(e,r,`type`),t=n.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return n.brandCheck(this,e),this.#e.message}get filename(){return n.brandCheck(this,e),this.#e.filename}get lineno(){return n.brandCheck(this,e),this.#e.lineno}get colno(){return n.brandCheck(this,e),this.#e.colno}get error(){return n.brandCheck(this,e),this.#e.error}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(c.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),n.converters.MessagePort=n.interfaceConverter(a),n.converters[`sequence`]=n.sequenceConverter(n.converters.MessagePort);let u=[{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}];n.converters.MessageEventInit=n.dictionaryConverter([...u,{key:`data`,converter:n.converters.any,defaultValue:()=>null},{key:`origin`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:n.converters[`sequence`],defaultValue:()=>[]}]),n.converters.CloseEventInit=n.dictionaryConverter([...u,{key:`wasClean`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:n.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:n.converters.USVString,defaultValue:()=>``}]),n.converters.ErrorEventInit=n.dictionaryConverter([...u,{key:`message`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:n.converters.any}]),t.exports={MessageEvent:o,CloseEvent:c,ErrorEvent:l,createFastMessageEvent:s}})),yn=P(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),bn=P(((e,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`)}})),xn=P(((e,t)=>{let{kReadyState:n,kController:r,kResponse:i,kBinaryType:a,kWebSocketURL:o}=bn(),{states:s,opcodes:c}=yn(),{ErrorEvent:l,createFastMessageEvent:u}=vn(),{isUtf8:d}=F(`node:buffer`),{collectASequenceOfCodePointsFast:f,removeHTTPWhitespace:p}=ot();function m(e){return e[n]===s.CONNECTING}function h(e){return e[n]===s.OPEN}function g(e){return e[n]===s.CLOSING}function _(e){return e[n]===s.CLOSED}function v(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function y(e,t,r){if(e[n]!==s.OPEN)return;let i;if(t===c.TEXT)try{i=M(r)}catch{C(e,`Received invalid UTF-8 in text frame.`);return}else t===c.BINARY&&(i=e[a]===`blob`?new Blob([r]):b(r));v(`message`,e,u,{origin:e[o].origin,data:i})}function b(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function x(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function S(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function C(e,t){let{[r]:n,[i]:a}=e;n.abort(),a?.socket&&!a.socket.destroyed&&a.socket.destroy(),t&&v(`error`,e,(e,t)=>new l(e,t),{error:Error(t),message:t})}function w(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function T(e){return e===c.CONTINUATION}function E(e){return e===c.TEXT||e===c.BINARY}function D(e){return E(e)||T(e)||w(e)}function O(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let A=typeof process.versions.icu==`string`,j=A?new TextDecoder(`utf-8`,{fatal:!0}):void 0,M=A?j.decode.bind(j):function(e){if(d(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};t.exports={isConnecting:m,isEstablished:h,isClosing:g,isClosed:_,fireEvent:v,isValidSubprotocol:x,isValidStatusCode:S,failWebsocketConnection:C,websocketMessageReceived:y,utf8Decode:M,isControlFrame:w,isContinuationFrame:T,isTextBinaryFrame:E,isValidOpcode:D,parseExtensions:O,isValidClientWindowBits:k}})),Sn=P(((e,t)=>{let{maxUnsigned16Bit:n}=yn(),r=16386,i,a=null,o=r;try{i=F(`node:crypto`)}catch{i={randomFillSync:function(e,t,n){for(let t=0;tn?(o+=8,a=127):i>125&&(o+=2,a=126);let c=Buffer.allocUnsafe(i+o);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e,c[o-4]=r[0],c[o-3]=r[1],c[o-2]=r[2],c[o-1]=r[3],c[1]=a,a===126?c.writeUInt16BE(i,2):a===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let e=0;e{let{uid:n,states:r,sentCloseFrameState:i,emptyBuffer:a,opcodes:o}=yn(),{kReadyState:s,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=bn(),{fireEvent:f,failWebsocketConnection:p,isClosing:m,isClosed:h,isEstablished:g,parseExtensions:_}=xn(),{channels:v}=Je(),{CloseEvent:y}=vn(),{makeRequest:b}=nn(),{fetching:x}=rn(),{Headers:S,getHeadersList:C}=$t(),{getDecodeSplit:w}=ct(),{WebsocketFrameSend:T}=Sn(),E;try{E=F(`node:crypto`)}catch{}function D(e,t,r,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=b({urlList:[s],client:r,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=C(new S(o.headers)));let l=E.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),x({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){p(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){p(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){p(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){p(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==E.createHash(`sha1`).update(l+n).digest(`base64`)){p(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let r=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(r!==null&&(o=_(r),!o.has(`permessage-deflate`))){p(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!w(`sec-websocket-protocol`,c.headersList).includes(s)){p(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,k),e.socket.on(`close`,A),e.socket.on(`error`,j),v.open.hasSubscribers&&v.open.publish({address:e.socket.address(),protocol:s,extensions:r}),a(e,o)}})}function O(e,t,n,l){if(!(m(e)||h(e)))if(!g(e))p(e,`Connection was closed before it was established.`),e[s]=r.CLOSING;else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;let u=new T;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+l),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=a,e[d].socket.write(u.createFrame(o.CLOSE)),e[c]=i.SENT,e[s]=r.CLOSING}else e[s]=r.CLOSING}function k(e){this.ws[l].write(e)||this.pause()}function A(){let{ws:e}=this,{[d]:t}=e;t.socket.off(`data`,k),t.socket.off(`close`,A),t.socket.off(`error`,j);let n=e[c]===i.SENT&&e[u],a=1005,o=``,p=e[l].closingInfo;p&&!p.error?(a=p.code??1005,o=p.reason):e[u]||(a=1006),e[s]=r.CLOSED,f(`close`,e,(e,t)=>new y(e,t),{wasClean:n,code:a,reason:o}),v.close.hasSubscribers&&v.close.publish({websocket:e,code:a,reason:o})}function j(e){let{ws:t}=this;t[s]=r.CLOSING,v.socketError.hasSubscribers&&v.socketError.publish(e),this.destroy()}t.exports={establishWebSocketConnection:D,closeWebSocketConnection:O}})),wn=P(((e,t)=>{let{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:r}=F(`node:zlib`),{isValidClientWindowBits:i}=xn(),{MessageSizeExceededError:a}=I(),o=Buffer.from([0,0,255,255]),s=Symbol(`kBuffer`),c=Symbol(`kLength`);t.exports={PerMessageDeflate:class{#e;#t={};#n=0;constructor(e,t){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`),this.#n=t.maxPayloadSize}decompress(e,t,l){if(!this.#e){let e=r;if(this.#t.serverMaxWindowBits){if(!i(this.#t.serverMaxWindowBits)){l(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=n({windowBits:e})}catch(e){l(e);return}this.#e[s]=[],this.#e[c]=0,this.#e.on(`data`,e=>{if(this.#e[c]+=e.length,this.#n>0&&this.#e[c]>this.#n){l(new a),this.#e.removeAllListeners(),this.#e=null;return}this.#e[s].push(e)}),this.#e.on(`error`,e=>{this.#e=null,l(e)})}this.#e.write(e),t&&this.#e.write(o),this.#e.flush(()=>{if(!this.#e)return;let e=Buffer.concat(this.#e[s],this.#e[c]);this.#e[s].length=0,this.#e[c]=0,l(null,e)})}}}})),Tn=P(((e,t)=>{let{Writable:n}=F(`node:stream`),r=F(`node:assert`),{parserStates:i,opcodes:a,states:o,emptyBuffer:s,sentCloseFrameState:c}=yn(),{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:f}=bn(),{channels:p}=Je(),{isValidStatusCode:m,isValidOpcode:h,failWebsocketConnection:g,websocketMessageReceived:_,utf8Decode:v,isControlFrame:y,isTextBinaryFrame:b,isContinuationFrame:x}=xn(),{WebsocketFrameSend:S}=Sn(),{closeWebSocketConnection:C}=Cn(),{PerMessageDeflate:w}=wn(),{MessageSizeExceededError:T}=I();t.exports={ByteParser:class extends n{#e=[];#t=0;#n=0;#r=!1;#i=i.INFO;#a={};#o=[];#s;#c;constructor(e,t,n={}){super(),this.ws=e,this.#s=t??new Map,this.#c=n.maxPayloadSize??0,this.#s.has(`permessage-deflate`)&&this.#s.set(`permessage-deflate`,new w(t,n))}_write(e,t,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#l(){return this.#c>0&&!y(this.#a.opcode)&&this.#a.payloadLength>this.#c?(g(this.ws,`Payload size exceeds maximum allowed size`),!1):!0}run(e){for(;this.#r;)if(this.#i===i.INFO){if(this.#n<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,o=(t[1]&128)==128,s=!n&&r!==a.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!h(r))return g(this.ws,`Invalid opcode received`),e();if(o)return g(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#s.has(`permessage-deflate`)){g(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){g(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!b(r)){g(this.ws,`Invalid frame type was fragmented.`);return}if(b(r)&&this.#o.length>0){g(this.ws,`Expected continuation frame`);return}if(this.#a.fragmented&&s){g(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&y(r)){g(this.ws,`Control frame either too large or fragmented`);return}if(x(r)&&this.#o.length===0&&!this.#a.compressed){g(this.ws,`Unexpected continuation frame`);return}if(c<=125){if(this.#a.payloadLength=c,this.#i=i.READ_DATA,!this.#l())return}else c===126?this.#i=i.PAYLOADLENGTH_16:c===127&&(this.#i=i.PAYLOADLENGTH_64);b(r)&&(this.#a.binaryType=r,this.#a.compressed=l!==0),this.#a.opcode=r,this.#a.masked=o,this.#a.fin=n,this.#a.fragmented=s}else if(this.#i===i.PAYLOADLENGTH_16){if(this.#n<2)return e();let t=this.consume(2);if(this.#a.payloadLength=t.readUInt16BE(0),this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.PAYLOADLENGTH_64){if(this.#n<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){g(this.ws,`Received payload length > 2^31 bytes.`);return}if(this.#a.payloadLength=r,this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.READ_DATA){if(this.#n{if(t){g(this.ws,t.message);return}if(this.writeFragments(n),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}if(!this.#a.fin){this.#i=i.INFO,this.#r=!0,this.run(e);return}_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#r=!0,this.#i=i.INFO,this.run(e)}),this.#r=!1;break}else{if(this.writeFragments(t),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}!this.#a.fragmented&&this.#a.fin&&_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#i=i.INFO}}}consume(e){if(e>this.#n)throw Error(`Called consume() before buffers satiated.`);if(e===0)return s;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#n-=e,t}writeFragments(e){this.#t+=e.length,this.#o.push(e)}consumeFragments(){let e=this.#o;if(e.length===1)return this.#t=0,e.shift();let t=Buffer.concat(e,this.#t);return this.#o=[],this.#t=0,t}parseCloseBody(e){r(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!m(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=v(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#a;if(t===a.CLOSE){if(n===1)return g(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#a.closeInfo=this.parseCloseBody(e),this.#a.closeInfo.error){let{code:e,reason:t}=this.#a.closeInfo;return C(this.ws,e,t,t.length),g(this.ws,t),!1}if(this.ws[u]!==c.SENT){let e=s;this.#a.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#a.closeInfo.code,0));let t=new S(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),e=>{e||(this.ws[u]=c.SENT)})}return this.ws[l]=o.CLOSING,this.ws[f]=!0,!1}else if(t===a.PING){if(!this.ws[f]){let t=new S(e);this.ws[d].socket.write(t.createFrame(a.PONG)),p.ping.hasSubscribers&&p.ping.publish({payload:e})}}else t===a.PONG&&p.pong.hasSubscribers&&p.pong.publish({payload:e});return!0}get closingInfo(){return this.#a.closeInfo}}}})),En=P(((e,t)=>{let{WebsocketFrameSend:n}=Sn(),{opcodes:r,sendHints:i}=yn(),a=yt(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),Dn=P(((e,t)=>{let{webidl:n}=st(),{URLSerializer:r}=ot(),{environmentSettingsObject:i}=ct(),{staticPropertyDescriptors:a,states:o,sentCloseFrameState:s,sendHints:c}=yn(),{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:f,kResponse:p,kSentClose:m,kByteParser:h}=bn(),{isConnecting:g,isEstablished:_,isClosing:v,isValidSubprotocol:y,fireEvent:b}=xn(),{establishWebSocketConnection:x,closeWebSocketConnection:S}=Cn(),{ByteParser:C}=Tn(),{kEnumerableProperty:w,isBlobLike:T}=L(),{getGlobalDispatcher:E}=qt(),{types:D}=F(`node:util`),{ErrorEvent:O,CloseEvent:k}=vn(),{SendQueue:A}=En();var j=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,r=[]){super(),n.util.markAsUncloneable(this);let a=`WebSocket constructor`;n.argumentLengthCheck(arguments,1,a);let o=n.converters[`DOMString or sequence or WebSocketInit`](r,a,`options`);t=n.converters.USVString(t,a,`url`),r=o.protocols;let c=i.settingsObject.baseUrl,p;try{p=new URL(t,c)}catch(e){throw new DOMException(e,`SyntaxError`)}if(p.protocol===`http:`?p.protocol=`ws:`:p.protocol===`https:`&&(p.protocol=`wss:`),p.protocol!==`ws:`&&p.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,`SyntaxError`);if(p.hash||p.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof r==`string`&&(r=[r]),r.length!==new Set(r.map(e=>e.toLowerCase())).size||r.length>0&&!r.every(e=>y(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[l]=new URL(p.href);let h=i.settingsObject;this[d]=x(p,r,h,this,(e,t)=>this.#a(e,t),o),this[u]=e.CONNECTING,this[m]=s.NOT_SENT,this[f]=`blob`}close(t=void 0,r=void 0){n.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=n.converters[`unsigned short`](t,i,`code`,{clamp:!0})),r!==void 0&&(r=n.converters.USVString(r,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(r!==void 0&&(a=Buffer.byteLength(r),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);S(this,t,r,a)}send(t){n.brandCheck(this,e);let r=`WebSocket.send`;if(n.argumentLengthCheck(arguments,1,r),t=n.converters.WebSocketSendData(t,r,`data`),g(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!_(this)||v(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},c.string)}else D.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.typedArray)):T(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},c.blob))}get readyState(){return n.brandCheck(this,e),this[u]}get bufferedAmount(){return n.brandCheck(this,e),this.#t}get url(){return n.brandCheck(this,e),r(this[l])}get extensions(){return n.brandCheck(this,e),this.#r}get protocol(){return n.brandCheck(this,e),this.#n}get onopen(){return n.brandCheck(this,e),this.#e.open}set onopen(t){n.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return n.brandCheck(this,e),this.#e.error}set onerror(t){n.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return n.brandCheck(this,e),this.#e.close}set onclose(t){n.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return n.brandCheck(this,e),this.#e.message}set onmessage(t){n.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return n.brandCheck(this,e),this[f]}set binaryType(t){n.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[f]=`blob`:this[f]=t}#a(e,t){this[p]=e;let n=this[d]?.dispatcher?.webSocketOptions?.maxPayloadSize,r=new C(this,t,{maxPayloadSize:n});r.on(`drain`,M),r.on(`error`,ee.bind(this)),e.socket.ws=this,this[h]=r,this.#i=new A(e.socket),this[u]=o.OPEN;let i=e.headersList.get(`sec-websocket-extensions`);i!==null&&(this.#r=i);let a=e.headersList.get(`sec-websocket-protocol`);a!==null&&(this.#n=a),b(`open`,this)}};j.CONNECTING=j.prototype.CONNECTING=o.CONNECTING,j.OPEN=j.prototype.OPEN=o.OPEN,j.CLOSING=j.prototype.CLOSING=o.CLOSING,j.CLOSED=j.prototype.CLOSED=o.CLOSED,Object.defineProperties(j.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(j,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a}),n.converters[`sequence`]=n.sequenceConverter(n.converters.DOMString),n.converters[`DOMString or sequence`]=function(e,t,r){return n.util.Type(e)===`Object`&&Symbol.iterator in e?n.converters[`sequence`](e):n.converters.DOMString(e,t,r)},n.converters.WebSocketInit=n.dictionaryConverter([{key:`protocols`,converter:n.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:n.converters.any,defaultValue:()=>E()},{key:`headers`,converter:n.nullableConverter(n.converters.HeadersInit)}]),n.converters[`DOMString or sequence or WebSocketInit`]=function(e){return n.util.Type(e)===`Object`&&!(Symbol.iterator in e)?n.converters.WebSocketInit(e):{protocols:n.converters[`DOMString or sequence`](e)}},n.converters.WebSocketSendData=function(e){if(n.util.Type(e)===`Object`){if(T(e))return n.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||D.isArrayBuffer(e))return n.converters.BufferSource(e)}return n.converters.USVString(e)};function M(){this.ws[p].socket.resume()}function ee(e){let t,n;e instanceof k?(t=e.reason,n=e.code):t=e.message,b(`error`,this,()=>new O(`error`,{error:e,message:t})),S(this,n)}t.exports={WebSocket:j}})),On=P(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),kn=P(((e,t)=>{let{Transform:n}=F(`node:stream`),{isASCIINumber:r,isValidLastEventId:i}=On(),a=[239,187,191];t.exports={EventSourceStream:class extends n{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===a[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[a]=o);break}}processEvent(e){e.retry&&r(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&i(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),An=P(((e,t)=>{let{pipeline:n}=F(`node:stream`),{fetching:r}=rn(),{makeRequest:i}=nn(),{webidl:a}=st(),{EventSourceStream:o}=kn(),{parseMIMEType:s}=ot(),{createFastMessageEvent:c}=vn(),{isNetworkError:l}=en(),{delay:u}=On(),{kEnumerableProperty:d}=L(),{environmentSettingsObject:f}=ct(),p=!1,m=3e3;var h=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),a.util.markAsUncloneable(this);let n=`EventSource constructor`;a.argumentLengthCheck(arguments,1,n),p||(p=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=a.converters.USVString(e,n,`url`),t=a.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:m};let r=f,o;try{o=new URL(e,r.settingsObject.baseUrl),this.#s.origin=o.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=o.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=f.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=i(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{l(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(l(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),r=t===null?`failure`:s(t),i=r!==`failure`&&r.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new o({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=r(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await u(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){a.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let g={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(h,g),Object.defineProperties(h.prototype,g),Object.defineProperties(h.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d}),a.converters.EventSourceInitDict=a.dictionaryConverter([{key:`withCredentials`,converter:a.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:a.converters.any}]),t.exports={EventSource:h,defaultReconnectionTime:m}})),jn=P(((e,t)=>{let n=vt(),r=Xe(),i=St(),a=Ct(),o=wt(),s=Tt(),c=Et(),l=Ot(),u=I(),d=L(),{InvalidArgumentError:f}=u,p=Lt(),m=$e(),h=Ht(),g=Kt(),_=Ut(),v=Rt(),y=Dt(),{getGlobalDispatcher:b,setGlobalDispatcher:x}=qt(),S=Jt(),C=gt(),w=_t();Object.assign(r.prototype,p),t.exports.Dispatcher=r,t.exports.Client=n,t.exports.Pool=i,t.exports.BalancedPool=a,t.exports.Agent=o,t.exports.ProxyAgent=s,t.exports.EnvHttpProxyAgent=c,t.exports.RetryAgent=l,t.exports.RetryHandler=y,t.exports.DecoratorHandler=S,t.exports.RedirectHandler=C,t.exports.createRedirectInterceptor=w,t.exports.interceptors={redirect:Yt(),retry:Xt(),dump:Zt(),dns:Qt()},t.exports.buildConnector=m,t.exports.errors=u,t.exports.util={parseHeaders:d.parseHeaders,headerNameToString:d.headerNameToString};function T(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new f(`invalid url`);if(n!=null&&typeof n!=`object`)throw new f(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new f(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(d.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=d.parseURL(t);let{agent:i,dispatcher:a=b()}=n;if(i)throw new f(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}t.exports.setGlobalDispatcher=x,t.exports.getGlobalDispatcher=b;let E=rn().fetch;t.exports.fetch=async function(e,t=void 0){try{return await E(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},t.exports.Headers=$t().Headers,t.exports.Response=en().Response,t.exports.Request=nn().Request,t.exports.FormData=dt().FormData,t.exports.File=globalThis.File??F(`node:buffer`).File,t.exports.FileReader=ln().FileReader;let{setGlobalOrigin:D,getGlobalOrigin:O}=at();t.exports.setGlobalOrigin=D,t.exports.getGlobalOrigin=O;let{CacheStorage:k}=pn(),{kConstruct:A}=un();t.exports.caches=new k(A);let{deleteCookie:j,getCookies:M,getSetCookies:ee,setCookie:N}=_n();t.exports.deleteCookie=j,t.exports.getCookies=M,t.exports.getSetCookies=ee,t.exports.setCookie=N;let{parseMIMEType:te,serializeAMimeType:ne}=ot();t.exports.parseMIMEType=te,t.exports.serializeAMimeType=ne;let{CloseEvent:re,ErrorEvent:ie,MessageEvent:ae}=vn();t.exports.WebSocket=Dn().WebSocket,t.exports.CloseEvent=re,t.exports.ErrorEvent=ie,t.exports.MessageEvent=ae,t.exports.request=T(p.request),t.exports.stream=T(p.stream),t.exports.pipeline=T(p.pipeline),t.exports.connect=T(p.connect),t.exports.upgrade=T(p.upgrade),t.exports.MockClient=h,t.exports.MockPool=_,t.exports.MockAgent=g,t.exports.mockErrors=v;let{EventSource:oe}=An();t.exports.EventSource=oe})),Mn=ke(We(),1),Nn=jn(),Pn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Fn;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(Fn||={});var In;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(In||={});var Ln;(function(e){e.ApplicationJson=`application/json`})(Ln||={});const Rn=[Fn.MovedPermanently,Fn.ResourceMoved,Fn.SeeOther,Fn.TemporaryRedirect,Fn.PermanentRedirect],zn=[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout],Bn=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var Vn=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},Hn=class{constructor(e){this.message=e}readBody(){return Pn(this,void 0,void 0,function*(){return new Promise(e=>Pn(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return Pn(this,void 0,void 0,function*(){return new Promise(e=>Pn(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},Un=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return Pn(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return Pn(this,arguments,void 0,function*(e,t={}){t[In.Accept]=this._getExistingOrDefaultHeader(t,In.Accept,Ln.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return Pn(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&Bn.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===Fn.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&Rn.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!zn.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new Hn(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=ze(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?f:d;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Wn(this.requestOptions.headers),Wn(e||{})):Wn(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=Wn(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=Wn(this.requestOptions.headers)[In.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[In.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=ze(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||d.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?Mn.httpsOverHttps:Mn.httpsOverHttp:o?Mn.httpOverHttps:Mn.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new f.Agent(e):new d.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new Nn.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return Pn(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return Pn(this,void 0,void 0,function*(){return new Promise((n,r)=>Pn(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===Fn.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new Vn(e,i);t.result=a.result,r(t)}else n(a)}))})}};const Wn=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var Gn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Kn=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Gn(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},qn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:Jn,appendFile:Yn,writeFile:Xn}=c,Zn=`GITHUB_STEP_SUMMARY`;new class{constructor(){this._buffer=``}filePath(){return qn(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zn];if(!e)throw Error(`Unable to find environment variable for $${Zn}. Check if your runtime environment supports job summaries.`);try{yield Jn(e,o.R_OK|o.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return qn(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Xn:Yn)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return qn(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(r)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var Qn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:$n,copyFile:er,lstat:tr,mkdir:nr,open:rr,readdir:ir,rename:ar,rm:or,rmdir:sr,stat:cr,symlink:lr,unlink:ur}=a.promises,dr=process.platform===`win32`;a.constants.O_RDONLY;function fr(e){return Qn(this,void 0,void 0,function*(){try{yield cr(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function pr(e){if(e=hr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return dr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function mr(e,t){return Qn(this,void 0,void 0,function*(){let n;try{n=yield cr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(dr){let n=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(gr(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield cr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(dr){try{let t=u.dirname(e),n=u.basename(e).toUpperCase();for(let r of yield ir(t))if(n===r.toUpperCase()){e=u.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(gr(n))return e}}return``})}function hr(e){return e||=``,dr?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function gr(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var _r=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function vr(e){return _r(this,void 0,void 0,function*(){g(e,`a path argument must be provided`),yield nr(e,{recursive:!0})})}function yr(e,t){return _r(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield yr(e,!1);if(!t)throw Error(dr?`Unable to locate executable file: ${e}. 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.`:`Unable to locate executable file: ${e}. 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 t}let n=yield br(e);return n&&n.length>0?n[0]:``})}function br(e){return _r(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(dr&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(pr(e)){let n=yield mr(e,t);return n?[n]:[]}if(e.includes(u.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield mr(u.join(i,e),t);n&&r.push(n)}return r})}var xr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const Sr=process.platform===`win32`;var Cr=class extends p.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(Sr)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,n,r){try{let i=n+e.toString(),a=i.indexOf(t.EOL);for(;a>-1;)r(i.substring(0,a)),i=i.substring(a+t.EOL.length),a=i.indexOf(t.EOL);return i}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return Sr&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(Sr&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return xr(this,void 0,void 0,function*(){return!pr(this.toolPath)&&(this.toolPath.includes(`/`)||Sr&&this.toolPath.includes(`\\`))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield yr(this.toolPath,!0),new Promise((e,n)=>xr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+t.EOL);let i=new Tr(r,this.toolPath);if(i.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield fr(this.options.cwd)))return n(Error(`The cwd: ${this.options.cwd} does not exist!`));let a=this._getSpawnFileName(),o=D.spawn(a,this._getSpawnArgs(r),this._getSpawnOptions(this.options,a)),s=``;o.stdout&&o.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c=``;if(o.stderr&&o.stderr.on(`data`,e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on(`error`,e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),o.on(`exit`,e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),o.on(`close`,e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on(`done`,(t,r)=>{s.length>0&&this.emit(`stdline`,s),c.length>0&&this.emit(`errline`,c),o.removeAllListeners(),t?n(t):e(r)}),this.options.input){if(!o.stdin)throw Error(`child process missing stdin`);o.stdin.end(this.options.input)}}))})}};function wr(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var Tr=class e extends p.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=O(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},Er=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Dr(e,t,n){return Er(this,void 0,void 0,function*(){let r=wr(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new Cr(i,t,n).exec()})}function Or(e,t,n){return Er(this,void 0,void 0,function*(){let r=``,i=``,a=new E(`utf8`),o=new E(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield Dr(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}n.platform(),n.arch();var kr;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(kr||={});function Ar(e,t){let n=Ae(t);if(process.env[e]=n,process.env.GITHUB_ENV)return Le(`ENV`,Re(e,t));Me(`set-env`,{name:e},n)}function jr(e){Me(`add-mask`,{},e)}function Mr(e){process.env.GITHUB_PATH?Le(`PATH`,e):Me(`add-path`,{},e),process.env.PATH=`${e}${u.delimiter}${process.env.PATH}`}function Nr(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Pr(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=Nr(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Fr(e,n){if(process.env.GITHUB_OUTPUT)return Le(`OUTPUT`,Re(e,n));process.stdout.write(t.EOL),Me(`set-output`,{name:e},Ae(n))}function Ir(e){process.exitCode=kr.Failure,Rr(e)}function Lr(){return process.env.RUNNER_DEBUG===`1`}function R(e){Me(`debug`,{},e)}function Rr(e,t={}){Me(`error`,je(t),e instanceof Error?e.toString():e)}function zr(e,t={}){Me(`warning`,je(t),e instanceof Error?e.toString():e)}function Br(e){process.stdout.write(e+t.EOL)}function Vr(e){Ne(`group`,e)}function Hr(){Ne(`endgroup`)}function Ur(e,t){if(process.env.GITHUB_STATE)return Le(`STATE`,Re(e,t));Me(`save-state`,{name:e},Ae(t))}function Wr(e){return process.env[`STATE_${e}`]||``}var Gr=P((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),Kr=P((e=>{var t=Gr();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e{var t=Gr(),n=Kr();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(` -`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),Jr=P((e=>{var t=Gr(),n=Kr();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),Yr=P((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n{var t=Gr();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),Zr=P((e=>{var t=Yr(),n=Gr(),r=Xr();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),Qr=P((e=>{var t=Jr(),n=Kr(),r=Gr(),i=Zr(),a=Xr(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),$r=P((e=>{var t=Gr(),n=Zr(),r=Xr();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),ei=P((e=>{var t=Qr(),n=Gr(),r=$r();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),ti=P((e=>{var t=ei(),n=Gr(),r=Zr();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),ni=P((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(` +`.trim())}}})),qt=P(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=I(),i=wt();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),Jt=P(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),Yt=P(((e,t)=>{let n=gt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),Xt=P(((e,t)=>{let n=Dt();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),Zt=P(((e,t)=>{let n=L(),{InvalidArgumentError:r,RequestAbortedError:i}=I(),a=Jt();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),Qt=P(((e,t)=>{let{isIP:n}=F(`node:net`),{lookup:r}=F(`node:dns`),i=Jt(),{InvalidArgumentError:a,InformationalError:o}=I(),s=2**31-1;var c=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new o(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),s=this.pick(e,a,i.affinity),c;c=typeof s.port==`number`?`:${s.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${s.family===6?`[${s.address}]`:s.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){r(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===s?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===s?o.offset=0:o.offset++;let c=o.offset%o.ips.length;return r=o.ips[c]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(c,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new l(this,e,t)}},l=class extends i{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};t.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new a(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new a(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new a(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new a(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new a(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new a(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,r;r=t?e?.affinity??null:e?.affinity??4;let i=new c({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0});return e=>function(t,r){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return n(a.hostname)===0?(i.runLookup(a,t,(n,o)=>{if(n)return r.onError(n);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:r},t))}),!0):e(t,r)}}})),$t=P(((e,t)=>{let{kConstruct:n}=Ge(),{kEnumerableProperty:r}=L(),{iteratorMixin:i,isValidHeaderName:a,isValidHeaderValue:o}=ct(),{webidl:s}=st(),c=F(`node:assert`),l=F(`node:util`),u=Symbol(`headers map`),d=Symbol(`headers map sorted`);function f(e){return e===10||e===13||e===9||e===32}function p(e){let t=0,n=e.length;for(;n>t&&f(e.charCodeAt(n-1));)--n;for(;n>t&&f(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function m(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function h(e,t,n){if(n=p(n),!a(t))throw s.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(y(e)===`immutable`)throw TypeError(`immutable`);return x(e).append(t,n,!1)}function g(e,t){return e[0]>1),t[s][0]<=l[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=l}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[u])t[e++]=[n,r],c(r!==null);return t.sort(g)}}},v=class e{#e;#t;constructor(e=void 0){s.util.markAsUncloneable(this),e!==n&&(this.#t=new _,this.#e=`none`,e!==void 0&&(e=s.converters.HeadersInit(e,`Headers contructor`,`init`),m(this,e)))}append(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),h(this,t,n)}delete(t){if(s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.delete`),t=s.converters.ByteString(t,`Headers.delete`,`name`),!a(t))throw s.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),n=p(n),!a(t))throw s.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){s.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[d](){if(this.#t[d])return this.#t[d];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[d]=t;for(let r=0;r>`](e,t,n,r.bind(e)):s.converters[`record`](e,t,n)}throw s.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},t.exports={fill:m,compareHeaderName:g,Headers:v,HeadersList:_,getHeadersGuard:y,setHeadersGuard:b,setHeadersList:S,getHeadersList:x}})),en=P(((e,t)=>{let{Headers:n,HeadersList:r,fill:i,getHeadersGuard:a,setHeadersGuard:o,setHeadersList:s}=$t(),{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:f,bodyUnusable:p}=pt(),m=L(),h=F(`node:util`),{kEnumerableProperty:g}=m,{isValidReasonPhrase:_,isCancelled:v,isAborted:y,isBlobLike:b,serializeJavascriptValueToJSONString:x,isErrorLike:S,isomorphicEncode:C,environmentSettingsObject:w}=ct(),{redirectStatusSet:T,nullBodyStatus:E}=it(),{kState:D,kHeaders:O}=lt(),{webidl:k}=st(),{FormData:A}=dt(),{URLSerializer:j}=ot(),{kConstruct:M}=Ge(),ee=F(`node:assert`),{types:N}=F(`node:util`),te=new TextEncoder(`utf-8`);var ne=class e{static error(){return de(ae(),`immutable`)}static json(e,t={}){k.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=k.converters.ResponseInit(t));let n=c(te.encode(x(e))),r=de(ie({}),`response`);return ue(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){k.argumentLengthCheck(arguments,1,`Response.redirect`),e=k.converters.USVString(e),t=k.converters[`unsigned short`](t);let n;try{n=new URL(e,w.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!T.has(t))throw RangeError(`Invalid status code ${t}`);let r=de(ie({}),`immutable`);r[D].status=t;let i=C(j(n));return r[D].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(k.util.markAsUncloneable(this),e===M)return;e!==null&&(e=k.converters.BodyInit(e)),t=k.converters.ResponseInit(t),this[D]=ie({}),this[O]=new n(M),o(this[O],`response`),s(this[O],this[D].headersList);let r=null;if(e!=null){let[t,n]=c(e);r={body:t,type:n}}ue(this,t,r)}get type(){return k.brandCheck(this,e),this[D].type}get url(){k.brandCheck(this,e);let t=this[D].urlList,n=t[t.length-1]??null;return n===null?``:j(n,!0)}get redirected(){return k.brandCheck(this,e),this[D].urlList.length>1}get status(){return k.brandCheck(this,e),this[D].status}get ok(){return k.brandCheck(this,e),this[D].status>=200&&this[D].status<=299}get statusText(){return k.brandCheck(this,e),this[D].statusText}get headers(){return k.brandCheck(this,e),this[O]}get body(){return k.brandCheck(this,e),this[D].body?this[D].body.stream:null}get bodyUsed(){return k.brandCheck(this,e),!!this[D].body&&m.isDisturbed(this[D].body.stream)}clone(){if(k.brandCheck(this,e),p(this))throw k.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=re(this[D]);return d&&this[D].body?.stream&&f.register(this,new WeakRef(this[D].body.stream)),de(t,a(this[O]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};u(ne),Object.defineProperties(ne.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(ne,{json:g,redirect:g,error:g});function re(e){if(e.internalResponse)return ce(re(e.internalResponse),e.type);let t=ie({...e,body:null});return e.body!=null&&(t.body=l(t,e.body)),t}function ie(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new r(e?.headersList):new r,urlList:e?.urlList?[...e.urlList]:[]}}function ae(e){return ie({type:`error`,status:0,error:S(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function oe(e){return e.type===`error`&&e.status===0}function se(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return ee(!(n in t)),e[n]=r,!0}})}function ce(e,t){if(t===`basic`)return se(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return se(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return se(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return se(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});ee(!1)}function le(e,t=null){return ee(v(e)),y(e)?ae(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):ae(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function ue(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!_(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[D].status=t.status),`statusText`in t&&t.statusText!=null&&(e[D].statusText=t.statusText),`headers`in t&&t.headers!=null&&i(e[O],t.headers),n){if(E.includes(e.status))throw k.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[D].body=n.body,n.type!=null&&!e[D].headersList.contains(`content-type`,!0)&&e[D].headersList.append(`content-type`,n.type,!0)}}function de(e,t){let r=new ne(M);return r[D]=e,r[O]=new n(M),s(r[O],e.headersList),o(r[O],t),d&&e.body?.stream&&f.register(r,new WeakRef(e.body.stream)),r}k.converters.ReadableStream=k.interfaceConverter(ReadableStream),k.converters.FormData=k.interfaceConverter(A),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?k.converters.USVString(e,t,n):b(e)?k.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||N.isArrayBuffer(e)?k.converters.BufferSource(e,t,n):m.isFormDataLike(e)?k.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?k.converters.URLSearchParams(e,t,n):k.converters.DOMString(e,t,n)},k.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?k.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:k.converters.XMLHttpRequestBodyInit(e,t,n)},k.converters.ResponseInit=k.dictionaryConverter([{key:`status`,converter:k.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:k.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:k.converters.HeadersInit}]),t.exports={isNetworkError:oe,makeNetworkError:ae,makeResponse:ie,makeAppropriateNetworkError:le,filterResponse:ce,Response:ne,cloneResponse:re,fromInnerResponse:de}})),tn=P(((e,t)=>{let{kConnected:n,kSize:r}=Ge();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),nn=P(((e,t)=>{let{extractBody:n,mixinBody:r,cloneBody:i,bodyUnusable:a}=pt(),{Headers:o,fill:s,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:f}=$t(),{FinalizationRegistry:p}=tn()(),m=L(),h=F(`node:util`),{isValidHTTPToken:g,sameOrigin:_,environmentSettingsObject:v}=ct(),{forbiddenMethodsSet:y,corsSafeListedMethodsSet:b,referrerPolicy:x,requestRedirect:S,requestMode:C,requestCredentials:w,requestCache:T,requestDuplex:E}=it(),{kEnumerableProperty:D,normalizedMethodRecordsBase:O,normalizedMethodRecords:k}=m,{kHeaders:A,kSignal:j,kState:M,kDispatcher:ee}=lt(),{webidl:N}=st(),{URLSerializer:te}=ot(),{kConstruct:ne}=Ge(),re=F(`node:assert`),{getMaxListeners:ie,setMaxListeners:ae,getEventListeners:oe,defaultMaxListeners:se}=F(`node:events`),ce=Symbol(`abortController`),le=new p(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),ue=new WeakMap;function de(e){return t;function t(){let n=e.deref();if(n!==void 0){le.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=ue.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}ue.delete(n.signal)}}}}let fe=!1;var pe=class e{constructor(t,r={}){if(N.util.markAsUncloneable(this),t===ne)return;let i=`Request constructor`;N.argumentLengthCheck(arguments,1,i),t=N.converters.RequestInfo(t,i,`input`),r=N.converters.RequestInit(r,i,`init`);let u=null,p=null,h=v.settingsObject.baseUrl,x=null;if(typeof t==`string`){this[ee]=r.dispatcher;let e;try{e=new URL(t,h)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);u=me({urlList:[e]}),p=`cors`}else this[ee]=r.dispatcher||t[ee],re(t instanceof e),u=t[M],x=t[j];let S=v.settingsObject.origin,C=`client`;if(u.window?.constructor?.name===`EnvironmentSettingsObject`&&_(u.window,S)&&(C=u.window),r.window!=null)throw TypeError(`'window' option '${C}' must be null`);`window`in r&&(C=`no-window`),u=me({method:u.method,headersList:u.headersList,unsafeRequest:u.unsafeRequest,client:v.settingsObject,window:C,priority:u.priority,origin:u.origin,referrer:u.referrer,referrerPolicy:u.referrerPolicy,mode:u.mode,credentials:u.credentials,cache:u.cache,redirect:u.redirect,integrity:u.integrity,keepalive:u.keepalive,reloadNavigation:u.reloadNavigation,historyNavigation:u.historyNavigation,urlList:[...u.urlList]});let w=Object.keys(r).length!==0;if(w&&(u.mode===`navigate`&&(u.mode=`same-origin`),u.reloadNavigation=!1,u.historyNavigation=!1,u.origin=`client`,u.referrer=`client`,u.referrerPolicy=``,u.url=u.urlList[u.urlList.length-1],u.urlList=[u.url]),r.referrer!==void 0){let e=r.referrer;if(e===``)u.referrer=`no-referrer`;else{let t;try{t=new URL(e,h)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||S&&!_(t,v.settingsObject.baseUrl)?u.referrer=`client`:u.referrer=t}}r.referrerPolicy!==void 0&&(u.referrerPolicy=r.referrerPolicy);let T;if(T=r.mode===void 0?p:r.mode,T===`navigate`)throw N.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(T!=null&&(u.mode=T),r.credentials!==void 0&&(u.credentials=r.credentials),r.cache!==void 0&&(u.cache=r.cache),u.cache===`only-if-cached`&&u.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(r.redirect!==void 0&&(u.redirect=r.redirect),r.integrity!=null&&(u.integrity=String(r.integrity)),r.keepalive!==void 0&&(u.keepalive=!!r.keepalive),r.method!==void 0){let e=r.method,t=k[e];if(t!==void 0)u.method=t;else{if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(y.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=O[t]??e,u.method=e}!fe&&u.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`}),fe=!0)}r.signal!==void 0&&(x=r.signal),this[M]=u;let E=new AbortController;if(this[j]=E.signal,x!=null){if(!x||typeof x.aborted!=`boolean`||typeof x.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(x.aborted)E.abort(x.reason);else{this[ce]=E;let e=de(new WeakRef(E));try{(typeof ie==`function`&&ie(x)===se||oe(x,`abort`).length>=se)&&ae(1500,x)}catch{}m.addAbortListener(x,e),le.register(E,{signal:x,abort:e},e)}}if(this[A]=new o(ne),d(this[A],u.headersList),l(this[A],`request`),T===`no-cors`){if(!b.has(u.method))throw TypeError(`'${u.method} is unsupported in no-cors mode.`);l(this[A],`request-no-cors`)}if(w){let e=f(this[A]),t=r.headers===void 0?new c(e):r.headers;if(e.clear(),t instanceof c){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else s(this[A],t)}let D=t instanceof e?t[M].body:null;if((r.body!=null||D!=null)&&(u.method===`GET`||u.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let te=null;if(r.body!=null){let[e,t]=n(r.body,u.keepalive);te=e,t&&!f(this[A]).contains(`content-type`,!0)&&this[A].append(`content-type`,t)}let ue=te??D;if(ue!=null&&ue.source==null){if(te!=null&&r.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(u.mode!==`same-origin`&&u.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);u.useCORSPreflightFlag=!0}let pe=ue;if(te==null&&D!=null){if(a(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;D.stream.pipeThrough(e),pe={source:D.source,length:D.length,stream:e.readable}}this[M].body=pe}get method(){return N.brandCheck(this,e),this[M].method}get url(){return N.brandCheck(this,e),te(this[M].url)}get headers(){return N.brandCheck(this,e),this[A]}get destination(){return N.brandCheck(this,e),this[M].destination}get referrer(){return N.brandCheck(this,e),this[M].referrer===`no-referrer`?``:this[M].referrer===`client`?`about:client`:this[M].referrer.toString()}get referrerPolicy(){return N.brandCheck(this,e),this[M].referrerPolicy}get mode(){return N.brandCheck(this,e),this[M].mode}get credentials(){return this[M].credentials}get cache(){return N.brandCheck(this,e),this[M].cache}get redirect(){return N.brandCheck(this,e),this[M].redirect}get integrity(){return N.brandCheck(this,e),this[M].integrity}get keepalive(){return N.brandCheck(this,e),this[M].keepalive}get isReloadNavigation(){return N.brandCheck(this,e),this[M].reloadNavigation}get isHistoryNavigation(){return N.brandCheck(this,e),this[M].historyNavigation}get signal(){return N.brandCheck(this,e),this[j]}get body(){return N.brandCheck(this,e),this[M].body?this[M].body.stream:null}get bodyUsed(){return N.brandCheck(this,e),!!this[M].body&&m.isDisturbed(this[M].body.stream)}get duplex(){return N.brandCheck(this,e),`half`}clone(){if(N.brandCheck(this,e),a(this))throw TypeError(`unusable`);let t=he(this[M]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=ue.get(this.signal);e===void 0&&(e=new Set,ue.set(this.signal,e));let t=new WeakRef(n);e.add(t),m.addAbortListener(n.signal,de(t))}return ge(t,n.signal,u(this[A]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};r(pe);function me(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function he(e){let t=me({...e,body:null});return e.body!=null&&(t.body=i(t,e.body)),t}function ge(e,t,n){let r=new pe(ne);return r[M]=e,r[j]=t,r[A]=new o(ne),d(r[A],e.headersList),l(r[A],n),r}Object.defineProperties(pe.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),N.converters.Request=N.interfaceConverter(pe),N.converters.RequestInfo=function(e,t,n){return typeof e==`string`?N.converters.USVString(e,t,n):e instanceof pe?N.converters.Request(e,t,n):N.converters.USVString(e,t,n)},N.converters.AbortSignal=N.interfaceConverter(AbortSignal),N.converters.RequestInit=N.dictionaryConverter([{key:`method`,converter:N.converters.ByteString},{key:`headers`,converter:N.converters.HeadersInit},{key:`body`,converter:N.nullableConverter(N.converters.BodyInit)},{key:`referrer`,converter:N.converters.USVString},{key:`referrerPolicy`,converter:N.converters.DOMString,allowedValues:x},{key:`mode`,converter:N.converters.DOMString,allowedValues:C},{key:`credentials`,converter:N.converters.DOMString,allowedValues:w},{key:`cache`,converter:N.converters.DOMString,allowedValues:T},{key:`redirect`,converter:N.converters.DOMString,allowedValues:S},{key:`integrity`,converter:N.converters.DOMString},{key:`keepalive`,converter:N.converters.boolean},{key:`signal`,converter:N.nullableConverter(e=>N.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:N.converters.any},{key:`duplex`,converter:N.converters.DOMString,allowedValues:E},{key:`dispatcher`,converter:N.converters.any}]),t.exports={Request:pe,makeRequest:me,fromInnerRequest:ge,cloneRequest:he}})),rn=P(((e,t)=>{let{makeNetworkError:n,makeAppropriateNetworkError:r,filterResponse:i,makeResponse:a,fromInnerResponse:o}=en(),{HeadersList:s}=$t(),{Request:c,cloneRequest:l}=nn(),u=F(`node:zlib`),{bytesMatch:d,makePolicyContainer:f,clonePolicyContainer:p,requestBadPort:m,TAOCheck:h,appendRequestOriginHeader:g,responseLocationURL:_,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:x,appendFetchMetadata:S,corsCheck:C,crossOriginResourcePolicyCheck:w,determineRequestsReferrer:T,coarsenedSharedCurrentTime:E,createDeferredPromise:D,isBlobLike:O,sameOrigin:k,isCancelled:A,isAborted:j,isErrorLike:M,fullyReadBody:ee,readableStreamClose:N,isomorphicEncode:te,urlIsLocal:ne,urlIsHttpHttpsScheme:re,urlHasHttpsScheme:ie,clampAndCoarsenConnectionTimingInfo:ae,simpleRangeHeaderValue:oe,buildContentRange:se,createInflate:ce,extractMimeType:le}=ct(),{kState:ue,kDispatcher:de}=lt(),fe=F(`node:assert`),{safelyExtractBody:pe,extractBody:me}=pt(),{redirectStatusSet:he,nullBodyStatus:ge,safeMethodsSet:_e,requestBodyHeader:ve,subresourceSet:ye}=it(),be=F(`node:events`),{Readable:xe,pipeline:Se,finished:Ce}=F(`node:stream`),{addAbortListener:we,isErrored:Te,isReadable:Ee,bufferToLowerCasedHeaderName:P}=L(),{dataURLProcessor:De,serializeAMimeType:Oe,minimizeSupportedMimeType:ke}=ot(),{getGlobalDispatcher:Ae}=qt(),{webidl:je}=st(),{STATUS_CODES:Me}=F(`node:http`),Ne=[`GET`,`HEAD`],Pe=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,Fe;var Ie=class extends be{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function Le(e){ze(e,`fetch`)}function Re(e,t=void 0){je.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=D(),r;try{r=new c(e,t)}catch(e){return n.reject(e),n.promise}let i=r[ue];if(r.signal.aborted)return Ve(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,s=!1,l=null;return we(r.signal,()=>{s=!0,fe(l!=null),l.abort(r.signal.reason);let e=a?.deref();Ve(n,i,e,r.signal.reason)}),l=He({request:i,processResponseEndOfBody:Le,processResponse:e=>{if(!s){if(e.aborted){Ve(n,i,a,l.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(o(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[de]}),n.promise}function ze(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;re(n)&&r!==null&&(e.timingAllowPassed||(r=x({startTime:r.startTime}),i=``),r.endTime=E(),e.timingInfo=r,Be(r,n.href,t,globalThis,i))}let Be=performance.markResourceTiming;function Ve(e,t,n,r){if(e&&e.reject(r),t.body!=null&&Ee(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[ue];i.body!=null&&Ee(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function He({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Ae()}){fe(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=x({startTime:E(l)}),d={controller:new Ie(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return fe(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=f():e.policyContainer=p(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,ye.has(e.destination),Ue(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Ue(e,t=!1){let r=e.request,a=null;if(r.localURLsOnly&&!ne(v(r))&&(a=n(`local URLs only`)),b(r),m(r)===`blocked`&&(a=n(`bad port`)),r.referrerPolicy===``&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!==`no-referrer`&&(r.referrer=T(r)),a===null&&(a=await(async()=>{let t=v(r);return k(t,r.url)&&r.responseTainting===`basic`||t.protocol===`data:`||r.mode===`navigate`||r.mode===`websocket`?(r.responseTainting=`basic`,await We(e)):r.mode===`same-origin`?n(`request mode cannot be "same-origin"`):r.mode===`no-cors`?r.redirect===`follow`?(r.responseTainting=`opaque`,await We(e)):n(`redirect mode cannot be "follow" for "no-cors" request`):re(v(r))?(r.responseTainting=`cors`,await Ke(e)):n(`URL scheme must be a HTTP(S) scheme`)})()),t)return a;a.status!==0&&!a.internalResponse&&(r.responseTainting,r.responseTainting===`basic`?a=i(a,`basic`):r.responseTainting===`cors`?a=i(a,`cors`):r.responseTainting===`opaque`?a=i(a,`opaque`):fe(!1));let o=a.status===0?a:a.internalResponse;if(o.urlList.length===0&&o.urlList.push(...r.urlList),r.timingAllowFailed||(a.timingAllowPassed=!0),a.type===`opaque`&&o.status===206&&o.rangeRequested&&!r.headers.contains(`range`,!0)&&(a=o=n()),a.status!==0&&(r.method===`HEAD`||r.method===`CONNECT`||ge.includes(o.status))&&(o.body=null,e.controller.dump=!0),r.integrity){let t=t=>I(e,n(t));if(r.responseTainting===`opaque`||a.body==null){t(a.error);return}await ee(a.body,n=>{if(!d(n,r.integrity)){t(`integrity mismatch`);return}a.body=pe(n)[0],I(e,a)},t)}else I(e,a)}function We(e){if(A(e)&&e.request.redirectCount===0)return Promise.resolve(r(e));let{request:t}=e,{protocol:i}=v(t);switch(i){case`about:`:return Promise.resolve(n(`about scheme is not supported`));case`blob:`:{Fe||=F(`node:buffer`).resolveObjectURL;let e=v(t);if(e.search.length!==0)return Promise.resolve(n(`NetworkError when attempting to fetch resource.`));let r=Fe(e.toString());if(t.method!==`GET`||!O(r))return Promise.resolve(n(`invalid method`));let i=a(),o=r.size,s=te(`${o}`),c=r.type;if(t.headersList.contains(`range`,!0)){i.rangeRequested=!0;let e=oe(t.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let{rangeStartValue:a,rangeEndValue:s}=e;if(a===null)a=o-s,s=a+s-1;else{if(a>=o)return Promise.resolve(n(`Range start is greater than the blob's size.`));(s===null||s>=o)&&(s=o-1)}let l=r.slice(a,s,c);i.body=me(l)[0];let u=te(`${l.size}`),d=se(a,s,o);i.status=206,i.statusText=`Partial Content`,i.headersList.set(`content-length`,u,!0),i.headersList.set(`content-type`,c,!0),i.headersList.set(`content-range`,d,!0)}else{let e=me(r);i.statusText=`OK`,i.body=e[0],i.headersList.set(`content-length`,s,!0),i.headersList.set(`content-type`,c,!0)}return Promise.resolve(i)}case`data:`:{let e=De(v(t));if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let r=Oe(e.mimeType);return Promise.resolve(a({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:r}]],body:pe(e.body)[0]}))}case`file:`:return Promise.resolve(n(`not implemented... yet...`));case`http:`:case`https:`:return Ke(e).catch(e=>n(e));default:return Promise.resolve(n(`unknown scheme`))}}function Ge(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function I(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=x(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=le(t.headersList);e!==`failure`&&(a.contentType=ke(e))}e.request.initiatorType!=null&&Be(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():Ce(i.body.stream,()=>{r()})}async function Ke(e){let t=e.request,r=null,i=null,a=e.timingInfo;if(t.serviceWorkers,r===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=r=await Je(e),t.responseTainting===`cors`&&C(t,r)===`failure`)return n(`cors failure`);h(t,r)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||r.type===`opaque`)&&w(t.origin,t.client,t.destination,i)===`blocked`?n(`blocked`):(he.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?r=n(`unexpected redirect`):t.redirect===`manual`?r=i:t.redirect===`follow`?r=await qe(e,r):fe(!1)),r.timingInfo=a,r)}function qe(e,t){let r=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=_(i,v(r).hash),a==null)return t}catch(e){return Promise.resolve(n(e))}if(!re(a))return Promise.resolve(n(`URL scheme must be a HTTP(S) scheme`));if(r.redirectCount===20)return Promise.resolve(n(`redirect count exceeded`));if(r.redirectCount+=1,r.mode===`cors`&&(a.username||a.password)&&!k(r,a))return Promise.resolve(n(`cross origin not allowed for request mode "cors"`));if(r.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(n(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(n());if([301,302].includes(i.status)&&r.method===`POST`||i.status===303&&!Ne.includes(r.method)){r.method=`GET`,r.body=null;for(let e of ve)r.headersList.delete(e)}k(v(r),a)||(r.headersList.delete(`authorization`,!0),r.headersList.delete(`proxy-authorization`,!0),r.headersList.delete(`cookie`,!0),r.headersList.delete(`host`,!0)),r.body!=null&&(fe(r.body.source!=null),r.body=pe(r.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=E(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(a),y(r,i),Ue(e,!0)}async function Je(e,t=!1,i=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=l(a),o={...e},o.request=s);let u=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=te(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,te(s.referrer.href),!0),g(s),S(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Pe),s.cache===`default`&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(ie(v(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return n(`only if cached`);let e=await Ye(o,u,i);!_e.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=u,c.status===407)return a.window===`no-window`?n():A(e)?r(e):n(`proxy authentication required`);if(c.status===421&&!i&&(a.body==null||a.body.source!=null)){if(A(e))return r(e);e.controller.connection.destroy(),c=await Je(e,t,!0)}return c}async function Ye(e,t=!1,i=!1){fe(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let o=e.request,c=null,l=e.timingInfo;o.cache=`no-store`,o.mode;let d=null;if(o.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(o.body!=null){let t=async function*(t){A(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{A(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{A(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};d=(async function*(){try{for await(let e of o.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:o}=await g({body:d});if(o)c=a({status:n,statusText:r,headersList:i,socket:o});else{let o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next(),c=a({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),r(e,t)):n(t)}let f=async()=>{await e.controller.resume()},p=t=>{A(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});c.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(j(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){N(e.controller.controller),Ge(e,c);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),Te(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){j(e)?(c.aborted=!0,Ee(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):Ee(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:M(t)?t:void 0})),e.controller.connection.destroy()}return c;function g({body:t}){let n=v(o),r=e.controller.dispatcher;return new Promise((i,a)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:o.method,body:r.isMockActive?o.body&&(o.body.source||o.body.stream):t,headers:o.headersList.entries,maxRedirections:0,upgrade:o.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=ae(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=E(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=E(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let c=``,l=new s;for(let e=0;e5)return a(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)d.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)d.push(ce({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`br`)d.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}));else{d.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:d.length?Se(this.body,...d,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),a(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new s;for(let e=0;e{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`)}})),on=P(((e,t)=>{let{webidl:n}=st(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),sn=P(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.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:n}})),cn=P(((e,t)=>{let{kState:n,kError:r,kResult:i,kAborted:a,kLastProgressEventFired:o}=an(),{ProgressEvent:s}=on(),{getEncoding:c}=sn(),{serializeAMimeType:l,parseMIMEType:u}=ot(),{types:d}=F(`node:util`),{StringDecoder:f}=F(`string_decoder`),{btoa:p}=F(`node:buffer`),m={enumerable:!0,writable:!1,configurable:!1};function h(e,t,s,c){if(e[n]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[n]=`loading`,e[i]=null,e[r]=null;let l=t.stream().getReader(),u=[],f=l.read(),p=!0;(async()=>{for(;!e[a];)try{let{done:m,value:h}=await f;if(p&&!e[a]&&queueMicrotask(()=>{g(`loadstart`,e)}),p=!1,!m&&d.isUint8Array(h))u.push(h),(e[o]===void 0||Date.now()-e[o]>=50)&&!e[a]&&(e[o]=Date.now(),queueMicrotask(()=>{g(`progress`,e)})),f=l.read();else if(m){queueMicrotask(()=>{e[n]=`done`;try{let n=_(u,s,t.type,c);if(e[a])return;e[i]=n,g(`load`,e)}catch(t){e[r]=t,g(`error`,e)}e[n]!==`loading`&&g(`loadend`,e)});break}}catch(t){if(e[a])return;queueMicrotask(()=>{e[n]=`done`,e[r]=t,g(`error`,e),e[n]!==`loading`&&g(`loadend`,e)});break}})()}function g(e,t){let n=new s(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=u(n||`application/octet-stream`);r!==`failure`&&(t+=l(r)),t+=`;base64,`;let i=new f(`latin1`);for(let n of e)t+=p(i.write(n));return t+=p(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=c(r)),t===`failure`&&n){let e=u(n);e!==`failure`&&(t=c(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),v(e,t)}case`ArrayBuffer`:return b(e).buffer;case`BinaryString`:{let t=``,n=new f(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function v(e,t){let n=b(e),r=y(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function y(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function b(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}t.exports={staticPropertyDescriptors:m,readOperation:h,fireAProgressEvent:g}})),ln=P(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=cn(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=an(),{webidl:u}=st(),{kEnumerableProperty:d}=L();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),un=P(((e,t)=>{t.exports={kConstruct:Ge().kConstruct}})),dn=P(((e,t)=>{let n=F(`node:assert`),{URLSerializer:r}=ot(),{isValidHeaderName:i}=ct();function a(e,t,n=!1){return r(e,n)===r(t,n)}function o(e){n(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),i(n)&&t.push(n);return t}t.exports={urlEquals:a,getFieldValues:o}})),fn=P(((e,t)=>{let{kConstruct:n}=un(),{urlEquals:r,getFieldValues:i}=dn(),{kEnumerableProperty:a,isDisturbed:o}=L(),{webidl:s}=st(),{Response:c,cloneResponse:l,fromInnerResponse:u}=en(),{Request:d,fromInnerRequest:f}=nn(),{kState:p}=lt(),{fetching:m}=rn(),{urlIsHttpHttpsScheme:h,createDeferredPromise:g,readAllBytes:_}=ct(),v=F(`node:assert`);var y=class e{#e;constructor(){arguments[0]!==n&&s.illegalConstructor(),s.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){s.brandCheck(this,e);let r=`Cache.match`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){s.brandCheck(this,e);let n=`Cache.add`;s.argumentLengthCheck(arguments,1,n),t=s.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){s.brandCheck(this,e);let n=`Cache.addAll`;s.argumentLengthCheck(arguments,1,n);let r=[],a=[];for(let e of t){if(e===void 0)throw s.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=s.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[p];if(!h(t.url)||t.method!==`GET`)throw s.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new d(e)[p];if(!h(t.url))throw s.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,a.push(t);let c=g();o.push(m({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)c.reject(s.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=i(e.headersList.get(`vary`));for(let e of t)if(e===`*`){c.reject(s.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){c.reject(new DOMException(`aborted`,`AbortError`));return}c.resolve(e)}})),r.push(c.promise)}let c=await Promise.all(r),l=[],u=0;for(let e of c){let t={type:`put`,request:a[u],response:e};l.push(t),u++}let f=g(),_=null;try{this.#t(l)}catch(e){_=e}return queueMicrotask(()=>{_===null?f.resolve(void 0):f.reject(_)}),f.promise}async put(t,n){s.brandCheck(this,e);let r=`Cache.put`;s.argumentLengthCheck(arguments,2,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.Response(n,r,`response`);let a=null;if(a=t instanceof d?t[p]:new d(t)[p],!h(a.url)||a.method!==`GET`)throw s.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let c=n[p];if(c.status===206)throw s.errors.exception({header:r,message:`Got 206 status`});if(c.headersList.contains(`vary`)){let e=i(c.headersList.get(`vary`));for(let t of e)if(t===`*`)throw s.errors.exception({header:r,message:`Got * vary field value`})}if(c.body&&(o(c.body.stream)||c.body.stream.locked))throw s.errors.exception({header:r,message:`Response body is locked or disturbed`});let u=l(c),f=g();c.body==null?f.resolve(void 0):_(c.body.stream.getReader()).then(f.resolve,f.reject);let m=[],v={type:`put`,request:a,response:u};m.push(v);let y=await f.promise;u.body!=null&&(u.body.source=y);let b=g(),x=null;try{this.#t(m)}catch(e){x=e}return queueMicrotask(()=>{x===null?b.resolve():b.reject(x)}),b.promise}async delete(t,n={}){s.brandCheck(this,e);let r=`Cache.delete`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return!1}else v(typeof t==`string`),i=new d(t)[p];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let c=g(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new d(t)[p]);let a=g(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=f(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!h(i.url))throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,a){let o=new URL(e.url),s=new URL(t.url);if(a?.ignoreSearch&&(s.search=``,o.search=``),!r(o,s,!0))return!1;if(n==null||a?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=i(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof d){if(r=e[p],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new d(e)[p]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=u(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(y.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:a,matchAll:a,add:a,addAll:a,put:a,delete:a,keys:a});let b=[{key:`ignoreSearch`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:s.converters.boolean,defaultValue:()=>!1}];s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:`cacheName`,converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(c),s.converters[`sequence`]=s.sequenceConverter(s.converters.RequestInfo),t.exports={Cache:y}})),pn=P(((e,t)=>{let{kConstruct:n}=un(),{Cache:r}=fn(),{webidl:i}=st(),{kEnumerableProperty:a}=L();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),mn=P(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),hn=P(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),gn=P(((e,t)=>{let{maxNameValuePairSize:n,maxAttributeValueSize:r}=mn(),{isCTLExcludingHtab:i}=hn(),{collectASequenceOfCodePointsFast:a}=ot(),o=F(`node:assert`);function s(e){if(i(e))return null;let t=``,r=``,o=``,s=``;if(e.includes(`;`)){let n={position:0};t=a(`;`,e,n),r=e.slice(n.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};o=a(`=`,t,e),s=t.slice(e.position+1)}return o=o.trim(),s=s.trim(),o.length+s.length>n?null:{name:o,value:s,...c(r)}}function c(e,t={}){if(e.length===0)return t;o(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=a(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let i=``,s=``;if(n.includes(`=`)){let e={position:0};i=a(`=`,n,e),s=n.slice(e.position+1)}else i=n;if(i=i.trim(),s=s.trim(),s.length>r)return c(e,t);let l=i.toLowerCase();if(l===`expires`)t.expires=new Date(s);else if(l===`max-age`){let n=s.charCodeAt(0);if((n<48||n>57)&&s[0]!==`-`||!/^\d+$/.test(s))return c(e,t);t.maxAge=Number(s)}else if(l===`domain`){let e=s;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(l===`path`){let e=``;e=s.length===0||s[0]!==`/`?`/`:s,t.path=e}else if(l===`secure`)t.secure=!0;else if(l===`httponly`)t.httpOnly=!0;else if(l===`samesite`){let e=`Default`,n=s.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${i}=${s}`);return c(e,t)}t.exports={parseSetCookie:s,parseUnparsedAttributes:c}})),_n=P(((e,t)=>{let{parseSetCookie:n}=gn(),{stringify:r}=hn(),{webidl:i}=st(),{Headers:a}=$t();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),vn=P(((e,t)=>{let{webidl:n}=st(),{kEnumerableProperty:r}=L(),{kConstruct:i}=Ge(),{MessagePort:a}=F(`node:worker_threads`);var o=class e extends Event{#e;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]),n.util.markAsUncloneable(this);return}let r=`MessageEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.MessageEventInit(t,r,`eventInitDict`),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get data(){return n.brandCheck(this,e),this.#e.data}get origin(){return n.brandCheck(this,e),this.#e.origin}get lastEventId(){return n.brandCheck(this,e),this.#e.lastEventId}get source(){return n.brandCheck(this,e),this.#e.source}get ports(){return n.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,r=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return n.brandCheck(this,e),n.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:r,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(i,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:s}=o;delete o.createFastMessageEvent;var c=class e extends Event{#e;constructor(e,t={}){let r=`CloseEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.CloseEventInit(t),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get wasClean(){return n.brandCheck(this,e),this.#e.wasClean}get code(){return n.brandCheck(this,e),this.#e.code}get reason(){return n.brandCheck(this,e),this.#e.reason}},l=class e extends Event{#e;constructor(e,t){let r=`ErrorEvent constructor`;n.argumentLengthCheck(arguments,1,r),super(e,t),n.util.markAsUncloneable(this),e=n.converters.DOMString(e,r,`type`),t=n.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return n.brandCheck(this,e),this.#e.message}get filename(){return n.brandCheck(this,e),this.#e.filename}get lineno(){return n.brandCheck(this,e),this.#e.lineno}get colno(){return n.brandCheck(this,e),this.#e.colno}get error(){return n.brandCheck(this,e),this.#e.error}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(c.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),n.converters.MessagePort=n.interfaceConverter(a),n.converters[`sequence`]=n.sequenceConverter(n.converters.MessagePort);let u=[{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}];n.converters.MessageEventInit=n.dictionaryConverter([...u,{key:`data`,converter:n.converters.any,defaultValue:()=>null},{key:`origin`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:n.converters[`sequence`],defaultValue:()=>[]}]),n.converters.CloseEventInit=n.dictionaryConverter([...u,{key:`wasClean`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:n.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:n.converters.USVString,defaultValue:()=>``}]),n.converters.ErrorEventInit=n.dictionaryConverter([...u,{key:`message`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:n.converters.any}]),t.exports={MessageEvent:o,CloseEvent:c,ErrorEvent:l,createFastMessageEvent:s}})),yn=P(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),bn=P(((e,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`)}})),xn=P(((e,t)=>{let{kReadyState:n,kController:r,kResponse:i,kBinaryType:a,kWebSocketURL:o}=bn(),{states:s,opcodes:c}=yn(),{ErrorEvent:l,createFastMessageEvent:u}=vn(),{isUtf8:d}=F(`node:buffer`),{collectASequenceOfCodePointsFast:f,removeHTTPWhitespace:p}=ot();function m(e){return e[n]===s.CONNECTING}function h(e){return e[n]===s.OPEN}function g(e){return e[n]===s.CLOSING}function _(e){return e[n]===s.CLOSED}function v(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function y(e,t,r){if(e[n]!==s.OPEN)return;let i;if(t===c.TEXT)try{i=M(r)}catch{C(e,`Received invalid UTF-8 in text frame.`);return}else t===c.BINARY&&(i=e[a]===`blob`?new Blob([r]):b(r));v(`message`,e,u,{origin:e[o].origin,data:i})}function b(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function x(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function S(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function C(e,t){let{[r]:n,[i]:a}=e;n.abort(),a?.socket&&!a.socket.destroyed&&a.socket.destroy(),t&&v(`error`,e,(e,t)=>new l(e,t),{error:Error(t),message:t})}function w(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function T(e){return e===c.CONTINUATION}function E(e){return e===c.TEXT||e===c.BINARY}function D(e){return E(e)||T(e)||w(e)}function O(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let A=typeof process.versions.icu==`string`,j=A?new TextDecoder(`utf-8`,{fatal:!0}):void 0,M=A?j.decode.bind(j):function(e){if(d(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};t.exports={isConnecting:m,isEstablished:h,isClosing:g,isClosed:_,fireEvent:v,isValidSubprotocol:x,isValidStatusCode:S,failWebsocketConnection:C,websocketMessageReceived:y,utf8Decode:M,isControlFrame:w,isContinuationFrame:T,isTextBinaryFrame:E,isValidOpcode:D,parseExtensions:O,isValidClientWindowBits:k}})),Sn=P(((e,t)=>{let{maxUnsigned16Bit:n}=yn(),r=16386,i,a=null,o=r;try{i=F(`node:crypto`)}catch{i={randomFillSync:function(e,t,n){for(let t=0;tn?(o+=8,a=127):i>125&&(o+=2,a=126);let c=Buffer.allocUnsafe(i+o);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e,c[o-4]=r[0],c[o-3]=r[1],c[o-2]=r[2],c[o-1]=r[3],c[1]=a,a===126?c.writeUInt16BE(i,2):a===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let e=0;e{let{uid:n,states:r,sentCloseFrameState:i,emptyBuffer:a,opcodes:o}=yn(),{kReadyState:s,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=bn(),{fireEvent:f,failWebsocketConnection:p,isClosing:m,isClosed:h,isEstablished:g,parseExtensions:_}=xn(),{channels:v}=Je(),{CloseEvent:y}=vn(),{makeRequest:b}=nn(),{fetching:x}=rn(),{Headers:S,getHeadersList:C}=$t(),{getDecodeSplit:w}=ct(),{WebsocketFrameSend:T}=Sn(),E;try{E=F(`node:crypto`)}catch{}function D(e,t,r,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=b({urlList:[s],client:r,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=C(new S(o.headers)));let l=E.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),x({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){p(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){p(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){p(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){p(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==E.createHash(`sha1`).update(l+n).digest(`base64`)){p(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let r=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(r!==null&&(o=_(r),!o.has(`permessage-deflate`))){p(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!w(`sec-websocket-protocol`,c.headersList).includes(s)){p(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,k),e.socket.on(`close`,A),e.socket.on(`error`,j),v.open.hasSubscribers&&v.open.publish({address:e.socket.address(),protocol:s,extensions:r}),a(e,o)}})}function O(e,t,n,l){if(!(m(e)||h(e)))if(!g(e))p(e,`Connection was closed before it was established.`),e[s]=r.CLOSING;else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;let u=new T;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+l),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=a,e[d].socket.write(u.createFrame(o.CLOSE)),e[c]=i.SENT,e[s]=r.CLOSING}else e[s]=r.CLOSING}function k(e){this.ws[l].write(e)||this.pause()}function A(){let{ws:e}=this,{[d]:t}=e;t.socket.off(`data`,k),t.socket.off(`close`,A),t.socket.off(`error`,j);let n=e[c]===i.SENT&&e[u],a=1005,o=``,p=e[l].closingInfo;p&&!p.error?(a=p.code??1005,o=p.reason):e[u]||(a=1006),e[s]=r.CLOSED,f(`close`,e,(e,t)=>new y(e,t),{wasClean:n,code:a,reason:o}),v.close.hasSubscribers&&v.close.publish({websocket:e,code:a,reason:o})}function j(e){let{ws:t}=this;t[s]=r.CLOSING,v.socketError.hasSubscribers&&v.socketError.publish(e),this.destroy()}t.exports={establishWebSocketConnection:D,closeWebSocketConnection:O}})),wn=P(((e,t)=>{let{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:r}=F(`node:zlib`),{isValidClientWindowBits:i}=xn(),{MessageSizeExceededError:a}=I(),o=Buffer.from([0,0,255,255]),s=Symbol(`kBuffer`),c=Symbol(`kLength`);t.exports={PerMessageDeflate:class{#e;#t={};#n=0;constructor(e,t){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`),this.#n=t.maxPayloadSize}decompress(e,t,l){if(!this.#e){let e=r;if(this.#t.serverMaxWindowBits){if(!i(this.#t.serverMaxWindowBits)){l(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=n({windowBits:e})}catch(e){l(e);return}this.#e[s]=[],this.#e[c]=0,this.#e.on(`data`,e=>{if(this.#e[c]+=e.length,this.#n>0&&this.#e[c]>this.#n){l(new a),this.#e.removeAllListeners(),this.#e=null;return}this.#e[s].push(e)}),this.#e.on(`error`,e=>{this.#e=null,l(e)})}this.#e.write(e),t&&this.#e.write(o),this.#e.flush(()=>{if(!this.#e)return;let e=Buffer.concat(this.#e[s],this.#e[c]);this.#e[s].length=0,this.#e[c]=0,l(null,e)})}}}})),Tn=P(((e,t)=>{let{Writable:n}=F(`node:stream`),r=F(`node:assert`),{parserStates:i,opcodes:a,states:o,emptyBuffer:s,sentCloseFrameState:c}=yn(),{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:f}=bn(),{channels:p}=Je(),{isValidStatusCode:m,isValidOpcode:h,failWebsocketConnection:g,websocketMessageReceived:_,utf8Decode:v,isControlFrame:y,isTextBinaryFrame:b,isContinuationFrame:x}=xn(),{WebsocketFrameSend:S}=Sn(),{closeWebSocketConnection:C}=Cn(),{PerMessageDeflate:w}=wn(),{MessageSizeExceededError:T}=I();t.exports={ByteParser:class extends n{#e=[];#t=0;#n=0;#r=!1;#i=i.INFO;#a={};#o=[];#s;#c;constructor(e,t,n={}){super(),this.ws=e,this.#s=t??new Map,this.#c=n.maxPayloadSize??0,this.#s.has(`permessage-deflate`)&&this.#s.set(`permessage-deflate`,new w(t,n))}_write(e,t,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#l(){return this.#c>0&&!y(this.#a.opcode)&&this.#a.payloadLength>this.#c?(g(this.ws,`Payload size exceeds maximum allowed size`),!1):!0}run(e){for(;this.#r;)if(this.#i===i.INFO){if(this.#n<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,o=(t[1]&128)==128,s=!n&&r!==a.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!h(r))return g(this.ws,`Invalid opcode received`),e();if(o)return g(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#s.has(`permessage-deflate`)){g(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){g(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!b(r)){g(this.ws,`Invalid frame type was fragmented.`);return}if(b(r)&&this.#o.length>0){g(this.ws,`Expected continuation frame`);return}if(this.#a.fragmented&&s){g(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&y(r)){g(this.ws,`Control frame either too large or fragmented`);return}if(x(r)&&this.#o.length===0&&!this.#a.compressed){g(this.ws,`Unexpected continuation frame`);return}if(c<=125){if(this.#a.payloadLength=c,this.#i=i.READ_DATA,!this.#l())return}else c===126?this.#i=i.PAYLOADLENGTH_16:c===127&&(this.#i=i.PAYLOADLENGTH_64);b(r)&&(this.#a.binaryType=r,this.#a.compressed=l!==0),this.#a.opcode=r,this.#a.masked=o,this.#a.fin=n,this.#a.fragmented=s}else if(this.#i===i.PAYLOADLENGTH_16){if(this.#n<2)return e();let t=this.consume(2);if(this.#a.payloadLength=t.readUInt16BE(0),this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.PAYLOADLENGTH_64){if(this.#n<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){g(this.ws,`Received payload length > 2^31 bytes.`);return}if(this.#a.payloadLength=r,this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.READ_DATA){if(this.#n{if(t){g(this.ws,t.message);return}if(this.writeFragments(n),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}if(!this.#a.fin){this.#i=i.INFO,this.#r=!0,this.run(e);return}_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#r=!0,this.#i=i.INFO,this.run(e)}),this.#r=!1;break}else{if(this.writeFragments(t),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}!this.#a.fragmented&&this.#a.fin&&_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#i=i.INFO}}}consume(e){if(e>this.#n)throw Error(`Called consume() before buffers satiated.`);if(e===0)return s;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#n-=e,t}writeFragments(e){this.#t+=e.length,this.#o.push(e)}consumeFragments(){let e=this.#o;if(e.length===1)return this.#t=0,e.shift();let t=Buffer.concat(e,this.#t);return this.#o=[],this.#t=0,t}parseCloseBody(e){r(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!m(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=v(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#a;if(t===a.CLOSE){if(n===1)return g(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#a.closeInfo=this.parseCloseBody(e),this.#a.closeInfo.error){let{code:e,reason:t}=this.#a.closeInfo;return C(this.ws,e,t,t.length),g(this.ws,t),!1}if(this.ws[u]!==c.SENT){let e=s;this.#a.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#a.closeInfo.code,0));let t=new S(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),e=>{e||(this.ws[u]=c.SENT)})}return this.ws[l]=o.CLOSING,this.ws[f]=!0,!1}else if(t===a.PING){if(!this.ws[f]){let t=new S(e);this.ws[d].socket.write(t.createFrame(a.PONG)),p.ping.hasSubscribers&&p.ping.publish({payload:e})}}else t===a.PONG&&p.pong.hasSubscribers&&p.pong.publish({payload:e});return!0}get closingInfo(){return this.#a.closeInfo}}}})),En=P(((e,t)=>{let{WebsocketFrameSend:n}=Sn(),{opcodes:r,sendHints:i}=yn(),a=yt(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),Dn=P(((e,t)=>{let{webidl:n}=st(),{URLSerializer:r}=ot(),{environmentSettingsObject:i}=ct(),{staticPropertyDescriptors:a,states:o,sentCloseFrameState:s,sendHints:c}=yn(),{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:f,kResponse:p,kSentClose:m,kByteParser:h}=bn(),{isConnecting:g,isEstablished:_,isClosing:v,isValidSubprotocol:y,fireEvent:b}=xn(),{establishWebSocketConnection:x,closeWebSocketConnection:S}=Cn(),{ByteParser:C}=Tn(),{kEnumerableProperty:w,isBlobLike:T}=L(),{getGlobalDispatcher:E}=qt(),{types:D}=F(`node:util`),{ErrorEvent:O,CloseEvent:k}=vn(),{SendQueue:A}=En();var j=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,r=[]){super(),n.util.markAsUncloneable(this);let a=`WebSocket constructor`;n.argumentLengthCheck(arguments,1,a);let o=n.converters[`DOMString or sequence or WebSocketInit`](r,a,`options`);t=n.converters.USVString(t,a,`url`),r=o.protocols;let c=i.settingsObject.baseUrl,p;try{p=new URL(t,c)}catch(e){throw new DOMException(e,`SyntaxError`)}if(p.protocol===`http:`?p.protocol=`ws:`:p.protocol===`https:`&&(p.protocol=`wss:`),p.protocol!==`ws:`&&p.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,`SyntaxError`);if(p.hash||p.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof r==`string`&&(r=[r]),r.length!==new Set(r.map(e=>e.toLowerCase())).size||r.length>0&&!r.every(e=>y(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[l]=new URL(p.href);let h=i.settingsObject;this[d]=x(p,r,h,this,(e,t)=>this.#a(e,t),o),this[u]=e.CONNECTING,this[m]=s.NOT_SENT,this[f]=`blob`}close(t=void 0,r=void 0){n.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=n.converters[`unsigned short`](t,i,`code`,{clamp:!0})),r!==void 0&&(r=n.converters.USVString(r,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(r!==void 0&&(a=Buffer.byteLength(r),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);S(this,t,r,a)}send(t){n.brandCheck(this,e);let r=`WebSocket.send`;if(n.argumentLengthCheck(arguments,1,r),t=n.converters.WebSocketSendData(t,r,`data`),g(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!_(this)||v(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},c.string)}else D.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.typedArray)):T(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},c.blob))}get readyState(){return n.brandCheck(this,e),this[u]}get bufferedAmount(){return n.brandCheck(this,e),this.#t}get url(){return n.brandCheck(this,e),r(this[l])}get extensions(){return n.brandCheck(this,e),this.#r}get protocol(){return n.brandCheck(this,e),this.#n}get onopen(){return n.brandCheck(this,e),this.#e.open}set onopen(t){n.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return n.brandCheck(this,e),this.#e.error}set onerror(t){n.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return n.brandCheck(this,e),this.#e.close}set onclose(t){n.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return n.brandCheck(this,e),this.#e.message}set onmessage(t){n.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return n.brandCheck(this,e),this[f]}set binaryType(t){n.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[f]=`blob`:this[f]=t}#a(e,t){this[p]=e;let n=this[d]?.dispatcher?.webSocketOptions?.maxPayloadSize,r=new C(this,t,{maxPayloadSize:n});r.on(`drain`,M),r.on(`error`,ee.bind(this)),e.socket.ws=this,this[h]=r,this.#i=new A(e.socket),this[u]=o.OPEN;let i=e.headersList.get(`sec-websocket-extensions`);i!==null&&(this.#r=i);let a=e.headersList.get(`sec-websocket-protocol`);a!==null&&(this.#n=a),b(`open`,this)}};j.CONNECTING=j.prototype.CONNECTING=o.CONNECTING,j.OPEN=j.prototype.OPEN=o.OPEN,j.CLOSING=j.prototype.CLOSING=o.CLOSING,j.CLOSED=j.prototype.CLOSED=o.CLOSED,Object.defineProperties(j.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(j,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a}),n.converters[`sequence`]=n.sequenceConverter(n.converters.DOMString),n.converters[`DOMString or sequence`]=function(e,t,r){return n.util.Type(e)===`Object`&&Symbol.iterator in e?n.converters[`sequence`](e):n.converters.DOMString(e,t,r)},n.converters.WebSocketInit=n.dictionaryConverter([{key:`protocols`,converter:n.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:n.converters.any,defaultValue:()=>E()},{key:`headers`,converter:n.nullableConverter(n.converters.HeadersInit)}]),n.converters[`DOMString or sequence or WebSocketInit`]=function(e){return n.util.Type(e)===`Object`&&!(Symbol.iterator in e)?n.converters.WebSocketInit(e):{protocols:n.converters[`DOMString or sequence`](e)}},n.converters.WebSocketSendData=function(e){if(n.util.Type(e)===`Object`){if(T(e))return n.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||D.isArrayBuffer(e))return n.converters.BufferSource(e)}return n.converters.USVString(e)};function M(){this.ws[p].socket.resume()}function ee(e){let t,n;e instanceof k?(t=e.reason,n=e.code):t=e.message,b(`error`,this,()=>new O(`error`,{error:e,message:t})),S(this,n)}t.exports={WebSocket:j}})),On=P(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),kn=P(((e,t)=>{let{Transform:n}=F(`node:stream`),{isASCIINumber:r,isValidLastEventId:i}=On(),a=[239,187,191];t.exports={EventSourceStream:class extends n{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===a[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[a]=o);break}}processEvent(e){e.retry&&r(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&i(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),An=P(((e,t)=>{let{pipeline:n}=F(`node:stream`),{fetching:r}=rn(),{makeRequest:i}=nn(),{webidl:a}=st(),{EventSourceStream:o}=kn(),{parseMIMEType:s}=ot(),{createFastMessageEvent:c}=vn(),{isNetworkError:l}=en(),{delay:u}=On(),{kEnumerableProperty:d}=L(),{environmentSettingsObject:f}=ct(),p=!1,m=3e3;var h=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),a.util.markAsUncloneable(this);let n=`EventSource constructor`;a.argumentLengthCheck(arguments,1,n),p||(p=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=a.converters.USVString(e,n,`url`),t=a.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:m};let r=f,o;try{o=new URL(e,r.settingsObject.baseUrl),this.#s.origin=o.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=o.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=f.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=i(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{l(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(l(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),r=t===null?`failure`:s(t),i=r!==`failure`&&r.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new o({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=r(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await u(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){a.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let g={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(h,g),Object.defineProperties(h.prototype,g),Object.defineProperties(h.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d}),a.converters.EventSourceInitDict=a.dictionaryConverter([{key:`withCredentials`,converter:a.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:a.converters.any}]),t.exports={EventSource:h,defaultReconnectionTime:m}})),jn=P(((e,t)=>{let n=vt(),r=Xe(),i=St(),a=Ct(),o=wt(),s=Tt(),c=Et(),l=Ot(),u=I(),d=L(),{InvalidArgumentError:f}=u,p=Lt(),m=$e(),h=Ht(),g=Kt(),_=Ut(),v=Rt(),y=Dt(),{getGlobalDispatcher:b,setGlobalDispatcher:x}=qt(),S=Jt(),C=gt(),w=_t();Object.assign(r.prototype,p),t.exports.Dispatcher=r,t.exports.Client=n,t.exports.Pool=i,t.exports.BalancedPool=a,t.exports.Agent=o,t.exports.ProxyAgent=s,t.exports.EnvHttpProxyAgent=c,t.exports.RetryAgent=l,t.exports.RetryHandler=y,t.exports.DecoratorHandler=S,t.exports.RedirectHandler=C,t.exports.createRedirectInterceptor=w,t.exports.interceptors={redirect:Yt(),retry:Xt(),dump:Zt(),dns:Qt()},t.exports.buildConnector=m,t.exports.errors=u,t.exports.util={parseHeaders:d.parseHeaders,headerNameToString:d.headerNameToString};function T(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new f(`invalid url`);if(n!=null&&typeof n!=`object`)throw new f(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new f(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(d.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=d.parseURL(t);let{agent:i,dispatcher:a=b()}=n;if(i)throw new f(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}t.exports.setGlobalDispatcher=x,t.exports.getGlobalDispatcher=b;let E=rn().fetch;t.exports.fetch=async function(e,t=void 0){try{return await E(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},t.exports.Headers=$t().Headers,t.exports.Response=en().Response,t.exports.Request=nn().Request,t.exports.FormData=dt().FormData,t.exports.File=globalThis.File??F(`node:buffer`).File,t.exports.FileReader=ln().FileReader;let{setGlobalOrigin:D,getGlobalOrigin:O}=at();t.exports.setGlobalOrigin=D,t.exports.getGlobalOrigin=O;let{CacheStorage:k}=pn(),{kConstruct:A}=un();t.exports.caches=new k(A);let{deleteCookie:j,getCookies:M,getSetCookies:ee,setCookie:N}=_n();t.exports.deleteCookie=j,t.exports.getCookies=M,t.exports.getSetCookies=ee,t.exports.setCookie=N;let{parseMIMEType:te,serializeAMimeType:ne}=ot();t.exports.parseMIMEType=te,t.exports.serializeAMimeType=ne;let{CloseEvent:re,ErrorEvent:ie,MessageEvent:ae}=vn();t.exports.WebSocket=Dn().WebSocket,t.exports.CloseEvent=re,t.exports.ErrorEvent=ie,t.exports.MessageEvent=ae,t.exports.request=T(p.request),t.exports.stream=T(p.stream),t.exports.pipeline=T(p.pipeline),t.exports.connect=T(p.connect),t.exports.upgrade=T(p.upgrade),t.exports.MockClient=h,t.exports.MockPool=_,t.exports.MockAgent=g,t.exports.mockErrors=v;let{EventSource:oe}=An();t.exports.EventSource=oe})),Mn=ke(We(),1),Nn=jn(),Pn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Fn;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(Fn||={});var In;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(In||={});var Ln;(function(e){e.ApplicationJson=`application/json`})(Ln||={});const Rn=[Fn.MovedPermanently,Fn.ResourceMoved,Fn.SeeOther,Fn.TemporaryRedirect,Fn.PermanentRedirect],zn=[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout],Bn=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var Vn=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},Hn=class{constructor(e){this.message=e}readBody(){return Pn(this,void 0,void 0,function*(){return new Promise(e=>Pn(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return Pn(this,void 0,void 0,function*(){return new Promise(e=>Pn(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},Un=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return Pn(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return Pn(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return Pn(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return Pn(this,arguments,void 0,function*(e,t={}){t[In.Accept]=this._getExistingOrDefaultHeader(t,In.Accept,Ln.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return Pn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[In.Accept]=this._getExistingOrDefaultHeader(n,In.Accept,Ln.ApplicationJson),n[In.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Ln.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return Pn(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&Bn.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===Fn.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&Rn.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!zn.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new Hn(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=ze(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?f:d;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Wn(this.requestOptions.headers),Wn(e||{})):Wn(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=Wn(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=Wn(this.requestOptions.headers)[In.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[In.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=ze(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||d.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?Mn.httpsOverHttps:Mn.httpsOverHttp:o?Mn.httpOverHttps:Mn.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new f.Agent(e):new d.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new Nn.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return Pn(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return Pn(this,void 0,void 0,function*(){return new Promise((n,r)=>Pn(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===Fn.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new Vn(e,i);t.result=a.result,r(t)}else n(a)}))})}};const Wn=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var Gn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Kn=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Gn(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},qn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:Jn,appendFile:Yn,writeFile:Xn}=c,Zn=`GITHUB_STEP_SUMMARY`;new class{constructor(){this._buffer=``}filePath(){return qn(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zn];if(!e)throw Error(`Unable to find environment variable for $${Zn}. Check if your runtime environment supports job summaries.`);try{yield Jn(e,o.R_OK|o.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return qn(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Xn:Yn)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return qn(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(r)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var Qn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:$n,copyFile:er,lstat:tr,mkdir:nr,open:rr,readdir:ir,rename:ar,rm:or,rmdir:sr,stat:cr,symlink:lr,unlink:ur}=a.promises,dr=process.platform===`win32`;a.constants.O_RDONLY;function fr(e){return Qn(this,void 0,void 0,function*(){try{yield cr(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function pr(e){if(e=hr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return dr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function mr(e,t){return Qn(this,void 0,void 0,function*(){let n;try{n=yield cr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(dr){let n=u.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(gr(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield cr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(dr){try{let t=u.dirname(e),n=u.basename(e).toUpperCase();for(let r of yield ir(t))if(n===r.toUpperCase()){e=u.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(gr(n))return e}}return``})}function hr(e){return e||=``,dr?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function gr(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var _r=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function vr(e){return _r(this,void 0,void 0,function*(){g(e,`a path argument must be provided`),yield nr(e,{recursive:!0})})}function yr(e,t){return _r(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield yr(e,!1);if(!t)throw Error(dr?`Unable to locate executable file: ${e}. 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.`:`Unable to locate executable file: ${e}. 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 t}let n=yield br(e);return n&&n.length>0?n[0]:``})}function br(e){return _r(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(dr&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(pr(e)){let n=yield mr(e,t);return n?[n]:[]}if(e.includes(u.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield mr(u.join(i,e),t);n&&r.push(n)}return r})}var xr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const Sr=process.platform===`win32`;var Cr=class extends p.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(Sr)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,n,r){try{let i=n+e.toString(),a=i.indexOf(t.EOL);for(;a>-1;)r(i.substring(0,a)),i=i.substring(a+t.EOL.length),a=i.indexOf(t.EOL);return i}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return Sr&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(Sr&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return xr(this,void 0,void 0,function*(){return!pr(this.toolPath)&&(this.toolPath.includes(`/`)||Sr&&this.toolPath.includes(`\\`))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield yr(this.toolPath,!0),new Promise((e,n)=>xr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+t.EOL);let i=new Tr(r,this.toolPath);if(i.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield fr(this.options.cwd)))return n(Error(`The cwd: ${this.options.cwd} does not exist!`));let a=this._getSpawnFileName(),o=D.spawn(a,this._getSpawnArgs(r),this._getSpawnOptions(this.options,a)),s=``;o.stdout&&o.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c=``;if(o.stderr&&o.stderr.on(`data`,e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on(`error`,e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),o.on(`exit`,e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),o.on(`close`,e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on(`done`,(t,r)=>{s.length>0&&this.emit(`stdline`,s),c.length>0&&this.emit(`errline`,c),o.removeAllListeners(),t?n(t):e(r)}),this.options.input){if(!o.stdin)throw Error(`child process missing stdin`);o.stdin.end(this.options.input)}}))})}};function wr(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var Tr=class e extends p.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=O(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},Er=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Dr(e,t,n){return Er(this,void 0,void 0,function*(){let r=wr(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new Cr(i,t,n).exec()})}function Or(e,t,n){return Er(this,void 0,void 0,function*(){let r=``,i=``,a=new E(`utf8`),o=new E(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield Dr(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}n.platform(),n.arch();var kr;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(kr||={});function Ar(e,t){let n=Ae(t);if(process.env[e]=n,process.env.GITHUB_ENV)return Le(`ENV`,Re(e,t));Me(`set-env`,{name:e},n)}function jr(e){Me(`add-mask`,{},e)}function Mr(e){process.env.GITHUB_PATH?Le(`PATH`,e):Me(`add-path`,{},e),process.env.PATH=`${e}${u.delimiter}${process.env.PATH}`}function Nr(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Pr(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=Nr(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Fr(e,n){if(process.env.GITHUB_OUTPUT)return Le(`OUTPUT`,Re(e,n));process.stdout.write(t.EOL),Me(`set-output`,{name:e},Ae(n))}function Ir(e){process.exitCode=kr.Failure,Rr(e)}function Lr(){return process.env.RUNNER_DEBUG===`1`}function R(e){Me(`debug`,{},e)}function Rr(e,t={}){Me(`error`,je(t),e instanceof Error?e.toString():e)}function zr(e,t={}){Me(`warning`,je(t),e instanceof Error?e.toString():e)}function z(e){process.stdout.write(e+t.EOL)}function Br(e){Ne(`group`,e)}function Vr(){Ne(`endgroup`)}function Hr(e,t){if(process.env.GITHUB_STATE)return Le(`STATE`,Re(e,t));Me(`save-state`,{name:e},Ae(t))}function Ur(e){return process.env[`STATE_${e}`]||``}var Wr=P((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),Gr=P((e=>{var t=Wr();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e{var t=Wr(),n=Gr();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(` +`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),qr=P((e=>{var t=Wr(),n=Gr();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),Jr=P((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n{var t=Wr();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),Xr=P((e=>{var t=Jr(),n=Wr(),r=Yr();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),Zr=P((e=>{var t=qr(),n=Gr(),r=Wr(),i=Xr(),a=Yr(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),Qr=P((e=>{var t=Wr(),n=Xr(),r=Yr();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),$r=P((e=>{var t=Zr(),n=Wr(),r=Qr();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),ei=P((e=>{var t=$r(),n=Wr(),r=Xr();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),ti=P((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(` `)?n(r,t):r.includes(` `)?` -`+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),ri=P((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;ss-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===` +`+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),ni=P((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;ss-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===` `)a===t&&(v=i(e,v,r.length)),m=v+r.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==` `&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==` `&&t!==` `&&(h=v)}if(v>=m)if(h)f.push(h),m=h+d,h=void 0;else if(a===n){for(;g===` `||g===` `;)g=o,o=e[v+=1],_=!0;let t=v>b+1?v-2:y-1;if(p[t])return e;f.push(t),p[t]=!0,m=t+d,h=void 0}else _=!0}g=o}if(_&&u&&u(),f.length===0)return e;l&&l();let x=e.slice(0,f[0]);for(let t=0;t{var t=$r(),n=ri();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t{var t=Qr(),n=ni();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function o(e,t){let a=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return a;let{implicitKey:o}=t,s=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?` `:``),l=``,u=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(l+=a.slice(u,e)+`\\ `,e+=1,u=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{l+=a.slice(u,e);let t=a.substr(e+2,4);switch(t){case`0000`:l+=`\\0`;break;case`0007`:l+=`\\a`;break;case`000b`:l+=`\\v`;break;case`001b`:l+=`\\e`;break;case`0085`:l+=`\\N`;break;case`00a0`:l+=`\\_`;break;case`2028`:l+=`\\L`;break;case`2029`:l+=`\\P`;break;default:t.substr(0,2)===`00`?l+=`\\x`+t.substr(2):l+=a.substr(e,6)}e+=5,u=e+1}break;case`n`:if(o||a[e+2]===`"`||a.length{i=!0});let c=n.foldFlowLines(`${T}${e}${b}`,g,n.FOLD_BLOCK,a);if(!i)return`>${E}\n${g}${c}`}return s=s.replace(/\n+/g,`$&${g}`),`|${E}\n${g}${T}${s}${b}`}function d(e,a,o,s){let{type:l,value:d}=e,{actualString:f,implicitKey:p,indent:m,indentStep:h,inFlow:g}=a;if(p&&d.includes(` `)||g&&/[[\]{},]/.test(d))return c(d,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return p||g||!d.includes(` `)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(` -`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),ai=P((e=>{var t=Jr(),n=Gr(),r=ni(),i=ii();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),oi=P((e=>{var t=Gr(),n=$r(),r=ai(),i=ni();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?` +`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),ii=P((e=>{var t=qr(),n=Wr(),r=ti(),i=ri();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),ai=P((e=>{var t=Wr(),n=Qr(),r=ii(),i=ti();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?` `:``,S){let e=p(S);E+=`\n${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===` `&&C&&(E=` `):E+=`\n${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(` `),n=t!==-1,r=o.inFlow??a.flow??a.items.length===0;if(n||!r){let r=!1;if(n&&(e===`&`||e===`!`)){let n=T.indexOf(` `);e===`&`&&n!==-1&&n{var t=F(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),ci=P((e=>{var t=Gr(),n=$r();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),li=P((e=>{var t=si(),n=ci(),r=ai(),i=Gr(),a=Xr();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),ui=P((e=>{var t=ei(),n=oi(),r=li(),i=Gr();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),di=P((e=>{var t=Gr(),n=ai(),r=ni();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;eu=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e{var t=F(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),si=P((e=>{var t=Wr(),n=Qr();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),ci=P((e=>{var t=oi(),n=si(),r=ii(),i=Wr(),a=Yr();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),li=P((e=>{var t=$r(),n=ai(),r=ci(),i=Wr();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),ui=P((e=>{var t=Wr(),n=ii(),r=ti();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;eu=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;el=null);p||=h.length>m||u.includes(` `),a0&&(p||=h.reduce((e,t)=>e+t.length+2,2)+(u.length+2)>i.options.lineWidth),p&&(u+=`,`)),l&&(u+=r.lineComment(u,o,d(l))),h.push(u),m=h.length}let{start:g,end:_}=a;if(h.length===0)return g+_;if(!p){let e=h.reduce((e,t)=>e+t.length+2,2);p=i.options.lineWidth>0&&e>i.options.lineWidth}if(p){let e=g;for(let t of h)e+=t?`\n${l}${c}${t}`:` -`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),fi=P((e=>{var t=di(),n=li(),r=ti(),i=Gr(),a=ui(),o=$r();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),pi=P((e=>{var t=Gr(),n=fi();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),mi=P((e=>{var t=ei(),n=di(),r=ti(),i=Gr(),a=$r(),o=Xr(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t=0?t:null}e.YAMLSeq=s})),hi=P((e=>{var t=Gr(),n=mi();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),gi=P((e=>{var t=ii();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),_i=P((e=>{var t=$r();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),vi=P((e=>{var t=$r();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),yi=P((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}e.stringifyNumber=t})),bi=P((e=>{var t=$r(),n=yi();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),xi=P((e=>{var t=yi();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),Si=P((e=>{var t=pi(),n=_i(),r=hi(),i=gi(),a=vi(),o=bi(),s=xi();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),Ci=P((e=>{var t=$r(),n=pi(),r=hi();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),wi=P((e=>{var t=F(`buffer`),n=$r(),r=ii();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e{var t=Gr(),n=ui(),r=$r(),i=mi();function a(e,i){if(t.isSeq(e))for(let a=0;a1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),Ei=P((e=>{var t=Gr(),n=Xr(),r=fi(),i=mi(),a=Ti(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Di=P((e=>{var t=$r();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Oi=P((e=>{var t=$r(),n=yi();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),ki=P((e=>{var t=yi();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),Ai=P((e=>{var t=Gr(),n=ui(),r=fi(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),ji=P((e=>{var t=yi();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),Mi=P((e=>{var t=pi(),n=_i(),r=hi(),i=gi(),a=wi(),o=Di(),s=Oi(),c=ki(),l=ci(),u=Ei(),d=Ti(),f=Ai(),p=ji();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),Ni=P((e=>{var t=pi(),n=_i(),r=hi(),i=gi(),a=vi(),o=bi(),s=xi(),c=Si(),l=Ci(),u=wi(),d=ci(),f=Ei(),p=Ti(),m=Mi(),h=Ai(),g=ji();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Pi=P((e=>{var t=Gr(),n=pi(),r=hi(),i=gi(),a=Ni();let o=(e,t)=>e.keyt.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Fi=P((e=>{var t=Gr(),n=ai(),r=ni();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(` +`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),di=P((e=>{var t=ui(),n=ci(),r=ei(),i=Wr(),a=li(),o=Qr();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),fi=P((e=>{var t=Wr(),n=di();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),pi=P((e=>{var t=$r(),n=ui(),r=ei(),i=Wr(),a=Qr(),o=Yr(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t=0?t:null}e.YAMLSeq=s})),mi=P((e=>{var t=Wr(),n=pi();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),hi=P((e=>{var t=ri();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),gi=P((e=>{var t=Qr();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),_i=P((e=>{var t=Qr();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),vi=P((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}e.stringifyNumber=t})),yi=P((e=>{var t=Qr(),n=vi();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),bi=P((e=>{var t=vi();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),xi=P((e=>{var t=fi(),n=gi(),r=mi(),i=hi(),a=_i(),o=yi(),s=bi();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),Si=P((e=>{var t=Qr(),n=fi(),r=mi();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),Ci=P((e=>{var t=F(`buffer`),n=Qr(),r=ri();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e{var t=Wr(),n=li(),r=Qr(),i=pi();function a(e,i){if(t.isSeq(e))for(let a=0;a1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),Ti=P((e=>{var t=Wr(),n=Yr(),r=di(),i=pi(),a=wi(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Ei=P((e=>{var t=Qr();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Di=P((e=>{var t=Qr(),n=vi();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),Oi=P((e=>{var t=vi();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),ki=P((e=>{var t=Wr(),n=li(),r=di(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),Ai=P((e=>{var t=vi();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),ji=P((e=>{var t=fi(),n=gi(),r=mi(),i=hi(),a=Ci(),o=Ei(),s=Di(),c=Oi(),l=si(),u=Ti(),d=wi(),f=ki(),p=Ai();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),Mi=P((e=>{var t=fi(),n=gi(),r=mi(),i=hi(),a=_i(),o=yi(),s=bi(),c=xi(),l=Si(),u=Ci(),d=si(),f=Ti(),p=wi(),m=ji(),h=ki(),g=Ai();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Ni=P((e=>{var t=Wr(),n=fi(),r=mi(),i=hi(),a=Mi();let o=(e,t)=>e.keyt.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Pi=P((e=>{var t=Wr(),n=ii(),r=ti();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(` `)?(a.push(`...`),a.push(r.indentComment(t,``))):a.push(`... ${t}`)}else a.push(`...`);else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,``)),t&&((!l||u)&&a[a.length-1]!==``&&a.push(``),a.push(r.indentComment(c(t),``)))}return a.join(` `)+` -`}e.stringifyDocument=i})),Ii=P((e=>{var t=Qr(),n=ti(),r=Gr(),i=ui(),a=Xr(),o=Pi(),s=Fi(),c=Jr(),l=Yr(),u=ei(),d=qr(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Li=P((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… -`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Ri=P((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),zi=P((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` -`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),Bi=P((e=>{var t=zi();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),Vi=P((e=>{var t=Gr();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),Hi=P((e=>{var t=ui(),n=fi(),r=Ri(),i=zi(),a=Bi(),o=Vi();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=` +`}e.stringifyDocument=i})),Fi=P((e=>{var t=Zr(),n=ei(),r=Wr(),i=li(),a=Yr(),o=Ni(),s=Pi(),c=qr(),l=Jr(),u=$r(),d=Kr(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Ii=P((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… +`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Li=P((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),Ri=P((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` +`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),zi=P((e=>{var t=Ri();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),Bi=P((e=>{var t=Wr();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),Vi=P((e=>{var t=li(),n=di(),r=Li(),i=Ri(),a=zi(),o=Bi();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=` `+y.comment:p.comment=y.comment);continue}(y.newlineAfterProp||i.containsNewline(g))&&d(g??f[f.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else y.found?.indent!==u.indent&&d(m,`BAD_INDENT`,s);l.atKey=!0;let x=y.end,S=g?e(l,g,y,d):c(l,x,f,null,y,d);l.schema.compat&&a.flowIndentCheck(u.indent,g,d),l.atKey=!1,o.mapIncludes(l,p.items,S)&&d(x,`DUPLICATE_KEY`,`Map keys must be unique`);let C=r.resolveProps(_??[],{indicator:`map-value-ind`,next:v,offset:S.range[2],onError:d,parentIndent:u.indent,startOnNewline:!g||g.type===`block-scalar`});if(m=C.end,C.found){b&&(v?.type===`block-map`&&!C.hasNewline&&d(m,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),l.options.strict&&y.start{var t=mi(),n=Ri(),r=Bi();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),Wi=P((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),Gi=P((e=>{var t=Gr(),n=ui(),r=fi(),i=mi(),a=Wi(),o=Ri(),s=zi(),c=Vi();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i{var t=pi(),n=Li(),r=zi();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),Ui=P((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),Wi=P((e=>{var t=Wr(),n=li(),r=di(),i=pi(),a=Ui(),o=Li(),s=Ri(),c=Bi();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i0){let e=a.resolveEnd(C,w,f.options.strict,m);e.comment&&(v.comment?v.comment+=` -`+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),Ki=P((e=>{var t=Gr(),n=$r(),r=fi(),i=mi(),a=Hi(),o=Ui(),s=Gi();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offsete.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),qi=P((e=>{var t=$r();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?` +`+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),Gi=P((e=>{var t=Wr(),n=Qr(),r=di(),i=pi(),a=Vi(),o=Hi(),s=Wi();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offsete.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),Ki=P((e=>{var t=Qr();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?` `.repeat(Math.max(1,l.length-1)):``,t=o+s.length;return n.source&&(t+=n.source.length),{value:e,type:c,comment:s.comment,range:[o,t,t]}}let d=n.indent+s.indent,f=n.offset+s.length,p=0;for(let t=0;td&&(d=n.length);else{n.length=u;--e)l[e][0].length>d&&(u=e+1);let m=``,h=``,g=!1;for(let e=0;ed||r[0]===` `?(h===` `?h=` @@ -76,7 +76,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `+l[e][0].slice(d);m[m.length-1]!==` `&&(m+=` `);break;default:m+=` -`}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t{var t=$r(),n=Wi();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?{var t=Qr(),n=Ui();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?{var t=Gr(),n=$r(),r=qi(),i=Ji();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),Xi=P((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),Zi=P((e=>{var t=Qr(),n=Gr(),r=Ki(),i=Yi(),a=Wi(),o=Xi();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),Qi=P((e=>{var t=Ii(),n=Zi(),r=Wi(),i=Ri();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),$i=P((e=>{var t=F(`process`),n=qr(),r=Ii(),i=Li(),a=Gr(),o=Qi(),s=Wi();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i{var t=Wr(),n=Qr(),r=Ki(),i=qi();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),Yi=P((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),Xi=P((e=>{var t=Zr(),n=Wr(),r=Gi(),i=Ji(),a=Ui(),o=Yi();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),Zi=P((e=>{var t=Fi(),n=Xi(),r=Ui(),i=Li();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),Qi=P((e=>{var t=F(`process`),n=Kr(),r=Fi(),i=Ii(),a=Wr(),o=Zi(),s=Ui();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),ea=P((e=>{var t=qi(),n=Ji(),r=Li(),i=ii();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:` +`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}e.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),$i=P((e=>{var t=Ki(),n=qi(),r=Ii(),i=ri();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:` `}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(` `),t=c.substring(0,e),n=c.substring(e+1)+` `,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:` @@ -102,9 +102,9 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `),r=t.substring(0,n),i=t.substring(n+1)+` `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];l(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:` `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function l(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function u(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),ta=P((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),na=P((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n{var t=ea(),n=ta(),r=na();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return``;case``:return``;case``:return``;case``:return``;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` +`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),ea=P((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),ta=P((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n{var t=$i(),n=ea(),r=ta();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return``;case``:return``;case``:return``;case``:return``;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` `:case`\r -`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),ia=P((e=>{var t=ra();function n(e){switch(e){case void 0:case` `:case` +`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),ra=P((e=>{var t=na();function n(e){switch(e){case void 0:case` `:case` `:case`\r`:case` `:return!0;default:return!1}}let r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{} \r `),s=e=>!e||o.has(e);e.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===` `?!0:t===`\r`?this.buffer[e+1]===` @@ -123,13 +123,13 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===` `){let e=this.continueScalar(i+1);if(e===-1)break;i=Math.max(i,e-2)}}else{if(e&&a.has(o))break;r=i}return!o&&!this.atEnd?this.setNext(`plain-scalar`):(yield t.SCALAR,yield*this.pushToIndex(r+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(s),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,r=this.charAt(1);if(n(r)||t&&a.has(r)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else if(t===`%`&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),aa=P((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{var t=F(`process`),n=ra(),r=ia();function i(e,t){for(let n=0;n=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),ia=P((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{var t=F(`process`),n=na(),r=ra();function i(e,t){for(let n=0;n=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=c(s(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` -`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),sa=P((e=>{var t=$i(),n=Ii(),r=Li(),i=si(),a=Gr(),o=aa(),s=oa();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),ca=P((e=>{var t=$i(),n=Ii(),r=Pi(),i=Li(),a=Qr(),o=Gr(),s=ui(),c=$r(),l=fi(),u=mi();ra();var d=ia(),f=aa(),p=oa(),m=sa(),h=Kr();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),la;function z(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var ua=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},da=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(la=globalThis).__zod_globalConfig??(la.__zod_globalConfig={});const fa=globalThis.__zod_globalConfig;function pa(e){return e&&Object.assign(fa,e),fa}function ma(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function ha(e,t){return typeof t==`bigint`?t.toString():t}function ga(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function _a(e){return e==null}function va(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const ya=Symbol(`evaluating`);function ba(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ya)return r===void 0&&(r=ya,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function xa(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Sa(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Ca(e){return JSON.stringify(e)}function wa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Ta=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ea(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Da=ga(()=>{if(fa.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Oa(e){if(Ea(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ea(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ka(e){return Oa(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Aa=new Set([`string`,`number`,`symbol`]);function ja(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ma(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function B(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Na(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Pa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ma(e,Sa(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return xa(this,`shape`,e),e},checks:[]}))}function Fa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ma(e,Sa(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return xa(this,`shape`,r),r},checks:[]}))}function Ia(e,t){if(!Oa(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ma(e,Sa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return xa(this,`shape`,n),n}}))}function La(e,t){if(!Oa(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ma(e,Sa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return xa(this,`shape`,n),n}}))}function Ra(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ma(e,Sa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return xa(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function za(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ma(t,Sa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return xa(this,`shape`,i),i},checks:[]}))}function Ba(e,t,n){return Ma(t,Sa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return xa(this,`shape`,i),i}}))}function Va(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Wa(e){return typeof e==`string`?e:e?.message}function Ga(e,t,n){let r=e.message?e.message:Wa(e.inst?._zod.def?.error?.(e))??Wa(t?.error?.(e))??Wa(n.customError?.(e))??Wa(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Ka(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function qa(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Ja=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,ha,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Ya=z(`$ZodError`,Ja),Xa=z(`$ZodError`,Ja,{Parent:Error});function Za(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Qa(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ua;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ga(e,a,pa())));throw Ta(t,i?.callee),t}return o.value},eo=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ga(e,a,pa())));throw Ta(t,i?.callee),t}return o.value},to=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ua;return a.issues.length?{success:!1,error:new(e??Ya)(a.issues.map(e=>Ga(e,i,pa())))}:{success:!0,data:a.value}},no=to(Xa),ro=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ga(e,i,pa())))}:{success:!0,data:a.value}},io=ro(Xa),ao=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $a(e)(t,n,i)},oo=e=>(t,n,r)=>$a(e)(t,n,r),so=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return eo(e)(t,n,i)},co=e=>async(t,n,r)=>eo(e)(t,n,r),lo=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return to(e)(t,n,i)},uo=e=>(t,n,r)=>to(e)(t,n,r),fo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ro(e)(t,n,i)},po=e=>async(t,n,r)=>ro(e)(t,n,r),mo=/^[cC][0-9a-z]{6,}$/,ho=/^[0-9a-z]+$/,go=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_o=/^[0-9a-vA-V]{20}$/,vo=/^[A-Za-z0-9]{27}$/,yo=/^[a-zA-Z0-9_-]{21}$/,bo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,So=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Co=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function wo(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const To=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Eo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Do=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Oo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ko=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ao=/^[A-Za-z0-9_-]*$/,jo=/^https?$/,Mo=/^\+[1-9]\d{6,14}$/,No=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Po=RegExp(`^${No}$`);function Fo(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Io(e){return RegExp(`^${Fo(e)}$`)}function Lo(e){let t=Fo({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${No}T(?:${r})$`)}const Ro=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},zo=/^(?:true|false)$/i,Bo=/^null$/i,Vo=/^[^A-Z]*$/,Ho=/^[^a-z]*$/,Uo=z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Wo=z(`$ZodCheckMaxLength`,(e,t)=>{var n;Uo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_a(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Ka(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Go=z(`$ZodCheckMinLength`,(e,t)=>{var n;Uo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_a(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ka(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ko=z(`$ZodCheckLengthEquals`,(e,t)=>{var n;Uo.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_a(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ka(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),qo=z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Uo.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Jo=z(`$ZodCheckRegex`,(e,t)=>{qo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Yo=z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Vo,qo.init(e,t)}),Xo=z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ho,qo.init(e,t)}),Zo=z(`$ZodCheckIncludes`,(e,t)=>{Uo.init(e,t);let n=ja(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Qo=z(`$ZodCheckStartsWith`,(e,t)=>{Uo.init(e,t);let n=RegExp(`^${ja(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),$o=z(`$ZodCheckEndsWith`,(e,t)=>{Uo.init(e,t);let n=RegExp(`.*${ja(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),es=z(`$ZodCheckOverwrite`,(e,t)=>{Uo.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var ts=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oa=P((e=>{var t=Qi(),n=Fi(),r=Ii(),i=oi(),a=Wr(),o=ia(),s=aa();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sa=P((e=>{var t=Qi(),n=Fi(),r=Ni(),i=Ii(),a=Zr(),o=Wr(),s=li(),c=Qr(),l=di(),u=pi();na();var d=ra(),f=ia(),p=aa(),m=oa(),h=Gr();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),ca;function B(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var la=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ua=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(ca=globalThis).__zod_globalConfig??(ca.__zod_globalConfig={});const da=globalThis.__zod_globalConfig;function fa(e){return e&&Object.assign(da,e),da}function pa(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function ma(e,t){return typeof t==`bigint`?t.toString():t}function ha(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ga(e){return e==null}function _a(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const va=Symbol(`evaluating`);function ya(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==va)return r===void 0&&(r=va,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ba(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function xa(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Sa(e){return JSON.stringify(e)}function Ca(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const wa=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ta(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Ea=ha(()=>{if(da.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Da(e){if(Ta(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ta(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Oa(e){return Da(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const ka=new Set([`string`,`number`,`symbol`]);function Aa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ja(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function V(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ma(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Na(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ja(e,xa(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ba(this,`shape`,e),e},checks:[]}))}function Pa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ja(e,xa(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ba(this,`shape`,r),r},checks:[]}))}function Fa(e,t){if(!Da(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ja(e,xa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ba(this,`shape`,n),n}}))}function Ia(e,t){if(!Da(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ja(e,xa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ba(this,`shape`,n),n}}))}function La(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return ja(e,xa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ba(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ra(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ja(t,xa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ba(this,`shape`,i),i},checks:[]}))}function za(e,t,n){return ja(t,xa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ba(this,`shape`,i),i}}))}function Ba(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ua(e){return typeof e==`string`?e:e?.message}function Wa(e,t,n){let r=e.message?e.message:Ua(e.inst?._zod.def?.error?.(e))??Ua(t?.error?.(e))??Ua(n.customError?.(e))??Ua(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Ga(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ka(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const qa=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,ma,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Ja=B(`$ZodError`,qa),Ya=B(`$ZodError`,qa,{Parent:Error});function Xa(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Za(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new la;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Wa(e,a,fa())));throw wa(t,i?.callee),t}return o.value},$a=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Wa(e,a,fa())));throw wa(t,i?.callee),t}return o.value},eo=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new la;return a.issues.length?{success:!1,error:new(e??Ja)(a.issues.map(e=>Wa(e,i,fa())))}:{success:!0,data:a.value}},to=eo(Ya),no=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Wa(e,i,fa())))}:{success:!0,data:a.value}},ro=no(Ya),io=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Qa(e)(t,n,i)},ao=e=>(t,n,r)=>Qa(e)(t,n,r),oo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $a(e)(t,n,i)},so=e=>async(t,n,r)=>$a(e)(t,n,r),co=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return eo(e)(t,n,i)},lo=e=>(t,n,r)=>eo(e)(t,n,r),uo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return no(e)(t,n,i)},fo=e=>async(t,n,r)=>no(e)(t,n,r),po=/^[cC][0-9a-z]{6,}$/,mo=/^[0-9a-z]+$/,ho=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,go=/^[0-9a-vA-V]{20}$/,_o=/^[A-Za-z0-9]{27}$/,vo=/^[a-zA-Z0-9_-]{21}$/,yo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,xo=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,So=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Co(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const wo=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,To=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Eo=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Do=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Oo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ko=/^[A-Za-z0-9_-]*$/,Ao=/^https?$/,jo=/^\+[1-9]\d{6,14}$/,Mo=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,No=RegExp(`^${Mo}$`);function Po(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Fo(e){return RegExp(`^${Po(e)}$`)}function Io(e){let t=Po({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Mo}T(?:${r})$`)}const Lo=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Ro=/^(?:true|false)$/i,zo=/^null$/i,Bo=/^[^A-Z]*$/,Vo=/^[^a-z]*$/,Ho=B(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Uo=B(`$ZodCheckMaxLength`,(e,t)=>{var n;Ho.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ga(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Ga(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wo=B(`$ZodCheckMinLength`,(e,t)=>{var n;Ho.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ga(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ga(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Go=B(`$ZodCheckLengthEquals`,(e,t)=>{var n;Ho.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ga(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ga(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ko=B(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Ho.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qo=B(`$ZodCheckRegex`,(e,t)=>{Ko.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Jo=B(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Bo,Ko.init(e,t)}),Yo=B(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Vo,Ko.init(e,t)}),Xo=B(`$ZodCheckIncludes`,(e,t)=>{Ho.init(e,t);let n=Aa(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Zo=B(`$ZodCheckStartsWith`,(e,t)=>{Ho.init(e,t);let n=RegExp(`^${Aa(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Qo=B(`$ZodCheckEndsWith`,(e,t)=>{Ho.init(e,t);let n=RegExp(`.*${Aa(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),$o=B(`$ZodCheckOverwrite`,(e,t)=>{Ho.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var es=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}};const ns={major:4,minor:4,patch:3},rs=z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ns;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Va(e),i;for(let a of t){if(a._zod.def.when){if(Ha(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ua;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Va(e,t))});else{if(e.issues.length===t)continue;r||=Va(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Va(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ua;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ua;return o.then(e=>t(e,r,a))}return t(o,r,a)}}ba(e,`~standard`,()=>({validate:t=>{try{let n=no(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return io(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),is=z(`$ZodString`,(e,t)=>{rs.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ro(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),as=z(`$ZodStringFormat`,(e,t)=>{qo.init(e,t),is.init(e,t)}),os=z(`$ZodGUID`,(e,t)=>{t.pattern??=xo,as.init(e,t)}),ss=z(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=So(e)}else t.pattern??=So();as.init(e,t)}),cs=z(`$ZodEmail`,(e,t)=>{t.pattern??=Co,as.init(e,t)}),ls=z(`$ZodURL`,(e,t)=>{as.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===jo.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),us=z(`$ZodEmoji`,(e,t)=>{t.pattern??=wo(),as.init(e,t)}),ds=z(`$ZodNanoID`,(e,t)=>{t.pattern??=yo,as.init(e,t)}),fs=z(`$ZodCUID`,(e,t)=>{t.pattern??=mo,as.init(e,t)}),ps=z(`$ZodCUID2`,(e,t)=>{t.pattern??=ho,as.init(e,t)}),ms=z(`$ZodULID`,(e,t)=>{t.pattern??=go,as.init(e,t)}),hs=z(`$ZodXID`,(e,t)=>{t.pattern??=_o,as.init(e,t)}),gs=z(`$ZodKSUID`,(e,t)=>{t.pattern??=vo,as.init(e,t)}),_s=z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Lo(t),as.init(e,t)}),vs=z(`$ZodISODate`,(e,t)=>{t.pattern??=Po,as.init(e,t)}),ys=z(`$ZodISOTime`,(e,t)=>{t.pattern??=Io(t),as.init(e,t)}),bs=z(`$ZodISODuration`,(e,t)=>{t.pattern??=bo,as.init(e,t)}),xs=z(`$ZodIPv4`,(e,t)=>{t.pattern??=To,as.init(e,t),e._zod.bag.format=`ipv4`}),Ss=z(`$ZodIPv6`,(e,t)=>{t.pattern??=Eo,as.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Cs=z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Do,as.init(e,t)}),ws=z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Oo,as.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Ts(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Es=z(`$ZodBase64`,(e,t)=>{t.pattern??=ko,as.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Ts(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Ds(e){if(!Ao.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Ts(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Os=z(`$ZodBase64URL`,(e,t)=>{t.pattern??=Ao,as.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Ds(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),ks=z(`$ZodE164`,(e,t)=>{t.pattern??=Mo,as.init(e,t)});function As(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const js=z(`$ZodJWT`,(e,t)=>{as.init(e,t),e._zod.check=n=>{As(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Ms=z(`$ZodBoolean`,(e,t)=>{rs.init(e,t),e._zod.pattern=zo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ns=z(`$ZodNull`,(e,t)=>{rs.init(e,t),e._zod.pattern=Bo,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ps=z(`$ZodUnknown`,(e,t)=>{rs.init(e,t),e._zod.parse=e=>e}),Fs=z(`$ZodNever`,(e,t)=>{rs.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Is(e,t,n){e.issues.length&&t.issues.push(...Ua(n,e.issues)),t.value[n]=e.value}const Ls=z(`$ZodArray`,(e,t)=>{rs.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eIs(t,n,e))):Is(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Rs(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ua(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function zs(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Na(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Bs(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Rs(e,n,i,t,u,d))):Rs(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Vs=z(`$ZodObject`,(e,t)=>{if(rs.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ga(()=>zs(t));ba(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ea,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Rs(n,t,e,s,r,i))):Rs(a,t,e,s,r,i)}return i?Bs(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Hs=z(`$ZodObjectJIT`,(e,t)=>{Vs.init(e,t);let n=e._zod.parse,r=ga(()=>zs(t)),i=e=>{let t=new ts([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Ca(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Ca(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}};const ts={major:4,minor:4,patch:3},ns=B(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ts;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ba(e),i;for(let a of t){if(a._zod.def.when){if(Va(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new la;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ba(e,t))});else{if(e.issues.length===t)continue;r||=Ba(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ba(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new la;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new la;return o.then(e=>t(e,r,a))}return t(o,r,a)}}ya(e,`~standard`,()=>({validate:t=>{try{let n=to(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return ro(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),rs=B(`$ZodString`,(e,t)=>{ns.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Lo(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),is=B(`$ZodStringFormat`,(e,t)=>{Ko.init(e,t),rs.init(e,t)}),as=B(`$ZodGUID`,(e,t)=>{t.pattern??=bo,is.init(e,t)}),os=B(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=xo(e)}else t.pattern??=xo();is.init(e,t)}),ss=B(`$ZodEmail`,(e,t)=>{t.pattern??=So,is.init(e,t)}),cs=B(`$ZodURL`,(e,t)=>{is.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Ao.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ls=B(`$ZodEmoji`,(e,t)=>{t.pattern??=Co(),is.init(e,t)}),us=B(`$ZodNanoID`,(e,t)=>{t.pattern??=vo,is.init(e,t)}),ds=B(`$ZodCUID`,(e,t)=>{t.pattern??=po,is.init(e,t)}),fs=B(`$ZodCUID2`,(e,t)=>{t.pattern??=mo,is.init(e,t)}),ps=B(`$ZodULID`,(e,t)=>{t.pattern??=ho,is.init(e,t)}),ms=B(`$ZodXID`,(e,t)=>{t.pattern??=go,is.init(e,t)}),hs=B(`$ZodKSUID`,(e,t)=>{t.pattern??=_o,is.init(e,t)}),gs=B(`$ZodISODateTime`,(e,t)=>{t.pattern??=Io(t),is.init(e,t)}),_s=B(`$ZodISODate`,(e,t)=>{t.pattern??=No,is.init(e,t)}),vs=B(`$ZodISOTime`,(e,t)=>{t.pattern??=Fo(t),is.init(e,t)}),ys=B(`$ZodISODuration`,(e,t)=>{t.pattern??=yo,is.init(e,t)}),bs=B(`$ZodIPv4`,(e,t)=>{t.pattern??=wo,is.init(e,t),e._zod.bag.format=`ipv4`}),xs=B(`$ZodIPv6`,(e,t)=>{t.pattern??=To,is.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Ss=B(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Eo,is.init(e,t)}),Cs=B(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Do,is.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function ws(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Ts=B(`$ZodBase64`,(e,t)=>{t.pattern??=Oo,is.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{ws(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Es(e){if(!ko.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ws(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Ds=B(`$ZodBase64URL`,(e,t)=>{t.pattern??=ko,is.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Es(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Os=B(`$ZodE164`,(e,t)=>{t.pattern??=jo,is.init(e,t)});function ks(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const As=B(`$ZodJWT`,(e,t)=>{is.init(e,t),e._zod.check=n=>{ks(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),js=B(`$ZodBoolean`,(e,t)=>{ns.init(e,t),e._zod.pattern=Ro,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ms=B(`$ZodNull`,(e,t)=>{ns.init(e,t),e._zod.pattern=zo,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ns=B(`$ZodUnknown`,(e,t)=>{ns.init(e,t),e._zod.parse=e=>e}),Ps=B(`$ZodNever`,(e,t)=>{ns.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Fs(e,t,n){e.issues.length&&t.issues.push(...Ha(n,e.issues)),t.value[n]=e.value}const Is=B(`$ZodArray`,(e,t)=>{ns.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eFs(t,n,e))):Fs(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Ls(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ha(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Rs(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Ma(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function zs(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Ls(e,n,i,t,u,d))):Ls(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Bs=B(`$ZodObject`,(e,t)=>{if(ns.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ha(()=>Rs(t));ya(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ta,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Ls(n,t,e,s,r,i))):Ls(a,t,e,s,r,i)}return i?zs(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Vs=B(`$ZodObjectJIT`,(e,t)=>{Bs.init(e,t);let n=e._zod.parse,r=ha(()=>Rs(t)),i=e=>{let t=new es([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Sa(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Sa(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -188,52 +188,52 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ea,s=!fa.jitless,c=s&&Da.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Bs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Us(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Va(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ga(e,r,pa())))}),t)}const Ws=z(`$ZodUnion`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),ba(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),ba(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),ba(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>va(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Us(t,r,e,i)):Us(o,r,e,i)}}),Gs=z(`$ZodIntersection`,(e,t)=>{rs.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>qs(e,t,n)):qs(e,i,a)}});function Ks(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Oa(e)&&Oa(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ks(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Va(e))return e;let o=Ks(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Js=z(`$ZodEnum`,(e,t)=>{rs.init(e,t);let n=ma(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Aa.has(typeof e)).map(e=>typeof e==`string`?ja(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ys=z(`$ZodTransform`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ua;return n.value=i,n.fallback=!0,n}});function Xs(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Zs=z(`$ZodOptional`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Xs(e,r)):Xs(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Qs=z(`$ZodExactOptional`,(e,t)=>{Zs.init(e,t),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),$s=z(`$ZodNullable`,(e,t)=>{rs.init(e,t),ba(e._zod,`optin`,()=>t.innerType._zod.optin),ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${va(e.source)}|null)$`):void 0}),ba(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ec=z(`$ZodDefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>tc(e,t)):tc(r,t)}});function tc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const nc=z(`$ZodPrefault`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),rc=z(`$ZodNonOptional`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ic(t,e)):ic(i,e)}});function ic(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const ac=z(`$ZodCatch`,(e,t)=>{rs.init(e,t),e._zod.optin=`optional`,ba(e._zod,`optout`,()=>t.innerType._zod.optout),ba(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ga(e,n,pa()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),oc=z(`$ZodPipe`,(e,t)=>{rs.init(e,t),ba(e._zod,`values`,()=>t.in._zod.values),ba(e._zod,`optin`,()=>t.in._zod.optin),ba(e._zod,`optout`,()=>t.out._zod.optout),ba(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.in,n)):sc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>sc(e,t.out,n)):sc(r,t.out,n)}});function sc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const cc=z(`$ZodReadonly`,(e,t)=>{rs.init(e,t),ba(e._zod,`propValues`,()=>t.innerType._zod.propValues),ba(e._zod,`values`,()=>t.innerType._zod.values),ba(e._zod,`optin`,()=>t.innerType?._zod?.optin),ba(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(lc):lc(r)}});function lc(e){return e.value=Object.freeze(e.value),e}const uc=z(`$ZodCustom`,(e,t)=>{Uo.init(e,t),rs.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>dc(t,n,r,e));dc(i,n,r,e)}});function dc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(qa(e))}}var fc,pc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function mc(){return new pc}(fc=globalThis).__zod_globalRegistry??(fc.__zod_globalRegistry=mc());const hc=globalThis.__zod_globalRegistry;function gc(e,t){return new e({type:`string`,...B(t)})}function _c(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...B(t)})}function vc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...B(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...B(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...B(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...B(t)})}function Sc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...B(t)})}function Cc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...B(t)})}function wc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...B(t)})}function Tc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...B(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...B(t)})}function Dc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...B(t)})}function Oc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...B(t)})}function kc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...B(t)})}function Ac(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...B(t)})}function jc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...B(t)})}function Mc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...B(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...B(t)})}function Pc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...B(t)})}function Fc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...B(t)})}function Ic(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...B(t)})}function Lc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...B(t)})}function Rc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...B(t)})}function zc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...B(t)})}function Bc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...B(t)})}function Vc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...B(t)})}function Hc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...B(t)})}function Uc(e,t){return new e({type:`boolean`,...B(t)})}function Wc(e,t){return new e({type:`null`,...B(t)})}function Gc(e){return new e({type:`unknown`})}function Kc(e,t){return new e({type:`never`,...B(t)})}function qc(e,t){return new Wo({check:`max_length`,...B(t),maximum:e})}function Jc(e,t){return new Go({check:`min_length`,...B(t),minimum:e})}function Yc(e,t){return new Ko({check:`length_equals`,...B(t),length:e})}function Xc(e,t){return new Jo({check:`string_format`,format:`regex`,...B(t),pattern:e})}function Zc(e){return new Yo({check:`string_format`,format:`lowercase`,...B(e)})}function Qc(e){return new Xo({check:`string_format`,format:`uppercase`,...B(e)})}function $c(e,t){return new Zo({check:`string_format`,format:`includes`,...B(t),includes:e})}function el(e,t){return new Qo({check:`string_format`,format:`starts_with`,...B(t),prefix:e})}function tl(e,t){return new $o({check:`string_format`,format:`ends_with`,...B(t),suffix:e})}function nl(e){return new es({check:`overwrite`,tx:e})}function rl(e){return nl(t=>t.normalize(e))}function il(){return nl(e=>e.trim())}function al(){return nl(e=>e.toLowerCase())}function ol(){return nl(e=>e.toUpperCase())}function sl(){return nl(e=>wa(e))}function cl(e,t,n){return new e({type:`array`,element:t,...B(n)})}function ll(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...B(n)})}function ul(e,t){let n=dl(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(qa(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(qa(r))}},e(t.value,t)),t);return n}function dl(e,t){let n=new Uo({check:`custom`,...B(t)});return n._zod.check=e,n}function fl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??hc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function pl(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,pl(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&gl(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ml(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ta,s=!da.jitless,c=s&&Ea.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?zs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Hs(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ba(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Wa(e,r,fa())))}),t)}const Us=B(`$ZodUnion`,(e,t)=>{ns.init(e,t),ya(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),ya(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),ya(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),ya(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>_a(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Hs(t,r,e,i)):Hs(o,r,e,i)}}),Ws=B(`$ZodIntersection`,(e,t)=>{ns.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ks(e,t,n)):Ks(e,i,a)}});function Gs(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Da(e)&&Da(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Gs(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ba(e))return e;let o=Gs(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const qs=B(`$ZodEnum`,(e,t)=>{ns.init(e,t);let n=pa(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ka.has(typeof e)).map(e=>typeof e==`string`?Aa(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Js=B(`$ZodTransform`,(e,t)=>{ns.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ua(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new la;return n.value=i,n.fallback=!0,n}});function Ys(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Xs=B(`$ZodOptional`,(e,t)=>{ns.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,ya(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ya(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${_a(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Ys(e,r)):Ys(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Zs=B(`$ZodExactOptional`,(e,t)=>{Xs.init(e,t),ya(e._zod,`values`,()=>t.innerType._zod.values),ya(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Qs=B(`$ZodNullable`,(e,t)=>{ns.init(e,t),ya(e._zod,`optin`,()=>t.innerType._zod.optin),ya(e._zod,`optout`,()=>t.innerType._zod.optout),ya(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${_a(e.source)}|null)$`):void 0}),ya(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),$s=B(`$ZodDefault`,(e,t)=>{ns.init(e,t),e._zod.optin=`optional`,ya(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ec(e,t)):ec(r,t)}});function ec(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const tc=B(`$ZodPrefault`,(e,t)=>{ns.init(e,t),e._zod.optin=`optional`,ya(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),nc=B(`$ZodNonOptional`,(e,t)=>{ns.init(e,t),ya(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>rc(t,e)):rc(i,e)}});function rc(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const ic=B(`$ZodCatch`,(e,t)=>{ns.init(e,t),e._zod.optin=`optional`,ya(e._zod,`optout`,()=>t.innerType._zod.optout),ya(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Wa(e,n,fa()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Wa(e,n,fa()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ac=B(`$ZodPipe`,(e,t)=>{ns.init(e,t),ya(e._zod,`values`,()=>t.in._zod.values),ya(e._zod,`optin`,()=>t.in._zod.optin),ya(e._zod,`optout`,()=>t.out._zod.optout),ya(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>oc(e,t.in,n)):oc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>oc(e,t.out,n)):oc(r,t.out,n)}});function oc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const sc=B(`$ZodReadonly`,(e,t)=>{ns.init(e,t),ya(e._zod,`propValues`,()=>t.innerType._zod.propValues),ya(e._zod,`values`,()=>t.innerType._zod.values),ya(e._zod,`optin`,()=>t.innerType?._zod?.optin),ya(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(cc):cc(r)}});function cc(e){return e.value=Object.freeze(e.value),e}const lc=B(`$ZodCustom`,(e,t)=>{Ho.init(e,t),ns.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>uc(t,n,r,e));uc(i,n,r,e)}});function uc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ka(e))}}var dc,fc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function pc(){return new fc}(dc=globalThis).__zod_globalRegistry??(dc.__zod_globalRegistry=pc());const mc=globalThis.__zod_globalRegistry;function hc(e,t){return new e({type:`string`,...V(t)})}function gc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...V(t)})}function _c(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...V(t)})}function vc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...V(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...V(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...V(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...V(t)})}function Sc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...V(t)})}function Cc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...V(t)})}function wc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...V(t)})}function Tc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...V(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...V(t)})}function Dc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...V(t)})}function Oc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...V(t)})}function kc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...V(t)})}function Ac(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...V(t)})}function jc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...V(t)})}function Mc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...V(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...V(t)})}function Pc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...V(t)})}function Fc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...V(t)})}function Ic(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...V(t)})}function Lc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...V(t)})}function Rc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...V(t)})}function zc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...V(t)})}function Bc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...V(t)})}function Vc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...V(t)})}function Hc(e,t){return new e({type:`boolean`,...V(t)})}function Uc(e,t){return new e({type:`null`,...V(t)})}function Wc(e){return new e({type:`unknown`})}function Gc(e,t){return new e({type:`never`,...V(t)})}function Kc(e,t){return new Uo({check:`max_length`,...V(t),maximum:e})}function qc(e,t){return new Wo({check:`min_length`,...V(t),minimum:e})}function Jc(e,t){return new Go({check:`length_equals`,...V(t),length:e})}function Yc(e,t){return new qo({check:`string_format`,format:`regex`,...V(t),pattern:e})}function Xc(e){return new Jo({check:`string_format`,format:`lowercase`,...V(e)})}function Zc(e){return new Yo({check:`string_format`,format:`uppercase`,...V(e)})}function Qc(e,t){return new Xo({check:`string_format`,format:`includes`,...V(t),includes:e})}function $c(e,t){return new Zo({check:`string_format`,format:`starts_with`,...V(t),prefix:e})}function el(e,t){return new Qo({check:`string_format`,format:`ends_with`,...V(t),suffix:e})}function tl(e){return new $o({check:`overwrite`,tx:e})}function nl(e){return tl(t=>t.normalize(e))}function rl(){return tl(e=>e.trim())}function il(){return tl(e=>e.toLowerCase())}function al(){return tl(e=>e.toUpperCase())}function ol(){return tl(e=>Ca(e))}function sl(e,t,n){return new e({type:`array`,element:t,...V(n)})}function cl(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...V(n)})}function ll(e,t){let n=ul(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ka(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ka(r))}},e(t.value,t)),t);return n}function ul(e,t){let n=new Ho({check:`custom`,...V(t)});return n._zod.check=e,n}function dl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??mc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function fl(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,fl(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&hl(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function pl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vl(t,`input`,e.processors),output:vl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function gl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return gl(r.element,n);if(r.type===`set`)return gl(r.valueType,n);if(r.type===`lazy`)return gl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return gl(r.innerType,n);if(r.type===`intersection`)return gl(r.left,n)||gl(r.right,n);if(r.type===`record`||r.type===`map`)return gl(r.keyType,n)||gl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:gl(r.in,n)||gl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(gl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(gl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(gl(e,n))return!0;return!!(r.rest&&gl(r.rest,n))}return!1}const _l=(e,t={})=>n=>{let r=fl({...n,processors:t});return pl(e,r),ml(r,e),hl(r,e)},vl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=fl({...i??{},target:a,io:t,processors:n});return pl(e,o),ml(o,e),hl(o,e)},yl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xl=(e,t,n,r)=>{n.type=`boolean`},Sl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Cl=(e,t,n,r)=>{n.not={}},wl=(e,t,n,r)=>{let i=e._zod.def,a=ma(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pl(a.element,t,{...r,path:[...r.path,`items`]})},Ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=pl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=pl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Al=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},jl=(e,t,n,r)=>{let i=e._zod.def,a=pl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ml=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Pl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Fl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Il=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;pl(o,t,r);let s=t.seen.get(e);s.ref=o},Ll=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Rl=(e,t,n,r)=>{let i=e._zod.def;pl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},zl=z(`ZodISODateTime`,(e,t)=>{_s.init(e,t),mu.init(e,t)});function Bl(e){return zc(zl,e)}const Vl=z(`ZodISODate`,(e,t)=>{vs.init(e,t),mu.init(e,t)});function Hl(e){return Bc(Vl,e)}const Ul=z(`ZodISOTime`,(e,t)=>{ys.init(e,t),mu.init(e,t)});function Wl(e){return Vc(Ul,e)}const Gl=z(`ZodISODuration`,(e,t)=>{bs.init(e,t),mu.init(e,t)});function Kl(e){return Hc(Gl,e)}const ql=(e,t)=>{Ya.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qa(e,t)},flatten:{value:t=>Za(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ha,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ha,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jl=z(`ZodError`,ql),Yl=z(`ZodError`,ql,{Parent:Error}),Xl=$a(Yl),Zl=eo(Yl),Ql=to(Yl),$l=ro(Yl),eu=ao(Yl),tu=oo(Yl),nu=so(Yl),ru=co(Yl),iu=lo(Yl),au=uo(Yl),ou=fo(Yl),su=po(Yl),cu=new WeakMap;function lu(e,t,n){let r=Object.getPrototypeOf(e),i=cu.get(r);if(i||(i=new Set,cu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const uu=z(`ZodType`,(e,t)=>(rs.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vl(e,`input`),output:vl(e,`output`)}}),e.toJSONSchema=_l(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Xl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ql(e,t,n),e.parseAsync=async(t,n)=>Zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$l(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eu(e,t,n),e.decode=(t,n)=>tu(e,t,n),e.encodeAsync=async(t,n)=>nu(e,t,n),e.decodeAsync=async(t,n)=>ru(e,t,n),e.safeEncode=(t,n)=>iu(e,t,n),e.safeDecode=(t,n)=>au(e,t,n),e.safeEncodeAsync=async(t,n)=>ou(e,t,n),e.safeDecodeAsync=async(t,n)=>su(e,t,n),lu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Sa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ma(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(yd(e,t))},superRefine(e,t){return this.check(bd(e,t))},overwrite(e){return this.check(nl(e))},optional(){return td(this)},exactOptional(){return rd(this)},nullable(){return ad(this)},nullish(){return td(ad(this))},nonoptional(e){return dd(this,e)},array(){return Uu(this)},or(e){return qu([this,e])},and(e){return Yu(this,e)},transform(e){return hd(this,$u(e))},default(e){return sd(this,e)},prefault(e){return ld(this,e)},catch(e){return pd(this,e)},pipe(e){return hd(this,e)},readonly(){return _d(this)},describe(e){let t=this.clone();return hc.add(t,{description:e}),t},meta(...e){if(e.length===0)return hc.get(this);let t=this.clone();return hc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return hc.get(e)?.description},configurable:!0}),e)),du=z(`_ZodString`,(e,t)=>{is.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,lu(e,`_ZodString`,{regex(...e){return this.check(Xc(...e))},includes(...e){return this.check($c(...e))},startsWith(...e){return this.check(el(...e))},endsWith(...e){return this.check(tl(...e))},min(...e){return this.check(Jc(...e))},max(...e){return this.check(qc(...e))},length(...e){return this.check(Yc(...e))},nonempty(...e){return this.check(Jc(1,...e))},lowercase(e){return this.check(Zc(e))},uppercase(e){return this.check(Qc(e))},trim(){return this.check(il())},normalize(...e){return this.check(rl(...e))},toLowerCase(){return this.check(al())},toUpperCase(){return this.check(ol())},slugify(){return this.check(sl())}})}),fu=z(`ZodString`,(e,t)=>{is.init(e,t),du.init(e,t),e.email=t=>e.check(_c(hu,t)),e.url=t=>e.check(Cc(vu,t)),e.jwt=t=>e.check(Rc(Nu,t)),e.emoji=t=>e.check(wc(yu,t)),e.guid=t=>e.check(vc(gu,t)),e.uuid=t=>e.check(yc(_u,t)),e.uuidv4=t=>e.check(bc(_u,t)),e.uuidv6=t=>e.check(xc(_u,t)),e.uuidv7=t=>e.check(Sc(_u,t)),e.nanoid=t=>e.check(Tc(bu,t)),e.guid=t=>e.check(vc(gu,t)),e.cuid=t=>e.check(Ec(xu,t)),e.cuid2=t=>e.check(Dc(Su,t)),e.ulid=t=>e.check(Oc(Cu,t)),e.base64=t=>e.check(Fc(Au,t)),e.base64url=t=>e.check(Ic(ju,t)),e.xid=t=>e.check(kc(wu,t)),e.ksuid=t=>e.check(Ac(Tu,t)),e.ipv4=t=>e.check(jc(Eu,t)),e.ipv6=t=>e.check(Mc(Du,t)),e.cidrv4=t=>e.check(Nc(Ou,t)),e.cidrv6=t=>e.check(Pc(ku,t)),e.e164=t=>e.check(Lc(Mu,t)),e.datetime=t=>e.check(Bl(t)),e.date=t=>e.check(Hl(t)),e.time=t=>e.check(Wl(t)),e.duration=t=>e.check(Kl(t))});function pu(e){return gc(fu,e)}const mu=z(`ZodStringFormat`,(e,t)=>{as.init(e,t),du.init(e,t)}),hu=z(`ZodEmail`,(e,t)=>{cs.init(e,t),mu.init(e,t)}),gu=z(`ZodGUID`,(e,t)=>{os.init(e,t),mu.init(e,t)}),_u=z(`ZodUUID`,(e,t)=>{ss.init(e,t),mu.init(e,t)}),vu=z(`ZodURL`,(e,t)=>{ls.init(e,t),mu.init(e,t)}),yu=z(`ZodEmoji`,(e,t)=>{us.init(e,t),mu.init(e,t)}),bu=z(`ZodNanoID`,(e,t)=>{ds.init(e,t),mu.init(e,t)}),xu=z(`ZodCUID`,(e,t)=>{fs.init(e,t),mu.init(e,t)}),Su=z(`ZodCUID2`,(e,t)=>{ps.init(e,t),mu.init(e,t)}),Cu=z(`ZodULID`,(e,t)=>{ms.init(e,t),mu.init(e,t)}),wu=z(`ZodXID`,(e,t)=>{hs.init(e,t),mu.init(e,t)}),Tu=z(`ZodKSUID`,(e,t)=>{gs.init(e,t),mu.init(e,t)}),Eu=z(`ZodIPv4`,(e,t)=>{xs.init(e,t),mu.init(e,t)}),Du=z(`ZodIPv6`,(e,t)=>{Ss.init(e,t),mu.init(e,t)}),Ou=z(`ZodCIDRv4`,(e,t)=>{Cs.init(e,t),mu.init(e,t)}),ku=z(`ZodCIDRv6`,(e,t)=>{ws.init(e,t),mu.init(e,t)}),Au=z(`ZodBase64`,(e,t)=>{Es.init(e,t),mu.init(e,t)}),ju=z(`ZodBase64URL`,(e,t)=>{Os.init(e,t),mu.init(e,t)}),Mu=z(`ZodE164`,(e,t)=>{ks.init(e,t),mu.init(e,t)}),Nu=z(`ZodJWT`,(e,t)=>{js.init(e,t),mu.init(e,t)}),Pu=z(`ZodBoolean`,(e,t)=>{Ms.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Fu(e){return Uc(Pu,e)}const Iu=z(`ZodNull`,(e,t)=>{Ns.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Lu(e){return Wc(Iu,e)}const Ru=z(`ZodUnknown`,(e,t)=>{Ps.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zu(){return Gc(Ru)}const Bu=z(`ZodNever`,(e,t)=>{Fs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r)});function Vu(e){return Kc(Bu,e)}const Hu=z(`ZodArray`,(e,t)=>{Ls.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),e.element=t.element,lu(e,`ZodArray`,{min(e,t){return this.check(Jc(e,t))},nonempty(e){return this.check(Jc(1,e))},max(e,t){return this.check(qc(e,t))},length(e,t){return this.check(Yc(e,t))},unwrap(){return this.element}})});function Uu(e,t){return cl(Hu,e,t)}const Wu=z(`ZodObject`,(e,t)=>{Hs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),ba(e,`shape`,()=>t.shape),lu(e,`ZodObject`,{keyof(){return Zu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:zu()})},loose(){return this.clone({...this._zod.def,catchall:zu()})},strict(){return this.clone({...this._zod.def,catchall:Vu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ia(this,e)},safeExtend(e){return La(this,e)},merge(e){return Ra(this,e)},pick(e){return Pa(this,e)},omit(e){return Fa(this,e)},partial(...e){return za(ed,this,e[0])},required(...e){return Ba(ud,this,e[0])}})});function Gu(e,t){return new Wu({type:`object`,shape:e??{},...B(t)})}const Ku=z(`ZodUnion`,(e,t)=>{Ws.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.options=t.options});function qu(e,t){return new Ku({type:`union`,options:e,...B(t)})}const Ju=z(`ZodIntersection`,(e,t)=>{Gs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Yu(e,t){return new Ju({type:`intersection`,left:e,right:t})}const Xu=z(`ZodEnum`,(e,t)=>{Js.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Xu({...t,checks:[],...B(r),entries:i})}});function Zu(e,t){return new Xu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}const Qu=z(`ZodTransform`,(e,t)=>{Ys.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new da(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new Qu({type:`transform`,transform:e})}const ed=z(`ZodOptional`,(e,t)=>{Zs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e){return new ed({type:`optional`,innerType:e})}const nd=z(`ZodExactOptional`,(e,t)=>{Qs.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new nd({type:`optional`,innerType:e})}const id=z(`ZodNullable`,(e,t)=>{$s.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new id({type:`nullable`,innerType:e})}const od=z(`ZodDefault`,(e,t)=>{ec.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sd(e,t){return new od({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const cd=z(`ZodPrefault`,(e,t)=>{nc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ld(e,t){return new cd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ka(t)}})}const ud=z(`ZodNonOptional`,(e,t)=>{rc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dd(e,t){return new ud({type:`nonoptional`,innerType:e,...B(t)})}const fd=z(`ZodCatch`,(e,t)=>{ac.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pd(e,t){return new fd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const md=z(`ZodPipe`,(e,t)=>{oc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.in=t.in,e.out=t.out});function hd(e,t){return new md({type:`pipe`,in:e,out:t})}const gd=z(`ZodReadonly`,(e,t)=>{cc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _d(e){return new gd({type:`readonly`,innerType:e})}const vd=z(`ZodCustom`,(e,t)=>{uc.init(e,t),uu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r)});function yd(e,t={}){return ll(vd,e,t)}function bd(e,t){return ul(e,t)}var xd=ca();const Sd=Gu({cwd:pu().optional(),args:Uu(pu()).optional()}),Cd=qu([Lu(),Fu(),Sd,Uu(Sd)]),wd=`Vite+`;function Td(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Ed(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Ed(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,xd.parse)(e);try{let e=Cd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof Jl?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Dd(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Od(){return process.env.GITHUB_WORKSPACE||process.cwd()}function kd(e,t){return ee(e)?e:N(t,e)}function Ad(e){if(!e.workingDirectory)return Od();let t=kd(e.workingDirectory,Od());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function jd(e,t){return t?kd(t,e):e}const Md=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Nd(e,t=Od()){if(e){let n=kd(e,t);if(ae(n)){let e=j(n),t=Md.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Pd(n,e)}return}let n=ce(t);for(let e of Md)if(n.includes(e.filename)){let n=N(t,e.filename);return Br(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Pd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Fd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Ld(t);default:return[]}}async function Id(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Ld(e){let t=await Id(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Rd=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],zd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],Bd=2e3;async function Vd(e){let{version:t}=e;Br(`Installing ${wd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?zd:Rd,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Hd(e,n);if(t===0){Ud();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=lf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=lf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=tf(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=tf(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function df(e,t){let n=cf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function ff(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var pf=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),hf=P(((e,t)=>{var n=pf(),r=mf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=hf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new vf(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),bf?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:bf,nocomment:!0,noext:!0,nonegate:!0};a=bf?a.replace(/\\/g,`/`):a,this.minimatch=new yf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=of(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=sf(e),this.minimatch.match(e)?this.trailingSeparator?cf.Directory:cf.All:cf.None}partialMatch(e){return e=sf(e),tf(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(bf?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(bf?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new vf(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!af(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=of(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(rf(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(bf&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=nf(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(bf&&(n===`\\`||n.match(/^\\[^\\]/))){let t=nf(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=nf(e.globEscape(process.cwd()),n);return of(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},Sf=class{constructor(e,t){this.path=e,this.level=t}},Cf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},wf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},Tf=function(e){return this instanceof Tf?(this.v=e,this):new Tf(e)},Ef=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Tf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Df=process.platform===`win32`;var Of=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=$d(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Cf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=wf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Ef(this,arguments,function*(){let t=$d(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new xf(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of uf(n)){R(`Search path '${e}'`);try{yield Tf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new Sf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=df(n,o.path),c=!!s||ff(n,o.path);if(!s&&!c)continue;let l=yield Tf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&cf.Directory&&t.matchDirectories)yield yield Tf(o.path);else if(!c)continue;let e=o.level+1,n=(yield Tf(a.promises.readdir(o.path))).map(t=>new Sf(u.join(o.path,t),e));r.push(...n.reverse())}else s&cf.File&&(yield yield Tf(o.path))}})}static create(t,n){return Cf(this,void 0,void 0,function*(){let r=new e(n);Df&&(t=t.replace(/\r\n/g,` +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function ml(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:_l(t,`input`,e.processors),output:_l(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function hl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return hl(r.element,n);if(r.type===`set`)return hl(r.valueType,n);if(r.type===`lazy`)return hl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return hl(r.innerType,n);if(r.type===`intersection`)return hl(r.left,n)||hl(r.right,n);if(r.type===`record`||r.type===`map`)return hl(r.keyType,n)||hl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:hl(r.in,n)||hl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(hl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(hl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(hl(e,n))return!0;return!!(r.rest&&hl(r.rest,n))}return!1}const gl=(e,t={})=>n=>{let r=dl({...n,processors:t});return fl(e,r),pl(r,e),ml(r,e)},_l=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=dl({...i??{},target:a,io:t,processors:n});return fl(e,o),pl(o,e),ml(o,e)},vl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},yl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=vl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},bl=(e,t,n,r)=>{n.type=`boolean`},xl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Sl=(e,t,n,r)=>{n.not={}},Cl=(e,t,n,r)=>{let i=e._zod.def,a=pa(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},wl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Tl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},El=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=fl(a.element,t,{...r,path:[...r.path,`items`]})},Dl=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=fl(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=fl(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Ol=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>fl(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},kl=(e,t,n,r)=>{let i=e._zod.def,a=fl(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=fl(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Al=(e,t,n,r)=>{let i=e._zod.def,a=fl(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},jl=(e,t,n,r)=>{let i=e._zod.def;fl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ml=(e,t,n,r)=>{let i=e._zod.def;fl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Nl=(e,t,n,r)=>{let i=e._zod.def;fl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Pl=(e,t,n,r)=>{let i=e._zod.def;fl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Fl=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;fl(o,t,r);let s=t.seen.get(e);s.ref=o},Il=(e,t,n,r)=>{let i=e._zod.def;fl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ll=(e,t,n,r)=>{let i=e._zod.def;fl(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Rl=B(`ZodISODateTime`,(e,t)=>{gs.init(e,t),pu.init(e,t)});function zl(e){return Rc(Rl,e)}const Bl=B(`ZodISODate`,(e,t)=>{_s.init(e,t),pu.init(e,t)});function Vl(e){return zc(Bl,e)}const Hl=B(`ZodISOTime`,(e,t)=>{vs.init(e,t),pu.init(e,t)});function Ul(e){return Bc(Hl,e)}const Wl=B(`ZodISODuration`,(e,t)=>{ys.init(e,t),pu.init(e,t)});function Gl(e){return Vc(Wl,e)}const Kl=(e,t)=>{Ja.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Za(e,t)},flatten:{value:t=>Xa(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ma,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ma,2)}},isEmpty:{get(){return e.issues.length===0}}})},ql=B(`ZodError`,Kl),Jl=B(`ZodError`,Kl,{Parent:Error}),Yl=Qa(Jl),Xl=$a(Jl),Zl=eo(Jl),Ql=no(Jl),$l=io(Jl),eu=ao(Jl),tu=oo(Jl),nu=so(Jl),ru=co(Jl),iu=lo(Jl),au=uo(Jl),ou=fo(Jl),su=new WeakMap;function cu(e,t,n){let r=Object.getPrototypeOf(e),i=su.get(r);if(i||(i=new Set,su.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}const lu=B(`ZodType`,(e,t)=>(ns.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:_l(e,`input`),output:_l(e,`output`)}}),e.toJSONSchema=gl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Yl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Zl(e,t,n),e.parseAsync=async(t,n)=>Xl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ql(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>$l(e,t,n),e.decode=(t,n)=>eu(e,t,n),e.encodeAsync=async(t,n)=>tu(e,t,n),e.decodeAsync=async(t,n)=>nu(e,t,n),e.safeEncode=(t,n)=>ru(e,t,n),e.safeDecode=(t,n)=>iu(e,t,n),e.safeEncodeAsync=async(t,n)=>au(e,t,n),e.safeDecodeAsync=async(t,n)=>ou(e,t,n),cu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(xa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ja(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(vd(e,t))},superRefine(e,t){return this.check(yd(e,t))},overwrite(e){return this.check(tl(e))},optional(){return ed(this)},exactOptional(){return nd(this)},nullable(){return id(this)},nullish(){return ed(id(this))},nonoptional(e){return ud(this,e)},array(){return Hu(this)},or(e){return Ku([this,e])},and(e){return Ju(this,e)},transform(e){return md(this,Qu(e))},default(e){return od(this,e)},prefault(e){return cd(this,e)},catch(e){return fd(this,e)},pipe(e){return md(this,e)},readonly(){return gd(this)},describe(e){let t=this.clone();return mc.add(t,{description:e}),t},meta(...e){if(e.length===0)return mc.get(this);let t=this.clone();return mc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return mc.get(e)?.description},configurable:!0}),e)),uu=B(`_ZodString`,(e,t)=>{rs.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,cu(e,`_ZodString`,{regex(...e){return this.check(Yc(...e))},includes(...e){return this.check(Qc(...e))},startsWith(...e){return this.check($c(...e))},endsWith(...e){return this.check(el(...e))},min(...e){return this.check(qc(...e))},max(...e){return this.check(Kc(...e))},length(...e){return this.check(Jc(...e))},nonempty(...e){return this.check(qc(1,...e))},lowercase(e){return this.check(Xc(e))},uppercase(e){return this.check(Zc(e))},trim(){return this.check(rl())},normalize(...e){return this.check(nl(...e))},toLowerCase(){return this.check(il())},toUpperCase(){return this.check(al())},slugify(){return this.check(ol())}})}),du=B(`ZodString`,(e,t)=>{rs.init(e,t),uu.init(e,t),e.email=t=>e.check(gc(mu,t)),e.url=t=>e.check(Sc(_u,t)),e.jwt=t=>e.check(Lc(Mu,t)),e.emoji=t=>e.check(Cc(vu,t)),e.guid=t=>e.check(_c(hu,t)),e.uuid=t=>e.check(vc(gu,t)),e.uuidv4=t=>e.check(yc(gu,t)),e.uuidv6=t=>e.check(bc(gu,t)),e.uuidv7=t=>e.check(xc(gu,t)),e.nanoid=t=>e.check(wc(yu,t)),e.guid=t=>e.check(_c(hu,t)),e.cuid=t=>e.check(Tc(bu,t)),e.cuid2=t=>e.check(Ec(xu,t)),e.ulid=t=>e.check(Dc(Su,t)),e.base64=t=>e.check(Pc(ku,t)),e.base64url=t=>e.check(Fc(Au,t)),e.xid=t=>e.check(Oc(Cu,t)),e.ksuid=t=>e.check(kc(wu,t)),e.ipv4=t=>e.check(Ac(Tu,t)),e.ipv6=t=>e.check(jc(Eu,t)),e.cidrv4=t=>e.check(Mc(Du,t)),e.cidrv6=t=>e.check(Nc(Ou,t)),e.e164=t=>e.check(Ic(ju,t)),e.datetime=t=>e.check(zl(t)),e.date=t=>e.check(Vl(t)),e.time=t=>e.check(Ul(t)),e.duration=t=>e.check(Gl(t))});function fu(e){return hc(du,e)}const pu=B(`ZodStringFormat`,(e,t)=>{is.init(e,t),uu.init(e,t)}),mu=B(`ZodEmail`,(e,t)=>{ss.init(e,t),pu.init(e,t)}),hu=B(`ZodGUID`,(e,t)=>{as.init(e,t),pu.init(e,t)}),gu=B(`ZodUUID`,(e,t)=>{os.init(e,t),pu.init(e,t)}),_u=B(`ZodURL`,(e,t)=>{cs.init(e,t),pu.init(e,t)}),vu=B(`ZodEmoji`,(e,t)=>{ls.init(e,t),pu.init(e,t)}),yu=B(`ZodNanoID`,(e,t)=>{us.init(e,t),pu.init(e,t)}),bu=B(`ZodCUID`,(e,t)=>{ds.init(e,t),pu.init(e,t)}),xu=B(`ZodCUID2`,(e,t)=>{fs.init(e,t),pu.init(e,t)}),Su=B(`ZodULID`,(e,t)=>{ps.init(e,t),pu.init(e,t)}),Cu=B(`ZodXID`,(e,t)=>{ms.init(e,t),pu.init(e,t)}),wu=B(`ZodKSUID`,(e,t)=>{hs.init(e,t),pu.init(e,t)}),Tu=B(`ZodIPv4`,(e,t)=>{bs.init(e,t),pu.init(e,t)}),Eu=B(`ZodIPv6`,(e,t)=>{xs.init(e,t),pu.init(e,t)}),Du=B(`ZodCIDRv4`,(e,t)=>{Ss.init(e,t),pu.init(e,t)}),Ou=B(`ZodCIDRv6`,(e,t)=>{Cs.init(e,t),pu.init(e,t)}),ku=B(`ZodBase64`,(e,t)=>{Ts.init(e,t),pu.init(e,t)}),Au=B(`ZodBase64URL`,(e,t)=>{Ds.init(e,t),pu.init(e,t)}),ju=B(`ZodE164`,(e,t)=>{Os.init(e,t),pu.init(e,t)}),Mu=B(`ZodJWT`,(e,t)=>{As.init(e,t),pu.init(e,t)}),Nu=B(`ZodBoolean`,(e,t)=>{js.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r)});function Pu(e){return Hc(Nu,e)}const Fu=B(`ZodNull`,(e,t)=>{Ms.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r)});function Iu(e){return Uc(Fu,e)}const Lu=B(`ZodUnknown`,(e,t)=>{Ns.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ru(){return Wc(Lu)}const zu=B(`ZodNever`,(e,t)=>{Ps.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r)});function Bu(e){return Gc(zu,e)}const Vu=B(`ZodArray`,(e,t)=>{Is.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e.element=t.element,cu(e,`ZodArray`,{min(e,t){return this.check(qc(e,t))},nonempty(e){return this.check(qc(1,e))},max(e,t){return this.check(Kc(e,t))},length(e,t){return this.check(Jc(e,t))},unwrap(){return this.element}})});function Hu(e,t){return sl(Vu,e,t)}const Uu=B(`ZodObject`,(e,t)=>{Vs.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r),ya(e,`shape`,()=>t.shape),cu(e,`ZodObject`,{keyof(){return Xu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Ru()})},loose(){return this.clone({...this._zod.def,catchall:Ru()})},strict(){return this.clone({...this._zod.def,catchall:Bu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Fa(this,e)},safeExtend(e){return Ia(this,e)},merge(e){return La(this,e)},pick(e){return Na(this,e)},omit(e){return Pa(this,e)},partial(...e){return Ra($u,this,e[0])},required(...e){return za(ld,this,e[0])}})});function Wu(e,t){return new Uu({type:`object`,shape:e??{},...V(t)})}const Gu=B(`ZodUnion`,(e,t)=>{Us.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),e.options=t.options});function Ku(e,t){return new Gu({type:`union`,options:e,...V(t)})}const qu=B(`ZodIntersection`,(e,t)=>{Ws.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r)});function Ju(e,t){return new qu({type:`intersection`,left:e,right:t})}const Yu=B(`ZodEnum`,(e,t)=>{qs.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Yu({...t,checks:[],...V(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Yu({...t,checks:[],...V(r),entries:i})}});function Xu(e,t){return new Yu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...V(t)})}const Zu=B(`ZodTransform`,(e,t)=>{Js.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ua(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ka(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ka(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Qu(e){return new Zu({type:`transform`,transform:e})}const $u=B(`ZodOptional`,(e,t)=>{Xs.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ed(e){return new $u({type:`optional`,innerType:e})}const td=B(`ZodExactOptional`,(e,t)=>{Zs.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nd(e){return new td({type:`optional`,innerType:e})}const rd=B(`ZodNullable`,(e,t)=>{Qs.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function id(e){return new rd({type:`nullable`,innerType:e})}const ad=B(`ZodDefault`,(e,t)=>{$s.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function od(e,t){return new ad({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Oa(t)}})}const sd=B(`ZodPrefault`,(e,t)=>{tc.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cd(e,t){return new sd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Oa(t)}})}const ld=B(`ZodNonOptional`,(e,t)=>{nc.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ud(e,t){return new ld({type:`nonoptional`,innerType:e,...V(t)})}const dd=B(`ZodCatch`,(e,t)=>{ic.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fd(e,t){return new dd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const pd=B(`ZodPipe`,(e,t)=>{ac.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r),e.in=t.in,e.out=t.out});function md(e,t){return new pd({type:`pipe`,in:e,out:t})}const hd=B(`ZodReadonly`,(e,t)=>{sc.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gd(e){return new hd({type:`readonly`,innerType:e})}const _d=B(`ZodCustom`,(e,t)=>{lc.init(e,t),lu.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r)});function vd(e,t={}){return cl(_d,e,t)}function yd(e,t){return ll(e,t)}var bd=sa();const xd=Wu({cwd:fu().optional(),args:Hu(fu()).optional()}),Sd=Ku([Iu(),Pu(),xd,Hu(xd)]),Cd=`Vite+`;function wd(){return{version:Nr(`version`)||`latest`,nodeVersion:Nr(`node-version`)||void 0,nodeVersionFile:Nr(`node-version-file`)||void 0,workingDirectory:Nr(`working-directory`)||void 0,runInstall:Td(Nr(`run-install`)),sfw:Pr(`sfw`),cache:Pr(`cache`),cacheDependencyPath:Nr(`cache-dependency-path`)||void 0,registryUrl:Nr(`registry-url`)||void 0,scope:Nr(`scope`)||void 0}}function Td(e){if(!e||e===`false`||e===`null`)return[];if(e===`true`)return[{}];let t=(0,bd.parse)(e);try{let e=Sd.parse(t);return e?e===!0?[{}]:Array.isArray(e)?e:[e]:[]}catch(e){throw e instanceof ql?Error(`Invalid run-install input: ${e.issues.map(e=>e.message).join(`, `)}`):e}}function Ed(){return N((process.platform===`win32`?process.env.USERPROFILE:process.env.HOME)||me(),`.vite-plus`)}function Dd(){return process.env.GITHUB_WORKSPACE||process.cwd()}function Od(e,t){return ee(e)?e:N(t,e)}function kd(e){if(!e.workingDirectory)return Dd();let t=Od(e.workingDirectory,Dd());if(!ae(t))throw Error(`working-directory not found: ${e.workingDirectory} (resolved to ${t})`);if(!le(t).isDirectory())throw Error(`working-directory is not a directory: ${e.workingDirectory} (resolved to ${t})`);return t}function Ad(e,t){return t?Od(t,e):e}const jd=[{filename:`pnpm-lock.yaml`,type:`pnpm`},{filename:`bun.lockb`,type:`bun`},{filename:`bun.lock`,type:`bun`},{filename:`package-lock.json`,type:`npm`},{filename:`npm-shrinkwrap.json`,type:`npm`},{filename:`yarn.lock`,type:`yarn`}];function Md(e,t=Dd()){if(e){let n=Od(e,t);if(ae(n)){let e=j(n),t=jd.find(t=>t.filename===e);return t?{type:t.type,path:n,filename:e}:Nd(n,e)}return}let n=ce(t);for(let e of jd)if(n.includes(e.filename)){let n=N(t,e.filename);return z(`Auto-detected lock file: ${e.filename}`),{type:e.type,path:n,filename:e.filename}}}function Nd(e,t){return t.includes(`pnpm`)?{type:`pnpm`,path:e,filename:t}:t.includes(`yarn`)?{type:`yarn`,path:e,filename:t}:t.startsWith(`bun.`)?{type:`bun`,path:e,filename:t}:{type:`npm`,path:e,filename:t}}async function Pd(e,t){switch(e){case`npm`:case`pnpm`:case`yarn`:case`bun`:return Id(t);default:return[]}}async function Fd(e,t,n){let r=`${e} ${t.join(` `)}`;try{let i=await Or(e,t,{cwd:n?.cwd,silent:!0,ignoreReturnCode:!0});if(i.exitCode===0)return i.stdout.trim();R(`Command "${r}" exited with code ${i.exitCode}`);return}catch(e){zr(`Failed to run "${r}": ${String(e)}`);return}}async function Id(e){let t=await Fd(`vp`,[`pm`,`cache`,`dir`],{cwd:e});return t?[t]:[]}const Ld=[`https://viteplus.dev/install.sh`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.sh`],Rd=[`https://viteplus.dev/install.ps1`,`https://raw.githubusercontent.com/voidzero-dev/vite-plus/main/packages/cli/install.ps1`],zd=2e3;async function Bd(e){let{version:t}=e;z(`Installing ${Cd}@${t}...`);let n={...process.env,VP_VERSION:t,VITE_PLUS_VERSION:t},r=process.platform===`win32`?Rd:Ld,i=2*r.length,a=``,o=0;for(let e=0;e<2;e++)for(let e of r){o++;try{let t=await Vd(e,n);if(t===0){Hd();return}a=`exit code ${t}`}catch(e){a=e instanceof Error?e.message:String(e)}o!e.negate);let t={};for(let n of e){let e=cf?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=cf?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=ef(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=ef(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function uf(e,t){let n=sf.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function df(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var ff=P(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),mf=P(((e,t)=>{var n=ff(),r=pf();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var ee=0;ee{t.exports=h,h.Minimatch=g;var n=function(){try{return F(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=mf(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var ee=f[M],N=i.slice(0,ee.reStart),te=i.slice(ee.reStart,ee.reEnd-8),ne=i.slice(ee.reEnd-8,ee.reEnd),re=i.slice(ee.reEnd);ne+=re;var ie=N.split(`(`).length-1,ae=re;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new _f(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),yf?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:yf,nocomment:!0,noext:!0,nonegate:!0};a=yf?a.replace(/\\/g,`/`):a,this.minimatch=new vf(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=af(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=of(e),this.minimatch.match(e)?this.trailingSeparator?sf.Directory:sf.All:sf.None}partialMatch(e){return e=of(e),ef(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(yf?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(yf?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new _f(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!rf(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=af(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(nf(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(yf&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=tf(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(yf&&(n===`\\`||n.match(/^\\[^\\]/))){let t=tf(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=tf(e.globEscape(process.cwd()),n);return af(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},xf=class{constructor(e,t){this.path=e,this.level=t}},Sf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Cf=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},wf=function(e){return this instanceof wf?(this.v=e,this):new wf(e)},Tf=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof wf?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Ef=process.platform===`win32`;var Df=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=Qd(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Sf(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Cf(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Tf(this,arguments,function*(){let t=Qd(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new bf(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of lf(n)){R(`Search path '${e}'`);try{yield wf(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new xf(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=uf(n,o.path),c=!!s||df(n,o.path);if(!s&&!c)continue;let l=yield wf(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&sf.Directory&&t.matchDirectories)yield yield wf(o.path);else if(!c)continue;let e=o.level+1,n=(yield wf(a.promises.readdir(o.path))).map(t=>new xf(u.join(o.path,t),e));r.push(...n.reverse())}else s&sf.File&&(yield yield wf(o.path))}})}static create(t,n){return Sf(this,void 0,void 0,function*(){let r=new e(n);Ef&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new xf(e));return r.searchPaths.push(...uf(r.patterns)),r})}static stat(e,t,n){return Cf(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},kf=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Af(e,t){return kf(this,void 0,void 0,function*(){return yield Of.create(e,t)})}var jf=P(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Mf=P(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Nf=P(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=jf(),a=Mf();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Pf=P(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Ff=P(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),If=P(((e,t)=>{let n=Mf(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=jf(),{safeRe:a,t:o}=Nf(),s=Pf(),{compareIdentifiers:c}=Ff();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Lf=P(((e,t)=>{let n=If();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Rf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),zf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Bf=P(((e,t)=>{let n=If();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Vf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Hf=P(((e,t)=>{let n=If();t.exports=(e,t)=>new n(e,t).major})),Uf=P(((e,t)=>{let n=If();t.exports=(e,t)=>new n(e,t).minor})),Wf=P(((e,t)=>{let n=If();t.exports=(e,t)=>new n(e,t).patch})),Gf=P(((e,t)=>{let n=Lf();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Kf=P(((e,t)=>{let n=If();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),qf=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(t,e,r)})),Jf=P(((e,t)=>{let n=Kf();t.exports=(e,t)=>n(e,t,!0)})),Yf=P(((e,t)=>{let n=If();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Xf=P(((e,t)=>{let n=Yf();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Zf=P(((e,t)=>{let n=Yf();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Qf=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)>0})),$f=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)<0})),ep=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)===0})),tp=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)!==0})),np=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)>=0})),rp=P(((e,t)=>{let n=Kf();t.exports=(e,t,r)=>n(e,t,r)<=0})),ip=P(((e,t)=>{let n=ep(),r=tp(),i=Qf(),a=np(),o=$f(),s=rp();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ap=P(((e,t)=>{let n=If(),r=Lf(),{safeRe:i,t:a}=Nf();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),op=P(((e,t)=>{let n=Lf(),r=jf(),i=If(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),sp=P(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),cp=P(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),lp=P(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Pf(),{safeRe:i,t:a}=Nf(),o=ip(),s=Mf(),c=If(),l=cp()})),up=P(((e,t)=>{let n=cp();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),dp=P(((e,t)=>{let n=cp();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),fp=P(((e,t)=>{let n=If(),r=cp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),pp=P(((e,t)=>{let n=If(),r=cp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),mp=P(((e,t)=>{let n=If(),r=cp(),i=Qf();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),hp=P(((e,t)=>{let n=cp();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),gp=P(((e,t)=>{let n=If(),r=lp(),{ANY:i}=r,a=cp(),o=up(),s=Qf(),c=$f(),l=rp(),u=np();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),_p=P(((e,t)=>{let n=gp();t.exports=(e,t,r)=>n(e,t,`>`,r)})),vp=P(((e,t)=>{let n=gp();t.exports=(e,t,r)=>n(e,t,`<`,r)})),yp=P(((e,t)=>{let n=cp();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),bp=P(((e,t)=>{let n=up(),r=Kf();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=cp(),r=lp(),{ANY:i}=r,a=up(),o=Kf(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),Sp=ke(P(((e,t)=>{let n=Nf(),r=jf(),i=If(),a=Ff();t.exports={parse:Lf(),valid:Rf(),clean:zf(),inc:Bf(),diff:Vf(),major:Hf(),minor:Uf(),patch:Wf(),prerelease:Gf(),compare:Kf(),rcompare:qf(),compareLoose:Jf(),compareBuild:Yf(),sort:Xf(),rsort:Zf(),gt:Qf(),lt:$f(),eq:ep(),neq:tp(),gte:np(),lte:rp(),cmp:ip(),coerce:ap(),truncate:op(),Comparator:lp(),Range:cp(),satisfies:up(),toComparators:dp(),maxSatisfying:fp(),minSatisfying:pp(),minVersion:mp(),validRange:hp(),outside:gp(),gtr:_p(),ltr:vp(),intersects:yp(),simplifyRange:bp(),subset:xp(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Cp;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Cp||={});var wp;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(wp||={});var Tp;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(Tp||={});const Ep=5e3,Dp=5e3,Op=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,kp=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ap=`cache.tar`,jp=`manifest.txt`;var Mp=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Np=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Pp(){return Mp(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=u.join(n,`actions`,`temp`)}let n=u.join(t,i.randomUUID());return yield vr(n),n})}function Fp(e){return a.statSync(e).size}function Ip(e){return Mp(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield Af(e.join(` -`),{implicitDescendants:!1});try{for(var c=!0,l=Np(s.globGenerator()),d;d=yield l.next(),t=d.done,!t;c=!0){i=d.value,c=!1;let e=i,t=u.relative(o,e).replace(RegExp(`\\${u.sep}`,`g`),`/`);R(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Lp(e){return Mp(this,void 0,void 0,function*(){return _.promisify(a.unlink)(e)})}function Rp(e){return Mp(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),R(`Checking ${e} ${t.join(` `)}`);try{yield Dr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){R(e.message)}return n=n.trim(),R(n),n})}function zp(){return Mp(this,void 0,void 0,function*(){let e=yield Rp(`zstd`,[`--quiet`]);return R(`zstd version: ${Sp.clean(e)}`),e===``?wp.Gzip:wp.ZstdWithoutLong})}function Bp(e){return e===wp.Gzip?Cp.Gzip:Cp.Zstd}function Vp(){return Mp(this,void 0,void 0,function*(){return a.existsSync(Op)?Op:(yield Rp(`tar`)).toLowerCase().includes(`gnu tar`)?yr(`tar`):``})}function Hp(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Up(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),i.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Wp(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Gp=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Kp(e,...t){ye.stderr.write(`${S.format(e,...t)}${fe}`)}const qp=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let Jp,Yp=[],Xp=[];const Zp=[];qp&&$p(qp);const Qp=Object.assign(e=>rm(e),{enable:$p,enabled:em,disable:nm,log:Kp});function $p(e){Jp=e,Yp=[],Xp=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Xp.push(e.substring(1)):Yp.push(e);for(let e of Zp)e.enabled=em(e.namespace)}function em(e){if(e.endsWith(`*`))return!0;for(let t of Xp)if(tm(e,t))return!1;for(let t of Yp)if(tm(e,t))return!0;return!1}function tm(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function nm(){let e=Jp||``;return $p(``),e}function rm(e){let t=Object.assign(n,{enabled:em(e),destroy:im,log:Qp.log,namespace:e,extend:am});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Zp.push(t),t}function im(){let e=Zp.indexOf(this);return e>=0?(Zp.splice(e,1),!0):!1}function am(e){let t=rm(`${this.namespace}:${e}`);return t.log=this.log,t}const om=[`verbose`,`info`,`warning`,`error`],sm={verbose:400,info:300,warning:200,error:100};function cm(e,t){t.log=(...t)=>{e.log(...t)}}function lm(e){return om.includes(e)}function um(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Qp(e.namespace);i.log=(...e)=>{Qp.log(...e)};function a(e){if(e&&!lm(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${om.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Qp.enable(n.join(`,`))}n&&(lm(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${om.join(`, `)}.`));function o(e){return!!(r&&sm[e.level]<=sm[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(cm(e,r),o(r)){let e=Qp.disable();Qp.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return cm(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const dm=um({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});dm.logger;function fm(e){return dm.createClientLogger(e)}function pm(e){return e.toLowerCase()}function*mm(e){for(let t of e.values())yield[t.name,t.value]}var hm=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(pm(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(pm(e))?.value}has(e){return this._headersMap.has(pm(e))}delete(e){this._headersMap.delete(pm(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return mm(this._headersMap)}};function gm(e){return new hm(e)}function _m(){return crypto.randomUUID()}var vm=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??gm(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||_m(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function ym(e){return new vm(e)}const bm=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var xm=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!bm.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!bm.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function Sm(){return xm.create()}function Cm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function wm(e){if(Cm(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const Tm=C.custom,Em=`REDACTED`,Dm=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.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.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),Om=[`api-version`];var km=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Dm.concat(e),t=Om.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&Cm(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&Cm(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||Cm(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Em);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Em;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Em;return t}};const Am=new km;var jm=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,`request`,{value:n.request,enumerable:!1}),Object.defineProperty(this,`response`,{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Tm,{value:()=>`RestError: ${this.message} \n ${Am.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function Mm(e){return e instanceof jm?!0:wm(e)&&e.name===`RestError`}function Nm(e,t){return Buffer.from(e,t)}const Pm=fm(`ts-http-runtime`),Fm={};function Im(e){return e&&typeof e.pipe==`function`}function Lm(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Rm(e){return e&&typeof e.byteLength==`number`}var zm=class extends b{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},Bm=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Gp(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new km;Pm.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Wm(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new zm(t);n.on(`error`,e=>{Pm.error(`Error in upload progress`,e)}),Im(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Vm(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Hm(n,i):n;let l=e.onDownloadProgress;if(l){let e=new zm(l);e.on(`error`,e=>{Pm.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Um(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Im(o)&&(t=Lm(o));let r=Promise.resolve();Im(s)&&(r=Lm(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Pm.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?v.request(a,r):be.request(a,r);s.once(`error`,t=>{o(new jm(t.message,{code:t.code??jm.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Gp(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Im(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Rm(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Pm.error(`Unrecognized body type`,n),o(new jm(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?v.globalAgent:(this.cachedHttpAgent||=new v.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return be.globalAgent;let t=e.tlsSettings??Fm,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Pm.info(`No cached TLS Agent exist, creating a new Agent`),r=new be.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Vm(e){let t=gm();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Hm(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=w.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=w.createInflate();return e.pipe(t),t}return e}function Um(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new jm(`Error reading response as text: ${e.message}`,{code:jm.PARSE_ERROR}))})})}function Wm(e){return e?Buffer.isBuffer(e)?e.length:Im(e)?null:Rm(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Gm(){return new Bm}function Km(){return Gm()}function qm(e={}){let t=e.logger??Pm.info,n=new km({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const Jm=[`GET`,`HEAD`];function Ym(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Xm(r,await r(e),t,n)}}}async function Xm(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&Jm.includes(a.method)||o===302&&Jm.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Gp(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function th(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const nh=`Retry-After`,rh=[`retry-after-ms`,`x-ms-retry-after-ms`,nh];function ih(e){if(e&&[429,503].includes(e.status))try{for(let t of rh){let n=th(e,t);if(n===0||n)return n*(t===nh?1e3:1)}let t=e.headers.get(nh);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function ah(e){return Number.isFinite(ih(e))}function oh(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=ih(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function sh(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=lh(a),s=o&&e.ignoreSystemErrors,c=ch(i),l=c&&e.ignoreHttpStatusCodes;return i&&(ah(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:$m(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function ch(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function lh(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const uh=fm(`ts-http-runtime retryPolicy`);function dh(e,t={maxRetries:3}){let n=t.logger||uh;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!Mm(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Gp;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await eh(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function fh(e={}){return{name:`defaultRetryPolicy`,sendRequest:dh([oh(),sh(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const ph=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function mh(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function hh(){return{name:`formDataPolicy`,async sendRequest(e,t){if(ph&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=mh(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=gh(e.formData):await _h(e.formData,e),e.formData=void 0}return t(e)}}}function gh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function _h(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:gm({"Content-Disposition":`form-data; name="${t}"`}),body:Nm(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=gm();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var vh=P(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),yh=P(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=vh(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),bh=P(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=yh()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),xh=P(((e,t)=>{let n=F(`tty`),r=F(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=F(`supports-color`);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new bf(e));return r.searchPaths.push(...lf(r.patterns)),r})}static stat(e,t,n){return Sf(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Of=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function kf(e,t){return Of(this,void 0,void 0,function*(){return yield Df.create(e,t)})}var Af=P(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),jf=P(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Mf=P(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Af(),a=jf();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Nf=P(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Pf=P(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),Ff=P(((e,t)=>{let n=jf(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Af(),{safeRe:a,t:o}=Mf(),s=Nf(),{compareIdentifiers:c}=Pf();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),If=P(((e,t)=>{let n=Ff();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Lf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Rf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),zf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Bf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Vf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).major})),Hf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).minor})),Uf=P(((e,t)=>{let n=Ff();t.exports=(e,t)=>new n(e,t).patch})),Wf=P(((e,t)=>{let n=If();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Gf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Kf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(t,e,r)})),qf=P(((e,t)=>{let n=Gf();t.exports=(e,t)=>n(e,t,!0)})),Jf=P(((e,t)=>{let n=Ff();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Yf=P(((e,t)=>{let n=Jf();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Xf=P(((e,t)=>{let n=Jf();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Zf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)>0})),Qf=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)<0})),$f=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)===0})),ep=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)!==0})),tp=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)>=0})),np=P(((e,t)=>{let n=Gf();t.exports=(e,t,r)=>n(e,t,r)<=0})),rp=P(((e,t)=>{let n=$f(),r=ep(),i=Zf(),a=tp(),o=Qf(),s=np();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),ip=P(((e,t)=>{let n=Ff(),r=If(),{safeRe:i,t:a}=Mf();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),ap=P(((e,t)=>{let n=If(),r=Af(),i=Ff(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),op=P(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),sp=P(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),cp=P(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Nf(),{safeRe:i,t:a}=Mf(),o=rp(),s=jf(),c=Ff(),l=sp()})),lp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),up=P(((e,t)=>{let n=sp();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),dp=P(((e,t)=>{let n=Ff(),r=sp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),fp=P(((e,t)=>{let n=Ff(),r=sp();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),pp=P(((e,t)=>{let n=Ff(),r=sp(),i=Zf();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),mp=P(((e,t)=>{let n=sp();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),hp=P(((e,t)=>{let n=Ff(),r=cp(),{ANY:i}=r,a=sp(),o=lp(),s=Zf(),c=Qf(),l=np(),u=tp();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),gp=P(((e,t)=>{let n=hp();t.exports=(e,t,r)=>n(e,t,`>`,r)})),_p=P(((e,t)=>{let n=hp();t.exports=(e,t,r)=>n(e,t,`<`,r)})),vp=P(((e,t)=>{let n=sp();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),yp=P(((e,t)=>{let n=lp(),r=Gf();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=sp(),r=cp(),{ANY:i}=r,a=lp(),o=Gf(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),xp=ke(P(((e,t)=>{let n=Mf(),r=Af(),i=Ff(),a=Pf();t.exports={parse:If(),valid:Lf(),clean:Rf(),inc:zf(),diff:Bf(),major:Vf(),minor:Hf(),patch:Uf(),prerelease:Wf(),compare:Gf(),rcompare:Kf(),compareLoose:qf(),compareBuild:Jf(),sort:Yf(),rsort:Xf(),gt:Zf(),lt:Qf(),eq:$f(),neq:ep(),gte:tp(),lte:np(),cmp:rp(),coerce:ip(),truncate:ap(),Comparator:cp(),Range:sp(),satisfies:lp(),toComparators:up(),maxSatisfying:dp(),minSatisfying:fp(),minVersion:pp(),validRange:mp(),outside:hp(),gtr:gp(),ltr:_p(),intersects:vp(),simplifyRange:yp(),subset:bp(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Sp;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Sp||={});var Cp;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(Cp||={});var wp;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(wp||={});const Tp=5e3,Ep=5e3,Dp=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Op=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kp=`cache.tar`,Ap=`manifest.txt`;var jp=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Mp=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Np(){return jp(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=u.join(n,`actions`,`temp`)}let n=u.join(t,i.randomUUID());return yield vr(n),n})}function Pp(e){return a.statSync(e).size}function Fp(e){return jp(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield kf(e.join(` +`),{implicitDescendants:!1});try{for(var c=!0,l=Mp(s.globGenerator()),d;d=yield l.next(),t=d.done,!t;c=!0){i=d.value,c=!1;let e=i,t=u.relative(o,e).replace(RegExp(`\\${u.sep}`,`g`),`/`);R(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Ip(e){return jp(this,void 0,void 0,function*(){return _.promisify(a.unlink)(e)})}function Lp(e){return jp(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),R(`Checking ${e} ${t.join(` `)}`);try{yield Dr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){R(e.message)}return n=n.trim(),R(n),n})}function Rp(){return jp(this,void 0,void 0,function*(){let e=yield Lp(`zstd`,[`--quiet`]);return R(`zstd version: ${xp.clean(e)}`),e===``?Cp.Gzip:Cp.ZstdWithoutLong})}function zp(e){return e===Cp.Gzip?Sp.Gzip:Sp.Zstd}function Bp(){return jp(this,void 0,void 0,function*(){return a.existsSync(Dp)?Dp:(yield Lp(`tar`)).toLowerCase().includes(`gnu tar`)?yr(`tar`):``})}function Vp(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Hp(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),i.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Up(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Wp=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Gp(e,...t){ye.stderr.write(`${S.format(e,...t)}${fe}`)}const Kp=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let qp,Jp=[],Yp=[];const Xp=[];Kp&&Qp(Kp);const Zp=Object.assign(e=>nm(e),{enable:Qp,enabled:$p,disable:tm,log:Gp});function Qp(e){qp=e,Jp=[],Yp=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Yp.push(e.substring(1)):Jp.push(e);for(let e of Xp)e.enabled=$p(e.namespace)}function $p(e){if(e.endsWith(`*`))return!0;for(let t of Yp)if(em(e,t))return!1;for(let t of Jp)if(em(e,t))return!0;return!1}function em(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function tm(){let e=qp||``;return Qp(``),e}function nm(e){let t=Object.assign(n,{enabled:$p(e),destroy:rm,log:Zp.log,namespace:e,extend:im});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Xp.push(t),t}function rm(){let e=Xp.indexOf(this);return e>=0?(Xp.splice(e,1),!0):!1}function im(e){let t=nm(`${this.namespace}:${e}`);return t.log=this.log,t}const am=[`verbose`,`info`,`warning`,`error`],om={verbose:400,info:300,warning:200,error:100};function sm(e,t){t.log=(...t)=>{e.log(...t)}}function cm(e){return am.includes(e)}function lm(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Zp(e.namespace);i.log=(...e)=>{Zp.log(...e)};function a(e){if(e&&!cm(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${am.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Zp.enable(n.join(`,`))}n&&(cm(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${am.join(`, `)}.`));function o(e){return!!(r&&om[e.level]<=om[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(sm(e,r),o(r)){let e=Zp.disable();Zp.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return sm(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const um=lm({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});um.logger;function dm(e){return um.createClientLogger(e)}function fm(e){return e.toLowerCase()}function*pm(e){for(let t of e.values())yield[t.name,t.value]}var mm=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(fm(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(fm(e))?.value}has(e){return this._headersMap.has(fm(e))}delete(e){this._headersMap.delete(fm(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return pm(this._headersMap)}};function hm(e){return new mm(e)}function gm(){return crypto.randomUUID()}var _m=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??hm(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||gm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function vm(e){return new _m(e)}const ym=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var bm=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!ym.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!ym.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function xm(){return bm.create()}function Sm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Cm(e){if(Sm(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const wm=C.custom,Tm=`REDACTED`,Em=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.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.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),Dm=[`api-version`];var Om=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Em.concat(e),t=Dm.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&Sm(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&Sm(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||Sm(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Tm);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Tm;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Tm;return t}};const km=new Om;var Am=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,`request`,{value:n.request,enumerable:!1}),Object.defineProperty(this,`response`,{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,wm,{value:()=>`RestError: ${this.message} \n ${km.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function jm(e){return e instanceof Am?!0:Cm(e)&&e.name===`RestError`}function Mm(e,t){return Buffer.from(e,t)}const Nm=dm(`ts-http-runtime`),Pm={};function Fm(e){return e&&typeof e.pipe==`function`}function Im(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Lm(e){return e&&typeof e.byteLength==`number`}var Rm=class extends b{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},zm=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Wp(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new Om;Nm.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Um(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new Rm(t);n.on(`error`,e=>{Nm.error(`Error in upload progress`,e)}),Fm(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Bm(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Vm(n,i):n;let l=e.onDownloadProgress;if(l){let e=new Rm(l);e.on(`error`,e=>{Nm.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Hm(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Fm(o)&&(t=Im(o));let r=Promise.resolve();Fm(s)&&(r=Im(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Nm.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?v.request(a,r):be.request(a,r);s.once(`error`,t=>{o(new Am(t.message,{code:t.code??Am.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Wp(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Fm(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Lm(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Nm.error(`Unrecognized body type`,n),o(new Am(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?v.globalAgent:(this.cachedHttpAgent||=new v.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return be.globalAgent;let t=e.tlsSettings??Pm,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Nm.info(`No cached TLS Agent exist, creating a new Agent`),r=new be.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Bm(e){let t=hm();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Vm(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=w.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=w.createInflate();return e.pipe(t),t}return e}function Hm(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new Am(`Error reading response as text: ${e.message}`,{code:Am.PARSE_ERROR}))})})}function Um(e){return e?Buffer.isBuffer(e)?e.length:Fm(e)?null:Lm(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Wm(){return new zm}function Gm(){return Wm()}function Km(e={}){let t=e.logger??Nm.info,n=new Om({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const qm=[`GET`,`HEAD`];function Jm(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Ym(r,await r(e),t,n)}}}async function Ym(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&qm.includes(a.method)||o===302&&qm.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Wp(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function eh(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const th=`Retry-After`,nh=[`retry-after-ms`,`x-ms-retry-after-ms`,th];function rh(e){if(e&&[429,503].includes(e.status))try{for(let t of nh){let n=eh(e,t);if(n===0||n)return n*(t===th?1e3:1)}let t=e.headers.get(th);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function ih(e){return Number.isFinite(rh(e))}function ah(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=rh(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function oh(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=ch(a),s=o&&e.ignoreSystemErrors,c=sh(i),l=c&&e.ignoreHttpStatusCodes;return i&&(ih(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:Qm(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function sh(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function ch(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const lh=dm(`ts-http-runtime retryPolicy`);function uh(e,t={maxRetries:3}){let n=t.logger||lh;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!jm(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Wp;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await $m(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function dh(e={}){return{name:`defaultRetryPolicy`,sendRequest:uh([ah(),oh(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const fh=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function ph(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function mh(){return{name:`formDataPolicy`,async sendRequest(e,t){if(fh&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=ph(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=hh(e.formData):await gh(e.formData,e),e.formData=void 0}return t(e)}}}function hh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function gh(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:hm({"Content-Disposition":`form-data; name="${t}"`}),body:Mm(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=hm();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var _h=P(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),vh=P(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=_h(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),yh=P(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=vh()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),bh=P(((e,t)=>{let n=F(`tty`),r=F(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=F(`supports-color`);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` `).join(` `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+` -`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),Sh=P(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=bh():t.exports=xh()})),Ch=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(F(`http`)),a=r(F(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),wh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Agent=void 0;let a=r(F(`net`)),o=r(F(`http`)),s=F(`https`);i(Ch(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` -`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),Th=P((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(Sh()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r +`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),xh=P(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=yh():t.exports=bh()})),Sh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(F(`http`)),a=r(F(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),Ch=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Agent=void 0;let a=r(F(`net`)),o=r(F(`http`)),s=F(`https`);i(Sh(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` +`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),wh=P((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(xh()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r \r `);if(u===-1){n(`have not received end of HTTP headers yet...`),o();return}let d=l.slice(0,u).toString(`ascii`).split(`\r -`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),Eh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpsProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(F(`assert`)),c=i(Sh()),l=wh(),u=F(`url`),d=Th(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Dh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(Sh()),c=F(`events`),l=wh(),u=F(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r +`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),Th=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpsProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(F(`assert`)),c=i(xh()),l=Ch(),u=F(`url`),d=wh(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Eh=P((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyAgent=void 0;let a=r(F(`net`)),o=r(F(`tls`)),s=i(xh()),c=F(`events`),l=Ch(),u=F(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Oh=Eh(),kh=Dh();const Ah=[];let jh=!1;const Mh=new Map;function Nh(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Ph(){if(!process)return;let e=Nh(`HTTPS_PROXY`),t=Nh(`ALL_PROXY`),n=Nh(`HTTP_PROXY`);return e||t||n}function Fh(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Ih(){let e=Nh(`NO_PROXY`);return jh=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Lh(e){if(!e&&(e=Ph(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Rh(){let e=Ph();return e?new URL(e):void 0}function zh(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function Bh(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Pm.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new kh.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Oh.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Vh(e,t){jh||Ah.push(...Ih());let n=e?zh(e):Rh(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Fh(e.url,t?.customNoProxyList??Ah,t?.customNoProxyList?void 0:Mh)?Bh(e,r,n):e.proxySettings&&Bh(e,r,zh(e.proxySettings)),i(e)}}}function Hh(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Uh(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Wh(e){return typeof Blob<`u`&&e instanceof Blob}async function*Gh(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function Kh(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=Gh.bind(e)),e.values||=Gh.bind(e)}function qh(e){return e instanceof ReadableStream?(Kh(e),_e.fromWeb(e)):e}function Jh(e){return e instanceof Uint8Array?_e.from(Buffer.from(e)):Wh(e)?qh(e.stream()):qh(e)}async function Yh(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(Jh);return _e.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Xh(){return`----AzSDKFormBoundary${_m()}`}function Zh(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Qh(e){if(e instanceof Uint8Array)return e.byteLength;if(Wh(e))return e.size===-1?void 0:e.size}function $h(e){let t=0;for(let n of e){let e=Qh(n);if(e===void 0)return;t+=e}return t}async function eg(e,t,n){let r=[Nm(`--${n}`,`utf-8`),...t.flatMap(e=>[Nm(`\r -`,`utf-8`),Nm(Zh(e.headers),`utf-8`),Nm(`\r -`,`utf-8`),e.body,Nm(`\r\n--${n}`,`utf-8`)]),Nm(`--\r +`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Dh=Th(),Oh=Eh();const kh=[];let Ah=!1;const jh=new Map;function Mh(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Nh(){if(!process)return;let e=Mh(`HTTPS_PROXY`),t=Mh(`ALL_PROXY`),n=Mh(`HTTP_PROXY`);return e||t||n}function Ph(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Fh(){let e=Mh(`NO_PROXY`);return Ah=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Ih(e){if(!e&&(e=Nh(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Lh(){let e=Nh();return e?new URL(e):void 0}function Rh(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function zh(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Nm.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new Oh.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Dh.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Bh(e,t){Ah||kh.push(...Fh());let n=e?Rh(e):Lh(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Ph(e.url,t?.customNoProxyList??kh,t?.customNoProxyList?void 0:jh)?zh(e,r,n):e.proxySettings&&zh(e,r,Rh(e.proxySettings)),i(e)}}}function Vh(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Hh(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Uh(e){return typeof Blob<`u`&&e instanceof Blob}async function*Wh(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function Gh(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=Wh.bind(e)),e.values||=Wh.bind(e)}function Kh(e){return e instanceof ReadableStream?(Gh(e),_e.fromWeb(e)):e}function qh(e){return e instanceof Uint8Array?_e.from(Buffer.from(e)):Uh(e)?Kh(e.stream()):Kh(e)}async function Jh(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(qh);return _e.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Yh(){return`----AzSDKFormBoundary${gm()}`}function Xh(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Zh(e){if(e instanceof Uint8Array)return e.byteLength;if(Uh(e))return e.size===-1?void 0:e.size}function Qh(e){let t=0;for(let n of e){let e=Zh(n);if(e===void 0)return;t+=e}return t}async function $h(e,t,n){let r=[Mm(`--${n}`,`utf-8`),...t.flatMap(e=>[Mm(`\r +`,`utf-8`),Mm(Xh(e.headers),`utf-8`),Mm(`\r +`,`utf-8`),e.body,Mm(`\r\n--${n}`,`utf-8`)]),Mm(`--\r \r -`,`utf-8`)],i=$h(r);i&&e.headers.set(`Content-Length`,i),e.body=await Yh(r)}const tg=`multipartPolicy`,ng=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function rg(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!ng.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function ig(){return{name:tg,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?rg(n):n=Xh(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await eg(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function ag(){return Sm()}const og=um({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});og.logger;function sg(e){return og.createClientLogger(e)}const cg=sg(`core-rest-pipeline`);function lg(e={}){return qm({logger:cg.info,...e})}function ug(e={}){return Ym(e)}function dg(){return`User-Agent`}async function fg(e){if(ye&&ye.versions){let t=`${de.type()} ${de.release()}; ${de.arch()}`,n=ye.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const pg=`1.22.3`;function mg(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function hg(){return dg()}async function gg(e){let t=new Map;t.set(`core-rest-pipeline`,pg),await fg(t);let n=mg(t);return e?`${e} ${n}`:n}const _g=hg();function vg(e={}){let t=gg(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(_g)||e.headers.set(_g,await t),n(e)}}}var yg=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function bg(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new yg(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function xg(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return bg(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function Sg(e){if(wm(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Cg(e){return wm(e)}function wg(){return _m()}const Tg=ph,Eg=Symbol(`rawContent`);function Dg(e){return typeof e[Eg]==`function`}function Og(e){return Dg(e)?e[Eg]():e}const kg=tg;function Ag(){let e=ig();return{name:kg,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Dg(e.body)&&(e.body=Og(e.body));return e.sendRequest(t,n)}}}function jg(){return Zm()}function Mg(e={}){return fh(e)}function Ng(){return hh()}function Pg(e){return Lh(e)}function Fg(e,t){return Vh(e,t)}function Ig(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Lg(e){return Hh(e)}function Rg(e){return Uh(e)}const zg={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function Bg(e={}){let t=new Vg(e.parentContext);return e.span&&(t=t.setValue(zg.span,e.span)),e.namespace&&(t=t.setValue(zg.namespace,e.namespace)),t}var Vg=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Hg=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Ug(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Wg(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Ug(),tracingContext:Bg({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Gg(){return Hg.instrumenterImplementation||=Wg(),Hg.instrumenterImplementation}function Kg(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Gg().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(zg.namespace)||(s=s.setValue(zg.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(zg.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Gg().withContext(e,t,...n)}function s(e){return Gg().parseTraceparentHeader(e)}function c(e){return Gg().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const qg=jm;function Jg(e){return Mm(e)}function Yg(e={}){let t=gg(e.userAgentPrefix),n=new km({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Xg();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Zg(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return $g(s,t),t}catch(e){throw Qg(s,e),e}}}}function Xg(){try{return Kg({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:pg})}catch(e){cg.warning(`Error when creating the TracingClient: ${Sg(e)}`);return}}function Zg(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){cg.warning(`Skipping creating a tracing span due to an error: ${Sg(e)}`);return}}function Qg(e,t){try{e.setStatus({status:`error`,error:Cg(t)?t:void 0}),Jg(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){cg.warning(`Skipping tracing span processing due to an error: ${Sg(e)}`)}}function $g(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){cg.warning(`Skipping tracing span processing due to an error: ${Sg(e)}`)}}function e_(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function t_(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=e_(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function n_(e){let t=ag();return Tg&&(e.agent&&t.addPolicy(Lg(e.agent)),e.tlsOptions&&t.addPolicy(Rg(e.tlsOptions)),t.addPolicy(Fg(e.proxyOptions)),t.addPolicy(jg())),t.addPolicy(t_()),t.addPolicy(Ng(),{beforePolicies:[kg]}),t.addPolicy(vg(e.userAgentOptions)),t.addPolicy(Ig(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(Ag(),{afterPhase:`Deserialize`}),t.addPolicy(Mg(e.retryOptions),{phase:`Retry`}),t.addPolicy(Yg({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),Tg&&t.addPolicy(ug(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(lg(e.loggingOptions),{afterPhase:`Sign`}),t}function r_(){let e=Km();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?e_(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function i_(e){return gm(e)}function a_(e){return ym(e)}const o_={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function s_(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function l_(e,t){try{return[await t(e),void 0]}catch(e){if(Jg(e)&&e.response)return[e.response,e];throw e}}async function u_(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function d_(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function f_(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function p_(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||cg,a={authorizeRequest:r?.authorizeRequest?.bind(r)??u_,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?c_(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await l_(e,t),d_(r)){let l=h_(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await f_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await l_(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await l_(e,t)),d_(r)&&(l=h_(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await f_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await l_(e,t))}}if(s)throw s;return r}}}function m_(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function h_(e){if(e)return m_(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function g_(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const __=`DisableKeepAlivePolicy`;function v_(){return{name:__,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function y_(e){return e.getOrderedPolicies().some(e=>e.name===__)}function b_(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function x_(e){return Buffer.from(e,`base64`)}function S_(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const C_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function w_(e){return C_.test(e)}const T_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function E_(e){return T_.test(e)}function D_(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function O_(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return D_({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:S_(e.parsedBody,a)})}var k_=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=q_(this,e,t,n,!!this.isXML,i)):a=U_(this,e,t,n,!!this.isXML,i):a=H_(this,e,t,n,!!this.isXML,i):a=B_(n,t):a=z_(n,t):a=V_(o,t,n):a=R_(n,e.type.allowedValues,t):a=L_(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=X_(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=Z_(this,e,t,n,i)):a=Q_(this,e,t,n,i):a=N_(t):a=x_(t):a=I_(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function A_(e={},t=!1){return new k_(e,t)}function j_(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function M_(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return j_(b_(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function N_(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),x_(e)}}function P_(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function F_(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function I_(e){if(e)return new Date(e*1e3)}function L_(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&E_(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function R_(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function z_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=b_(t)}return t}function B_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=M_(t)}return t}function V_(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=F_(t)}else if(e.match(/^TimeSpan$/i)!==null&&!w_(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function H_(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function J_(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function Y_(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function X_(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;tv(e,t)&&(t=ev(e,t,n,`serializedName`));let o=K_(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=P_(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(P_(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!Y_(e,i)&&(s[e]=n[e]);return s}function Z_(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Q_(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function av(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=ov(e,r);!t.propertyFound&&n&&(t=ov(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=av(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function ov(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function gv(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function _v(e,t,n,r){let i=200<=e.status&&e.status<300;if(gv(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new qg(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===rv.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function vv(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new qg(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||qg.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function yv(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===rv.Stream&&t.add(Number(n))}return t}function bv(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function xv(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=lv(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(Sv(e,a,i),Cv(e,a,i,t)),n(e)}}}function Sv(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=av(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,bv(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||bv(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Cv(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=av(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=bv(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===rv.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=wv(d,t,m,e.body,a);m===rv.Sequence?e.body=r(Tv(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===rv.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=av(t,r);if(i!=null){let t=r.mapper.serializedName||bv(r);e.formData[t]=n.serializer.serialize(r.mapper,i,bv(r),a)}}}}function wv(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function Tv(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function Ev(e={}){let t=n_(e??{});return e.credentialOptions&&t.addPolicy(p_({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(xv(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(fv(e.deserializationOptions),{phase:`Deserialize`}),t}let Dv;function Ov(){return Dv||=r_(),Dv}const kv={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function Av(e,t,n,r){let i=Mv(t,n,r),a=!1,o=jv(e,i);if(t.path){let e=jv(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),Nv(e)?(o=e,a=!0):o=Pv(o,e)}let{queryParams:s,sequenceParams:c}=Fv(t,n,r);return o=Lv(o,s,c,a),o}function jv(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function Mv(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=av(t,i,n),o=bv(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function Nv(e){return e.includes(`://`)}function Pv(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Fv(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=av(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,bv(a));let t=a.collectionFormat?kv[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||bv(a),o)}}return{queryParams:r,sequenceParams:i}}function Iv(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Lv(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Iv(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Rv=sg(`core-client`);var zv=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Rv.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Ov(),this.pipeline=e.pipeline||Bv(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=a_({url:Av(n,t,e,this)});r.method=t.httpMethod;let i=lv(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=yv(t));try{let e=await this.sendRequest(r),n=O_(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=O_(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function Bv(e){let t=Vv(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return Ev({...e,credentialOptions:n})}function Vv(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Hv={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Uv(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const Wv=async e=>{let t=Yv(e.request),n=qv(e.response);if(n){let r=Jv(n),i=Kv(e,r),a=Gv(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Hv.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Gv(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Uv(t))return t}function Kv(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Hv.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function qv(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function Jv(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Yv(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Xv=Symbol(`Original PipelineRequest`),Zv=Symbol.for(`@azure/core-client original request`);function Qv(e,t={}){let n=e[Xv],r=i_(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=a_({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Zv]=t.originalRequest),n}}function $v(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:ey(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Xv?e:i===`clone`?()=>$v(Qv(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function ey(e){return new ny(e.toJSON({preserveCase:!0}))}function ty(e){return e.toLowerCase()}var ny=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[ty(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[ty(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[ty(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[ty(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nay(await e.sendRequest($v(t,{createProxy:!0})))}}const dy=`:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`;dy+``,``+dy;const fy=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function py(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` -`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!Ay(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,Oy(`InvalidTag`,t,jy(e,a))}let l=Cy(e,a);if(l===!1)return Oy(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,jy(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=Ty(u,t);if(i===!0)r=!0;else return Oy(i.err.code,i.err.msg,jy(e,n+i.err.line))}else if(s){if(!l.tagClosed)return Oy(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,jy(e,a));if(u.trim().length>0)return Oy(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,jy(e,o));if(n.length===0)return Oy(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,jy(e,o));{let t=n.pop();if(c!==t.tagName){let n=jy(e,t.tagStartPos);return Oy(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,jy(e,o))}n.length==0&&(i=!0)}}else{let s=Ty(u,t);if(s!==!0)return Oy(s.err.code,s.err.msg,jy(e,a-u.length+s.err.line));if(i===!0)return Oy(`InvalidXml`,`Multiple possible root nodes found.`,jy(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?Oy(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:Oy(`InvalidXml`,`Start tag expected.`,1)}function by(e){return e===` `||e===` `||e===` -`||e===`\r`}function xy(e,t){let n=t;for(;t5&&r===`xml`)return Oy(`InvalidXml`,`XML declaration allowed only at the start of the document.`,jy(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function Sy(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function Cy(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const wy=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function Ty(e,t){let n=py(e,wy),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Py={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Fy={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Iy={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Ly={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},Ry={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},zy={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},By={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},Vy={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Hy={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Uy={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Wy={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Gy={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...Ny,...Py,...Fy,...Iy,...Ly,...Ry,...zy,...By,...Vy,...Hy,...Uy,...Wy,...Gy});const Ky={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},qy={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},Jy=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Yy(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(Jy.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Xy(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Zy=`external`,Qy=`base`;function $y(e){return!e||e===Zy?new Set([Zy]):e===`all`?new Set([`all`]):e===Qy?new Set([Qy]):Array.isArray(e)?new Set(e):new Set([Zy])}const eb=Object.freeze({allow:0,leave:1,remove:2,throw:3}),tb=new Set([9,10,13]);function nb(e){if(!e)return{xmlVersion:1,onLevel:eb.allow,nullLevel:eb.remove};let t=e.xmlVersion===1.1?1.1:1,n=eb[e.onNCR]??eb.allow,r=eb[e.nullNCR]??eb.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,eb.remove)}}var rb=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=$y(this._limit.applyLimitsTo??Zy),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Xy(Ky,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=nb(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Yy(t);this._externalMap=Xy(e)}addExternalEntity(e,t){Yy(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Xy(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Zy);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Qy}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!tb.has(e)?eb.remove:-1}_applyNCRAction(e,t,n){switch(e){case eb.allow:return String.fromCodePoint(n);case eb.remove:return``;case eb.leave:return;case eb.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&rgy.includes(e)?`__`+e:e,ab={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:ib};function ob(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(gy.some(e=>n===e.toLowerCase())||_y.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function sb(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:sb(!0)}const cb=function(e){let t=Object.assign({},ab,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&ob(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=ib),t.processEntities=sb(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let lb;lb=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var ub=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][lb]={startIndex:t})}static getMetaDataSymbol(){return lb}};const db=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`;db+``;const fb=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`;fb+``;const pb=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},mb=pb(db,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),hb=pb(fb,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),gb=(e=`1.0`)=>e===`1.1`?hb:mb,_b=(e,{xmlVersion:t=`1.0`}={})=>gb(t).qName.test(e);var vb=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&bb(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&bb(e,`!ATTLIST`,t))t+=8;else if(a&&bb(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(bb(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=yb(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=yb(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const Ob=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function kb(e,t,n){if(!n.eNotation)return e;let r=t.match(Ob);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function Ab(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function jb(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function Mb(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Nb(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Pb=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Lb=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Ib(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Rb(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function zb(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Bb=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Gb,this.parseTextData=Vb,this.resolveNameSpace=Hb,this.buildAttributesMap=Wb,this.isItStopNode=Yb,this.replaceEntitiesValue=qb,this.readStopNodeData=ex,this.saveTextToParentTag=Jb,this.addChild=Kb,this.ignoreAttributesFn=Nb(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Ky};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...qy,...Uy}),this.entityDecoder=new rb({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Lb,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Fb;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?tx(e,s.parseTagValue,s.numberParseOptions):e}}function Hb(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Ub=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Wb(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=py(e,Ub),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=nx(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=$b(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new ub(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Zb(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Zb(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=$b(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=nx(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=zb(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Rb(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new ub(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=nx(i.transformTagName,c,u,i));let e=new ub(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new ub(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new ub(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Kb(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function qb(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Jb(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Yb(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Xb(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Xb(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function ex(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Zb(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Zb(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Zb(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=$b(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function tx(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Db(e,n)}else if(hy(e))return e;else return``}function nx(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=rx(t,r),{tagName:t,tagExp:n}}function rx(e,t){if(_y.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return gy.includes(e)?t.onDangerousProperty(e):e}const ix=ub.getMetaDataSymbol();function ax(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ox(e,t,n,r){return sx(e,t,n,r)}function sx(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function cx(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function mx(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function hx(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(Sx(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function gx(e,t,n,r,i){return!n.sanitizeName||_b(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function _x(e,t){let n=``;t.format&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=Tx(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=fx(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=Cx(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${Cx(l[`:@`],t,p,r,a)}`,g;g=p?bx(l[u],t):vx(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function yx(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=mx(e[i]),r=!0}return r?n:null}function bx(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function xx(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${mx(i)}"`}return n}function Sx(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const Dx={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ox(e){if(this.options=Object.assign({},Dx,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,`utf-8`)],i=Qh(r);i&&e.headers.set(`Content-Length`,i),e.body=await Jh(r)}const eg=`multipartPolicy`,tg=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function ng(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!tg.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function rg(){return{name:eg,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?ng(n):n=Yh(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await $h(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function ig(){return xm()}const ag=lm({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});ag.logger;function og(e){return ag.createClientLogger(e)}const sg=og(`core-rest-pipeline`);function cg(e={}){return Km({logger:sg.info,...e})}function lg(e={}){return Jm(e)}function ug(){return`User-Agent`}async function dg(e){if(ye&&ye.versions){let t=`${de.type()} ${de.release()}; ${de.arch()}`,n=ye.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const fg=`1.22.3`;function pg(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function mg(){return ug()}async function hg(e){let t=new Map;t.set(`core-rest-pipeline`,fg),await dg(t);let n=pg(t);return e?`${e} ${n}`:n}const gg=mg();function _g(e={}){let t=hg(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(gg)||e.headers.set(gg,await t),n(e)}}}var vg=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function yg(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new vg(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function bg(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return yg(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function xg(e){if(Cm(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Sg(e){return Cm(e)}function Cg(){return gm()}const wg=fh,Tg=Symbol(`rawContent`);function Eg(e){return typeof e[Tg]==`function`}function Dg(e){return Eg(e)?e[Tg]():e}const Og=eg;function kg(){let e=rg();return{name:Og,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Eg(e.body)&&(e.body=Dg(e.body));return e.sendRequest(t,n)}}}function Ag(){return Xm()}function jg(e={}){return dh(e)}function Mg(){return mh()}function Ng(e){return Ih(e)}function Pg(e,t){return Bh(e,t)}function Fg(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Ig(e){return Vh(e)}function Lg(e){return Hh(e)}const Rg={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function zg(e={}){let t=new Bg(e.parentContext);return e.span&&(t=t.setValue(Rg.span,e.span)),e.namespace&&(t=t.setValue(Rg.namespace,e.namespace)),t}var Bg=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Vg=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Hg(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Ug(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Hg(),tracingContext:zg({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Wg(){return Vg.instrumenterImplementation||=Ug(),Vg.instrumenterImplementation}function Gg(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Wg().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(Rg.namespace)||(s=s.setValue(Rg.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(Rg.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Wg().withContext(e,t,...n)}function s(e){return Wg().parseTraceparentHeader(e)}function c(e){return Wg().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const Kg=Am;function qg(e){return jm(e)}function Jg(e={}){let t=hg(e.userAgentPrefix),n=new Om({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Yg();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Xg(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return Qg(s,t),t}catch(e){throw Zg(s,e),e}}}}function Yg(){try{return Gg({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:fg})}catch(e){sg.warning(`Error when creating the TracingClient: ${xg(e)}`);return}}function Xg(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){sg.warning(`Skipping creating a tracing span due to an error: ${xg(e)}`);return}}function Zg(e,t){try{e.setStatus({status:`error`,error:Sg(t)?t:void 0}),qg(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){sg.warning(`Skipping tracing span processing due to an error: ${xg(e)}`)}}function Qg(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){sg.warning(`Skipping tracing span processing due to an error: ${xg(e)}`)}}function $g(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function e_(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=$g(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function t_(e){let t=ig();return wg&&(e.agent&&t.addPolicy(Ig(e.agent)),e.tlsOptions&&t.addPolicy(Lg(e.tlsOptions)),t.addPolicy(Pg(e.proxyOptions)),t.addPolicy(Ag())),t.addPolicy(e_()),t.addPolicy(Mg(),{beforePolicies:[Og]}),t.addPolicy(_g(e.userAgentOptions)),t.addPolicy(Fg(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(kg(),{afterPhase:`Deserialize`}),t.addPolicy(jg(e.retryOptions),{phase:`Retry`}),t.addPolicy(Jg({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),wg&&t.addPolicy(lg(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(cg(e.loggingOptions),{afterPhase:`Sign`}),t}function n_(){let e=Gm();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?$g(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function r_(e){return hm(e)}function i_(e){return vm(e)}const a_={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function o_(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function c_(e,t){try{return[await t(e),void 0]}catch(e){if(qg(e)&&e.response)return[e.response,e];throw e}}async function l_(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function u_(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function d_(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function f_(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||sg,a={authorizeRequest:r?.authorizeRequest?.bind(r)??l_,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?s_(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await c_(e,t),u_(r)){let l=m_(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await d_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await c_(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await c_(e,t)),u_(r)&&(l=m_(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await d_({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await c_(e,t))}}if(s)throw s;return r}}}function p_(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function m_(e){if(e)return p_(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function h_(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const g_=`DisableKeepAlivePolicy`;function __(){return{name:g_,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function v_(e){return e.getOrderedPolicies().some(e=>e.name===g_)}function y_(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function b_(e){return Buffer.from(e,`base64`)}function x_(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const S_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C_(e){return S_.test(e)}const w_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function T_(e){return w_.test(e)}function E_(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function D_(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return E_({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:x_(e.parsedBody,a)})}var O_=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=K_(this,e,t,n,!!this.isXML,i)):a=H_(this,e,t,n,!!this.isXML,i):a=V_(this,e,t,n,!!this.isXML,i):a=z_(n,t):a=R_(n,t):a=B_(o,t,n):a=L_(n,e.type.allowedValues,t):a=I_(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=Y_(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=X_(this,e,t,n,i)):a=Z_(this,e,t,n,i):a=M_(t):a=b_(t):a=F_(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function k_(e={},t=!1){return new O_(e,t)}function A_(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function j_(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return A_(y_(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function M_(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),b_(e)}}function N_(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function P_(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function F_(e){if(e)return new Date(e*1e3)}function I_(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&T_(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function L_(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function R_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=y_(t)}return t}function z_(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=j_(t)}return t}function B_(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=P_(t)}else if(e.match(/^TimeSpan$/i)!==null&&!C_(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function V_(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function q_(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function J_(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function Y_(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;ev(e,t)&&(t=$_(e,t,n,`serializedName`));let o=G_(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=N_(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(N_(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!J_(e,i)&&(s[e]=n[e]);return s}function X_(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Z_(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function iv(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=av(e,r);!t.propertyFound&&n&&(t=av(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=iv(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function av(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function hv(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function gv(e,t,n,r){let i=200<=e.status&&e.status<300;if(hv(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new Kg(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===nv.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function _v(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new Kg(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||Kg.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function vv(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===nv.Stream&&t.add(Number(n))}return t}function yv(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function bv(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=cv(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(xv(e,a,i),Sv(e,a,i,t)),n(e)}}}function xv(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=iv(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,yv(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||yv(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Sv(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=iv(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=yv(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===nv.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=Cv(d,t,m,e.body,a);m===nv.Sequence?e.body=r(wv(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===nv.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=iv(t,r);if(i!=null){let t=r.mapper.serializedName||yv(r);e.formData[t]=n.serializer.serialize(r.mapper,i,yv(r),a)}}}}function Cv(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function wv(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function Tv(e={}){let t=t_(e??{});return e.credentialOptions&&t.addPolicy(f_({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(bv(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(dv(e.deserializationOptions),{phase:`Deserialize`}),t}let Ev;function Dv(){return Ev||=n_(),Ev}const Ov={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function kv(e,t,n,r){let i=jv(t,n,r),a=!1,o=Av(e,i);if(t.path){let e=Av(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),Mv(e)?(o=e,a=!0):o=Nv(o,e)}let{queryParams:s,sequenceParams:c}=Pv(t,n,r);return o=Iv(o,s,c,a),o}function Av(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function jv(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=iv(t,i,n),o=yv(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function Mv(e){return e.includes(`://`)}function Nv(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Pv(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=iv(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,yv(a));let t=a.collectionFormat?Ov[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||yv(a),o)}}return{queryParams:r,sequenceParams:i}}function Fv(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Iv(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Fv(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Lv=og(`core-client`);var Rv=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Lv.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Dv(),this.pipeline=e.pipeline||zv(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=i_({url:kv(n,t,e,this)});r.method=t.httpMethod;let i=cv(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=vv(t));try{let e=await this.sendRequest(r),n=D_(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=D_(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function zv(e){let t=Bv(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return Tv({...e,credentialOptions:n})}function Bv(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Vv={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Hv(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const Uv=async e=>{let t=Jv(e.request),n=Kv(e.response);if(n){let r=qv(n),i=Gv(e,r),a=Wv(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Vv.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Wv(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Hv(t))return t}function Gv(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Vv.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function Kv(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function qv(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Jv(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Yv=Symbol(`Original PipelineRequest`),Xv=Symbol.for(`@azure/core-client original request`);function Zv(e,t={}){let n=e[Yv],r=r_(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=i_({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Xv]=t.originalRequest),n}}function Qv(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:$v(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Yv?e:i===`clone`?()=>Qv(Zv(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function $v(e){return new ty(e.toJSON({preserveCase:!0}))}function ey(e){return e.toLowerCase()}var ty=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[ey(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[ey(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[ey(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[ey(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;niy(await e.sendRequest(Qv(t,{createProxy:!0})))}}const uy=`:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`;uy+``,``+uy;const dy=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function fy(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!ky(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,Dy(`InvalidTag`,t,Ay(e,a))}let l=Sy(e,a);if(l===!1)return Dy(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,Ay(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=wy(u,t);if(i===!0)r=!0;else return Dy(i.err.code,i.err.msg,Ay(e,n+i.err.line))}else if(s){if(!l.tagClosed)return Dy(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,Ay(e,a));if(u.trim().length>0)return Dy(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,Ay(e,o));if(n.length===0)return Dy(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,Ay(e,o));{let t=n.pop();if(c!==t.tagName){let n=Ay(e,t.tagStartPos);return Dy(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,Ay(e,o))}n.length==0&&(i=!0)}}else{let s=wy(u,t);if(s!==!0)return Dy(s.err.code,s.err.msg,Ay(e,a-u.length+s.err.line));if(i===!0)return Dy(`InvalidXml`,`Multiple possible root nodes found.`,Ay(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?Dy(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:Dy(`InvalidXml`,`Start tag expected.`,1)}function yy(e){return e===` `||e===` `||e===` +`||e===`\r`}function by(e,t){let n=t;for(;t5&&r===`xml`)return Dy(`InvalidXml`,`XML declaration allowed only at the start of the document.`,Ay(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function xy(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function Sy(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const Cy=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function wy(e,t){let n=fy(e,Cy),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Ny={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Py={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Fy={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Iy={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},Ly={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Ry={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},zy={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},By={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Vy={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Hy={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Uy={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Wy={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...My,...Ny,...Py,...Fy,...Iy,...Ly,...Ry,...zy,...By,...Vy,...Hy,...Uy,...Wy});const Gy={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ky={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},qy=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Jy(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(qy.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Yy(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Xy=`external`,Zy=`base`;function Qy(e){return!e||e===Xy?new Set([Xy]):e===`all`?new Set([`all`]):e===Zy?new Set([Zy]):Array.isArray(e)?new Set(e):new Set([Xy])}const $y=Object.freeze({allow:0,leave:1,remove:2,throw:3}),eb=new Set([9,10,13]);function tb(e){if(!e)return{xmlVersion:1,onLevel:$y.allow,nullLevel:$y.remove};let t=e.xmlVersion===1.1?1.1:1,n=$y[e.onNCR]??$y.allow,r=$y[e.nullNCR]??$y.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,$y.remove)}}var nb=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Qy(this._limit.applyLimitsTo??Xy),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Yy(Gy,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=tb(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Jy(t);this._externalMap=Yy(e)}addExternalEntity(e,t){Jy(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Yy(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Xy);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Zy}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!eb.has(e)?$y.remove:-1}_applyNCRAction(e,t,n){switch(e){case $y.allow:return String.fromCodePoint(n);case $y.remove:return``;case $y.leave:return;case $y.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r<$y.remove)return;let i=r===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,r);return this._applyNCRAction(i,e,n)}};const rb=e=>hy.includes(e)?`__`+e:e,ib={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:rb};function ab(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(hy.some(e=>n===e.toLowerCase())||gy.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ob(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:ob(!0)}const sb=function(e){let t=Object.assign({},ib,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&ab(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=rb),t.processEntities=ob(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let cb;cb=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var lb=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][cb]={startIndex:t})}static getMetaDataSymbol(){return cb}};const ub=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`;ub+``;const db=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`;db+``;const fb=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},pb=fb(ub,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),mb=fb(db,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),hb=(e=`1.0`)=>e===`1.1`?mb:pb,gb=(e,{xmlVersion:t=`1.0`}={})=>hb(t).qName.test(e);var _b=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&yb(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&yb(e,`!ATTLIST`,t))t+=8;else if(a&&yb(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(yb(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=vb(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=vb(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const Db=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Ob(e,t,n){if(!n.eNotation)return e;let r=t.match(Db);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function kb(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function Ab(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function jb(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Mb(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Nb=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Ib=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Fb(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Lb(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Rb(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var zb=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Wb,this.parseTextData=Bb,this.resolveNameSpace=Vb,this.buildAttributesMap=Ub,this.isItStopNode=Jb,this.replaceEntitiesValue=Kb,this.readStopNodeData=$b,this.saveTextToParentTag=qb,this.addChild=Gb,this.ignoreAttributesFn=Mb(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Gy};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Ky,...Hy}),this.entityDecoder=new nb({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Ib,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Pb;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?ex(e,s.parseTagValue,s.numberParseOptions):e}}function Vb(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Hb=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Ub(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=fy(e,Hb),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=tx(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Qb(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new lb(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Xb(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Xb(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Qb(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=tx(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Rb(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Lb(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new lb(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=tx(i.transformTagName,c,u,i));let e=new lb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new lb(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new lb(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Gb(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Kb(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function qb(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Jb(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Yb(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Yb(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function $b(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Xb(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Xb(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Xb(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Qb(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function ex(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Eb(e,n)}else if(my(e))return e;else return``}function tx(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=nx(t,r),{tagName:t,tagExp:n}}function nx(e,t){if(gy.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return hy.includes(e)?t.onDangerousProperty(e):e}const rx=lb.getMetaDataSymbol();function ix(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function ax(e,t,n,r){return ox(e,t,n,r)}function ox(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function sx(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function px(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function mx(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(xx(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function hx(e,t,n,r,i){return!n.sanitizeName||gb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function gx(e,t){let n=``;t.format&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=wx(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=dx(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=Sx(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${Sx(l[`:@`],t,p,r,a)}`,g;g=p?yx(l[u],t):_x(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function vx(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=px(e[i]),r=!0}return r?n:null}function yx(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function bx(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${px(i)}"`}return n}function xx(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const Ex={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Dx(e){if(this.options=Object.assign({},Ex,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e `,this.newLine=` -`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function kx(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function Ax(e,t,n,r,i){return!n.sanitizeName||_b(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Ox.prototype.build=function(e){if(this.options.preserveOrder)return _x(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Lb,n=kx(e,this.options);return this.j2x(e,0,t,n).val}},Ox.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:Ax(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=Ax(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Ox.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Ox.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Ox.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=fx(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function Bx(e,t={}){if(!e)throw Error(`Document is empty`);let n=Fx.validate(e);if(n!==!0)throw n;let r=new dx(Rx(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Vx=sg(`storage-blob`);var Hx=class extends y{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Ux=x.constants.MAX_LENGTH;var Wx=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Ux);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Hx(this.buffers,this.size)}},Gx=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new m;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Wx(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Kx;function qx(){return Kx||=r_(),Kx}var Jx=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Yx={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},V={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function Xx(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Zx(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Qx(e){try{return new URL(e).pathname}catch{return}}function $x(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var tS=class extends Jx{constructor(e,t){super(e,t)}async sendRequest(e){return Tg?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Xx(e.url,Yx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(V.COOKIE),e.headers.remove(V.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},nS=class{create(e,t){return new tS(e,t)}},rS=class extends Jx{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},iS=class extends rS{constructor(e,t){super(e,t)}},aS=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},oS=class extends aS{create(e,t){return new iS(e,t)}};const sS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),cS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),lS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function uS(e,t){return dS(e,t)?-1:1}function dS(e,t){let n=[sS,cS,lS],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,V.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,V.CONTENT_ENCODING),this.getHeaderValueToSign(e,V.CONTENT_LENGTH),this.getHeaderValueToSign(e,V.CONTENT_MD5),this.getHeaderValueToSign(e,V.CONTENT_TYPE),this.getHeaderValueToSign(e,V.DATE),this.getHeaderValueToSign(e,V.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,V.IF_MATCH),this.getHeaderValueToSign(e,V.IF_NONE_MATCH),this.getHeaderValueToSign(e,V.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,V.RANGE)].join(` +`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function Ox(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function kx(e,t,n,r,i){return!n.sanitizeName||gb(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Dx.prototype.build=function(e){if(this.options.preserveOrder)return gx(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Ib,n=Ox(e,this.options);return this.j2x(e,0,t,n).val}},Dx.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:kx(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=kx(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Dx.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Dx.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Dx.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=dx(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function zx(e,t={}){if(!e)throw Error(`Document is empty`);let n=Px.validate(e);if(n!==!0)throw n;let r=new ux(Lx(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Bx=og(`storage-blob`);var Vx=class extends y{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Hx=x.constants.MAX_LENGTH;var Ux=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Hx);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Vx(this.buffers,this.size)}},Wx=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new m;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Ux(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Gx;function Kx(){return Gx||=n_(),Gx}var qx=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Jx={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},H={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function Yx(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Xx(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Zx(e){try{return new URL(e).pathname}catch{return}}function Qx(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var eS=class extends qx{constructor(e,t){super(e,t)}async sendRequest(e){return wg?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Yx(e.url,Jx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(H.COOKIE),e.headers.remove(H.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},tS=class{create(e,t){return new eS(e,t)}},nS=class extends qx{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},rS=class extends nS{constructor(e,t){super(e,t)}},iS=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},aS=class extends iS{create(e,t){return new rS(e,t)}};const oS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),sS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),cS=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function lS(e,t){return uS(e,t)?-1:1}function uS(e,t){let n=[oS,sS,cS],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(H.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,H.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,H.CONTENT_ENCODING),this.getHeaderValueToSign(e,H.CONTENT_LENGTH),this.getHeaderValueToSign(e,H.CONTENT_MD5),this.getHeaderValueToSign(e,H.CONTENT_TYPE),this.getHeaderValueToSign(e,H.DATE),this.getHeaderValueToSign(e,H.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,H.IF_MATCH),this.getHeaderValueToSign(e,H.IF_NONE_MATCH),this.getHeaderValueToSign(e,H.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,H.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(V.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE));t.sort((e,t)=>uS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Qx(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=$x(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},pS=class extends aS{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new fS(e,t,this)}computeHMACSHA256(e){return T(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const mS=sg(`storage-common`);var hS;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(hS||={});const gS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:hS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},_S=new yg(`The operation was aborted.`);var vS=class extends Jx{retryOptions;constructor(e,t,n=gS){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:gS.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):gS.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:gS.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:gS.maxRetryDelayInMs):gS.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:gS.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:gS.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Zx(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Xx(r.url,Yx.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(mS.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(mS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return mS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return mS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return mS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return mS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(mS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case hS.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case hS.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return mS.info(`RetryPolicy: Delay for ${r}ms`),eS(r,n,_S)}},yS=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new vS(e,t,this.retryOptions)}};function bS(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return Tg?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Xx(e.url,Yx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(V.COOKIE),e.headers.delete(V.CONTENT_LENGTH),t(e))}}}function xS(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const SS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:hS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},CS=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],wS=new yg(`The operation was aborted.`);function TS(e={}){let t=e.retryPolicyType??SS.retryPolicyType,n=e.maxTries??SS.maxTries,r=e.retryDelayInMs??SS.retryDelayInMs,i=e.maxRetryDelayInMs??SS.maxRetryDelayInMs,a=e.secondaryHost??SS.secondaryHost,o=e.tryTimeoutInMs??SS.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return mS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of CS)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return mS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return mS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return mS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return mS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(V.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case hS.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case hS.FIXED:a=r;break}else a=Math.random()*1e3;return mS.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Xx(e.url,Yx.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Zx(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{mS.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(Jg(e))mS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw mS.error(`RetryPolicy: Caught error, message: ${Sg(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await eS(c(a,l),e.abortSignal,wS),l++}if(d)return d;throw f??new qg(`RetryPolicy failed without known error.`)}}}function ES(e){function t(t){t.headers.set(V.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(V.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,V.CONTENT_LANGUAGE),n(t,V.CONTENT_ENCODING),n(t,V.CONTENT_LENGTH),n(t,V.CONTENT_MD5),n(t,V.CONTENT_TYPE),n(t,V.DATE),n(t,V.IF_MODIFIED_SINCE),n(t,V.IF_MATCH),n(t,V.IF_NONE_MATCH),n(t,V.IF_UNMODIFIED_SINCE),n(t,V.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(H.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===H.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(H.PREFIX_FOR_STORAGE));t.sort((e,t)=>lS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Zx(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=Qx(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},fS=class extends iS{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new dS(e,t,this)}computeHMACSHA256(e){return T(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const pS=og(`storage-common`);var mS;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(mS||={});const hS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},gS=new vg(`The operation was aborted.`);var _S=class extends qx{retryOptions;constructor(e,t,n=hS){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:hS.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):hS.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:hS.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:hS.maxRetryDelayInMs):hS.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:hS.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:hS.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Xx(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Yx(r.url,Jx.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(pS.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(pS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return pS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return pS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return pS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return pS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(H.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(pS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case mS.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case mS.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return pS.info(`RetryPolicy: Delay for ${r}ms`),$x(r,n,gS)}},vS=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new _S(e,t,this.retryOptions)}};function yS(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return wg?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Yx(e.url,Jx.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(H.COOKIE),e.headers.delete(H.CONTENT_LENGTH),t(e))}}}function bS(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(H.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const xS={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mS.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},SS=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],CS=new vg(`The operation was aborted.`);function wS(e={}){let t=e.retryPolicyType??xS.retryPolicyType,n=e.maxTries??xS.maxTries,r=e.retryDelayInMs??xS.retryDelayInMs,i=e.maxRetryDelayInMs??xS.maxRetryDelayInMs,a=e.secondaryHost??xS.secondaryHost,o=e.tryTimeoutInMs??xS.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return pS.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of SS)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return pS.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return pS.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return pS.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return pS.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(H.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case mS.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case mS.FIXED:a=r;break}else a=Math.random()*1e3;return pS.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Yx(e.url,Jx.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Xx(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{pS.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(qg(e))pS.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw pS.error(`RetryPolicy: Caught error, message: ${xg(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await $x(c(a,l),e.abortSignal,CS),l++}if(d)return d;throw f??new Kg(`RetryPolicy failed without known error.`)}}}function TS(e){function t(t){t.headers.set(H.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(H.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,H.CONTENT_LANGUAGE),n(t,H.CONTENT_ENCODING),n(t,H.CONTENT_LENGTH),n(t,H.CONTENT_MD5),n(t,H.CONTENT_TYPE),n(t,H.DATE),n(t,H.IF_MODIFIED_SINCE),n(t,H.IF_MATCH),n(t,H.IF_NONE_MATCH),n(t,H.IF_UNMODIFIED_SINCE),n(t,H.RANGE)].join(` `)+` -`+r(t)+i(t),o=T(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(V.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===V.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(V.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>uS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Qx(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=$x(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function DS(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. -`),e}}}}var OS=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return T(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const kS=`12.31.0`,AS=`2026-02-06`,jS=5e4,MS=4*1024*1024,NS={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},PS=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),FS=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),IS=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function LS(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var RS=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function zS(e,t={}){e||=new oS;let n=new RS([],t);return n._credential=e,n}function BS(e){let t=[WS,US,GS,KS,qS,JS,XS];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>YS(e));return{wrappedPolicies:ly(n),afterRetry:e}}}}function VS(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?uy(t):qx(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${kS}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=Ev({...n,loggingOptions:{additionalAllowedHeaderNames:PS,additionalAllowedQueryParameters:FS,logger:Vx.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:zx,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:Bx,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(xS()),i.addPolicy(TS(n.retryOptions),{phase:`Retry`}),i.addPolicy(DS()),i.addPolicy(bS());let a=BS(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=HS(e);g_(o)?i.addPolicy(p_({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Wv}}),{phase:`Sign`}):o instanceof pS&&i.addPolicy(ES({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function HS(e){if(e._credential)return e._credential;let t=new oS;for(let n of e.factories)if(g_(n.credential))t=n.credential;else if(US(n))return n;return t}function US(e){return e instanceof pS?!0:e.constructor.name===`StorageSharedKeyCredential`}function WS(e){return e instanceof oS?!0:e.constructor.name===`AnonymousCredential`}function GS(e){return g_(e.credential)}function KS(e){return e instanceof nS?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function qS(e){return e instanceof yS?!0:e.constructor.name===`StorageRetryPolicyFactory`}function JS(e){return e.constructor.name===`TelemetryPolicyFactory`}function YS(e){return e.constructor.name===`InjectorPolicyFactory`}function XS(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var ZS=De({AccessPolicy:()=>gC,AppendBlobAppendBlockExceptionHeaders:()=>ZT,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>$T,AppendBlobAppendBlockFromUrlHeaders:()=>QT,AppendBlobAppendBlockHeaders:()=>XT,AppendBlobCreateExceptionHeaders:()=>YT,AppendBlobCreateHeaders:()=>JT,AppendBlobSealExceptionHeaders:()=>tE,AppendBlobSealHeaders:()=>eE,ArrowConfiguration:()=>IC,ArrowField:()=>LC,BlobAbortCopyFromURLExceptionHeaders:()=>yT,BlobAbortCopyFromURLHeaders:()=>vT,BlobAcquireLeaseExceptionHeaders:()=>rT,BlobAcquireLeaseHeaders:()=>nT,BlobBreakLeaseExceptionHeaders:()=>dT,BlobBreakLeaseHeaders:()=>uT,BlobChangeLeaseExceptionHeaders:()=>lT,BlobChangeLeaseHeaders:()=>cT,BlobCopyFromURLExceptionHeaders:()=>_T,BlobCopyFromURLHeaders:()=>gT,BlobCreateSnapshotExceptionHeaders:()=>pT,BlobCreateSnapshotHeaders:()=>fT,BlobDeleteExceptionHeaders:()=>Vw,BlobDeleteHeaders:()=>Bw,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Zw,BlobDeleteImmutabilityPolicyHeaders:()=>Xw,BlobDownloadExceptionHeaders:()=>Lw,BlobDownloadHeaders:()=>Iw,BlobFlatListSegment:()=>vC,BlobGetAccountInfoExceptionHeaders:()=>CT,BlobGetAccountInfoHeaders:()=>ST,BlobGetPropertiesExceptionHeaders:()=>zw,BlobGetPropertiesHeaders:()=>Rw,BlobGetTagsExceptionHeaders:()=>DT,BlobGetTagsHeaders:()=>ET,BlobHierarchyListSegment:()=>CC,BlobItemInternal:()=>yC,BlobName:()=>bC,BlobPrefix:()=>wC,BlobPropertiesInternal:()=>xC,BlobQueryExceptionHeaders:()=>TT,BlobQueryHeaders:()=>wT,BlobReleaseLeaseExceptionHeaders:()=>aT,BlobReleaseLeaseHeaders:()=>iT,BlobRenewLeaseExceptionHeaders:()=>sT,BlobRenewLeaseHeaders:()=>oT,BlobServiceProperties:()=>QS,BlobServiceStatistics:()=>iC,BlobSetExpiryExceptionHeaders:()=>Gw,BlobSetExpiryHeaders:()=>Ww,BlobSetHttpHeadersExceptionHeaders:()=>qw,BlobSetHttpHeadersHeaders:()=>Kw,BlobSetImmutabilityPolicyExceptionHeaders:()=>Yw,BlobSetImmutabilityPolicyHeaders:()=>Jw,BlobSetLegalHoldExceptionHeaders:()=>$w,BlobSetLegalHoldHeaders:()=>Qw,BlobSetMetadataExceptionHeaders:()=>tT,BlobSetMetadataHeaders:()=>eT,BlobSetTagsExceptionHeaders:()=>kT,BlobSetTagsHeaders:()=>OT,BlobSetTierExceptionHeaders:()=>xT,BlobSetTierHeaders:()=>bT,BlobStartCopyFromURLExceptionHeaders:()=>hT,BlobStartCopyFromURLHeaders:()=>mT,BlobTag:()=>mC,BlobTags:()=>pC,BlobUndeleteExceptionHeaders:()=>Uw,BlobUndeleteHeaders:()=>Hw,Block:()=>DC,BlockBlobCommitBlockListExceptionHeaders:()=>dE,BlockBlobCommitBlockListHeaders:()=>uE,BlockBlobGetBlockListExceptionHeaders:()=>pE,BlockBlobGetBlockListHeaders:()=>fE,BlockBlobPutBlobFromUrlExceptionHeaders:()=>aE,BlockBlobPutBlobFromUrlHeaders:()=>iE,BlockBlobStageBlockExceptionHeaders:()=>sE,BlockBlobStageBlockFromURLExceptionHeaders:()=>lE,BlockBlobStageBlockFromURLHeaders:()=>cE,BlockBlobStageBlockHeaders:()=>oE,BlockBlobUploadExceptionHeaders:()=>rE,BlockBlobUploadHeaders:()=>nE,BlockList:()=>EC,BlockLookupList:()=>TC,ClearRange:()=>AC,ContainerAcquireLeaseExceptionHeaders:()=>xw,ContainerAcquireLeaseHeaders:()=>bw,ContainerBreakLeaseExceptionHeaders:()=>Dw,ContainerBreakLeaseHeaders:()=>Ew,ContainerChangeLeaseExceptionHeaders:()=>kw,ContainerChangeLeaseHeaders:()=>Ow,ContainerCreateExceptionHeaders:()=>tw,ContainerCreateHeaders:()=>ew,ContainerDeleteExceptionHeaders:()=>aw,ContainerDeleteHeaders:()=>iw,ContainerFilterBlobsExceptionHeaders:()=>yw,ContainerFilterBlobsHeaders:()=>vw,ContainerGetAccessPolicyExceptionHeaders:()=>lw,ContainerGetAccessPolicyHeaders:()=>cw,ContainerGetAccountInfoExceptionHeaders:()=>Fw,ContainerGetAccountInfoHeaders:()=>Pw,ContainerGetPropertiesExceptionHeaders:()=>rw,ContainerGetPropertiesHeaders:()=>nw,ContainerItem:()=>sC,ContainerListBlobFlatSegmentExceptionHeaders:()=>jw,ContainerListBlobFlatSegmentHeaders:()=>Aw,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Nw,ContainerListBlobHierarchySegmentHeaders:()=>Mw,ContainerProperties:()=>cC,ContainerReleaseLeaseExceptionHeaders:()=>Cw,ContainerReleaseLeaseHeaders:()=>Sw,ContainerRenameExceptionHeaders:()=>hw,ContainerRenameHeaders:()=>mw,ContainerRenewLeaseExceptionHeaders:()=>Tw,ContainerRenewLeaseHeaders:()=>ww,ContainerRestoreExceptionHeaders:()=>pw,ContainerRestoreHeaders:()=>fw,ContainerSetAccessPolicyExceptionHeaders:()=>dw,ContainerSetAccessPolicyHeaders:()=>uw,ContainerSetMetadataExceptionHeaders:()=>sw,ContainerSetMetadataHeaders:()=>ow,ContainerSubmitBatchExceptionHeaders:()=>_w,ContainerSubmitBatchHeaders:()=>gw,CorsRule:()=>nC,DelimitedTextConfiguration:()=>PC,FilterBlobItem:()=>fC,FilterBlobSegment:()=>dC,GeoReplication:()=>aC,JsonTextConfiguration:()=>FC,KeyInfo:()=>lC,ListBlobsFlatSegmentResponse:()=>_C,ListBlobsHierarchySegmentResponse:()=>SC,ListContainersSegmentResponse:()=>oC,Logging:()=>$S,Metrics:()=>tC,PageBlobClearPagesExceptionHeaders:()=>FT,PageBlobClearPagesHeaders:()=>PT,PageBlobCopyIncrementalExceptionHeaders:()=>qT,PageBlobCopyIncrementalHeaders:()=>KT,PageBlobCreateExceptionHeaders:()=>jT,PageBlobCreateHeaders:()=>AT,PageBlobGetPageRangesDiffExceptionHeaders:()=>VT,PageBlobGetPageRangesDiffHeaders:()=>BT,PageBlobGetPageRangesExceptionHeaders:()=>zT,PageBlobGetPageRangesHeaders:()=>RT,PageBlobResizeExceptionHeaders:()=>UT,PageBlobResizeHeaders:()=>HT,PageBlobUpdateSequenceNumberExceptionHeaders:()=>GT,PageBlobUpdateSequenceNumberHeaders:()=>WT,PageBlobUploadPagesExceptionHeaders:()=>NT,PageBlobUploadPagesFromURLExceptionHeaders:()=>LT,PageBlobUploadPagesFromURLHeaders:()=>IT,PageBlobUploadPagesHeaders:()=>MT,PageList:()=>OC,PageRange:()=>kC,QueryFormat:()=>NC,QueryRequest:()=>jC,QuerySerialization:()=>MC,RetentionPolicy:()=>eC,ServiceFilterBlobsExceptionHeaders:()=>$C,ServiceFilterBlobsHeaders:()=>QC,ServiceGetAccountInfoExceptionHeaders:()=>YC,ServiceGetAccountInfoHeaders:()=>JC,ServiceGetPropertiesExceptionHeaders:()=>VC,ServiceGetPropertiesHeaders:()=>BC,ServiceGetStatisticsExceptionHeaders:()=>UC,ServiceGetStatisticsHeaders:()=>HC,ServiceGetUserDelegationKeyExceptionHeaders:()=>qC,ServiceGetUserDelegationKeyHeaders:()=>KC,ServiceListContainersSegmentExceptionHeaders:()=>GC,ServiceListContainersSegmentHeaders:()=>WC,ServiceSetPropertiesExceptionHeaders:()=>zC,ServiceSetPropertiesHeaders:()=>RC,ServiceSubmitBatchExceptionHeaders:()=>ZC,ServiceSubmitBatchHeaders:()=>XC,SignedIdentifier:()=>hC,StaticWebsite:()=>rC,StorageError:()=>H,UserDelegationKey:()=>uC});const QS={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},$S={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},eC={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},tC={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},nC={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},rC={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},H={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},iC={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},aC={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},oC={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},sC={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},cC={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},lC={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},uC={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},dC={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},fC={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},pC={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},mC={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},hC={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},gC={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},_C={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},vC={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},yC={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},bC={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},xC={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},SC={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},CC={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},wC={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},TC={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},EC={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},DC={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},OC={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},kC={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},AC={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},jC={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},MC={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},NC={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},PC={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},FC={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},IC={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},LC={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},RC={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cw={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gw={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},_w={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vw={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},yw={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bw={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},xw={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Sw={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Cw={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ww={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Tw={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ew={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Dw={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ow={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},kw={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nw={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Pw={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},Fw={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Iw={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},Lw={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rw={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zw={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bw={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vw={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hw={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uw={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ww={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Gw={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kw={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qw={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Jw={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},Yw={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Xw={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Zw={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Qw={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},$w={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eT={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tT={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nT={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},rT={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iT={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},aT={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oT={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},sT={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cT={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},lT={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uT={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},dT={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fT={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pT={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mT={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hT={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},gT={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_T={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},vT={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yT={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bT={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xT={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ST={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},CT={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wT={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},TT={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ET={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DT={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OT={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kT={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AT={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jT={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MT={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NT={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PT={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FT={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IT={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LT={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},RT={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zT={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BT={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VT={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HT={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UT={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WT={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GT={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KT={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qT={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JT={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YT={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XT={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZT={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QT={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$T={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},eE={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},tE={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nE={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rE={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iE={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aE={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},oE={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sE={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cE={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lE={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},uE={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dE={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fE={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pE={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},hE={parameterPath:`blobServiceProperties`,mapper:QS},gE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},U={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},_E={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},vE={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},W={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},G={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},K={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},q={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},yE={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bE={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xE={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},SE={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},CE={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},wE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},TE={parameterPath:`keyInfo`,mapper:lC},EE={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},DE={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},OE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},kE={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},AE={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},jE={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},ME={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},NE={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},PE={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},FE={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},IE={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},LE={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},RE={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},J={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Y={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},zE={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BE={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},VE={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},HE={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},UE={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},WE={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},GE={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KE={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},qE={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},JE={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},YE={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},XE={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},ZE={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},QE={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},$E={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},eD={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},tD={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},nD={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},rD={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},iD={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},aD={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},oD={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},sD={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},cD={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},lD={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},uD={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},dD={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},fD={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},pD={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},mD={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},hD={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},gD={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},_D={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},vD={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},yD={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},bD={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},xD={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},SD={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},CD={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},wD={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},TD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},ED={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},DD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},OD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},kD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},AD={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jD={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},MD={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},ND={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},PD={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},FD={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},ID={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LD={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},RD={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},zD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},BD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},VD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},HD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},UD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},WD={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},GD={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},KD={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},qD={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},JD={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},YD={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},XD={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},ZD={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},QD={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},$D={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},eO={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},tO={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},nO={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rO={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},iO={parameterPath:[`options`,`queryRequest`],mapper:jC},aO={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},oO={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},cO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},lO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},uO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},dO={parameterPath:[`options`,`tags`],mapper:pC},fO={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},pO={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},mO={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},hO={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},gO={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},_O={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},vO={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},yO={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},bO={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xO={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},SO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},CO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},wO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},TO={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},EO={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},DO={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},OO={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},kO={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},AO={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jO={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},MO={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},NO={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},PO={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},FO={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},IO={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LO={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},RO={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},zO={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},BO={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},VO={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},HO={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},UO={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},WO={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},GO={parameterPath:`blocks`,mapper:TC},KO={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},qO={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var JO=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},XO)}getProperties(e){return this.client.sendOperationRequest({options:e},ZO)}getStatistics(e){return this.client.sendOperationRequest({options:e},QO)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},$O)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},ek)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},tk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},nk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},rk)}};const YO=A_(ZS,!0),XO={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:RC},default:{bodyMapper:H,headersMapper:zC}},requestBody:hE,queryParameters:[_E,vE,W],urlParameters:[U],headerParameters:[mE,gE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},ZO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:QS,headersMapper:BC},default:{bodyMapper:H,headersMapper:VC}},queryParameters:[_E,vE,W],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},QO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:iC,headersMapper:HC},default:{bodyMapper:H,headersMapper:UC}},queryParameters:[_E,W,yE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},$O={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:oC,headersMapper:WC},default:{bodyMapper:H,headersMapper:GC}},queryParameters:[W,bE,xE,SE,CE,wE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},ek={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:uC,headersMapper:KC},default:{bodyMapper:H,headersMapper:qC}},requestBody:TE,queryParameters:[_E,W,EE],urlParameters:[U],headerParameters:[mE,gE,G,K],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},tk={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:JC},default:{bodyMapper:H,headersMapper:YC}},queryParameters:[vE,W,DE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO},nk={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:XC},default:{bodyMapper:H,headersMapper:ZC}},requestBody:OE,queryParameters:[W,kE],urlParameters:[U],headerParameters:[gE,G,K,AE,jE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},rk={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:dC,headersMapper:QC},default:{bodyMapper:H,headersMapper:$C}},queryParameters:[W,SE,CE,ME,NE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:YO};var ik=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},ok)}getProperties(e){return this.client.sendOperationRequest({options:e},sk)}delete(e){return this.client.sendOperationRequest({options:e},ck)}setMetadata(e){return this.client.sendOperationRequest({options:e},lk)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},uk)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},dk)}restore(e){return this.client.sendOperationRequest({options:e},fk)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},pk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},mk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},hk)}acquireLease(e){return this.client.sendOperationRequest({options:e},gk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},_k)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},vk)}breakLease(e){return this.client.sendOperationRequest({options:e},yk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},bk)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},xk)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Sk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ck)}};const ak=A_(ZS,!0),ok={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:ew},default:{bodyMapper:H,headersMapper:tw}},queryParameters:[W,PE],urlParameters:[U],headerParameters:[G,K,q,FE,IE,LE,RE],isXML:!0,serializer:ak},sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:nw},default:{bodyMapper:H,headersMapper:rw}},queryParameters:[W,PE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ak},ck={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:iw},default:{bodyMapper:H,headersMapper:aw}},queryParameters:[W,PE],urlParameters:[U],headerParameters:[G,K,q,J,Y,X],isXML:!0,serializer:ak},lk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ow},default:{bodyMapper:H,headersMapper:sw}},queryParameters:[W,PE,zE],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y],isXML:!0,serializer:ak},uk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:cw},default:{bodyMapper:H,headersMapper:lw}},queryParameters:[W,PE,BE],urlParameters:[U],headerParameters:[G,K,q,J],isXML:!0,serializer:ak},dk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:uw},default:{bodyMapper:H,headersMapper:dw}},requestBody:VE,queryParameters:[W,PE,BE],urlParameters:[U],headerParameters:[mE,gE,G,K,IE,J,Y,X],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ak},fk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:fw},default:{bodyMapper:H,headersMapper:pw}},queryParameters:[W,PE,HE],urlParameters:[U],headerParameters:[G,K,q,UE,WE],isXML:!0,serializer:ak},pk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:mw},default:{bodyMapper:H,headersMapper:hw}},queryParameters:[W,PE,GE],urlParameters:[U],headerParameters:[G,K,q,KE,qE],isXML:!0,serializer:ak},mk={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:gw},default:{bodyMapper:H,headersMapper:_w}},requestBody:OE,queryParameters:[W,kE,PE],urlParameters:[U],headerParameters:[gE,G,K,AE,jE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ak},hk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:dC,headersMapper:vw},default:{bodyMapper:H,headersMapper:yw}},queryParameters:[W,SE,CE,ME,NE,PE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak},gk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:bw},default:{bodyMapper:H,headersMapper:xw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,YE,XE,ZE],isXML:!0,serializer:ak},_k={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Sw},default:{bodyMapper:H,headersMapper:Cw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E],isXML:!0,serializer:ak},vk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ww},default:{bodyMapper:H,headersMapper:Tw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,eD],isXML:!0,serializer:ak},yk={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:Ew},default:{bodyMapper:H,headersMapper:Dw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,tD,nD],isXML:!0,serializer:ak},bk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ow},default:{bodyMapper:H,headersMapper:kw}},queryParameters:[W,PE,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,rD,iD],isXML:!0,serializer:ak},xk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:_C,headersMapper:Aw},default:{bodyMapper:H,headersMapper:jw}},queryParameters:[W,bE,xE,SE,CE,PE,aD,oD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak},Sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:SC,headersMapper:Mw},default:{bodyMapper:H,headersMapper:Nw}},queryParameters:[W,bE,xE,SE,CE,PE,aD,oD,sD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak},Ck={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Pw},default:{bodyMapper:H,headersMapper:Fw}},queryParameters:[vE,W,DE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:ak};var wk=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Ek)}getProperties(e){return this.client.sendOperationRequest({options:e},Dk)}delete(e){return this.client.sendOperationRequest({options:e},Ok)}undelete(e){return this.client.sendOperationRequest({options:e},kk)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},Ak)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},jk)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Mk)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Nk)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Pk)}setMetadata(e){return this.client.sendOperationRequest({options:e},Fk)}acquireLease(e){return this.client.sendOperationRequest({options:e},Ik)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Lk)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Rk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},zk)}breakLease(e){return this.client.sendOperationRequest({options:e},Bk)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Vk)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Hk)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Uk)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},Wk)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Gk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Kk)}query(e){return this.client.sendOperationRequest({options:e},qk)}getTags(e){return this.client.sendOperationRequest({options:e},Jk)}setTags(e){return this.client.sendOperationRequest({options:e},Yk)}};const Tk=A_(ZS,!0),Ek={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Iw},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Iw},default:{bodyMapper:H,headersMapper:Lw}},queryParameters:[W,cD,lD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,uD,dD,fD,pD,mD,hD,gD,_D,vD],isXML:!0,serializer:Tk},Dk={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:Rw},default:{bodyMapper:H,headersMapper:zw}},queryParameters:[W,cD,lD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,pD,mD,hD,gD,_D,vD],isXML:!0,serializer:Tk},Ok={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:Bw},default:{bodyMapper:H,headersMapper:Vw}},queryParameters:[W,cD,lD,bD],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,vD,yD],isXML:!0,serializer:Tk},kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Hw},default:{bodyMapper:H,headersMapper:Uw}},queryParameters:[W,HE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:Tk},Ak={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ww},default:{bodyMapper:H,headersMapper:Gw}},queryParameters:[W,xD],urlParameters:[U],headerParameters:[G,K,q,SD,CD],isXML:!0,serializer:Tk},jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Kw},default:{bodyMapper:H,headersMapper:qw}},queryParameters:[vE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,vD,wD,TD,ED,DD,OD,kD],isXML:!0,serializer:Tk},Mk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Jw},default:{bodyMapper:H,headersMapper:Yw}},queryParameters:[W,cD,lD,AD],urlParameters:[U],headerParameters:[G,K,q,X,jD,MD],isXML:!0,serializer:Tk},Nk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Xw},default:{bodyMapper:H,headersMapper:Zw}},queryParameters:[W,cD,lD,AD],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:Tk},Pk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Qw},default:{bodyMapper:H,headersMapper:$w}},queryParameters:[W,cD,lD,ND],urlParameters:[U],headerParameters:[G,K,q,PD],isXML:!0,serializer:Tk},Fk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:eT},default:{bodyMapper:H,headersMapper:tT}},queryParameters:[W,zE],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,pD,mD,hD,gD,_D,vD,FD],isXML:!0,serializer:Tk},Ik={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:nT},default:{bodyMapper:H,headersMapper:rT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,YE,XE,ZE,gD,_D,vD],isXML:!0,serializer:Tk},Lk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:iT},default:{bodyMapper:H,headersMapper:aT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,QE,$E,gD,_D,vD],isXML:!0,serializer:Tk},Rk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:oT},default:{bodyMapper:H,headersMapper:sT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,eD,gD,_D,vD],isXML:!0,serializer:Tk},zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:cT},default:{bodyMapper:H,headersMapper:lT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,$E,rD,iD,gD,_D,vD],isXML:!0,serializer:Tk},Bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:uT},default:{bodyMapper:H,headersMapper:dT}},queryParameters:[W,JE],urlParameters:[U],headerParameters:[G,K,q,Y,X,tD,nD,gD,_D,vD],isXML:!0,serializer:Tk},Vk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:fT},default:{bodyMapper:H,headersMapper:pT}},queryParameters:[W,ID],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,pD,mD,hD,gD,_D,vD,FD],isXML:!0,serializer:Tk},Hk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:mT},default:{bodyMapper:H,headersMapper:hT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,gD,_D,vD,jD,MD,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD],isXML:!0,serializer:Tk},Uk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:gT},default:{bodyMapper:H,headersMapper:_T}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,FE,J,Y,X,gD,_D,vD,jD,MD,FD,LD,zD,BD,VD,HD,WD,GD,qD,JD,YD,XD,ZD,QD],isXML:!0,serializer:Tk},Wk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:vT},default:{bodyMapper:H,headersMapper:yT}},queryParameters:[W,$D,tO],urlParameters:[U],headerParameters:[G,K,q,J,eO],isXML:!0,serializer:Tk},Gk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:bT},202:{headersMapper:bT},default:{bodyMapper:H,headersMapper:xT}},queryParameters:[W,cD,lD,nO],urlParameters:[U],headerParameters:[G,K,q,J,vD,RD,rO],isXML:!0,serializer:Tk},Kk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:ST},default:{bodyMapper:H,headersMapper:CT}},queryParameters:[vE,W,DE],urlParameters:[U],headerParameters:[G,K,q],isXML:!0,serializer:Tk},qk={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:wT},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:wT},default:{bodyMapper:H,headersMapper:TT}},requestBody:iO,queryParameters:[W,cD,aO],urlParameters:[U],headerParameters:[mE,gE,G,K,J,Y,X,pD,mD,hD,gD,_D,vD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Tk},Jk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:pC,headersMapper:ET},default:{bodyMapper:H,headersMapper:DT}},queryParameters:[W,cD,lD,oO],urlParameters:[U],headerParameters:[G,K,q,J,vD,sO,cO,lO,uO],isXML:!0,serializer:Tk},Yk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:OT},default:{bodyMapper:H,headersMapper:kT}},requestBody:dO,queryParameters:[W,lD,oO],urlParameters:[U],headerParameters:[mE,gE,G,K,J,vD,sO,cO,lO,uO,fO,pO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Tk};var Xk=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Qk)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},$k)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},eA)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},tA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},nA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},rA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},iA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},aA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},oA)}};const Zk=A_(ZS,!0),Qk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:AT},default:{bodyMapper:H,headersMapper:jT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,mO,hO,gO],isXML:!0,serializer:Zk},$k={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:MT},default:{bodyMapper:H,headersMapper:NT}},requestBody:vO,queryParameters:[W,bO],urlParameters:[U],headerParameters:[G,K,AE,J,Y,X,uD,pD,mD,hD,gD,_D,vD,FD,fO,pO,_O,yO,xO,SO,CO,wO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Zk},eA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:PT},default:{bodyMapper:H,headersMapper:FT}},queryParameters:[W,bO],urlParameters:[U],headerParameters:[G,K,q,AE,J,Y,X,uD,pD,mD,hD,gD,_D,vD,FD,SO,CO,wO,TO],isXML:!0,serializer:Zk},tA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:IT},default:{bodyMapper:H,headersMapper:LT}},queryParameters:[W,bO],urlParameters:[U],headerParameters:[G,K,q,AE,J,Y,X,pD,mD,hD,gD,_D,vD,FD,zD,BD,VD,HD,YD,XD,QD,xO,SO,CO,wO,EO,DO,OO,kO],isXML:!0,serializer:Zk},nA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:OC,headersMapper:RT},default:{bodyMapper:H,headersMapper:zT}},queryParameters:[W,SE,CE,cD,AO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,uD,gD,_D,vD],isXML:!0,serializer:Zk},rA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:OC,headersMapper:BT},default:{bodyMapper:H,headersMapper:VT}},queryParameters:[W,SE,CE,cD,AO,jO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,uD,gD,_D,vD,MO],isXML:!0,serializer:Zk},iA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:HT},default:{bodyMapper:H,headersMapper:UT}},queryParameters:[vE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,pD,mD,hD,gD,_D,vD,FD,hO],isXML:!0,serializer:Zk},aA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:WT},default:{bodyMapper:H,headersMapper:GT}},queryParameters:[vE,W],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,vD,gO,NO],isXML:!0,serializer:Zk},oA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:KT},default:{bodyMapper:H,headersMapper:qT}},queryParameters:[W,PO],urlParameters:[U],headerParameters:[G,K,q,Y,X,gD,_D,vD,WD],isXML:!0,serializer:Zk};var sA=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},lA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},uA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},dA)}seal(e){return this.client.sendOperationRequest({options:e},fA)}};const cA=A_(ZS,!0),lA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:JT},default:{bodyMapper:H,headersMapper:YT}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,GD,qD,FO],isXML:!0,serializer:cA},uA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:XT},default:{bodyMapper:H,headersMapper:ZT}},requestBody:vO,queryParameters:[W,IO],urlParameters:[U],headerParameters:[G,K,AE,J,Y,X,pD,mD,hD,gD,_D,vD,FD,fO,pO,_O,yO,LO,RO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:cA},dA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:QT},default:{bodyMapper:H,headersMapper:$T}},queryParameters:[W,IO],urlParameters:[U],headerParameters:[G,K,q,AE,J,Y,X,pD,mD,hD,gD,_D,vD,FD,zD,BD,VD,HD,YD,XD,QD,fO,EO,OO,LO,RO,zO],isXML:!0,serializer:cA},fA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:eE},default:{bodyMapper:H,headersMapper:tE}},queryParameters:[W,BO],urlParameters:[U],headerParameters:[G,K,q,J,Y,X,gD,_D,RO],isXML:!0,serializer:cA};var pA=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},hA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},gA)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},_A)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},vA)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},yA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},bA)}};const mA=A_(ZS,!0),hA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:nE},default:{bodyMapper:H,headersMapper:rE}},requestBody:vO,queryParameters:[W],urlParameters:[U],headerParameters:[G,K,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,fO,pO,_O,yO,VO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:mA},gA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:iE},default:{bodyMapper:H,headersMapper:aE}},queryParameters:[W],urlParameters:[U],headerParameters:[G,K,q,AE,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,FD,LD,zD,BD,VD,HD,UD,WD,GD,YD,XD,ZD,QD,fO,VO,HO],isXML:!0,serializer:mA},_A={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:oE},default:{bodyMapper:H,headersMapper:sE}},requestBody:vO,queryParameters:[W,UO,WO],urlParameters:[U],headerParameters:[G,K,AE,J,pD,mD,hD,FD,fO,pO,_O,yO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:mA},vA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:cE},default:{bodyMapper:H,headersMapper:lE}},queryParameters:[W,UO,WO],urlParameters:[U],headerParameters:[G,K,q,AE,J,pD,mD,hD,FD,zD,BD,VD,HD,YD,XD,QD,EO,OO,zO],isXML:!0,serializer:mA},yA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:uE},default:{bodyMapper:H,headersMapper:dE}},requestBody:GO,queryParameters:[W,KO],urlParameters:[U],headerParameters:[mE,gE,G,K,FE,J,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,fO,pO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:mA},bA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:EC,headersMapper:fE},default:{bodyMapper:H,headersMapper:pE}},queryParameters:[W,cD,KO,qO],urlParameters:[U],headerParameters:[G,K,q,J,vD],isXML:!0,serializer:mA};var xA=class extends oy{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new JO(this),this.container=new ik(this),this.blob=new wk(this),this.pageBlob=new Xk(this),this.appendBlob=new sA(this),this.blockBlob=new pA(this)}service;container;blob;pageBlob;appendBlob;blockBlob},SA=class extends xA{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function CA(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=DA(n),t.pathname=n,t.toString()}function wA(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function TA(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function EA(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=wA(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=TA(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=TA(e,`AccountName`),a=Buffer.from(TA(e,`AccountKey`),`base64`),!n){r=TA(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=TA(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=TA(e,`SharedAccessSignature`),r=TA(e,`AccountName`);if(r||=RA(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function DA(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function OA(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function kA(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function AA(e,t){return new URL(e).searchParams.get(t)??void 0}function jA(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function MA(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function NA(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function PA(e){return Tg?Buffer.from(e).toString(`base64`):btoa(e)}function FA(e,t){return e.length>42&&(e=e.slice(0,42)),PA(e+IA(t.toString(),48-e.length,`0`))}function IA(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function LA(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function RA(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:zA(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function zA(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&IS.includes(e.port)}function BA(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function VA(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function HA(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function UA(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function WA(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function GA(e){return e?e.scheme+` `+e.value:void 0}function*KA(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function $A(e,t,n){return ej(e,t,n).sasQueryParameters}function ej(e,t,n){let r=e.version?e.version:AS,i=t instanceof pS?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new OS(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?sj(e,a):oj(e,a):rj(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?aj(e,a):ij(e,a):nj(e,i);if(r>=`2015-04-05`){if(i!==void 0)return tj(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function tj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`+r(t)+i(t),o=T(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(H.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===H.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(H.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>lS(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Zx(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=Qx(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function ES(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. +`),e}}}}var DS=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return T(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const OS=`12.31.0`,kS=`2026-02-06`,AS=5e4,jS=4*1024*1024,MS={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},NS=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),PS=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),FS=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function IS(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var LS=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function RS(e,t={}){e||=new aS;let n=new LS([],t);return n._credential=e,n}function zS(e){let t=[US,HS,WS,GS,KS,qS,YS];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>JS(e));return{wrappedPolicies:cy(n),afterRetry:e}}}}function BS(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?ly(t):Kx(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${OS}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=Tv({...n,loggingOptions:{additionalAllowedHeaderNames:NS,additionalAllowedQueryParameters:PS,logger:Bx.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:Rx,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:zx,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(bS()),i.addPolicy(wS(n.retryOptions),{phase:`Retry`}),i.addPolicy(ES()),i.addPolicy(yS());let a=zS(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=VS(e);h_(o)?i.addPolicy(f_({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Uv}}),{phase:`Sign`}):o instanceof fS&&i.addPolicy(TS({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function VS(e){if(e._credential)return e._credential;let t=new aS;for(let n of e.factories)if(h_(n.credential))t=n.credential;else if(HS(n))return n;return t}function HS(e){return e instanceof fS?!0:e.constructor.name===`StorageSharedKeyCredential`}function US(e){return e instanceof aS?!0:e.constructor.name===`AnonymousCredential`}function WS(e){return h_(e.credential)}function GS(e){return e instanceof tS?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function KS(e){return e instanceof vS?!0:e.constructor.name===`StorageRetryPolicyFactory`}function qS(e){return e.constructor.name===`TelemetryPolicyFactory`}function JS(e){return e.constructor.name===`InjectorPolicyFactory`}function YS(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var XS=De({AccessPolicy:()=>hC,AppendBlobAppendBlockExceptionHeaders:()=>XT,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>QT,AppendBlobAppendBlockFromUrlHeaders:()=>ZT,AppendBlobAppendBlockHeaders:()=>YT,AppendBlobCreateExceptionHeaders:()=>JT,AppendBlobCreateHeaders:()=>qT,AppendBlobSealExceptionHeaders:()=>eE,AppendBlobSealHeaders:()=>$T,ArrowConfiguration:()=>FC,ArrowField:()=>IC,BlobAbortCopyFromURLExceptionHeaders:()=>vT,BlobAbortCopyFromURLHeaders:()=>_T,BlobAcquireLeaseExceptionHeaders:()=>nT,BlobAcquireLeaseHeaders:()=>tT,BlobBreakLeaseExceptionHeaders:()=>uT,BlobBreakLeaseHeaders:()=>lT,BlobChangeLeaseExceptionHeaders:()=>cT,BlobChangeLeaseHeaders:()=>sT,BlobCopyFromURLExceptionHeaders:()=>gT,BlobCopyFromURLHeaders:()=>hT,BlobCreateSnapshotExceptionHeaders:()=>fT,BlobCreateSnapshotHeaders:()=>dT,BlobDeleteExceptionHeaders:()=>Bw,BlobDeleteHeaders:()=>zw,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Xw,BlobDeleteImmutabilityPolicyHeaders:()=>Yw,BlobDownloadExceptionHeaders:()=>Iw,BlobDownloadHeaders:()=>Fw,BlobFlatListSegment:()=>_C,BlobGetAccountInfoExceptionHeaders:()=>ST,BlobGetAccountInfoHeaders:()=>xT,BlobGetPropertiesExceptionHeaders:()=>Rw,BlobGetPropertiesHeaders:()=>Lw,BlobGetTagsExceptionHeaders:()=>ET,BlobGetTagsHeaders:()=>TT,BlobHierarchyListSegment:()=>SC,BlobItemInternal:()=>vC,BlobName:()=>yC,BlobPrefix:()=>CC,BlobPropertiesInternal:()=>bC,BlobQueryExceptionHeaders:()=>wT,BlobQueryHeaders:()=>CT,BlobReleaseLeaseExceptionHeaders:()=>iT,BlobReleaseLeaseHeaders:()=>rT,BlobRenewLeaseExceptionHeaders:()=>oT,BlobRenewLeaseHeaders:()=>aT,BlobServiceProperties:()=>ZS,BlobServiceStatistics:()=>rC,BlobSetExpiryExceptionHeaders:()=>Ww,BlobSetExpiryHeaders:()=>Uw,BlobSetHttpHeadersExceptionHeaders:()=>Kw,BlobSetHttpHeadersHeaders:()=>Gw,BlobSetImmutabilityPolicyExceptionHeaders:()=>Jw,BlobSetImmutabilityPolicyHeaders:()=>qw,BlobSetLegalHoldExceptionHeaders:()=>Qw,BlobSetLegalHoldHeaders:()=>Zw,BlobSetMetadataExceptionHeaders:()=>eT,BlobSetMetadataHeaders:()=>$w,BlobSetTagsExceptionHeaders:()=>OT,BlobSetTagsHeaders:()=>DT,BlobSetTierExceptionHeaders:()=>bT,BlobSetTierHeaders:()=>yT,BlobStartCopyFromURLExceptionHeaders:()=>mT,BlobStartCopyFromURLHeaders:()=>pT,BlobTag:()=>pC,BlobTags:()=>fC,BlobUndeleteExceptionHeaders:()=>Hw,BlobUndeleteHeaders:()=>Vw,Block:()=>EC,BlockBlobCommitBlockListExceptionHeaders:()=>uE,BlockBlobCommitBlockListHeaders:()=>lE,BlockBlobGetBlockListExceptionHeaders:()=>fE,BlockBlobGetBlockListHeaders:()=>dE,BlockBlobPutBlobFromUrlExceptionHeaders:()=>iE,BlockBlobPutBlobFromUrlHeaders:()=>rE,BlockBlobStageBlockExceptionHeaders:()=>oE,BlockBlobStageBlockFromURLExceptionHeaders:()=>cE,BlockBlobStageBlockFromURLHeaders:()=>sE,BlockBlobStageBlockHeaders:()=>aE,BlockBlobUploadExceptionHeaders:()=>nE,BlockBlobUploadHeaders:()=>tE,BlockList:()=>TC,BlockLookupList:()=>wC,ClearRange:()=>kC,ContainerAcquireLeaseExceptionHeaders:()=>bw,ContainerAcquireLeaseHeaders:()=>yw,ContainerBreakLeaseExceptionHeaders:()=>Ew,ContainerBreakLeaseHeaders:()=>Tw,ContainerChangeLeaseExceptionHeaders:()=>Ow,ContainerChangeLeaseHeaders:()=>Dw,ContainerCreateExceptionHeaders:()=>ew,ContainerCreateHeaders:()=>$C,ContainerDeleteExceptionHeaders:()=>iw,ContainerDeleteHeaders:()=>rw,ContainerFilterBlobsExceptionHeaders:()=>vw,ContainerFilterBlobsHeaders:()=>_w,ContainerGetAccessPolicyExceptionHeaders:()=>cw,ContainerGetAccessPolicyHeaders:()=>sw,ContainerGetAccountInfoExceptionHeaders:()=>Pw,ContainerGetAccountInfoHeaders:()=>Nw,ContainerGetPropertiesExceptionHeaders:()=>nw,ContainerGetPropertiesHeaders:()=>tw,ContainerItem:()=>oC,ContainerListBlobFlatSegmentExceptionHeaders:()=>Aw,ContainerListBlobFlatSegmentHeaders:()=>kw,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Mw,ContainerListBlobHierarchySegmentHeaders:()=>jw,ContainerProperties:()=>sC,ContainerReleaseLeaseExceptionHeaders:()=>Sw,ContainerReleaseLeaseHeaders:()=>xw,ContainerRenameExceptionHeaders:()=>mw,ContainerRenameHeaders:()=>pw,ContainerRenewLeaseExceptionHeaders:()=>ww,ContainerRenewLeaseHeaders:()=>Cw,ContainerRestoreExceptionHeaders:()=>fw,ContainerRestoreHeaders:()=>dw,ContainerSetAccessPolicyExceptionHeaders:()=>uw,ContainerSetAccessPolicyHeaders:()=>lw,ContainerSetMetadataExceptionHeaders:()=>ow,ContainerSetMetadataHeaders:()=>aw,ContainerSubmitBatchExceptionHeaders:()=>gw,ContainerSubmitBatchHeaders:()=>hw,CorsRule:()=>tC,DelimitedTextConfiguration:()=>NC,FilterBlobItem:()=>dC,FilterBlobSegment:()=>uC,GeoReplication:()=>iC,JsonTextConfiguration:()=>PC,KeyInfo:()=>cC,ListBlobsFlatSegmentResponse:()=>gC,ListBlobsHierarchySegmentResponse:()=>xC,ListContainersSegmentResponse:()=>aC,Logging:()=>QS,Metrics:()=>eC,PageBlobClearPagesExceptionHeaders:()=>PT,PageBlobClearPagesHeaders:()=>NT,PageBlobCopyIncrementalExceptionHeaders:()=>KT,PageBlobCopyIncrementalHeaders:()=>GT,PageBlobCreateExceptionHeaders:()=>AT,PageBlobCreateHeaders:()=>kT,PageBlobGetPageRangesDiffExceptionHeaders:()=>BT,PageBlobGetPageRangesDiffHeaders:()=>zT,PageBlobGetPageRangesExceptionHeaders:()=>RT,PageBlobGetPageRangesHeaders:()=>LT,PageBlobResizeExceptionHeaders:()=>HT,PageBlobResizeHeaders:()=>VT,PageBlobUpdateSequenceNumberExceptionHeaders:()=>WT,PageBlobUpdateSequenceNumberHeaders:()=>UT,PageBlobUploadPagesExceptionHeaders:()=>MT,PageBlobUploadPagesFromURLExceptionHeaders:()=>IT,PageBlobUploadPagesFromURLHeaders:()=>FT,PageBlobUploadPagesHeaders:()=>jT,PageList:()=>DC,PageRange:()=>OC,QueryFormat:()=>MC,QueryRequest:()=>AC,QuerySerialization:()=>jC,RetentionPolicy:()=>$S,ServiceFilterBlobsExceptionHeaders:()=>QC,ServiceFilterBlobsHeaders:()=>ZC,ServiceGetAccountInfoExceptionHeaders:()=>JC,ServiceGetAccountInfoHeaders:()=>qC,ServiceGetPropertiesExceptionHeaders:()=>BC,ServiceGetPropertiesHeaders:()=>zC,ServiceGetStatisticsExceptionHeaders:()=>HC,ServiceGetStatisticsHeaders:()=>VC,ServiceGetUserDelegationKeyExceptionHeaders:()=>KC,ServiceGetUserDelegationKeyHeaders:()=>GC,ServiceListContainersSegmentExceptionHeaders:()=>WC,ServiceListContainersSegmentHeaders:()=>UC,ServiceSetPropertiesExceptionHeaders:()=>RC,ServiceSetPropertiesHeaders:()=>LC,ServiceSubmitBatchExceptionHeaders:()=>XC,ServiceSubmitBatchHeaders:()=>YC,SignedIdentifier:()=>mC,StaticWebsite:()=>nC,StorageError:()=>U,UserDelegationKey:()=>lC});const ZS={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},QS={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},$S={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},eC={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},tC={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},nC={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},U={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},rC={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},iC={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},aC={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},oC={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},sC={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},cC={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},lC={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},uC={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},dC={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},fC={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},pC={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},mC={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},hC={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},gC={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},_C={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},vC={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},yC={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},bC={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},xC={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},SC={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},CC={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},wC={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},TC={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},EC={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},DC={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},OC={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},kC={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},AC={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},jC={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},MC={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},NC={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},PC={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},FC={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},IC={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},LC={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RC={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cw={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},gw={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_w={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},vw={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yw={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},bw={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xw={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Sw={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Cw={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},ww={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Tw={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ew={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dw={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ow={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kw={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nw={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},Pw={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Fw={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},Iw={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Lw={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rw={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zw={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bw={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vw={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hw={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uw={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Ww={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Gw={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kw={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qw={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},Jw={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yw={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},Xw={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zw={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},Qw={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$w={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eT={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tT={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},nT={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rT={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},iT={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aT={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},oT={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sT={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},cT={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lT={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},uT={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dT={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fT={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pT={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mT={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},hT={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gT={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},_T={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vT={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yT={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bT={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xT={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},ST={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},CT={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},wT={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},TT={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ET={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DT={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OT={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kT={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AT={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jT={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MT={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NT={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PT={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FT={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IT={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},LT={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RT={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zT={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BT={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VT={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HT={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UT={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WT={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GT={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KT={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qT={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JT={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YT={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XT={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZT={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QT={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},$T={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},eE={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tE={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nE={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rE={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iE={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},aE={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oE={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sE={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cE={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},lE={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uE={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dE={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fE={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},mE={parameterPath:`blobServiceProperties`,mapper:ZS},hE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},W={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},gE={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},_E={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},G={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},K={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},q={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},J={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},vE={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},yE={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bE={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},xE={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},SE={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},CE={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},wE={parameterPath:`keyInfo`,mapper:cC},TE={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},EE={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},DE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},OE={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},kE={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},AE={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},jE={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ME={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},NE={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},PE={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},FE={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},IE={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},LE={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},RE={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Y={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},zE={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},BE={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},VE={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},HE={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},UE={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},WE={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},GE={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KE={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},qE={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},JE={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},YE={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},XE={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},ZE={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},QE={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},$E={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},eD={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},tD={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},nD={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},rD={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},iD={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},aD={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},oD={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},sD={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},cD={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},lD={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},uD={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},dD={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},fD={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},pD={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},mD={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},hD={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},gD={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},_D={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},vD={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},yD={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},bD={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},xD={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},SD={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},CD={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},wD={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},TD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},ED={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},DD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},OD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},kD={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},AD={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jD={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},MD={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},ND={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},PD={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},FD={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},ID={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LD={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},RD={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},zD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},BD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},VD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},HD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},UD={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},WD={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},GD={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},KD={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},qD={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},JD={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},YD={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},XD={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},ZD={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},QD={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},$D={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},eO={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},tO={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},nO={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rO={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},iO={parameterPath:[`options`,`queryRequest`],mapper:AC},aO={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},oO={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},cO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},lO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},uO={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},dO={parameterPath:[`options`,`tags`],mapper:fC},fO={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},pO={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},mO={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},hO={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},gO={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},_O={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},vO={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},yO={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},bO={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xO={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},SO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},CO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},wO={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},TO={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},EO={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},DO={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},OO={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},kO={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},AO={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jO={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},MO={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},NO={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},PO={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},FO={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},IO={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LO={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},RO={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},zO={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},BO={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},VO={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},HO={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},UO={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},WO={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},GO={parameterPath:`blocks`,mapper:wC},KO={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},qO={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var JO=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},XO)}getProperties(e){return this.client.sendOperationRequest({options:e},ZO)}getStatistics(e){return this.client.sendOperationRequest({options:e},QO)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},$O)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},ek)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},tk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},nk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},rk)}};const YO=k_(XS,!0),XO={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:LC},default:{bodyMapper:U,headersMapper:RC}},requestBody:mE,queryParameters:[gE,_E,G],urlParameters:[W],headerParameters:[pE,hE,K,q],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},ZO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:ZS,headersMapper:zC},default:{bodyMapper:U,headersMapper:BC}},queryParameters:[gE,_E,G],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:YO},QO={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:rC,headersMapper:VC},default:{bodyMapper:U,headersMapper:HC}},queryParameters:[gE,G,vE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:YO},$O={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:aC,headersMapper:UC},default:{bodyMapper:U,headersMapper:WC}},queryParameters:[G,yE,bE,xE,SE,CE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:YO},ek={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:lC,headersMapper:GC},default:{bodyMapper:U,headersMapper:KC}},requestBody:wE,queryParameters:[gE,G,TE],urlParameters:[W],headerParameters:[pE,hE,K,q],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},tk={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:qC},default:{bodyMapper:U,headersMapper:JC}},queryParameters:[_E,G,EE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:YO},nk={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:YC},default:{bodyMapper:U,headersMapper:XC}},requestBody:DE,queryParameters:[G,OE],urlParameters:[W],headerParameters:[hE,K,q,kE,AE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:YO},rk={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:uC,headersMapper:ZC},default:{bodyMapper:U,headersMapper:QC}},queryParameters:[G,xE,SE,jE,ME],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:YO};var ik=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},ok)}getProperties(e){return this.client.sendOperationRequest({options:e},sk)}delete(e){return this.client.sendOperationRequest({options:e},ck)}setMetadata(e){return this.client.sendOperationRequest({options:e},lk)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},uk)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},dk)}restore(e){return this.client.sendOperationRequest({options:e},fk)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},pk)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},mk)}filterBlobs(e){return this.client.sendOperationRequest({options:e},hk)}acquireLease(e){return this.client.sendOperationRequest({options:e},gk)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},_k)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},vk)}breakLease(e){return this.client.sendOperationRequest({options:e},yk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},bk)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},xk)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Sk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ck)}};const ak=k_(XS,!0),ok={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:$C},default:{bodyMapper:U,headersMapper:ew}},queryParameters:[G,NE],urlParameters:[W],headerParameters:[K,q,J,PE,FE,IE,LE],isXML:!0,serializer:ak},sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:tw},default:{bodyMapper:U,headersMapper:nw}},queryParameters:[G,NE],urlParameters:[W],headerParameters:[K,q,J,RE],isXML:!0,serializer:ak},ck={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:rw},default:{bodyMapper:U,headersMapper:iw}},queryParameters:[G,NE],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X],isXML:!0,serializer:ak},lk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:aw},default:{bodyMapper:U,headersMapper:ow}},queryParameters:[G,NE,zE],urlParameters:[W],headerParameters:[K,q,J,PE,RE,Y],isXML:!0,serializer:ak},uk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:sw},default:{bodyMapper:U,headersMapper:cw}},queryParameters:[G,NE,BE],urlParameters:[W],headerParameters:[K,q,J,RE],isXML:!0,serializer:ak},dk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:lw},default:{bodyMapper:U,headersMapper:uw}},requestBody:VE,queryParameters:[G,NE,BE],urlParameters:[W],headerParameters:[pE,hE,K,q,FE,RE,Y,X],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ak},fk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:dw},default:{bodyMapper:U,headersMapper:fw}},queryParameters:[G,NE,HE],urlParameters:[W],headerParameters:[K,q,J,UE,WE],isXML:!0,serializer:ak},pk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:pw},default:{bodyMapper:U,headersMapper:mw}},queryParameters:[G,NE,GE],urlParameters:[W],headerParameters:[K,q,J,KE,qE],isXML:!0,serializer:ak},mk={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:hw},default:{bodyMapper:U,headersMapper:gw}},requestBody:DE,queryParameters:[G,OE,NE],urlParameters:[W],headerParameters:[hE,K,q,kE,AE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ak},hk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:uC,headersMapper:_w},default:{bodyMapper:U,headersMapper:vw}},queryParameters:[G,xE,SE,jE,ME,NE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:ak},gk={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:yw},default:{bodyMapper:U,headersMapper:bw}},queryParameters:[G,NE,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,YE,XE,ZE],isXML:!0,serializer:ak},_k={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:xw},default:{bodyMapper:U,headersMapper:Sw}},queryParameters:[G,NE,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,QE,$E],isXML:!0,serializer:ak},vk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Cw},default:{bodyMapper:U,headersMapper:ww}},queryParameters:[G,NE,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,$E,eD],isXML:!0,serializer:ak},yk={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:Tw},default:{bodyMapper:U,headersMapper:Ew}},queryParameters:[G,NE,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,tD,nD],isXML:!0,serializer:ak},bk={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Dw},default:{bodyMapper:U,headersMapper:Ow}},queryParameters:[G,NE,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,$E,rD,iD],isXML:!0,serializer:ak},xk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:gC,headersMapper:kw},default:{bodyMapper:U,headersMapper:Aw}},queryParameters:[G,yE,bE,xE,SE,NE,aD,oD],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:ak},Sk={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:xC,headersMapper:jw},default:{bodyMapper:U,headersMapper:Mw}},queryParameters:[G,yE,bE,xE,SE,NE,aD,oD,sD],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:ak},Ck={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Nw},default:{bodyMapper:U,headersMapper:Pw}},queryParameters:[_E,G,EE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:ak};var wk=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Ek)}getProperties(e){return this.client.sendOperationRequest({options:e},Dk)}delete(e){return this.client.sendOperationRequest({options:e},Ok)}undelete(e){return this.client.sendOperationRequest({options:e},kk)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},Ak)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},jk)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Mk)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Nk)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Pk)}setMetadata(e){return this.client.sendOperationRequest({options:e},Fk)}acquireLease(e){return this.client.sendOperationRequest({options:e},Ik)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Lk)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Rk)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},zk)}breakLease(e){return this.client.sendOperationRequest({options:e},Bk)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Vk)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Hk)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Uk)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},Wk)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Gk)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Kk)}query(e){return this.client.sendOperationRequest({options:e},qk)}getTags(e){return this.client.sendOperationRequest({options:e},Jk)}setTags(e){return this.client.sendOperationRequest({options:e},Yk)}};const Tk=k_(XS,!0),Ek={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Fw},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Fw},default:{bodyMapper:U,headersMapper:Iw}},queryParameters:[G,cD,lD],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,uD,dD,fD,pD,mD,hD,gD,_D,vD],isXML:!0,serializer:Tk},Dk={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:Lw},default:{bodyMapper:U,headersMapper:Rw}},queryParameters:[G,cD,lD],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,pD,mD,hD,gD,_D,vD],isXML:!0,serializer:Tk},Ok={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:zw},default:{bodyMapper:U,headersMapper:Bw}},queryParameters:[G,cD,lD,bD],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,gD,_D,vD,yD],isXML:!0,serializer:Tk},kk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Vw},default:{bodyMapper:U,headersMapper:Hw}},queryParameters:[G,HE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:Tk},Ak={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Uw},default:{bodyMapper:U,headersMapper:Ww}},queryParameters:[G,xD],urlParameters:[W],headerParameters:[K,q,J,SD,CD],isXML:!0,serializer:Tk},jk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Gw},default:{bodyMapper:U,headersMapper:Kw}},queryParameters:[_E,G],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,gD,_D,vD,wD,TD,ED,DD,OD,kD],isXML:!0,serializer:Tk},Mk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:qw},default:{bodyMapper:U,headersMapper:Jw}},queryParameters:[G,cD,lD,AD],urlParameters:[W],headerParameters:[K,q,J,X,jD,MD],isXML:!0,serializer:Tk},Nk={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Yw},default:{bodyMapper:U,headersMapper:Xw}},queryParameters:[G,cD,lD,AD],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:Tk},Pk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Zw},default:{bodyMapper:U,headersMapper:Qw}},queryParameters:[G,cD,lD,ND],urlParameters:[W],headerParameters:[K,q,J,PD],isXML:!0,serializer:Tk},Fk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$w},default:{bodyMapper:U,headersMapper:eT}},queryParameters:[G,zE],urlParameters:[W],headerParameters:[K,q,J,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,FD],isXML:!0,serializer:Tk},Ik={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tT},default:{bodyMapper:U,headersMapper:nT}},queryParameters:[G,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,YE,XE,ZE,gD,_D,vD],isXML:!0,serializer:Tk},Lk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:rT},default:{bodyMapper:U,headersMapper:iT}},queryParameters:[G,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,QE,$E,gD,_D,vD],isXML:!0,serializer:Tk},Rk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:aT},default:{bodyMapper:U,headersMapper:oT}},queryParameters:[G,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,$E,eD,gD,_D,vD],isXML:!0,serializer:Tk},zk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:sT},default:{bodyMapper:U,headersMapper:cT}},queryParameters:[G,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,$E,rD,iD,gD,_D,vD],isXML:!0,serializer:Tk},Bk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:lT},default:{bodyMapper:U,headersMapper:uT}},queryParameters:[G,JE],urlParameters:[W],headerParameters:[K,q,J,Y,X,tD,nD,gD,_D,vD],isXML:!0,serializer:Tk},Vk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:dT},default:{bodyMapper:U,headersMapper:fT}},queryParameters:[G,ID],urlParameters:[W],headerParameters:[K,q,J,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,FD],isXML:!0,serializer:Tk},Hk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:pT},default:{bodyMapper:U,headersMapper:mT}},queryParameters:[G],urlParameters:[W],headerParameters:[K,q,J,PE,RE,Y,X,gD,_D,vD,jD,MD,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD],isXML:!0,serializer:Tk},Uk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:hT},default:{bodyMapper:U,headersMapper:gT}},queryParameters:[G],urlParameters:[W],headerParameters:[K,q,J,PE,RE,Y,X,gD,_D,vD,jD,MD,FD,LD,zD,BD,VD,HD,WD,GD,qD,JD,YD,XD,ZD,QD],isXML:!0,serializer:Tk},Wk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:_T},default:{bodyMapper:U,headersMapper:vT}},queryParameters:[G,$D,tO],urlParameters:[W],headerParameters:[K,q,J,RE,eO],isXML:!0,serializer:Tk},Gk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:yT},202:{headersMapper:yT},default:{bodyMapper:U,headersMapper:bT}},queryParameters:[G,cD,lD,nO],urlParameters:[W],headerParameters:[K,q,J,RE,vD,RD,rO],isXML:!0,serializer:Tk},Kk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:xT},default:{bodyMapper:U,headersMapper:ST}},queryParameters:[_E,G,EE],urlParameters:[W],headerParameters:[K,q,J],isXML:!0,serializer:Tk},qk={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CT},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CT},default:{bodyMapper:U,headersMapper:wT}},requestBody:iO,queryParameters:[G,cD,aO],urlParameters:[W],headerParameters:[pE,hE,K,q,RE,Y,X,pD,mD,hD,gD,_D,vD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Tk},Jk={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:fC,headersMapper:TT},default:{bodyMapper:U,headersMapper:ET}},queryParameters:[G,cD,lD,oO],urlParameters:[W],headerParameters:[K,q,J,RE,vD,sO,cO,lO,uO],isXML:!0,serializer:Tk},Yk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:DT},default:{bodyMapper:U,headersMapper:OT}},requestBody:dO,queryParameters:[G,lD,oO],urlParameters:[W],headerParameters:[pE,hE,K,q,RE,vD,sO,cO,lO,uO,fO,pO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Tk};var Xk=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Qk)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},$k)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},eA)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},tA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},nA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},rA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},iA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},aA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},oA)}};const Zk=k_(XS,!0),Qk={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:kT},default:{bodyMapper:U,headersMapper:AT}},queryParameters:[G],urlParameters:[W],headerParameters:[K,q,J,kE,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,mO,hO,gO],isXML:!0,serializer:Zk},$k={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:jT},default:{bodyMapper:U,headersMapper:MT}},requestBody:vO,queryParameters:[G,bO],urlParameters:[W],headerParameters:[K,q,kE,RE,Y,X,uD,pD,mD,hD,gD,_D,vD,FD,fO,pO,_O,yO,xO,SO,CO,wO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Zk},eA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:NT},default:{bodyMapper:U,headersMapper:PT}},queryParameters:[G,bO],urlParameters:[W],headerParameters:[K,q,J,kE,RE,Y,X,uD,pD,mD,hD,gD,_D,vD,FD,SO,CO,wO,TO],isXML:!0,serializer:Zk},tA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:FT},default:{bodyMapper:U,headersMapper:IT}},queryParameters:[G,bO],urlParameters:[W],headerParameters:[K,q,J,kE,RE,Y,X,pD,mD,hD,gD,_D,vD,FD,zD,BD,VD,HD,YD,XD,QD,xO,SO,CO,wO,EO,DO,OO,kO],isXML:!0,serializer:Zk},nA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:DC,headersMapper:LT},default:{bodyMapper:U,headersMapper:RT}},queryParameters:[G,xE,SE,cD,AO],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,uD,gD,_D,vD],isXML:!0,serializer:Zk},rA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:DC,headersMapper:zT},default:{bodyMapper:U,headersMapper:BT}},queryParameters:[G,xE,SE,cD,AO,jO],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,uD,gD,_D,vD,MO],isXML:!0,serializer:Zk},iA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:VT},default:{bodyMapper:U,headersMapper:HT}},queryParameters:[_E,G],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,pD,mD,hD,gD,_D,vD,FD,hO],isXML:!0,serializer:Zk},aA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:UT},default:{bodyMapper:U,headersMapper:WT}},queryParameters:[_E,G],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,gD,_D,vD,gO,NO],isXML:!0,serializer:Zk},oA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:GT},default:{bodyMapper:U,headersMapper:KT}},queryParameters:[G,PO],urlParameters:[W],headerParameters:[K,q,J,Y,X,gD,_D,vD,WD],isXML:!0,serializer:Zk};var sA=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},lA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},uA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},dA)}seal(e){return this.client.sendOperationRequest({options:e},fA)}};const cA=k_(XS,!0),lA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:qT},default:{bodyMapper:U,headersMapper:JT}},queryParameters:[G],urlParameters:[W],headerParameters:[K,q,J,kE,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,GD,qD,FO],isXML:!0,serializer:cA},uA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:YT},default:{bodyMapper:U,headersMapper:XT}},requestBody:vO,queryParameters:[G,IO],urlParameters:[W],headerParameters:[K,q,kE,RE,Y,X,pD,mD,hD,gD,_D,vD,FD,fO,pO,_O,yO,LO,RO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:cA},dA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:ZT},default:{bodyMapper:U,headersMapper:QT}},queryParameters:[G,IO],urlParameters:[W],headerParameters:[K,q,J,kE,RE,Y,X,pD,mD,hD,gD,_D,vD,FD,zD,BD,VD,HD,YD,XD,QD,fO,EO,OO,LO,RO,zO],isXML:!0,serializer:cA},fA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$T},default:{bodyMapper:U,headersMapper:eE}},queryParameters:[G,BO],urlParameters:[W],headerParameters:[K,q,J,RE,Y,X,gD,_D,RO],isXML:!0,serializer:cA};var pA=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},hA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},gA)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},_A)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},vA)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},yA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},bA)}};const mA=k_(XS,!0),hA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tE},default:{bodyMapper:U,headersMapper:nE}},requestBody:vO,queryParameters:[G],urlParameters:[W],headerParameters:[K,q,kE,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,fO,pO,_O,yO,VO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:mA},gA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:rE},default:{bodyMapper:U,headersMapper:iE}},queryParameters:[G],urlParameters:[W],headerParameters:[K,q,J,kE,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,FD,LD,zD,BD,VD,HD,UD,WD,GD,YD,XD,ZD,QD,fO,VO,HO],isXML:!0,serializer:mA},_A={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:aE},default:{bodyMapper:U,headersMapper:oE}},requestBody:vO,queryParameters:[G,UO,WO],urlParameters:[W],headerParameters:[K,q,kE,RE,pD,mD,hD,FD,fO,pO,_O,yO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:mA},vA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:sE},default:{bodyMapper:U,headersMapper:cE}},queryParameters:[G,UO,WO],urlParameters:[W],headerParameters:[K,q,J,kE,RE,pD,mD,hD,FD,zD,BD,VD,HD,YD,XD,QD,EO,OO,zO],isXML:!0,serializer:mA},yA={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:lE},default:{bodyMapper:U,headersMapper:uE}},requestBody:GO,queryParameters:[G,KO],urlParameters:[W],headerParameters:[pE,hE,K,q,PE,RE,Y,X,pD,mD,hD,gD,_D,vD,wD,TD,ED,DD,OD,kD,jD,MD,FD,LD,GD,qD,fO,pO],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:mA},bA={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:TC,headersMapper:dE},default:{bodyMapper:U,headersMapper:fE}},queryParameters:[G,cD,KO,qO],urlParameters:[W],headerParameters:[K,q,J,RE,vD],isXML:!0,serializer:mA};var xA=class extends ay{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new JO(this),this.container=new ik(this),this.blob=new wk(this),this.pageBlob=new Xk(this),this.appendBlob=new sA(this),this.blockBlob=new pA(this)}service;container;blob;pageBlob;appendBlob;blockBlob},SA=class extends xA{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function CA(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=DA(n),t.pathname=n,t.toString()}function wA(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function TA(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function EA(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=wA(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=TA(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=TA(e,`AccountName`),a=Buffer.from(TA(e,`AccountKey`),`base64`),!n){r=TA(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=TA(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=TA(e,`SharedAccessSignature`),r=TA(e,`AccountName`);if(r||=RA(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function DA(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function OA(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function kA(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function AA(e,t){return new URL(e).searchParams.get(t)??void 0}function jA(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function MA(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function NA(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function PA(e){return wg?Buffer.from(e).toString(`base64`):btoa(e)}function FA(e,t){return e.length>42&&(e=e.slice(0,42)),PA(e+IA(t.toString(),48-e.length,`0`))}function IA(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function LA(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function RA(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:zA(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function zA(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&FS.includes(e.port)}function BA(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function VA(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function HA(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function UA(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function WA(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function GA(e){return e?e.scheme+` `+e.value:void 0}function*KA(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function $A(e,t,n){return ej(e,t,n).sasQueryParameters}function ej(e,t,n){let r=e.version?e.version:kS,i=t instanceof fS?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new DS(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?sj(e,a):oj(e,a):rj(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?aj(e,a):ij(e,a):nj(e,i);if(r>=`2015-04-05`){if(i!==void 0)return tj(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function tj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` `),a=t.computeHMACSHA256(i);return{sasQueryParameters:new QA(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function nj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function rj(e,t){if(e=lj(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function ij(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function aj(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function oj(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function sj(e,t){if(e=lj(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?JA.parse(e.permissions.toString()).toString():YA.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?NA(e.startsOn,!1):``,e.expiresOn?NA(e.expiresOn,!1):``,cj(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?NA(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?NA(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?XA(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new QA(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function cj(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function lj(e){let t=e.version?e.version:AS;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var uj=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=wg(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},dj=class extends y{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new yg(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},fj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Tg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new dj(this.originalResponse.readableStreamBody,t,n,r,i)}};const pj=new Uint8Array([79,98,106,1]);var mj=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},hj;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(hj||={});var gj;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(gj||={});var _j=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case gj.NULL:case gj.BOOLEAN:case gj.INT:case gj.LONG:case gj.FLOAT:case gj.DOUBLE:case gj.BYTES:case gj.STRING:return new vj(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new bj(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case hj.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new Sj(r,t.name);case hj.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new yj(t.symbols);case hj.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new xj(e.fromSchema(t.values));case hj.ARRAY:case hj.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},vj=class extends _j{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case gj.NULL:return mj.readNull();case gj.BOOLEAN:return mj.readBoolean(e,t);case gj.INT:return mj.readInt(e,t);case gj.LONG:return mj.readLong(e,t);case gj.FLOAT:return mj.readFloat(e,t);case gj.DOUBLE:return mj.readDouble(e,t);case gj.BYTES:return mj.readBytes(e,t);case gj.STRING:return mj.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},yj=class extends _j{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await mj.readInt(e,t);return this._symbols[n]}},bj=class extends _j{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await mj.readInt(e,t);return this._types[n].read(e,t)}},xj=class extends _j{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return mj.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},Sj=class extends _j{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Cj(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await mj.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Cj(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await mj.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await mj.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},Tj=class{};const Ej=new yg(`Reading from the avro stream was aborted.`);var Dj=class extends Tj{_position;_readable;toUint8Array(e){return typeof e==`string`?A.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw Ej;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(Ej)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},Oj=class extends y{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new wj(new Dj(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},kj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Tg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new Oj(this.originalResponse.readableStreamBody,t)}},Aj;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(Aj||={});var jj;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(jj||={});function Mj(e){if(e!==void 0)return e}function Nj(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Pj;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Pj||={});function Fj(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var Ij=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},Lj=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},Rj=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new Lj(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Ij(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},zj=class extends Rj{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=Uj({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return xg(this.intervalInMs)}};const Bj=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Uj(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Uj(t)):(t.isCancelled=!0,Uj(t))},Vj=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return Uj(t)},Hj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function Uj(e){return{state:{...e},cancel:Bj,toString:Hj,update:Vj}}function Wj(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Gj;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(Gj||={});var Kj=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Gj.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new m}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=Gj.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function Jj(e,t){return new Promise((n,r)=>{let i=re.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const Yj=S.promisify(re.stat),Xj=re.createReadStream;var Zj=class e extends qA{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=AA(this.url,NS.Parameters.SNAPSHOT),this._versionId=AA(this.url,NS.Parameters.VERSIONID)}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(kA(this.url,NS.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new Qj(this.url,this.pipeline)}getBlockBlobClient(){return new $j(this.url,this.pipeline)}getPageBlobClient(){return new eM(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Tg?void 0:n.onProgress},range:e===0&&!t?void 0:Wj({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:WA(i.objectReplicationRules)};if(!Tg)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new fj(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Wj({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return Nj(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:WA(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:VA(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:HA({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new uj(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new zj({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:GA(t.sourceAuthorization),tier:Mj(t.tier),blobTagsString:BA(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(Mj(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=MS),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await Jj(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(zA(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:Mj(t.tier),blobTagsString:BA(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof pS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=$A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(MA(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof pS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return ej({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=$A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(MA(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return ej({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},Qj=class e extends Zj{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:BA(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:Wj({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:GA(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},$j=class e extends Zj{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(Nj(t.customerProvidedKey,this.isHttps),!Tg)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new kj(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:UA(t.inputTextConfiguration),outputSerialization:UA(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Mj(n.tier),blobTagsString:BA(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:GA(t.sourceAuthorization),tier:Mj(t.tier),blobTagsString:BA(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return Nj(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:Wj({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:GA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Mj(t.tier),blobTagsString:BA(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(Tg){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/jS),r<4194304&&(r=MS))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${jS}`);let s=[],c=wg(),l=0,u=new Kj(n.concurrency);for(let i=0;i{let u=FA(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await Yj(e)).size;return this.uploadSeekableInternal((t,n)=>()=>Xj(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=wg(),s=0,c=[];return await new Gx(e,t,n,async(e,t)=>{let n=FA(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},eM=class e extends Zj{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},LS(t))a=e,i=t;else if(Tg&&t instanceof pS||t instanceof oS||g_(t))a=e,r=n,i=zS(t,r);else if(!t&&typeof t!=`string`)a=e,i=zS(new oS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(Tg){let e=new pS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Pg(c.proxyUri),i=zS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=zS(new oS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(kA(this.url,NS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Mj(t.tier),blobTagsString:BA(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:Wj({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Nj(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,Wj({offset:t,count:r}),0,Wj({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:GA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Wj({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Fj(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Wj({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:Wj({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*KA(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Fj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:Wj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:Wj({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*KA(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Fj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:Wj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},tM=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},nM=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};nM.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var rM=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};rM.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var iM=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},aM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},oM=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function sM(e,t,n){return aM(this,void 0,void 0,function*(){let r=new Zj(e),i=r.getBlockBlobClient(),a=new oM(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),R(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new tM(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw zr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var cM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function lM(e){return e?e>=200&&e<300:!1}function uM(e){return e?e>=500:!0}function dM(e){return e?[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout].includes(e):!1}function fM(e){return cM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function pM(e,t,n){return cM(this,arguments,void 0,function*(e,t,n,r=2,i=Ep,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!uM(l)))return c;if(l&&(u=dM(l),o=`Cache service responded with ${l}`),R(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){R(`${e} - Error is not retryable`);break}yield fM(i),s++}throw Error(`${e} failed: ${o}`)})}function mM(e,t){return cM(this,arguments,void 0,function*(e,t,n=2,r=Ep){return yield pM(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof Vn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function hM(e,t){return cM(this,arguments,void 0,function*(e,t,n=2,r=Ep){return yield pM(e,t,e=>e.message.statusCode,n,r)})}var gM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function _M(e,t){return gM(this,void 0,void 0,function*(){yield _.promisify(ge.pipeline)(e.message,t)})}var vM=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Br(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function yM(e,t){return gM(this,void 0,void 0,function*(){let n=a.createWriteStream(t),r=new Un(`actions/cache`),i=yield hM(`downloadCache`,()=>gM(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Dp,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${Dp} ms`)}),yield _M(i,n);let o=i.message.headers[`content-length`];if(o){let e=parseInt(o),n=Fp(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else R(`Unable to validate download, no Content-Length header`)})}function bM(e,t,n){return gM(this,void 0,void 0,function*(){let r=yield a.promises.open(t,`w`),i=new Un(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield hM(`downloadCacheMetadata`,()=>gM(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;tgM(this,void 0,void 0,function*(){return yield xM(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new vM(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>gM(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function xM(e,t,n,r){return gM(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield wM(3e4,SM(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function SM(e,t,n,r){return gM(this,void 0,void 0,function*(){let i=yield hM(`downloadCachePart`,()=>gM(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function CM(e,t,n){return gM(this,void 0,void 0,function*(){let r=new $j(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)R(`Unable to determine content length, downloading file with http-client...`),yield yM(e,t);else{let e=Math.min(134217728,k.constants.MAX_LENGTH),o=new vM(i),s=a.openSync(t,`w`);try{o.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!o.isDone();){let l=o.segmentOffset+o.segmentSize,u=Math.min(e,i-l);o.nextSegment(u);let d=yield wM(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&a.writeFileSync(s,d)}}finally{o.stopDisplayTimer(),a.closeSync(s)}}})}const wM=(e,t)=>gM(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function TM(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Upload concurrency: ${t.uploadConcurrency}`),R(`Upload chunk size: ${t.uploadChunkSize}`),t}function EM(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Download concurrency: ${t.downloadConcurrency}`),R(`Request timeout (ms): ${t.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),R(`Lookup only: ${t.lookupOnly}`),t}function DM(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function OM(){return DM()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function kM(){let e=OM();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var AM=P(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),jM=P(((e,t)=>{t.exports={version:AM().version}}))();function MM(){return`@actions/cache-${jM.version}`}var NM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function PM(e){let t=kM();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return R(`Resource Url: ${n}`),n}function FM(e,t){return`${e};api-version=${t}`}function IM(){return{headers:{Accept:FM(`application/json`,`6.0-preview.1`)}}}function LM(){let e=new Kn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new Un(MM(),[e],IM())}function RM(e,t,n){return NM(this,void 0,void 0,function*(){let r=LM(),i=Up(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield mM(`getCacheEntry`,()=>NM(this,void 0,void 0,function*(){return r.getJson(PM(a))}));if(o.statusCode===204)return Lr()&&(yield zM(e[0],r,i)),null;if(!lM(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return jr(c),R(`Cache Result:`),R(JSON.stringify(s)),s})}function zM(e,t,n){return NM(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield mM(`listCache`,()=>NM(this,void 0,void 0,function*(){return t.getJson(PM(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){R(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])R(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function BM(e,t,n){return NM(this,void 0,void 0,function*(){let r=new ve(e),i=EM(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield CM(e,t,i):i.concurrentBlobDownloads?yield bM(e,t,i):yield yM(e,t):yield yM(e,t)})}function VM(e,t,n){return NM(this,void 0,void 0,function*(){let r=LM(),i={key:e,version:Up(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield mM(`reserveCache`,()=>NM(this,void 0,void 0,function*(){return r.postJson(PM(`caches`),i)}))})}function HM(e,t){return`bytes ${e}-${t}/*`}function UM(e,t,n,r,i){return NM(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${HM(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":HM(r,i)},o=yield hM(`uploadChunk (start: ${r}, end: ${i})`,()=>NM(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!lM(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WM(e,t,n,r){return NM(this,void 0,void 0,function*(){let i=Fp(n),o=PM(`caches/${t.toString()}`),s=a.openSync(n,`r`),c=TM(r),l=Hp(`uploadConcurrency`,c.uploadConcurrency),u=Hp(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];R(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>NM(this,void 0,void 0,function*(){for(;fa.createReadStream(n,{fd:s,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{a.closeSync(s)}})}function GM(e,t,n){return NM(this,void 0,void 0,function*(){let r={size:n};return yield mM(`commitCache`,()=>NM(this,void 0,void 0,function*(){return e.postJson(PM(`caches/${t.toString()}`),r)}))})}function KM(e,t,n,r){return NM(this,void 0,void 0,function*(){if(TM(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield sM(n,t,r)}else{let n=LM();R(`Upload cache`),yield WM(n,e,t,r),R(`Commiting cache`);let i=Fp(t);Br(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield GM(n,e,i);if(!lM(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Br(`Cache saved successfully`)}})}var qM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),JM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var uj=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=Cg(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},dj=class extends y{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new vg(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},fj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return wg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new dj(this.originalResponse.readableStreamBody,t,n,r,i)}};const pj=new Uint8Array([79,98,106,1]);var mj=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},hj;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(hj||={});var gj;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(gj||={});var _j=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case gj.NULL:case gj.BOOLEAN:case gj.INT:case gj.LONG:case gj.FLOAT:case gj.DOUBLE:case gj.BYTES:case gj.STRING:return new vj(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new bj(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case hj.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new Sj(r,t.name);case hj.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new yj(t.symbols);case hj.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new xj(e.fromSchema(t.values));case hj.ARRAY:case hj.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},vj=class extends _j{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case gj.NULL:return mj.readNull();case gj.BOOLEAN:return mj.readBoolean(e,t);case gj.INT:return mj.readInt(e,t);case gj.LONG:return mj.readLong(e,t);case gj.FLOAT:return mj.readFloat(e,t);case gj.DOUBLE:return mj.readDouble(e,t);case gj.BYTES:return mj.readBytes(e,t);case gj.STRING:return mj.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},yj=class extends _j{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await mj.readInt(e,t);return this._symbols[n]}},bj=class extends _j{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await mj.readInt(e,t);return this._types[n].read(e,t)}},xj=class extends _j{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return mj.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},Sj=class extends _j{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Cj(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await mj.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Cj(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await mj.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await mj.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},Tj=class{};const Ej=new vg(`Reading from the avro stream was aborted.`);var Dj=class extends Tj{_position;_readable;toUint8Array(e){return typeof e==`string`?A.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw Ej;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(Ej)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},Oj=class extends y{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new wj(new Dj(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},kj=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return wg?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new Oj(this.originalResponse.readableStreamBody,t)}},Aj;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(Aj||={});var jj;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(jj||={});function Mj(e){if(e!==void 0)return e}function Nj(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Pj;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Pj||={});function Fj(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var Ij=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},Lj=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},Rj=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new Lj(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Ij(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},zj=class extends Rj{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=Uj({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return bg(this.intervalInMs)}};const Bj=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Uj(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Uj(t)):(t.isCancelled=!0,Uj(t))},Vj=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return Uj(t)},Hj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function Uj(e){return{state:{...e},cancel:Bj,toString:Hj,update:Vj}}function Wj(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Gj;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(Gj||={});var Kj=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Gj.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new m}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=Gj.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function Jj(e,t){return new Promise((n,r)=>{let i=re.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const Yj=S.promisify(re.stat),Xj=re.createReadStream;var Zj=class e extends qA{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=AA(this.url,MS.Parameters.SNAPSHOT),this._versionId=AA(this.url,MS.Parameters.VERSIONID)}withSnapshot(t){return new e(kA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(kA(this.url,MS.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new Qj(this.url,this.pipeline)}getBlockBlobClient(){return new $j(this.url,this.pipeline)}getPageBlobClient(){return new eM(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:wg?void 0:n.onProgress},range:e===0&&!t?void 0:Wj({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:WA(i.objectReplicationRules)};if(!wg)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new fj(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Wj({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return Nj(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:WA(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:VA(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:HA({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new uj(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new zj({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:GA(t.sourceAuthorization),tier:Mj(t.tier),blobTagsString:BA(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(Mj(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=jS),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await Jj(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(zA(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:Mj(t.tier),blobTagsString:BA(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof fS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=$A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(MA(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof fS))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return ej({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=$A({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(MA(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return ej({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},Qj=class e extends Zj{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(kA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Nj(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:BA(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:Wj({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:GA(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},$j=class e extends Zj{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(kA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(Nj(t.customerProvidedKey,this.isHttps),!wg)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new kj(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:UA(t.inputTextConfiguration),outputSerialization:UA(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},Nj(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Mj(n.tier),blobTagsString:BA(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:GA(t.sourceAuthorization),tier:Mj(t.tier),blobTagsString:BA(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return Nj(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:Wj({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:GA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Mj(t.tier),blobTagsString:BA(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(wg){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/AS),r<4194304&&(r=jS))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${AS}`);let s=[],c=Cg(),l=0,u=new Kj(n.concurrency);for(let i=0;i{let u=FA(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await Yj(e)).size;return this.uploadSeekableInternal((t,n)=>()=>Xj(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=Cg(),s=0,c=[];return await new Wx(e,t,n,async(e,t)=>{let n=FA(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},eM=class e extends Zj{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},IS(t))a=e,i=t;else if(wg&&t instanceof fS||t instanceof aS||h_(t))a=e,r=n,i=RS(t,r);else if(!t&&typeof t!=`string`)a=e,i=RS(new aS,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=EA(e);if(c.kind===`AccountConnString`)if(wg){let e=new fS(c.accountName,c.accountKey);a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Ng(c.proxyUri),i=RS(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=OA(OA(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=RS(new aS,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(kA(this.url,MS.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},Nj(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Mj(t.tier),blobTagsString:BA(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},Nj(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:Wj({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Nj(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,Wj({offset:t,count:r}),0,Wj({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:GA(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Wj({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Fj(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Wj({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:Wj({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*KA(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Fj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:Wj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:Wj({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*KA(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Fj(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:Wj({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},tM=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},nM=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};nM.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var rM=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};rM.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var iM=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},aM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},oM=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);z(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function sM(e,t,n){return aM(this,void 0,void 0,function*(){let r=new Zj(e),i=r.getBlockBlobClient(),a=new oM(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),R(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new tM(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw zr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var cM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function lM(e){return e?e>=200&&e<300:!1}function uM(e){return e?e>=500:!0}function dM(e){return e?[Fn.BadGateway,Fn.ServiceUnavailable,Fn.GatewayTimeout].includes(e):!1}function fM(e){return cM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function pM(e,t,n){return cM(this,arguments,void 0,function*(e,t,n,r=2,i=Tp,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!uM(l)))return c;if(l&&(u=dM(l),o=`Cache service responded with ${l}`),R(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){R(`${e} - Error is not retryable`);break}yield fM(i),s++}throw Error(`${e} failed: ${o}`)})}function mM(e,t){return cM(this,arguments,void 0,function*(e,t,n=2,r=Tp){return yield pM(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof Vn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function hM(e,t){return cM(this,arguments,void 0,function*(e,t,n=2,r=Tp){return yield pM(e,t,e=>e.message.statusCode,n,r)})}var gM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function _M(e,t){return gM(this,void 0,void 0,function*(){yield _.promisify(ge.pipeline)(e.message,t)})}var vM=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);z(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function yM(e,t){return gM(this,void 0,void 0,function*(){let n=a.createWriteStream(t),r=new Un(`actions/cache`),i=yield hM(`downloadCache`,()=>gM(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Ep,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${Ep} ms`)}),yield _M(i,n);let o=i.message.headers[`content-length`];if(o){let e=parseInt(o),n=Pp(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else R(`Unable to validate download, no Content-Length header`)})}function bM(e,t,n){return gM(this,void 0,void 0,function*(){let r=yield a.promises.open(t,`w`),i=new Un(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield hM(`downloadCacheMetadata`,()=>gM(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;tgM(this,void 0,void 0,function*(){return yield xM(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new vM(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>gM(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function xM(e,t,n,r){return gM(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield wM(3e4,SM(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function SM(e,t,n,r){return gM(this,void 0,void 0,function*(){let i=yield hM(`downloadCachePart`,()=>gM(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function CM(e,t,n){return gM(this,void 0,void 0,function*(){let r=new $j(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)R(`Unable to determine content length, downloading file with http-client...`),yield yM(e,t);else{let e=Math.min(134217728,k.constants.MAX_LENGTH),o=new vM(i),s=a.openSync(t,`w`);try{o.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!o.isDone();){let l=o.segmentOffset+o.segmentSize,u=Math.min(e,i-l);o.nextSegment(u);let d=yield wM(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&a.writeFileSync(s,d)}}finally{o.stopDisplayTimer(),a.closeSync(s)}}})}const wM=(e,t)=>gM(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function TM(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Upload concurrency: ${t.uploadConcurrency}`),R(`Upload chunk size: ${t.uploadChunkSize}`),t}function EM(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),R(`Use Azure SDK: ${t.useAzureSdk}`),R(`Download concurrency: ${t.downloadConcurrency}`),R(`Request timeout (ms): ${t.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),R(`Lookup only: ${t.lookupOnly}`),t}function DM(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function OM(){return DM()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function kM(){let e=OM();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var AM=P(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),jM=P(((e,t)=>{t.exports={version:AM().version}}))();function MM(){return`@actions/cache-${jM.version}`}var NM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function PM(e){let t=kM();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return R(`Resource Url: ${n}`),n}function FM(e,t){return`${e};api-version=${t}`}function IM(){return{headers:{Accept:FM(`application/json`,`6.0-preview.1`)}}}function LM(){let e=new Kn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new Un(MM(),[e],IM())}function RM(e,t,n){return NM(this,void 0,void 0,function*(){let r=LM(),i=Hp(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield mM(`getCacheEntry`,()=>NM(this,void 0,void 0,function*(){return r.getJson(PM(a))}));if(o.statusCode===204)return Lr()&&(yield zM(e[0],r,i)),null;if(!lM(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return jr(c),R(`Cache Result:`),R(JSON.stringify(s)),s})}function zM(e,t,n){return NM(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield mM(`listCache`,()=>NM(this,void 0,void 0,function*(){return t.getJson(PM(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){R(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])R(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function BM(e,t,n){return NM(this,void 0,void 0,function*(){let r=new ve(e),i=EM(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield CM(e,t,i):i.concurrentBlobDownloads?yield bM(e,t,i):yield yM(e,t):yield yM(e,t)})}function VM(e,t,n){return NM(this,void 0,void 0,function*(){let r=LM(),i={key:e,version:Hp(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield mM(`reserveCache`,()=>NM(this,void 0,void 0,function*(){return r.postJson(PM(`caches`),i)}))})}function HM(e,t){return`bytes ${e}-${t}/*`}function UM(e,t,n,r,i){return NM(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${HM(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":HM(r,i)},o=yield hM(`uploadChunk (start: ${r}, end: ${i})`,()=>NM(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!lM(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WM(e,t,n,r){return NM(this,void 0,void 0,function*(){let i=Pp(n),o=PM(`caches/${t.toString()}`),s=a.openSync(n,`r`),c=TM(r),l=Vp(`uploadConcurrency`,c.uploadConcurrency),u=Vp(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];R(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>NM(this,void 0,void 0,function*(){for(;fa.createReadStream(n,{fd:s,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{a.closeSync(s)}})}function GM(e,t,n){return NM(this,void 0,void 0,function*(){let r={size:n};return yield mM(`commitCache`,()=>NM(this,void 0,void 0,function*(){return e.postJson(PM(`caches/${t.toString()}`),r)}))})}function KM(e,t,n,r){return NM(this,void 0,void 0,function*(){if(TM(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield sM(n,t,r)}else{let n=LM();R(`Upload cache`),yield WM(n,e,t,r),R(`Commiting cache`);let i=Pp(t);z(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield GM(n,e,i);if(!lM(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);z(`Cache saved successfully`)}})}var qM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),JM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),YM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),XM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),ZM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),QM=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=ZM(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!==0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),$M=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=XM(),n=QM(),r=ZM(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),eN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),tN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=QM(),n=ZM(),r=eN(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),nN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),rN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),iN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,`__esModule`,{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=iN();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),oN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),sN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionTypeCheck=void 0;let t=aN(),n=oN();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),cN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionLongConvert=void 0;let t=aN();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),lN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonReader=void 0;let t=qM(),n=JM(),r=aN(),i=QM(),a=eN(),o=cN();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),uN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionJsonWriter=void 0;let t=JM(),n=QM(),r=aN(),i=eN();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),dN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionScalarDefault=void 0;let t=aN(),n=cN(),r=QM();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),fN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryReader=void 0;let t=XM(),n=aN(),r=cN(),i=dN();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReflectionBinaryWriter=void 0;let t=XM(),n=aN(),r=eN(),i=QM();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionCreate=void 0;let t=dN(),n=rN();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),hN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.reflectionEquals=void 0;let t=aN();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageType=void 0;let t=rN(),n=aN(),r=sN(),i=lN(),a=uN(),o=fN(),s=pN(),c=mN(),l=hN(),u=qM(),d=nN(),f=gN(),p=tN(),m=$M(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),vN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containsMessageType=void 0;let t=rN();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),yN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),bN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=qM();Object.defineProperty(e,`typeofJsonValue`,{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,`isJsonObject`,{enumerable:!0,get:function(){return t.isJsonObject}});var n=JM();Object.defineProperty(e,`base64decode`,{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,`base64encode`,{enumerable:!0,get:function(){return n.base64encode}});var r=YM();Object.defineProperty(e,`utf8read`,{enumerable:!0,get:function(){return r.utf8read}});var i=XM();Object.defineProperty(e,`WireType`,{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,`mergeBinaryOptions`,{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,`UnknownFieldHandler`,{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=$M();Object.defineProperty(e,`BinaryReader`,{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,`binaryReadOptions`,{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=tN();Object.defineProperty(e,`BinaryWriter`,{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,`binaryWriteOptions`,{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=QM();Object.defineProperty(e,`PbLong`,{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,`PbULong`,{enumerable:!0,get:function(){return s.PbULong}});var c=nN();Object.defineProperty(e,`jsonReadOptions`,{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,`jsonWriteOptions`,{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,`mergeJsonOptions`,{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=rN();Object.defineProperty(e,`MESSAGE_TYPE`,{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=_N();Object.defineProperty(e,`MessageType`,{enumerable:!0,get:function(){return u.MessageType}});var d=aN();Object.defineProperty(e,`ScalarType`,{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,`LongType`,{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,`RepeatType`,{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,`normalizeFieldInfo`,{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,`readFieldOptions`,{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,`readFieldOption`,{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,`readMessageOption`,{enumerable:!0,get:function(){return d.readMessageOption}});var f=sN();Object.defineProperty(e,`ReflectionTypeCheck`,{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=mN();Object.defineProperty(e,`reflectionCreate`,{enumerable:!0,get:function(){return p.reflectionCreate}});var m=dN();Object.defineProperty(e,`reflectionScalarDefault`,{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=hN();Object.defineProperty(e,`reflectionMergePartial`,{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=gN();Object.defineProperty(e,`reflectionEquals`,{enumerable:!0,get:function(){return g.reflectionEquals}});var _=fN();Object.defineProperty(e,`ReflectionBinaryReader`,{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=pN();Object.defineProperty(e,`ReflectionBinaryWriter`,{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=lN();Object.defineProperty(e,`ReflectionJsonReader`,{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=uN();Object.defineProperty(e,`ReflectionJsonWriter`,{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=vN();Object.defineProperty(e,`containsMessageType`,{enumerable:!0,get:function(){return x.containsMessageType}});var S=oN();Object.defineProperty(e,`isOneofGroup`,{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,`setOneofValue`,{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,`getOneofValue`,{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,`clearOneofValue`,{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,`getSelectedOneofValue`,{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=yN();Object.defineProperty(e,`listEnumValues`,{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,`listEnumNames`,{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,`listEnumNumbers`,{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,`isEnumObject`,{enumerable:!0,get:function(){return C.isEnumObject}});var w=iN();Object.defineProperty(e,`lowerCamelCase`,{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=eN();Object.defineProperty(e,`assert`,{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,`assertNever`,{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,`assertInt32`,{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,`assertUInt32`,{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,`assertFloat32`,{enumerable:!0,get:function(){return T.assertFloat32}})})),xN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=bN();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),SN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceType=void 0;let t=xN();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),CN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` -`)}}})),wN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeRpcOptions=void 0;let t=bN();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),TN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),EN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcOutputStreamController=void 0;let t=TN(),n=bN();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),DN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),ON=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),kN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),AN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),jN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTransport=void 0;let n=CN(),r=bN(),i=EN(),a=wN(),o=DN(),s=ON(),c=kN(),l=AN();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),MN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=bN();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),NN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),PN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=SN();Object.defineProperty(e,`ServiceType`,{enumerable:!0,get:function(){return t.ServiceType}});var n=xN();Object.defineProperty(e,`readMethodOptions`,{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,`readMethodOption`,{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,`readServiceOption`,{enumerable:!0,get:function(){return n.readServiceOption}});var r=CN();Object.defineProperty(e,`RpcError`,{enumerable:!0,get:function(){return r.RpcError}});var i=wN();Object.defineProperty(e,`mergeRpcOptions`,{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=EN();Object.defineProperty(e,`RpcOutputStreamController`,{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=jN();Object.defineProperty(e,`TestTransport`,{enumerable:!0,get:function(){return o.TestTransport}});var s=TN();Object.defineProperty(e,`Deferred`,{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,`DeferredState`,{enumerable:!0,get:function(){return s.DeferredState}});var c=AN();Object.defineProperty(e,`DuplexStreamingCall`,{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=kN();Object.defineProperty(e,`ClientStreamingCall`,{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=ON();Object.defineProperty(e,`ServerStreamingCall`,{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=DN();Object.defineProperty(e,`UnaryCall`,{enumerable:!0,get:function(){return d.UnaryCall}});var f=MN();Object.defineProperty(e,`stackIntercept`,{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,`stackDuplexStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,`stackClientStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,`stackServerStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,`stackUnaryInterceptors`,{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=NN();Object.defineProperty(e,`ServerCallContextController`,{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=bN();const FN=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posRN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=zN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>BN.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=VN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>HN.fromJson(e,{ignoreUnknownFields:!0}))}};function WN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(jr(t),jr(encodeURIComponent(t)))}catch(t){R(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function GN(e){if(typeof e!=`object`||!e){R(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&WN(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&WN(e.signed_download_url)}var KN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},qN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Wp();this.baseUrl=kM(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new Un(e,[new Kn(i)])}request(e,t,n,r){return KN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;R(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>KN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return KN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&zr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new iM(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&R(`Raw Body: ${r}`),e instanceof rM||e instanceof iM)throw e;if(nM.isNetworkErrorCode(e?.code))throw new nM(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Br(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Fn.BadGateway,Fn.GatewayTimeout,Fn.InternalServerError,Fn.ServiceUnavailable].includes(e):!1}sleep(e){return KN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function JN(e){return new UN(new qN(MM(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var YN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const XN=process.platform===`win32`;function ZN(){return YN(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Vp(),t=kp;if(e)return{path:e,type:Tp.GNU};if(s(t))return{path:t,type:Tp.BSD};break}case`darwin`:{let e=yield yr(`gtar`,!1);return e?{path:e,type:Tp.GNU}:{path:yield yr(`tar`,!0),type:Tp.BSD}}default:break}return{path:yield yr(`tar`,!0),type:Tp.GNU}})}function QN(e,t,n){return YN(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=Bp(t),o=`cache.tar`,s=eP(),c=e.type===Tp.BSD&&t!==wp.Gzip&&XN;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--files-from`,jp);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`);break}if(e.type===Tp.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function $N(e,t){return YN(this,arguments,void 0,function*(e,t,n=``){let r,i=yield ZN(),a=yield QN(i,e,t,n),o=t===`create`?yield nP(i,e):yield tP(i,e,n),s=i.type===Tp.BSD&&e!==wp.Gzip&&XN;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function eP(){return process.env.GITHUB_WORKSPACE??process.cwd()}function tP(e,t,n){return YN(this,void 0,void 0,function*(){let r=e.type===Tp.BSD&&t!==wp.Gzip&&XN;switch(t){case wp.Zstd:return r?[`zstd -d --long=30 --force -o`,Ap,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,XN?`"zstd -d --long=30"`:`unzstd --long=30`];case wp.ZstdWithoutLong:return r?[`zstd -d --force -o`,Ap,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,XN?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function nP(e,t){return YN(this,void 0,void 0,function*(){let n=Bp(t),r=e.type===Tp.BSD&&t!==wp.Gzip&&XN;switch(t){case wp.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),Ap]:[`--use-compress-program`,XN?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case wp.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),Ap]:[`--use-compress-program`,XN?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function rP(e,t){return YN(this,void 0,void 0,function*(){for(let n of e)try{yield Dr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function iP(e,t){return YN(this,void 0,void 0,function*(){yield rP(yield $N(t,`list`,e))})}function aP(e,t){return YN(this,void 0,void 0,function*(){yield vr(eP()),yield rP(yield $N(t,`extract`,e))})}function oP(e,t,n){return YN(this,void 0,void 0,function*(){l(u.join(e,jp),t.join(` -`)),yield rP(yield $N(n,`create`),e)})}var sP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},cP=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},lP=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},uP=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function dP(e){if(!e||e.length===0)throw new cP(`Path Validation Error: At least one directory or file path is required`)}function fP(e){if(e.length>512)throw new cP(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new cP(`Key Validation Error: ${e} cannot contain commas.`)}function pP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=OM();switch(R(`Cache service version: ${a}`),dP(e),a){case`v2`:return yield hP(e,t,n,r,i);default:return yield mP(e,t,n,r,i)}})}function mP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new cP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)fP(e);let o=yield zp(),s=``;try{let t=yield RM(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Br(`Lookup only - skipping download`),t.cacheKey;s=u.join(yield Pp(),Bp(o)),R(`Archive Path: ${s}`),yield BM(t.archiveLocation,s,r),Lr()&&(yield iP(s,o));let n=Fp(s);return Br(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield aP(s,o),Br(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===cP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{yield Lp(s)}catch(e){R(`Failed to delete archive: ${e}`)}}})}function hP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new cP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)fP(e);let o=``;try{let s=JN(),c=yield zp(),l={key:t,restoreKeys:n,version:Up(e,c,i)},d=yield s.GetCacheEntryDownloadURL(l);if(!d.ok){R(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===d.matchedKey?Br(`Cache hit for: ${d.matchedKey}`):Br(`Cache hit for restore-key: ${d.matchedKey}`),r?.lookupOnly)return Br(`Lookup only - skipping download`),d.matchedKey;o=u.join(yield Pp(),Bp(c)),R(`Archive path: ${o}`),R(`Starting download of archive to: ${o}`),yield BM(d.signedDownloadUrl,o,r);let f=Fp(o);return Br(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),Lr()&&(yield iP(o,c)),yield aP(o,c),Br(`Cache restored successfully`),d.matchedKey}catch(e){let t=e;if(t.name===cP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Lp(o))}catch(e){R(`Failed to delete archive: ${e}`)}}})}function gP(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){let i=OM();switch(R(`Cache service version: ${i}`),dP(e),fP(t),i){case`v2`:return yield vP(e,t,n,r);default:return yield _P(e,t,n,r)}})}function _P(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield zp(),a=-1,o=yield Ip(e);if(R(`Cache Paths:`),R(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Pp(),c=u.join(s,Bp(i));R(`Archive Path: ${c}`);try{yield oP(s,o,i),Lr()&&(yield iP(c,i));let l=Fp(c);if(R(`File Size: ${l}`),l>10737418240&&!DM())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);R(`Reserving Cache`);let u=yield VM(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new lP(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);R(`Saving Cache (ID: ${a})`),yield KM(a,c,``,n)}catch(e){let t=e;if(t.name===cP.name)throw e;t.name===lP.name?Br(`Failed to save: ${t.message}`):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Lp(c)}catch(e){R(`Failed to delete archive: ${e}`)}}return a})}function vP(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield zp(),a=JN(),o=-1,s=yield Ip(e);if(R(`Cache Paths:`),R(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Pp(),l=u.join(c,Bp(i));R(`Archive Path: ${l}`);try{yield oP(c,s,i),Lr()&&(yield iP(l,i));let u=Fp(l);R(`File Size: ${u}`),n.archiveSizeBytes=u,R(`Reserving Cache`);let d=Up(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&zr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw R(`Failed to reserve cache: ${e}`),new lP(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${l}`),yield KM(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(R(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new uP(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===cP.name)throw e;t.name===lP.name?Br(`Failed to save: ${t.message}`):t.name===uP.name?zr(t.message):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Lp(l)}catch(e){R(`Failed to delete archive: ${e}`)}}return o})}function yP(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,R(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,R(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,R(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,R(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,R(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const bP=process.platform===`win32`;function xP(e){if(e=EP(e),bP&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=u.dirname(e);return bP&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=EP(t)),t}function SP(e,t){if(h(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),h(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),CP(t))return t;if(bP){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(TP(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return h(CP(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||bP&&e.endsWith(`\\`)||(e+=u.sep),e+t}function CP(e){return h(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=TP(e),bP?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function wP(e){return h(e,`isRooted parameter 'itemPath' must not be empty`),e=TP(e),bP?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function TP(e){return e||=``,bP?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function EP(e){return e?(e=TP(e),!e.endsWith(u.sep)||e===u.sep||bP&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var DP;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(DP||={});const OP=process.platform===`win32`;function kP(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=OP?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=OP?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=xP(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=xP(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function AP(e,t){let n=DP.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function jP(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const MP=(e,t,n)=>{let r=e instanceof RegExp?NP(e,n):e,i=t instanceof RegExp?NP(t,n):t,a=r!==null&&i!=null&&PP(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},NP=(e,t)=>{let n=t.match(e);return n?n[0]:null},PP=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},FP=`\0SLASH`+Math.random()+`\0`,IP=`\0OPEN`+Math.random()+`\0`,LP=`\0CLOSE`+Math.random()+`\0`,RP=`\0COMMA`+Math.random()+`\0`,zP=`\0PERIOD`+Math.random()+`\0`,BP=new RegExp(FP,`g`),VP=new RegExp(IP,`g`),HP=new RegExp(LP,`g`),UP=new RegExp(RP,`g`),WP=new RegExp(zP,`g`),GP=/\\\\/g,KP=/\\{/g,qP=/\\}/g,JP=/\\,/g,YP=/\\\./g;function XP(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ZP(e){return e.replace(GP,FP).replace(KP,IP).replace(qP,LP).replace(JP,RP).replace(YP,zP)}function QP(e){return e.replace(BP,`\\`).replace(VP,`{`).replace(HP,`}`).replace(UP,`,`).replace(WP,`.`)}function $P(e){if(!e)return[``];let t=[],n=MP(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=$P(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function eF(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),aF(ZP(e),n,!0).map(QP)}function tF(e){return`{`+e+`}`}function nF(e){return/^-?0\d/.test(e)}function rF(e,t){return e<=t}function iF(e,t){return e>=t}function aF(e,t,n){let r=[],i=MP(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?aF(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+LP+i.post,aF(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=$P(i.body),d.length===1&&d[0]!==void 0&&(d=aF(d[0],t,!1).map(tF),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=XP(d[0]),t=XP(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(XP(d[2])),1):1,i=rF;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},sF={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},cF=e=>e.replace(/[[\]\\-]/g,`\\$&`),lF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),uF=e=>e.join(``),dF=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push(cF(d)+`-`+cF(t)):t===d&&r.push(cF(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(cF(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(cF(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var pF;const mF=new Set([`!`,`?`,`+`,`*`,`@`]),hF=e=>mF.has(e),gF=e=>hF(e.type),_F=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),vF=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),yF=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),bF=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),xF=`(?!\\.)`,SF=new Set([`[`,`.`]),CF=new Set([`..`,`.`]),wF=new Set(`().*{}+?[]^$\\!`),TF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),EF=`[^/]`,DF=EF+`*?`,OF=EF+`+?`;let kF=0;var AF=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++kF;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?pF.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&CF.has(this.#r[0]))){let n=SF,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?xF:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,fF(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,fF(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?xF:``)+OF;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?xF:``)+DF+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,fF(i),this.#t=!!this.#t,this.#n]}#x(){if(gF(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),MF=(e,t,n={})=>(oF(t),!n.nocomment&&t.charAt(0)===`#`?!1:new oI(t,n).match(e)),NF=/^\*+([^+@!?*[(]*)$/,PF=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),FF=e=>t=>t.endsWith(e),IF=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),LF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),RF=/^\*+\.\*+$/,zF=e=>!e.startsWith(`.`)&&e.includes(`.`),BF=e=>e!==`.`&&e!==`..`&&e.includes(`.`),VF=/^\.\*+$/,HF=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),UF=/^\*+$/,WF=e=>e.length!==0&&!e.startsWith(`.`),GF=e=>e.length!==0&&e!==`.`&&e!==`..`,KF=/^\?+([^+@!?*[(]*)?$/,qF=([e,t=``])=>{let n=ZF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},JF=([e,t=``])=>{let n=QF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},YF=([e,t=``])=>{let n=QF([e]);return t?e=>n(e)&&e.endsWith(t):n},XF=([e,t=``])=>{let n=ZF([e]);return t?e=>n(e)&&e.endsWith(t):n},ZF=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},QF=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},$F=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,eI={win32:{sep:`\\`},posix:{sep:`/`}};MF.sep=$F===`win32`?eI.win32.sep:eI.posix.sep;const tI=Symbol(`globstar **`);MF.GLOBSTAR=tI,MF.filter=(e,t={})=>n=>MF(n,e,t);const nI=(e,t={})=>Object.assign({},e,t);MF.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return MF;let t=MF;return Object.assign((n,r,i={})=>t(n,r,nI(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,nI(e,n))}static defaults(n){return t.defaults(nI(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,nI(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,nI(e,r))}},unescape:(n,r={})=>t.unescape(n,nI(e,r)),escape:(n,r={})=>t.escape(n,nI(e,r)),filter:(n,r={})=>t.filter(n,nI(e,r)),defaults:n=>t.defaults(nI(e,n)),makeRe:(n,r={})=>t.makeRe(n,nI(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,nI(e,r)),match:(n,r,i={})=>t.match(n,r,nI(e,i)),sep:t.sep,GLOBSTAR:tI})};const rI=(e,t={})=>(oF(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:eF(e,{max:t.braceExpandMax}));MF.braceExpand=rI,MF.makeRe=(e,t={})=>new oI(e,t).makeRe(),MF.match=(e,t,n={})=>{let r=new oI(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const iI=/[?*]|[+@!]\(.*?\)|\[|\]/,aI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var oI=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){oF(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||$F,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!iI.test(e[2]))&&!iI.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(tI)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(tI,i),o=t.lastIndexOf(tI),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?aI(e):e===tI?tI:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==tI||a===tI||(a===void 0?i!==void 0&&i!==tI?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==tI&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=tI))});let i=t.filter(e=>e!==tI);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return MF.defaults(e).Minimatch}};MF.AST=AF,MF.Minimatch=oI,MF.escape=jF,MF.unescape=fF;const sI=process.platform===`win32`;var cI=class{constructor(e){if(this.segments=[],typeof e==`string`)if(h(e,`Parameter 'itemPath' must not be empty`),e=EP(e),!wP(e))this.segments=e.split(u.sep);else{let t=e,n=xP(t);for(;n!==t;){let e=u.basename(t);this.segments.unshift(e),t=n,n=xP(t)}this.segments.unshift(t)}else{h(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new cI(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),lI?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:lI,nocomment:!0,noext:!0,nonegate:!0};a=lI?a.replace(/\\/g,`/`):a,this.minimatch=new oI(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=TP(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=EP(e),this.minimatch.match(e)?this.trailingSeparator?DP.Directory:DP.All:DP.None}partialMatch(e){return e=EP(e),xP(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(lI?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(lI?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new cI(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!wP(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=TP(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(CP(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(lI&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=SP(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(lI&&(n===`\\`||n.match(/^\\[^\\]/))){let t=SP(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=SP(e.globEscape(process.cwd()),n);return TP(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},dI=class{constructor(e,t){this.path=e,this.level=t}},fI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},pI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},mI=function(e){return this instanceof mI?(this.v=e,this):new mI(e)},hI=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof mI?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const gI=process.platform===`win32`;var _I=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=yP(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return fI(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=pI(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return hI(this,arguments,function*(){let t=yP(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new uI(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of kP(n)){R(`Search path '${e}'`);try{yield mI(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new dI(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=AP(n,o.path),c=!!s||jP(n,o.path);if(!s&&!c)continue;let l=yield mI(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&DP.Directory&&t.matchDirectories)yield yield mI(o.path);else if(!c)continue;let e=o.level+1,n=(yield mI(a.promises.readdir(o.path))).map(t=>new dI(u.join(o.path,t),e));r.push(...n.reverse())}else s&DP.File&&(yield yield mI(o.path))}})}static create(t,n){return fI(this,void 0,void 0,function*(){let r=new e(n);gI&&(t=t.replace(/\r\n/g,` +`)}}})),wN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeRpcOptions=void 0;let t=bN();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),TN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),EN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RpcOutputStreamController=void 0;let t=TN(),n=bN();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),DN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),ON=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),kN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),AN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),jN=P((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTransport=void 0;let n=CN(),r=bN(),i=EN(),a=wN(),o=DN(),s=ON(),c=kN(),l=AN();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),MN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=bN();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),NN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),PN=P((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=SN();Object.defineProperty(e,`ServiceType`,{enumerable:!0,get:function(){return t.ServiceType}});var n=xN();Object.defineProperty(e,`readMethodOptions`,{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,`readMethodOption`,{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,`readServiceOption`,{enumerable:!0,get:function(){return n.readServiceOption}});var r=CN();Object.defineProperty(e,`RpcError`,{enumerable:!0,get:function(){return r.RpcError}});var i=wN();Object.defineProperty(e,`mergeRpcOptions`,{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=EN();Object.defineProperty(e,`RpcOutputStreamController`,{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=jN();Object.defineProperty(e,`TestTransport`,{enumerable:!0,get:function(){return o.TestTransport}});var s=TN();Object.defineProperty(e,`Deferred`,{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,`DeferredState`,{enumerable:!0,get:function(){return s.DeferredState}});var c=AN();Object.defineProperty(e,`DuplexStreamingCall`,{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=kN();Object.defineProperty(e,`ClientStreamingCall`,{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=ON();Object.defineProperty(e,`ServerStreamingCall`,{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=DN();Object.defineProperty(e,`UnaryCall`,{enumerable:!0,get:function(){return d.UnaryCall}});var f=MN();Object.defineProperty(e,`stackIntercept`,{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,`stackDuplexStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,`stackClientStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,`stackServerStreamingInterceptors`,{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,`stackUnaryInterceptors`,{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=NN();Object.defineProperty(e,`ServerCallContextController`,{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=bN();const FN=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posFN}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posIN},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posRN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=zN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>BN.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=VN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>HN.fromJson(e,{ignoreUnknownFields:!0}))}};function WN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(jr(t),jr(encodeURIComponent(t)))}catch(t){R(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function GN(e){if(typeof e!=`object`||!e){R(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&WN(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&WN(e.signed_download_url)}var KN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},qN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Up();this.baseUrl=kM(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new Un(e,[new Kn(i)])}request(e,t,n,r){return KN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;R(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>KN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return KN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&zr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new iM(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&R(`Raw Body: ${r}`),e instanceof rM||e instanceof iM)throw e;if(nM.isNetworkErrorCode(e?.code))throw new nM(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);z(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Fn.BadGateway,Fn.GatewayTimeout,Fn.InternalServerError,Fn.ServiceUnavailable].includes(e):!1}sleep(e){return KN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function JN(e){return new UN(new qN(MM(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var YN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const XN=process.platform===`win32`;function ZN(){return YN(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Bp(),t=Op;if(e)return{path:e,type:wp.GNU};if(s(t))return{path:t,type:wp.BSD};break}case`darwin`:{let e=yield yr(`gtar`,!1);return e?{path:e,type:wp.GNU}:{path:yield yr(`tar`,!0),type:wp.BSD}}default:break}return{path:yield yr(`tar`,!0),type:wp.GNU}})}function QN(e,t,n){return YN(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=zp(t),o=`cache.tar`,s=eP(),c=e.type===wp.BSD&&t!==Cp.Gzip&&XN;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`),`--files-from`,Ap);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${u.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${u.sep}`,`g`),`/`),`-P`);break}if(e.type===wp.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function $N(e,t){return YN(this,arguments,void 0,function*(e,t,n=``){let r,i=yield ZN(),a=yield QN(i,e,t,n),o=t===`create`?yield nP(i,e):yield tP(i,e,n),s=i.type===wp.BSD&&e!==Cp.Gzip&&XN;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function eP(){return process.env.GITHUB_WORKSPACE??process.cwd()}function tP(e,t,n){return YN(this,void 0,void 0,function*(){let r=e.type===wp.BSD&&t!==Cp.Gzip&&XN;switch(t){case Cp.Zstd:return r?[`zstd -d --long=30 --force -o`,kp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,XN?`"zstd -d --long=30"`:`unzstd --long=30`];case Cp.ZstdWithoutLong:return r?[`zstd -d --force -o`,kp,n.replace(RegExp(`\\${u.sep}`,`g`),`/`)]:[`--use-compress-program`,XN?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function nP(e,t){return YN(this,void 0,void 0,function*(){let n=zp(t),r=e.type===wp.BSD&&t!==Cp.Gzip&&XN;switch(t){case Cp.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),kp]:[`--use-compress-program`,XN?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case Cp.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${u.sep}`,`g`),`/`),kp]:[`--use-compress-program`,XN?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function rP(e,t){return YN(this,void 0,void 0,function*(){for(let n of e)try{yield Dr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function iP(e,t){return YN(this,void 0,void 0,function*(){yield rP(yield $N(t,`list`,e))})}function aP(e,t){return YN(this,void 0,void 0,function*(){yield vr(eP()),yield rP(yield $N(t,`extract`,e))})}function oP(e,t,n){return YN(this,void 0,void 0,function*(){l(u.join(e,Ap),t.join(` +`)),yield rP(yield $N(n,`create`),e)})}var sP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},cP=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},lP=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},uP=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function dP(e){if(!e||e.length===0)throw new cP(`Path Validation Error: At least one directory or file path is required`)}function fP(e){if(e.length>512)throw new cP(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new cP(`Key Validation Error: ${e} cannot contain commas.`)}function pP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=OM();switch(R(`Cache service version: ${a}`),dP(e),a){case`v2`:return yield hP(e,t,n,r,i);default:return yield mP(e,t,n,r,i)}})}function mP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new cP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)fP(e);let o=yield Rp(),s=``;try{let t=yield RM(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return z(`Lookup only - skipping download`),t.cacheKey;s=u.join(yield Np(),zp(o)),R(`Archive Path: ${s}`),yield BM(t.archiveLocation,s,r),Lr()&&(yield iP(s,o));let n=Pp(s);return z(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield aP(s,o),z(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===cP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{yield Ip(s)}catch(e){R(`Failed to delete archive: ${e}`)}}})}function hP(e,t,n,r){return sP(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(R(`Resolved Keys:`),R(JSON.stringify(a)),a.length>10)throw new cP(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)fP(e);let o=``;try{let s=JN(),c=yield Rp(),l={key:t,restoreKeys:n,version:Hp(e,c,i)},d=yield s.GetCacheEntryDownloadURL(l);if(!d.ok){R(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===d.matchedKey?z(`Cache hit for: ${d.matchedKey}`):z(`Cache hit for restore-key: ${d.matchedKey}`),r?.lookupOnly)return z(`Lookup only - skipping download`),d.matchedKey;o=u.join(yield Np(),zp(c)),R(`Archive path: ${o}`),R(`Starting download of archive to: ${o}`),yield BM(d.signedDownloadUrl,o,r);let f=Pp(o);return z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),Lr()&&(yield iP(o,c)),yield aP(o,c),z(`Cache restored successfully`),d.matchedKey}catch(e){let t=e;if(t.name===cP.name)throw e;t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to restore: ${e.message}`):zr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Ip(o))}catch(e){R(`Failed to delete archive: ${e}`)}}})}function gP(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){let i=OM();switch(R(`Cache service version: ${i}`),dP(e),fP(t),i){case`v2`:return yield vP(e,t,n,r);default:return yield _P(e,t,n,r)}})}function _P(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Rp(),a=-1,o=yield Fp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Np(),c=u.join(s,zp(i));R(`Archive Path: ${c}`);try{yield oP(s,o,i),Lr()&&(yield iP(c,i));let l=Pp(c);if(R(`File Size: ${l}`),l>10737418240&&!DM())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);R(`Reserving Cache`);let u=yield VM(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new lP(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);R(`Saving Cache (ID: ${a})`),yield KM(a,c,``,n)}catch(e){let t=e;if(t.name===cP.name)throw e;t.name===lP.name?z(`Failed to save: ${t.message}`):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Ip(c)}catch(e){R(`Failed to delete archive: ${e}`)}}return a})}function vP(e,t,n){return sP(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Rp(),a=JN(),o=-1,s=yield Fp(e);if(R(`Cache Paths:`),R(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Np(),l=u.join(c,zp(i));R(`Archive Path: ${l}`);try{yield oP(c,s,i),Lr()&&(yield iP(l,i));let u=Pp(l);R(`File Size: ${u}`),n.archiveSizeBytes=u,R(`Reserving Cache`);let d=Hp(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&zr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw R(`Failed to reserve cache: ${e}`),new lP(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${l}`),yield KM(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(R(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new uP(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===cP.name)throw e;t.name===lP.name?z(`Failed to save: ${t.message}`):t.name===uP.name?zr(t.message):t instanceof Vn&&typeof t.statusCode==`number`&&t.statusCode>=500?Rr(`Failed to save: ${t.message}`):zr(`Failed to save: ${t.message}`)}finally{try{yield Ip(l)}catch(e){R(`Failed to delete archive: ${e}`)}}return o})}function yP(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,R(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,R(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,R(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,R(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,R(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const bP=process.platform===`win32`;function xP(e){if(e=EP(e),bP&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=u.dirname(e);return bP&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=EP(t)),t}function SP(e,t){if(h(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),h(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),CP(t))return t;if(bP){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(TP(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return h(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return h(CP(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||bP&&e.endsWith(`\\`)||(e+=u.sep),e+t}function CP(e){return h(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=TP(e),bP?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function wP(e){return h(e,`isRooted parameter 'itemPath' must not be empty`),e=TP(e),bP?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function TP(e){return e||=``,bP?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function EP(e){return e?(e=TP(e),!e.endsWith(u.sep)||e===u.sep||bP&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var DP;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(DP||={});const OP=process.platform===`win32`;function kP(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=OP?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=OP?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=xP(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=xP(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function AP(e,t){let n=DP.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function jP(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const MP=(e,t,n)=>{let r=e instanceof RegExp?NP(e,n):e,i=t instanceof RegExp?NP(t,n):t,a=r!==null&&i!=null&&PP(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},NP=(e,t)=>{let n=t.match(e);return n?n[0]:null},PP=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},FP=`\0SLASH`+Math.random()+`\0`,IP=`\0OPEN`+Math.random()+`\0`,LP=`\0CLOSE`+Math.random()+`\0`,RP=`\0COMMA`+Math.random()+`\0`,zP=`\0PERIOD`+Math.random()+`\0`,BP=new RegExp(FP,`g`),VP=new RegExp(IP,`g`),HP=new RegExp(LP,`g`),UP=new RegExp(RP,`g`),WP=new RegExp(zP,`g`),GP=/\\\\/g,KP=/\\{/g,qP=/\\}/g,JP=/\\,/g,YP=/\\\./g;function XP(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ZP(e){return e.replace(GP,FP).replace(KP,IP).replace(qP,LP).replace(JP,RP).replace(YP,zP)}function QP(e){return e.replace(BP,`\\`).replace(VP,`{`).replace(HP,`}`).replace(UP,`,`).replace(WP,`.`)}function $P(e){if(!e)return[``];let t=[],n=MP(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=$P(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function eF(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),aF(ZP(e),n,!0).map(QP)}function tF(e){return`{`+e+`}`}function nF(e){return/^-?0\d/.test(e)}function rF(e,t){return e<=t}function iF(e,t){return e>=t}function aF(e,t,n){let r=[],i=MP(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?aF(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+LP+i.post,aF(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=$P(i.body),d.length===1&&d[0]!==void 0&&(d=aF(d[0],t,!1).map(tF),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=XP(d[0]),t=XP(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(XP(d[2])),1):1,i=rF;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},sF={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},cF=e=>e.replace(/[[\]\\-]/g,`\\$&`),lF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),uF=e=>e.join(``),dF=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push(cF(d)+`-`+cF(t)):t===d&&r.push(cF(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(cF(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(cF(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var pF;const mF=new Set([`!`,`?`,`+`,`*`,`@`]),hF=e=>mF.has(e),gF=e=>hF(e.type),_F=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),vF=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),yF=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),bF=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),xF=`(?!\\.)`,SF=new Set([`[`,`.`]),CF=new Set([`..`,`.`]),wF=new Set(`().*{}+?[]^$\\!`),TF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),EF=`[^/]`,DF=EF+`*?`,OF=EF+`+?`;let kF=0;var AF=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++kF;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?pF.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&CF.has(this.#r[0]))){let n=SF,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?xF:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,fF(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,fF(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?xF:``)+OF;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?xF:``)+DF+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,fF(i),this.#t=!!this.#t,this.#n]}#x(){if(gF(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),MF=(e,t,n={})=>(oF(t),!n.nocomment&&t.charAt(0)===`#`?!1:new oI(t,n).match(e)),NF=/^\*+([^+@!?*[(]*)$/,PF=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),FF=e=>t=>t.endsWith(e),IF=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),LF=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),RF=/^\*+\.\*+$/,zF=e=>!e.startsWith(`.`)&&e.includes(`.`),BF=e=>e!==`.`&&e!==`..`&&e.includes(`.`),VF=/^\.\*+$/,HF=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),UF=/^\*+$/,WF=e=>e.length!==0&&!e.startsWith(`.`),GF=e=>e.length!==0&&e!==`.`&&e!==`..`,KF=/^\?+([^+@!?*[(]*)?$/,qF=([e,t=``])=>{let n=ZF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},JF=([e,t=``])=>{let n=QF([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},YF=([e,t=``])=>{let n=QF([e]);return t?e=>n(e)&&e.endsWith(t):n},XF=([e,t=``])=>{let n=ZF([e]);return t?e=>n(e)&&e.endsWith(t):n},ZF=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},QF=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},$F=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,eI={win32:{sep:`\\`},posix:{sep:`/`}};MF.sep=$F===`win32`?eI.win32.sep:eI.posix.sep;const tI=Symbol(`globstar **`);MF.GLOBSTAR=tI,MF.filter=(e,t={})=>n=>MF(n,e,t);const nI=(e,t={})=>Object.assign({},e,t);MF.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return MF;let t=MF;return Object.assign((n,r,i={})=>t(n,r,nI(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,nI(e,n))}static defaults(n){return t.defaults(nI(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,nI(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,nI(e,r))}},unescape:(n,r={})=>t.unescape(n,nI(e,r)),escape:(n,r={})=>t.escape(n,nI(e,r)),filter:(n,r={})=>t.filter(n,nI(e,r)),defaults:n=>t.defaults(nI(e,n)),makeRe:(n,r={})=>t.makeRe(n,nI(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,nI(e,r)),match:(n,r,i={})=>t.match(n,r,nI(e,i)),sep:t.sep,GLOBSTAR:tI})};const rI=(e,t={})=>(oF(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:eF(e,{max:t.braceExpandMax}));MF.braceExpand=rI,MF.makeRe=(e,t={})=>new oI(e,t).makeRe(),MF.match=(e,t,n={})=>{let r=new oI(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const iI=/[?*]|[+@!]\(.*?\)|\[|\]/,aI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var oI=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){oF(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||$F,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!iI.test(e[2]))&&!iI.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(tI)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(tI,i),o=t.lastIndexOf(tI),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?aI(e):e===tI?tI:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==tI||a===tI||(a===void 0?i!==void 0&&i!==tI?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==tI&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=tI))});let i=t.filter(e=>e!==tI);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return MF.defaults(e).Minimatch}};MF.AST=AF,MF.Minimatch=oI,MF.escape=jF,MF.unescape=fF;const sI=process.platform===`win32`;var cI=class{constructor(e){if(this.segments=[],typeof e==`string`)if(h(e,`Parameter 'itemPath' must not be empty`),e=EP(e),!wP(e))this.segments=e.split(u.sep);else{let t=e,n=xP(t);for(;n!==t;){let e=u.basename(t);this.segments.unshift(e),t=n,n=xP(t)}this.segments.unshift(t)}else{h(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new cI(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),lI?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:lI,nocomment:!0,noext:!0,nonegate:!0};a=lI?a.replace(/\\/g,`/`):a,this.minimatch=new oI(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=TP(e),!e.endsWith(u.sep)&&this.isImplicitPattern===!1&&(e=`${e}${u.sep}`)):e=EP(e),this.minimatch.match(e)?this.trailingSeparator?DP.Directory:DP.All:DP.None}partialMatch(e){return e=EP(e),xP(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(lI?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(lI?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(n,r){h(n,`pattern cannot be empty`);let i=new cI(n).segments.map(t=>e.getLiteral(t));if(h(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${n}'. Relative pathing '.' and '..' is not allowed.`),h(!wP(n)||i[0],`Invalid pattern '${n}'. Root segment must not contain globs.`),n=TP(n),n===`.`||n.startsWith(`.${u.sep}`))n=e.globEscape(process.cwd())+n.substr(1);else if(n===`~`||n.startsWith(`~${u.sep}`))r||=t.homedir(),h(r,`Unable to determine HOME directory`),h(CP(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),n=e.globEscape(r)+n.substr(1);else if(lI&&(n.match(/^[A-Z]:$/i)||n.match(/^[A-Z]:[^\\]/i))){let t=SP(`C:\\dummy-root`,n.substr(0,2));n.length>2&&!t.endsWith(`\\`)&&(t+=`\\`),n=e.globEscape(t)+n.substr(2)}else if(lI&&(n===`\\`||n.match(/^\\[^\\]/))){let t=SP(`C:\\dummy-root`,`\\`);t.endsWith(`\\`)||(t+=`\\`),n=e.globEscape(t)+n.substr(1)}else n=SP(e.globEscape(process.cwd()),n);return TP(n)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},dI=class{constructor(e,t){this.path=e,this.level=t}},fI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},pI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},mI=function(e){return this instanceof mI?(this.v=e,this):new mI(e)},hI=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof mI?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const gI=process.platform===`win32`;var _I=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=yP(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return fI(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=pI(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return hI(this,arguments,function*(){let t=yP(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new uI(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of kP(n)){R(`Search path '${e}'`);try{yield mI(a.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new dI(e,1))}let i=[];for(;r.length;){let o=r.pop(),s=AP(n,o.path),c=!!s||jP(n,o.path);if(!s&&!c)continue;let l=yield mI(e.stat(o,t,i));if(l&&!(t.excludeHiddenFiles&&u.basename(o.path).match(/^\./)))if(l.isDirectory()){if(s&DP.Directory&&t.matchDirectories)yield yield mI(o.path);else if(!c)continue;let e=o.level+1,n=(yield mI(a.promises.readdir(o.path))).map(t=>new dI(u.join(o.path,t),e));r.push(...n.reverse())}else s&DP.File&&(yield yield mI(o.path))}})}static create(t,n){return fI(this,void 0,void 0,function*(){let r=new e(n);gI&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new uI(e));return r.searchPaths.push(...kP(r.patterns)),r})}static stat(e,t,n){return fI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},vI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},yI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function bI(e,t){return vI(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?Br:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=yI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var xI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function SI(e,t){return xI(this,void 0,void 0,function*(){return yield _I.create(e,t)})}function CI(e){return xI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),bI(yield SI(e,{followSymbolicLinks:i}),t,r)})}async function wI(e){let t=Ad(e),n=Nd(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}Br(`Using lock file: ${n.path}`);let r=M(n.path);Br(`Resolving dependency cache directory in: ${r}`);let i=await Fd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Ur(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await CI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Ur(`CACHE_PRIMARY_KEY`,c);let u=await pP(i,c,l);u?(Br(`Cache restored from key: ${u}`),Ur(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(Br(`Cache not found`),Fr(`cache-hit`,!1))}async function TI(){let e=Wr(`CACHE_PRIMARY_KEY`),t=Wr(`CACHE_MATCHED_KEY`),n=Wr(`CACHE_PATHS`);if(!e){Br(`No cache key found. Skipping cache save.`);return}if(!n){Br(`No cache paths found. Skipping cache save.`);return}if(e===t){Br(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){Br(`Empty cache paths. Skipping cache save.`);return}try{if(await gP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}Br(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function EI(e,t){let n=kd(e,t||Od()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?kI(r):i===`package.json`?jI(r):DI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),Br(`Resolved Node.js version '${a}' from ${e}`),a}function DI(e){for(let t of e.split(` +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new uI(e));return r.searchPaths.push(...kP(r.patterns)),r})}static stat(e,t,n){return fI(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield a.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){R(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield a.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield a.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){R(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},vI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},yI=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function bI(e,t){return vI(this,arguments,void 0,function*(e,t,n=!1){var r,o,s,c;let l=n?z:R,d=!1,f=t||(process.env.GITHUB_WORKSPACE??process.cwd()),p=i.createHash(`sha256`),m=0;try{for(var h=!0,g=yI(e.globGenerator()),v;v=yield g.next(),r=v.done,!r;h=!0){c=v.value,h=!1;let e=c;if(l(e),!e.startsWith(`${f}${u.sep}`)){l(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(a.statSync(e).isDirectory()){l(`Skip directory '${e}'.`);continue}let t=i.createHash(`sha256`);yield _.promisify(ge.pipeline)(a.createReadStream(e),t),p.write(t.digest()),m++,d||=!0}}catch(e){o={error:e}}finally{try{!h&&!r&&(s=g.return)&&(yield s.call(g))}finally{if(o)throw o.error}}return p.end(),d?(l(`Found ${m} files to hash.`),p.digest(`hex`)):(l(`No matches found for glob`),``)})}var xI=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function SI(e,t){return xI(this,void 0,void 0,function*(){return yield _I.create(e,t)})}function CI(e){return xI(this,arguments,void 0,function*(e,t=``,n,r=!1){let i=!0;return n&&typeof n.followSymbolicLinks==`boolean`&&(i=n.followSymbolicLinks),bI(yield SI(e,{followSymbolicLinks:i}),t,r)})}async function wI(e){let t=kd(e),n=Md(e.cacheDependencyPath,t);if(!n){zr(e.cacheDependencyPath?`No lock file found for cache-dependency-path: ${e.cacheDependencyPath}. Skipping cache restore.`:`No lock file found in project directory: ${t}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}z(`Using lock file: ${n.path}`);let r=M(n.path);z(`Resolving dependency cache directory in: ${r}`);let i=await Pd(n.type,r);if(!i.length){zr(`No cache directories found for ${n.type} in ${r}. Skipping cache restore.`),Fr(`cache-hit`,!1);return}R(`Cache paths: ${i.join(`, `)}`),Hr(`CACHE_PATHS`,JSON.stringify(i));let a=process.env.RUNNER_OS||he(),o=pe(),s=await CI(n.path);if(!s)throw Error(`Failed to generate hash for lock file: ${n.path}`);let c=`vite-plus-${a}-${o}-${n.type}-${s}`,l=[`vite-plus-${a}-${o}-${n.type}-`,`vite-plus-${a}-${o}-`];R(`Primary key: ${c}`),R(`Restore keys: ${l.join(`, `)}`),Hr(`CACHE_PRIMARY_KEY`,c);let u=await pP(i,c,l);u?(z(`Cache restored from key: ${u}`),Hr(`CACHE_MATCHED_KEY`,u),Fr(`cache-hit`,!0)):(z(`Cache not found`),Fr(`cache-hit`,!1))}async function TI(){let e=Ur(`CACHE_PRIMARY_KEY`),t=Ur(`CACHE_MATCHED_KEY`),n=Ur(`CACHE_PATHS`);if(!e){z(`No cache key found. Skipping cache save.`);return}if(!n){z(`No cache paths found. Skipping cache save.`);return}if(e===t){z(`Cache hit on primary key "${e}". Skipping save.`);return}let r=JSON.parse(n);if(!r.length){z(`Empty cache paths. Skipping cache save.`);return}try{if(await gP(r,e)===-1){zr(`Cache save failed or was skipped.`);return}z(`Cache saved with key: ${e}`)}catch(e){zr(`Failed to save cache: ${String(e)}`)}}function EI(e,t){let n=Od(e,t||Dd()),r;try{r=se(n,`utf-8`)}catch{throw Error(`node-version-file not found: ${n}`)}let i=j(n),a;if(a=i===`.tool-versions`?kI(r):i===`package.json`?jI(r):DI(r),!a)throw Error(`No Node.js version found in ${e}`);return a=a.replace(/^v/i,``),z(`Resolved Node.js version '${a}' from ${e}`),a}function DI(e){for(let t of e.split(` `)){let e=(t.includes(`#`)?t.slice(0,t.indexOf(`#`)):t).trim();if(e)return OI(e)}}function OI(e){let t=e.toLowerCase();return t===`node`||t===`stable`?`latest`:e}function kI(e){for(let t of e.split(` -`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),Br(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}Br(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Ur(`IS_POST`,`true`);let t=Ad(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Vd(e),n&&(Br(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;e.sfw&&e.runInstall.length>0&&!Gd()&&(zr(`sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`),r=!1),r&&e.runInstall.length>0&&await Yd(),e.runInstall.length>0&&await Qd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();Br(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Ur(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=Td();Wr(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file +`)){let e=t.trim();if(!e||e.startsWith(`#`))continue;let[n,...r]=e.split(/\s+/);if(!(n!==`nodejs`&&n!==`node`)){for(let e of r)if(AI(e))return e}}}function AI(e){return!!e&&e!==`system`&&!e.startsWith(`ref:`)&&!e.startsWith(`path:`)}function jI(e){let t;try{t=JSON.parse(e)}catch{throw Error(`Failed to parse package.json: invalid JSON`)}let n=t.devEngines;if(n?.runtime){let e=MI(n.runtime);if(e)return e}let r=t.engines;if(r?.node&&typeof r.node==`string`)return r.node}function MI(e){let t=Array.isArray(e)?e:[e];for(let e of t)if(e?.name===`node`&&typeof e.version==`string`)return e.version}function NI(){return te(process.env.RUNNER_TEMP||process.cwd(),`.npmrc`)}function PI(e){return e.replace(/^\w+:/,``)}function FI(e){return(PI(e)+`:_authtoken`).toLowerCase()}function II(e){return`${PI(e)}:_authToken=\${NODE_AUTH_TOKEN}`}function LI(e){try{return se(e,`utf8`)}catch(e){if(e.code===`ENOENT`)return;throw e}}function RI(e,t){let n;try{n=new URL(e)}catch{throw Error(`Invalid registry-url: "${e}". Must be a valid URL.`)}zI(n.href.endsWith(`/`)?n.href:n.href+`/`,NI(),t)}function zI(e,t,n){n||new URL(e).hostname===`npm.pkg.github.com`&&(n=process.env.GITHUB_REPOSITORY_OWNER);let r=``;n&&(r=(n.startsWith(`@`)?n:`@`+n).toLowerCase()+`:`),R(`Setting auth in ${t}`);let i=PI(e).toLowerCase(),a=[],o=LI(t);if(o!==void 0)for(let e of o.split(/\r?\n/)){let t=e.toLowerCase();t.startsWith(`${r}registry`)||t.startsWith(i)&&t.includes(`_authtoken`)||a.push(e)}a.push(II(e),`${r}registry=${e}`),ue(t,a.join(fe)),Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),Ar(`NODE_AUTH_TOKEN`,process.env.NODE_AUTH_TOKEN||`XXXXX-XXXXX-XXXXX-XXXXX`)}const BI=new Set([`GITHUB_TOKEN`]),VI=new Set([`PATH`,`HOME`,`USERPROFILE`,`TMPDIR`,`CI`]);function HI(e){return VI.has(e)||e.startsWith(`RUNNER_`)?!0:e.startsWith(`GITHUB_`)?!BI.has(e):!1}function UI(e){let t=new Set,n=new Set,r=new Set;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`;`)||e.startsWith(`#`))continue;let a=e.indexOf(`=`);if(a<0)continue;let o=e.slice(0,a).trim().toLowerCase(),s=e.slice(a+1).trim();(o===`registry`||o.endsWith(`:registry`))&&(s.includes("${")||t.add(s.endsWith(`/`)?s:s+`/`)),o.startsWith(`//`)&&o.endsWith(`:_authtoken`)&&n.add(o);for(let e of s.matchAll(/\$\{(\w+)\}/g))r.add(e[1])}return{registriesNeedingAuth:[...t].filter(e=>!n.has(FI(e))),envVarRefs:r}}function WI(e){let t=NI(),n=new Set(e.map(FI)),r=LI(t),i=[...(r===void 0?[]:r.split(/\r?\n/)).filter(e=>{let t=e.indexOf(`=`);return t<=0?!0:!n.has(e.slice(0,t).trim().toLowerCase())}),...e.map(II)].join(fe);if(Ar(`NPM_CONFIG_USERCONFIG`,t),Ar(`PNPM_CONFIG_USERCONFIG`,t),r===i){R(`Supplemental .npmrc at ${t} already current`);return}ue(t,i),z(`Wrote _authToken entries to ${t} for registries: ${e.join(`, `)}`)}function GI(e){let t=N(e,`.npmrc`),n=LI(t);if(n===void 0)return;let{registriesNeedingAuth:r,envVarRefs:i}=UI(n);process.env.NODE_AUTH_TOKEN&&r.length>0&&(WI(r),i.add(`NODE_AUTH_TOKEN`));let a=[...i].filter(e=>!HI(e)&&!!process.env[e]);if(a.length===0){R(`Project .npmrc at ${t}: no auth env vars to propagate`);return}z(`Detected project .npmrc at ${t}. Propagating auth env vars: ${a.join(`, `)}`);for(let e of a)Ar(e,process.env[e])}async function KI(e){Hr(`IS_POST`,`true`);let t=kd(e),n=e.nodeVersion;!n&&e.nodeVersionFile&&(n=EI(e.nodeVersionFile,t)),await Bd(e),n&&(z(`Setting up Node.js ${n} via vp env use...`),await Dr(`vp`,[`env`,`use`,n])),e.registryUrl?RI(e.registryUrl,e.scope):GI(t),e.cache&&await wI(e);let r=e.sfw;if(e.sfw){let t=`process.platform=${process.platform}, process.arch=${process.arch}, musl=${Gd()}`,n=Wd(),i=e.runInstall.length>0;!n&&i?(zr(`sfw is temporarily not supported on this runner (${t}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`),r=!1):!n&&!i?(z(`sfw was requested but is not supported on this runner (${t}); no sfw binary will be downloaded. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`),r=!1):n&&!i&&z("sfw was requested but `run-install` is disabled; no sfw binary will be downloaded.")}r&&e.runInstall.length>0&&await Jd(),e.runInstall.length>0&&await Zd({...e,sfw:r}),await qI(t)}async function qI(e){try{let t=(await Or(`vp`,[`--version`],{cwd:e,silent:!0})).stdout.trim();z(t);let n=t.match(/Global:\s*v?([\d.]+[^\s]*)/i)?.[1]||`unknown`;Hr(`INSTALLED_VERSION`,n),Fr(`version`,n)}catch(e){zr(`Could not get vp version: ${String(e)}`),Fr(`version`,`unknown`)}}async function JI(e){e.cache&&await TI()}async function YI(){let e=wd();Ur(`IS_POST`)===`true`?await JI(e):await KI(e)}YI().catch(e=>{console.error(e),Ir(e instanceof Error?e.message:String(e))});export{}; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 32e2ed5..4d171a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import { saveState, getState, setFailed, info, setOutput, warning } from "@actio import { exec, getExecOutput } from "@actions/exec"; import { getInputs } from "./inputs.js"; import { installVitePlus } from "./install-viteplus.js"; -import { installSfw, isSfwSupported } from "./install-sfw.js"; +import { installSfw, isMuslLinux, isSfwSupported } from "./install-sfw.js"; import { runViteInstall } from "./run-install.js"; import { restoreCache } from "./cache-restore.js"; import { saveCache } from "./cache-save.js"; @@ -45,16 +45,28 @@ async function runMain(inputs: Inputs): Promise { } // Step 6: Install Socket Firewall Free if requested (must run before vp install). - // On non-Linux platforms, sfw is temporarily unsupported (see isSfwSupported) - // and we fall back to plain `vp install` with a warning. Only emit the - // warning / override when run-install is enabled — otherwise sfw wouldn't be - // invoked anyway and the message is just noise. + // sfw is currently only supported on Linux on architectures with a published + // sfw asset (see isSfwSupported); other combinations fall back to plain + // `vp install`. Whenever `sfw: true` is set but sfw won't actually be + // invoked, emit a clear log message so the no-op is visible. let effectiveSfw = inputs.sfw; - if (inputs.sfw && inputs.runInstall.length > 0 && !isSfwSupported()) { - warning( - `sfw is temporarily only supported on Linux (process.platform=${process.platform}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`, - ); - effectiveSfw = false; + if (inputs.sfw) { + const env = `process.platform=${process.platform}, process.arch=${process.arch}, musl=${isMuslLinux()}`; + const supported = isSfwSupported(); + const needsInstall = inputs.runInstall.length > 0; + if (!supported && needsInstall) { + warning( + `sfw is temporarily not supported on this runner (${env}); falling back to plain \`vp install\`. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`, + ); + effectiveSfw = false; + } else if (!supported && !needsInstall) { + info( + `sfw was requested but is not supported on this runner (${env}); no sfw binary will be downloaded. Track upstream: https://github.com/voidzero-dev/setup-vp/issues/73`, + ); + effectiveSfw = false; + } else if (supported && !needsInstall) { + info("sfw was requested but `run-install` is disabled; no sfw binary will be downloaded."); + } } if (effectiveSfw && inputs.runInstall.length > 0) { await installSfw(); diff --git a/src/install-sfw.ts b/src/install-sfw.ts index 889d3aa..51125ed 100644 --- a/src/install-sfw.ts +++ b/src/install-sfw.ts @@ -25,9 +25,12 @@ const PWSH_TIMEOUT_SEC = 60; // checklist: https://github.com/voidzero-dev/setup-vp/issues/73 export function isSfwSupported(): boolean { if (process.platform !== "linux") return false; + // Defensive: `!!asset` keeps this correct even if `getSfwAssetName` is later + // refactored to return `undefined`/`null` instead of throw. The try/catch + // still covers the current throwing contract. try { - getSfwAssetName(process.platform, process.arch, isMuslLinux()); - return true; + const asset = getSfwAssetName(process.platform, process.arch, isMuslLinux()); + return !!asset; } catch { return false; }