diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index d666876..40f2f2c 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -10,10 +10,12 @@ jobs: steps: - name: Checkout the action uses: actions/checkout@v4 - - name: Setup Node.js 16.x + + - name: Setup Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 + - name: Install npm-cli-login run: npm install -g npm-cli-login - name: Login to GitHub npm registry @@ -22,10 +24,12 @@ jobs: run: | npm-cli-login -s @actions-rs -r https://npm.pkg.github.com \ -u does_not_matter -p ${{ secrets.GITHUB_TOKEN }} -e does_not_m@ter.com + - name: Install dependencies run: npm ci - name: Rebuild the action and run tests run: npm run all + - name: Compare the expected and actual src/ directories run: | if [ "$(git diff src/ | wc -l)" -gt "0" ]; then @@ -33,12 +37,14 @@ jobs: exit 1 fi id: diff_src + - name: Upload the expected version of src/ in case of failure uses: actions/upload-artifact@v4 if: ${{ failure() && steps.diff_src.conclusion == 'failure' }} with: name: expected-src path: src/ + - name: Compare the expected and actual dist/ directories run: | if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then @@ -46,6 +52,7 @@ jobs: exit 1 fi id: diff_dist + - name: Upload the expected version of dist/ in case of failure uses: actions/upload-artifact@v4 if: ${{ failure() && steps.diff_dist.conclusion == 'failure' }} diff --git a/dist/index.js b/dist/index.js index a687fa9..5669349 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={2544:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.annotate=t.escapeProperty=t.escapeData=void 0;const n=a(r(2037));function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}t.escapeData=escapeData;function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}t.escapeProperty=escapeProperty;const o="::";function render(e,t,r){let i=o+e;if(r&&Object.keys(r).length>0){i+=" ";let e=true;for(const[t,s]of Object.entries(r)){if(s){if(e){e=false}else{i+=","}i+=`${t}=${escapeProperty(s)}`}}}i+=`${o}${escapeData(t)}`;return i}function annotate(e){let t;switch(e.annotation_level){case"notice":case"warning":t="warning";break;case"failure":t="error";break}const r=render(t,e.message,{file:e.path,line:e.start_line,col:e.start_column});process.stdout.write(r+n.EOL)}t.annotate=annotate},6014:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.CheckReporter=void 0;const n=a(r(3706));class CheckReporter{constructor(e,t){this.client=e;this.checkName=t;this.checkId=undefined}async startCheck(e){const{owner:t,repo:r}=n.context.repo;const i=await this.client.checks.create({owner:t,repo:r,name:this.checkName,head_sha:n.context.sha,status:e?e:"in_progress"});this.checkId=i.data.id;return this.checkId}async finishCheck(e,t){const{owner:r,repo:i}=n.context.repo;await this.client.checks.update({owner:r,repo:i,name:this.checkName,check_run_id:this.checkId,status:"completed",conclusion:e,completed_at:(new Date).toISOString(),output:t});return}async cancelCheck(){const{owner:e,repo:t}=n.context.repo;await this.client.checks.update({owner:e,repo:t,name:this.checkName,check_run_id:this.checkId,status:"completed",conclusion:"cancelled",completed_at:(new Date).toISOString(),output:{title:this.checkName,summary:"Unhandled error",text:"Check was cancelled due to unhandled error. Check the Action logs for details."}});return}}t.CheckReporter=CheckReporter},9438:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Cargo=t.resolveVersion=void 0;const n=a(r(7436));const o=a(r(2186));const p=a(r(1514));const l=a(r(2574));const c=a(r(4287));const d=a(r(1017));async function resolveVersion(e){const t=`https://crates.io/api/v1/crates/${e}`;const r=new c.HttpClient("@actions-rs (https://github.com/actions-rs/)");const i=await r.getJson(t);if(i.result==null){throw new Error("Unable to fetch latest crate version")}return i.result["crate"]["newest_version"]}t.resolveVersion=resolveVersion;class Cargo{constructor(e){this.path=e}static async get(){try{const e=await n.which("cargo",true);return new Cargo(e)}catch(e){o.error("cargo is not installed by default for some virtual environments, see https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions");o.error("To install it, use this action: https://github.com/actions-rs/toolchain");throw e}}async installCached(e,t,r,i){if(t=="latest"){t=await resolveVersion(e)}if(r){i=i||[];const s=[d.join(d.dirname(this.path),e)];const a=e+"-"+t+"-"+r;const n=i.map((r=>e+"-"+t+"-"+r));const p=await l.restoreCache(s,a,n);if(p){o.info(`Using cached \`${e}\` with version ${t}`);return e}else{const r=await this.install(e,t);try{o.info(`Caching \`${e}\` with key ${a}`);await l.saveCache(s,a)}catch(e){if(e.name===l.ValidationError.name){throw e}else if(e.name===l.ReserveCacheError.name){o.info(e.message)}else{o.info("[warning]"+e.message)}}return r}}else{return await this.install(e,t)}}async install(e,t){const r=["install"];if(t&&t!="latest"){r.push("--version");r.push(t)}r.push(e);try{o.startGroup(`Installing "${e} = ${t||"latest"}"`);await this.call(r)}finally{o.endGroup()}return e}async findOrInstall(e,t){try{return await n.which(e,true)}catch(t){o.info(`${e} is not installed, installing it now`)}return await this.installCached(e,t)}async call(e,t){return await p.exec(this.path,e,t)}}t.Cargo=Cargo},6820:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Cross=void 0;const n=a(r(2037));const o=a(r(7436));const p=a(r(2186));const l=a(r(1514));const c=r(9438);class Cross{constructor(e){this.path=e}static async getOrInstall(){try{return await Cross.get()}catch(e){p.debug(`${e}`);return await Cross.install()}}static async get(){const e=await o.which("cross",true);return new Cross(e)}static async install(e){const t=await c.Cargo.get();const r=process.cwd();process.chdir(n.tmpdir());try{const i=await t.installCached("cross",e);return new Cross(i)}finally{process.chdir(r);p.endGroup()}}async call(e,t){return await l.exec(this.path,e,t)}}t.Cross=Cross},3704:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.RustUp=void 0;const n=r(7147);const o=a(r(1017));const p=a(r(7282));const l=a(r(6581));const c=a(r(7436));const d=a(r(2186));const u=a(r(1514));const h=a(r(7442));const g="1.20.1";const y="1.20.1";class RustUp{constructor(e){this.path=e}static async getOrInstall(){try{return await RustUp.get()}catch(e){d.debug(`Unable to find "rustup" executable, installing it now. Reason: ${e}`);return await RustUp.install()}}static async get(){const e=await c.which("rustup",true);return new RustUp(e)}static async install(){const e=["--default-toolchain","none","-y"];switch(p.platform){case"darwin":case"linux":{const t=await h.downloadTool("https://sh.rustup.rs");d.debug(`Executing chmod 755 on the ${t}`);await n.promises.chmod(t,493);await u.exec(t,e);break}case"win32":{const t=await h.downloadTool("https://win.rustup.rs");await u.exec(t,e);break}default:throw new Error(`Unknown platform ${p.platform}, can't install rustup`)}d.addPath(o.join(p.env.HOME,".cargo","bin"));return new RustUp("rustup")}async installToolchain(e,t){const r=["toolchain","install",e];if(t){if(t.components&&t.components.length>0){for(const e of t.components){r.push("--component");r.push(e)}}if(t.noSelfUpdate){r.push("--no-self-update")}if(t.allowDowngrade){r.push("--allow-downgrade")}if(t.force){r.push("--force")}}await this.call(r);if(t&&t.default){await this.call(["default",e])}if(t&&t.override){await this.call(["override","set",e])}return 0}async addTarget(e,t){const r=["target","add"];if(t){r.push("--toolchain");r.push(t)}r.push(e);return await this.call(r)}async activeToolchain(){const e=await this.callStdout(["show","active-toolchain"]);if(e){return e.split(" ",2)[0]}else{throw new Error("Unable to determine active toolchain")}}async supportProfiles(){const e=await this.version();const t=l.gte(e,g);if(t){d.info(`Installed rustup ${e} support profiles`)}else{d.info(`Installed rustup ${e} does not support profiles, expected at least ${g}`)}return t}async supportComponents(){const e=await this.version();const t=l.gte(e,y);if(t){d.info(`Installed rustup ${e} support components`)}else{d.info(`Installed rustup ${e} does not support components, expected at least ${g}`)}return t}async setProfile(e){return await this.call(["set","profile",e])}async version(){const e=await this.callStdout(["-V"]);return e.split(" ")[1]}async which(e){const t=await this.callStdout(["which",e]);if(t){return t}else{throw new Error(`Unable to find the ${e}`)}}async selfUpdate(){return await this.call(["self","update"])}async call(e,t){return await u.exec(this.path,e,t)}async callStdout(e,t){let r="";const i=Object.assign({},t,{listeners:{stdout:e=>{r+=e.toString()}}});await this.call(e,i);return r}}t.RustUp=RustUp},822:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.annotations=t.checks=t.input=void 0;a(r(9438),t);a(r(6820),t);a(r(3704),t);const o=n(r(8870));t.input=o;const p=n(r(6014));t.checks=p;const l=n(r(2544));t.annotations=l},8870:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getInputAsArray=t.getInputList=t.getInputBool=t.getInput=void 0;const n=a(r(2186));function getInput(e,t){const r=e.replace(/-/g,"_");const i=n.getInput(r,t);if(i.length>0){return i}return n.getInput(e,t)}t.getInput=getInput;function getInputBool(e,t){const r=getInput(e,t);if(r&&(r==="true"||r==="1")){return true}else{return false}}t.getInputBool=getInputBool;function getInputList(e,t){const r=getInput(e,t);return r.split(",").map((e=>e.trim())).filter((e=>e.length>0))}t.getInputList=getInputList;function getInputAsArray(e,t){return getInput(e,t).split("\n").map((e=>e.trim())).filter((e=>e!==""))}t.getInputAsArray=getInputAsArray},2574:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=s(r(1017));const o=s(r(7161));const p=s(r(8920));const l=r(8844);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function restoreCache(e,t,r,s){return i(this,void 0,void 0,(function*(){checkPaths(e);r=r||[];const i=[t,...r];a.debug("Resolved Keys:");a.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const c=yield o.getCompressionMethod();const d=yield p.getCacheEntry(i,e,{compressionMethod:c});if(!(d===null||d===void 0?void 0:d.archiveLocation)){return undefined}const u=n.join(yield o.createTempDirectory(),o.getCacheFileName(c));a.debug(`Archive Path: ${u}`);try{yield p.downloadCache(d.archiveLocation,u,s);if(a.isDebug()){yield l.listTar(u,c)}const e=o.getArchiveFileSizeInBytes(u);a.info(`Cache Size: ~${Math.round(e/(1024*1024))} MB (${e} B)`);yield l.extractTar(u,c);a.info("Cache restored successfully")}finally{try{yield o.unlinkFile(u)}catch(e){a.debug(`Failed to delete archive: ${e}`)}}return d.cacheKey}))}t.restoreCache=restoreCache;function saveCache(e,t,r){return i(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const i=yield o.getCompressionMethod();a.debug("Reserving Cache");const s=yield p.reserveCache(t,e,{compressionMethod:i});if(s===-1){throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}a.debug(`Cache ID: ${s}`);const c=yield o.resolvePaths(e);a.debug("Cache Paths:");a.debug(`${JSON.stringify(c)}`);const d=yield o.createTempDirectory();const u=n.join(d,o.getCacheFileName(i));a.debug(`Archive Path: ${u}`);try{yield l.createTar(d,c,i);if(a.isDebug()){yield l.listTar(u,i)}const e=10*1024*1024*1024;const t=o.getArchiveFileSizeInBytes(u);a.debug(`File Size: ${t}`);if(t>e){throw new Error(`Cache size of ~${Math.round(t/(1024*1024))} MB (${t} B) is over the 10GB limit, not saving cache.`)}a.debug(`Saving Cache (ID: ${s})`);yield p.saveCache(s,u,r)}finally{try{yield o.unlinkFile(u)}catch(e){a.debug(`Failed to delete archive: ${e}`)}}return s}))}t.saveCache=saveCache},8920:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=r(4287);const o=r(9308);const p=s(r(6113));const l=s(r(7147));const c=r(7310);const d=s(r(7161));const u=r(3039);const h=r(963);const g=r(9077);const y=r(25);const v="1.0";function getCacheApiUrl(e){const t=(process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RUNTIME_URL"]||"").replace("pipelines","artifactcache");if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;a.debug(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new o.BearerCredentialHandler(e);return new n.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t){const r=e.concat(!t||t===u.CompressionMethod.Gzip?[]:[t]);r.push(v);return p.createHash("sha256").update(r.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,r){return i(this,void 0,void 0,(function*(){const s=createHttpClient();const n=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod);const o=`cache?keys=${encodeURIComponent(e.join(","))}&version=${n}`;const p=yield y.retryTypedResponse("getCacheEntry",(()=>i(this,void 0,void 0,(function*(){return s.getJson(getCacheApiUrl(o))}))));if(p.statusCode===204){return null}if(!y.isSuccessStatusCode(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const c=l===null||l===void 0?void 0:l.archiveLocation;if(!c){throw new Error("Cache not found.")}a.setSecret(c);a.debug(`Cache Result:`);a.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function downloadCache(e,t,r){return i(this,void 0,void 0,(function*(){const i=new c.URL(e);const s=g.getDownloadOptions(r);if(s.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield h.downloadCacheStorageSDK(e,t,s)}else{yield h.downloadCacheHttpClient(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,r){var s,a;return i(this,void 0,void 0,(function*(){const n=createHttpClient();const o=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod);const p={key:e,version:o};const l=yield y.retryTypedResponse("reserveCache",(()=>i(this,void 0,void 0,(function*(){return n.postJson(getCacheApiUrl("caches"),p)}))));return(a=(s=l===null||l===void 0?void 0:l.result)===null||s===void 0?void 0:s.cacheId)!==null&&a!==void 0?a:-1}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,s,n){return i(this,void 0,void 0,(function*(){a.debug(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${getContentRange(s,n)}`);const o={"Content-Type":"application/octet-stream","Content-Range":getContentRange(s,n)};const p=yield y.retryHttpClientResponse(`uploadChunk (start: ${s}, end: ${n})`,(()=>i(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),o)}))));if(!y.isSuccessStatusCode(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,s){return i(this,void 0,void 0,(function*(){const n=d.getArchiveFileSizeInBytes(r);const o=getCacheApiUrl(`caches/${t.toString()}`);const p=l.openSync(r,"r");const c=g.getUploadOptions(s);const u=d.assertDefined("uploadConcurrency",c.uploadConcurrency);const h=d.assertDefined("uploadChunkSize",c.uploadChunkSize);const y=[...new Array(u).keys()];a.debug("Awaiting all uploads");let v=0;try{yield Promise.all(y.map((()=>i(this,void 0,void 0,(function*(){while(vl.createReadStream(r,{fd:p,start:i,end:s,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,s)}})))))}finally{l.closeSync(p)}return}))}function commitCache(e,t,r){return i(this,void 0,void 0,(function*(){const s={size:r};return yield y.retryTypedResponse("commitCache",(()=>i(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),s)}))))}))}function saveCache(e,t,r){return i(this,void 0,void 0,(function*(){const i=createHttpClient();a.debug("Upload cache");yield uploadFile(i,e,t,r);a.debug("Commiting cache");const s=d.getArchiveFileSizeInBytes(t);a.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const n=yield commitCache(i,e,s);if(!y.isSuccessStatusCode(n.statusCode)){throw new Error(`Cache service responded with ${n.statusCode} during commit cache.`)}a.info("Cache saved successfully")}))}t.saveCache=saveCache},7161:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=a(r(2186));const o=a(r(1514));const p=a(r(8090));const l=a(r(7436));const c=a(r(7147));const d=a(r(1017));const u=a(r(7007));const h=a(r(3837));const g=r(2096);const y=r(3039);function createTempDirectory(){return i(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=d.join(r,"actions","temp")}const r=d.join(t,g.v4());yield l.mkdirP(r);return r}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return c.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,r;var a;return i(this,void 0,void 0,(function*(){const i=[];const o=(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const l=yield p.create(e.join("\n"),{implicitDescendants:false});try{for(var c=s(l.globGenerator()),u;u=yield c.next(),!u.done;){const e=u.value;const t=d.relative(o,e).replace(new RegExp(`\\${d.sep}`,"g"),"/");n.debug(`Matched: ${t}`);i.push(`${t}`)}}catch(e){t={error:e}}finally{try{if(u&&!u.done&&(r=c.return))yield r.call(c)}finally{if(t)throw t.error}}return i}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return i(this,void 0,void 0,(function*(){return h.promisify(c.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e){return i(this,void 0,void 0,(function*(){n.debug(`Checking ${e} --version`);let t="";try{yield o.exec(`${e} --version`,[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}})}catch(e){n.debug(e.message)}t=t.trim();n.debug(t);return t}))}function getCompressionMethod(){return i(this,void 0,void 0,(function*(){if(process.platform==="win32"&&!(yield isGnuTarInstalled())){return y.CompressionMethod.Gzip}const e=yield getVersion("zstd");const t=u.clean(e);if(!e.toLowerCase().includes("zstd command line interface")){return y.CompressionMethod.Gzip}else if(!t||u.lt(t,"v1.3.2")){return y.CompressionMethod.ZstdWithoutLong}else{return y.CompressionMethod.Zstd}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===y.CompressionMethod.Gzip?y.CacheFilename.Gzip:y.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function isGnuTarInstalled(){return i(this,void 0,void 0,(function*(){const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")}))}t.isGnuTarInstalled=isGnuTarInstalled;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined},3039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(r=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3},963:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=r(4287);const o=r(4100);const p=s(r(4300));const l=s(r(7147));const c=s(r(2781));const d=s(r(3837));const u=s(r(7161));const h=r(3039);const g=r(25);function pipeResponseToStream(e,t){return i(this,void 0,void 0,(function*(){const r=d.promisify(c.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;a.debug(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const i=(e/(1024*1024)/(r/1e3)).toFixed(1);a.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return i(this,void 0,void 0,(function*(){const r=l.createWriteStream(t);const s=new n.HttpClient("actions/cache");const o=yield g.retryHttpClientResponse("downloadCache",(()=>i(this,void 0,void 0,(function*(){return s.get(e)}))));o.message.socket.setTimeout(h.SocketTimeout,(()=>{o.message.destroy();a.debug(`Aborting download, socket timed out after ${h.SocketTimeout} ms`)}));yield pipeResponseToStream(o,r);const p=o.message.headers["content-length"];if(p){const e=parseInt(p);const r=u.getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{a.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,r){var s;return i(this,void 0,void 0,(function*(){const i=new o.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const n=yield i.getProperties();const c=(s=n.contentLength)!==null&&s!==void 0?s:-1;if(c<0){a.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(2147483647,p.constants.MAX_LENGTH);const s=new DownloadProgress(c);const a=l.openSync(t,"w");try{s.startDisplayTimer();while(!s.isDone()){const t=s.segmentOffset+s.segmentSize;const n=Math.min(e,c-t);s.nextSegment(n);const o=yield i.downloadToBuffer(t,n,{concurrency:r.downloadConcurrency,onProgress:s.onProgress()});l.writeFileSync(a,o)}}finally{s.stopDisplayTimer();l.closeSync(a)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK},25:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=r(4287);const o=r(3039);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[n.HttpCodes.BadGateway,n.HttpCodes.ServiceUnavailable,n.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r,s=o.DefaultRetryAttempts,n=o.DefaultRetryDelay,p=undefined){return i(this,void 0,void 0,(function*(){let i="";let o=1;while(o<=s){let l=undefined;let c=undefined;let d=false;try{l=yield t()}catch(e){if(p){l=p(e)}d=true;i=e.message}if(l){c=r(l);if(!isServerErrorStatusCode(c)){return l}}if(c){d=isRetryableStatusCode(c);i=`Cache service responded with ${c}`}a.debug(`${e} - Attempt ${o} of ${s} failed with error: ${i}`);if(!d){a.debug(`${e} - Error is not retryable`);break}yield sleep(n);o++}throw Error(`${e} failed: ${i}`)}))}t.retry=retry;function retryTypedResponse(e,t,r=o.DefaultRetryAttempts,s=o.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),r,s,(e=>{if(e instanceof n.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{}}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,r=o.DefaultRetryAttempts,s=o.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),r,s)}))}t.retryHttpClientResponse=retryHttpClientResponse},8844:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=r(1514);const n=s(r(7436));const o=r(7147);const p=s(r(1017));const l=s(r(7161));const c=r(3039);function getTarPath(e,t){return i(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const r=`${process.env["windir"]}\\System32\\tar.exe`;if(t!==c.CompressionMethod.Gzip){e.push("--force-local")}else if(o.existsSync(r)){return r}else if(yield l.isGnuTarInstalled()){e.push("--force-local")}break}case"darwin":{const t=yield n.which("gtar",false);if(t){e.push("--delay-directory-restore");return t}break}default:break}return yield n.which("tar",true)}))}function execTar(e,t,r){return i(this,void 0,void 0,(function*(){try{yield a.exec(`"${yield getTarPath(e,t)}"`,e,{cwd:r})}catch(e){throw new Error(`Tar failed with error: ${e===null||e===void 0?void 0:e.message}`)}}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function extractTar(e,t){return i(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield n.mkdirP(r);function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const i=[...getCompressionProgram(),"-xf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",r.replace(new RegExp(`\\${p.sep}`,"g"),"/")];yield execTar(i,t)}))}t.extractTar=extractTar;function createTar(e,t,r){return i(this,void 0,void 0,(function*(){const i="manifest.txt";const s=l.getCacheFileName(r);o.writeFileSync(p.join(e,i),t.join("\n"));const a=getWorkingDirectory();function getCompressionProgram(){switch(r){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -T0 --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -T0"];default:return["-z"]}}const n=["--posix",...getCompressionProgram(),"-cf",s.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",a.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"--files-from",i];yield execTar(n,r,e)}))}t.createTar=createTar;function listTar(e,t){return i(this,void 0,void 0,(function*(){function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const r=[...getCompressionProgram(),"-tf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P"];yield execTar(r,t)}))}t.listTar=listTar},9077:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}s.debug(`Upload concurrency: ${t.uploadConcurrency}`);s.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}}s.debug(`Use Azure SDK: ${t.useAzureSdk}`);s.debug(`Download concurrency: ${t.downloadConcurrency}`);s.debug(`Request timeout (ms): ${t.timeoutInMs}`);return t}t.getDownloadOptions=getDownloadOptions},7007:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var n=t.re=[];var o=t.src=[];var p=t.tokens={};var l=0;function tok(e){p[e]=l++}tok("NUMERICIDENTIFIER");o[p.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");o[p.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");o[p.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");o[p.MAINVERSION]="("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");o[p.MAINVERSIONLOOSE]="("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");o[p.PRERELEASEIDENTIFIER]="(?:"+o[p.NUMERICIDENTIFIER]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");o[p.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[p.NUMERICIDENTIFIERLOOSE]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");o[p.PRERELEASE]="(?:-("+o[p.PRERELEASEIDENTIFIER]+"(?:\\."+o[p.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");o[p.PRERELEASELOOSE]="(?:-?("+o[p.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[p.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");o[p.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");o[p.BUILD]="(?:\\+("+o[p.BUILDIDENTIFIER]+"(?:\\."+o[p.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");o[p.FULLPLAIN]="v?"+o[p.MAINVERSION]+o[p.PRERELEASE]+"?"+o[p.BUILD]+"?";o[p.FULL]="^"+o[p.FULLPLAIN]+"$";tok("LOOSEPLAIN");o[p.LOOSEPLAIN]="[v=\\s]*"+o[p.MAINVERSIONLOOSE]+o[p.PRERELEASELOOSE]+"?"+o[p.BUILD]+"?";tok("LOOSE");o[p.LOOSE]="^"+o[p.LOOSEPLAIN]+"$";tok("GTLT");o[p.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");o[p.XRANGEIDENTIFIERLOOSE]=o[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");o[p.XRANGEIDENTIFIER]=o[p.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");o[p.XRANGEPLAIN]="[v=\\s]*("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:"+o[p.PRERELEASE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");o[p.XRANGEPLAINLOOSE]="[v=\\s]*("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+o[p.PRERELEASELOOSE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGE");o[p.XRANGE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAIN]+"$";tok("XRANGELOOSE");o[p.XRANGELOOSE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAINLOOSE]+"$";tok("COERCE");o[p.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");n[p.COERCERTL]=new RegExp(o[p.COERCE],"g");tok("LONETILDE");o[p.LONETILDE]="(?:~>?)";tok("TILDETRIM");o[p.TILDETRIM]="(\\s*)"+o[p.LONETILDE]+"\\s+";n[p.TILDETRIM]=new RegExp(o[p.TILDETRIM],"g");var c="$1~";tok("TILDE");o[p.TILDE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAIN]+"$";tok("TILDELOOSE");o[p.TILDELOOSE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAINLOOSE]+"$";tok("LONECARET");o[p.LONECARET]="(?:\\^)";tok("CARETTRIM");o[p.CARETTRIM]="(\\s*)"+o[p.LONECARET]+"\\s+";n[p.CARETTRIM]=new RegExp(o[p.CARETTRIM],"g");var d="$1^";tok("CARET");o[p.CARET]="^"+o[p.LONECARET]+o[p.XRANGEPLAIN]+"$";tok("CARETLOOSE");o[p.CARETLOOSE]="^"+o[p.LONECARET]+o[p.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");o[p.COMPARATORLOOSE]="^"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");o[p.COMPARATOR]="^"+o[p.GTLT]+"\\s*("+o[p.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");o[p.COMPARATORTRIM]="(\\s*)"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+"|"+o[p.XRANGEPLAIN]+")";n[p.COMPARATORTRIM]=new RegExp(o[p.COMPARATORTRIM],"g");var u="$1$2$3";tok("HYPHENRANGE");o[p.HYPHENRANGE]="^\\s*("+o[p.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");o[p.HYPHENRANGELOOSE]="^\\s*("+o[p.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");o[p.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hi){return null}var r=t.loose?n[p.LOOSE]:n[p.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var a=e.trim().match(t.loose?n[p.LOOSE]:n[p.FULL]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,i){if(typeof r==="string"){i=r;r=undefined}try{return new SemVer(e,r).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var i=parse(t);var s="";if(r.prerelease.length||i.prerelease.length){s="pre";var a="prerelease"}for(var n in r){if(n==="major"||n==="minor"||n==="patch"){if(r[n]!==i[n]){return s+n}}}return a}}t.compareIdentifiers=compareIdentifiers;var g=/^[0-9]+$/;function compareIdentifiers(e,t){var r=g.test(e);var i=g.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,i);case"!=":return neq(e,r,i);case">":return gt(e,r,i);case">=":return gte(e,r,i);case"<":return lt(e,r,i);case"<=":return lte(e,r,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===y){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var y={};Comparator.prototype.parse=function(e){var t=this.options.loose?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=y}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===y||e===y){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var n=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var p=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||a&&n||o||p};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?n[p.HYPHENRANGELOOSE]:n[p.HYPHENRANGE];e=e.replace(i,hyphenReplace);r("hyphen replace",e);e=e.replace(n[p.COMPARATORTRIM],u);r("comparator trim",e,n[p.COMPARATORTRIM]);e=e.replace(n[p.TILDETRIM],c);e=e.replace(n[p.CARETTRIM],d);e=e.split(/\s+/).join(" ");var s=t?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var a=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter((function(e){return!!e.match(s)}))}a=a.map((function(e){return new Comparator(e,this.options)}),this);return a};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var r=true;var i=e.slice();var s=i.pop();while(r&&i.length){r=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?n[p.TILDELOOSE]:n[p.TILDE];return e.replace(i,(function(t,i,s,a,n){r("tilde",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(n){r("replaceTilde pr",n);o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}r("tilde return",o);return o}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var i=t.loose?n[p.CARETLOOSE]:n[p.CARET];return e.replace(i,(function(t,i,s,a,n){r("caret",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){if(i==="0"){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(n){r("replaceCaret pr",n);if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+(+i+1)+".0.0"}}else{r("no pr");if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"}}r("caret return",o);return o}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?n[p.XRANGELOOSE]:n[p.XRANGE];return e.replace(i,(function(i,s,a,n,o,p){r("xRange",e,i,s,a,n,o,p);var l=isX(a);var c=l||isX(n);var d=c||isX(o);var u=d;if(s==="="&&u){s=""}p=t.includePrerelease?"-0":"";if(l){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&u){if(c){n=0}o=0;if(s===">"){s=">=";if(c){a=+a+1;n=0;o=0}else{n=+n+1;o=0}}else if(s==="<="){s="<";if(c){a=+a+1}else{n=+n+1}}i=s+a+"."+n+"."+o+p}else if(c){i=">="+a+".0.0"+p+" <"+(+a+1)+".0.0"+p}else if(d){i=">="+a+"."+n+".0"+p+" <"+a+"."+(+n+1)+".0"+p}r("xRange return",i);return i}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(n[p.STAR],"")}function hyphenReplace(e,t,r,i,s,a,n,o,p,l,c,d,u){if(isX(r)){t=""}else if(isX(i)){t=">="+r+".0.0"}else if(isX(s)){t=">="+r+"."+i+".0"}else{t=">="+t}if(isX(p)){o=""}else if(isX(l)){o="<"+(+p+1)+".0.0"}else if(isX(c)){o="<"+p+"."+(+l+1)+".0"}else if(d){o="<="+p+"."+l+"."+c+"-"+d}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,r)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,r)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,i){e=new SemVer(e,i);t=new Range(t,i);var s,a,n,o,p;switch(r){case">":s=gt;a=lte;n=lt;o=">";p=">=";break;case"<":s=lt;a=gte;n=gt;o="<";p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var l=0;l=0.0.0")}d=d||e;u=u||e;if(s(e.semver,d.semver,i)){d=e}else if(n(e.semver,u.semver,i)){u=e}}));if(d.operator===o||d.operator===p){return false}if((!u.operator||u.operator===o)&&a(e,u.semver)){return false}else if(u.operator===p&&n(e,u.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(n[p.COERCE])}else{var i;while((i=n[p.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||i.index+i[0].length!==r.index+r[0].length){r=i}n[p.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}n[p.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},2328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const i=r(7147);const s=r(2037);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},3706:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const n=a(r(2328));const o=r(1289);t.context=new n.Context;function getOctokit(e,t){return new o.GitHub(o.getOctokitOptions(e,t))}t.getOctokit=getOctokit},8909:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=a(r(4287));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new n.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},1289:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const n=a(r(2328));const o=a(r(8909));const p=r(6762);const l=r(6385);const c=r(4193);t.context=new n.Context;const d=o.getApiBaseUrl();const u={baseUrl:d,request:{agent:o.getProxyAgent(d)}};t.GitHub=p.Octokit.plugin(l.restEndpointMethods,c.paginateRest).defaults(u);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const i=o.getAuthString(e,r);if(i){r.auth=i}return r}t.getOctokitOptions=getOctokitOptions},9308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(3685);const s=r(5687);const a=r(2145);let n;var o;(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"})(o=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=a.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const c=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect];const d=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout];const u=["OPTIONS","GET","DELETE","HEAD"];const h=10;const g=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,i){return this.request(e,t,r,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,l.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,l.ApplicationJson);let s=await this.post(e,i,r);return this._processResponse(s,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,l.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,l.ApplicationJson);let s=await this.put(e,i,r);return this._processResponse(s,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,l.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,l.ApplicationJson);let s=await this.patch(e,i,r);return this._processResponse(s,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(t);let a=this._prepareRequest(e,s,i);let n=this._allowRetries&&u.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let l;while(p0){const n=l.message.headers["location"];if(!n){break}let o=new URL(n);if(s.protocol=="https:"&&s.protocol!=o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(o.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}a=this._prepareRequest(e,o,i);l=await this.requestRaw(a,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}p+=1;if(p{let callbackForResult=function(e,t){if(e){i(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;let handleResult=(e,t)=>{if(!s){s=true;r(e,t)}};let a=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));a.on("socket",(e=>{i=e}));a.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));a.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){a.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){a.end()}));t.pipe(a)}else{a.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const a={};a.parsedUrl=t;const n=a.parsedUrl.protocol==="https:";a.httpModule=n?s:i;const o=n?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):o;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(a.options)}))}return a}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let o=a.getProxyUrl(e);let p=o&&o.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(p){if(!n){n=r(4294)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{...(o.username||o.password)&&{proxyAuth:`${o.username}:${o.password}`},host:o.hostname,port:o.port}};let i;const s=o.protocol==="https:";if(l){i=s?n.httpsOverHttps:n.httpsOverHttp}else{i=s?n.httpOverHttps:n.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=l?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=l?s.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=g*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,i)=>{const s=e.message.statusCode;const a={statusCode:s,result:null,headers:{}};if(s==o.NotFound){r(a)}let n;let p;try{p=await e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){n=JSON.parse(p,HttpClient.dateTimeDeserializer)}else{n=JSON.parse(p)}a.result=n}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(n&&n.message){e=n.message}else if(p&&p.length>0){e=p}else{e="Failed request: ("+s+")"}let t=new HttpClientError(e,s);t.result=a.result;i(t)}else{r(a)}}))}}t.HttpClient=HttpClient},2145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=new URL(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},8179:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=a(r(4860));const p=r(2186);const l=r(2037);const c=r(2081);const d=r(7147);function _findMatch(t,r,i,s){return n(this,void 0,void 0,(function*(){const a=l.platform();let n;let c;let d;for(const n of i){const i=n.version;p.debug(`check ${i} satisfies ${t}`);if(o.satisfies(i,t)&&(!r||n.stable===r)){d=n.files.find((t=>{p.debug(`${t.arch}===${s} && ${t.platform}===${a}`);let r=t.arch===s&&t.platform===a;if(r&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){r=true}else{r=o.satisfies(i,t.platform_version)}}return r}));if(d){p.debug(`matched ${n.version}`);c=n;break}}}if(c&&d){n=Object.assign({},c);n.files=[d]}return n}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let r="";if(d.existsSync(e)){r=d.readFileSync(e).toString()}else if(d.existsSync(t)){r=d.readFileSync(t).toString()}return r}t._readLinuxVersionFile=_readLinuxVersionFile},2089:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=a(r(2186));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,(function*(){let r=1;while(rsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},7442:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const p=a(r(2186));const l=a(r(7436));const c=a(r(7147));const d=a(r(8179));const u=a(r(2037));const h=a(r(1017));const g=a(r(4287));const y=a(r(4860));const v=a(r(2781));const b=a(r(3837));const x=o(r(1573));const w=r(1514);const S=r(9491);const E=r(2089);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const T=process.platform==="win32";const N=process.platform==="darwin";const _="actions/tool-cache";function downloadTool(e,t,r,i){return n(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),x.default());yield l.mkdirP(h.dirname(t));p.debug(`Downloading ${e}`);p.debug(`Destination ${t}`);const s=3;const a=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const c=new E.RetryHelper(s,a,o);return yield c.execute((()=>n(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",r,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r,i){return n(this,void 0,void 0,(function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const s=new g.HttpClient(_,[],{allowRetries:false});if(r){p.debug("set auth");if(i===undefined){i={}}i.authorization=r}const a=yield s.get(e,i);if(a.message.statusCode!==200){const t=new HTTPError(a.message.statusCode);p.debug(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`);throw t}const n=b.promisify(v.pipeline);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>a.message));const d=o();let u=false;try{yield n(d,c.createWriteStream(t));p.debug("download complete");u=true;return t}finally{if(!u){p.debug("download failed");try{yield l.rmRF(t)}catch(e){p.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,r){return n(this,void 0,void 0,(function*(){S.ok(T,"extract7z() not supported on current OS");S.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(r){try{const t=p.isDebug()?"-bb1":"-bb0";const s=["x",t,"-bd","-sccUTF-8",e];const a={silent:true};yield w.exec(`"${r}"`,s,a)}finally{process.chdir(i)}}else{const r=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=`& '${r}' -Source '${s}' -Target '${a}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];const p={silent:true};try{const e=yield l.which("powershell",true);yield w.exec(`"${e}"`,o,p)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);p.debug("Checking tar --version");let i="";yield w.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});p.debug(i.trim());const s=i.toUpperCase().includes("GNU TAR");let a;if(r instanceof Array){a=r}else{a=[r]}if(p.isDebug()&&!r.includes("v")){a.push("-v")}let n=t;let o=e;if(T&&s){a.push("--force-local");n=t.replace(/\\/g,"/");o=e.replace(/\\/g,"/")}if(s){a.push("--warning=no-unknown-keyword");a.push("--overwrite")}a.push("-C",n,"-f",o);yield w.exec(`tar`,a);return t}))}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,(function*(){S.ok(N,"extractXar() not supported on current OS");S.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(r instanceof Array){i=r}else{i=[r]}i.push("-x","-C",t,"-f",e);if(p.isDebug()){i.push("-v")}const s=yield l.which("xar",true);yield w.exec(`"${s}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(T){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=yield l.which("pwsh",false);if(s){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];p.debug(`Using pwsh at path: ${s}`);yield w.exec(`"${s}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const s=yield l.which("powershell",true);p.debug(`Using powershell at path: ${s}`);yield w.exec(`"${s}"`,t)}}))}function extractZipNix(e,t){return n(this,void 0,void 0,(function*(){const r=yield l.which("unzip",true);const i=[e];if(!p.isDebug()){i.unshift("-q")}i.unshift("-o");yield w.exec(`"${r}"`,i,{cwd:t})}))}function cacheDir(e,t,r,i){return n(this,void 0,void 0,(function*(){r=y.clean(r)||r;i=i||u.arch();p.debug(`Caching tool ${t} ${r} ${i}`);p.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const s=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=h.join(e,t);yield l.cp(r,s,{recursive:true})}_completeToolPath(t,r,i);return s}))}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,(function*(){i=y.clean(i)||i;s=s||u.arch();p.debug(`Caching tool ${r} ${i} ${s}`);p.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const a=yield _createToolPath(r,i,s);const n=h.join(a,t);p.debug(`destination file ${n}`);yield l.cp(e,n);_completeToolPath(r,i,s);return a}))}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||u.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,r);const s=evaluateVersions(i,t);t=s}let i="";if(t){t=y.clean(t)||"";const s=h.join(_getCacheDirectory(),e,t,r);p.debug(`checking cache: ${s}`);if(c.existsSync(s)&&c.existsSync(`${s}.complete`)){p.debug(`Found tool in cache ${e} ${t} ${r}`);i=s}else{p.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const r=[];t=t||u.arch();const i=h.join(_getCacheDirectory(),e);if(c.existsSync(i)){const e=c.readdirSync(i);for(const s of e){if(isExplicitVersion(s)){const e=h.join(i,s,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(s)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,(function*(){let s=[];const a=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const n=new g.HttpClient("tool-cache");const o={};if(r){p.debug("set auth");o.authorization=r}const l=yield n.getJson(a,o);if(!l.result){return s}let c="";for(const e of l.result.tree){if(e.path==="versions-manifest.json"){c=e.url;break}}o["accept"]="application/vnd.github.VERSION.raw";let d=yield(yield n.get(c,o)).readBody();if(d){d=d.replace(/^\uFEFF/,"");try{s=JSON.parse(d)}catch(e){p.debug("Invalid json")}}return s}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=u.arch()){return n(this,void 0,void 0,(function*(){const s=yield d._findMatch(e,t,r,i);return s}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),x.default())}yield l.mkdirP(e);return e}))}function _createToolPath(e,t,r){return n(this,void 0,void 0,(function*(){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");p.debug(`destination ${i}`);const s=`${i}.complete`;yield l.rmRF(i);yield l.rmRF(s);yield l.mkdirP(i);return i}))}function _completeToolPath(e,t,r){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");const s=`${i}.complete`;c.writeFileSync(s,"");p.debug("finished caching tool")}function isExplicitVersion(e){const t=y.clean(e)||"";p.debug(`isExplicit: ${t}`);const r=y.valid(t)!=null;p.debug(`explicit? ${r}`);return r}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let r="";p.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(y.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const s=e[i];const a=y.satisfies(s,t);if(a){r=s;break}}if(r){p.debug(`matched: ${r}`)}else{p.debug("match not found")}return r}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";S.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";S.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},4860:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var n=t.re=[];var o=t.src=[];var p=t.tokens={};var l=0;function tok(e){p[e]=l++}tok("NUMERICIDENTIFIER");o[p.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");o[p.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");o[p.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");o[p.MAINVERSION]="("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");o[p.MAINVERSIONLOOSE]="("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");o[p.PRERELEASEIDENTIFIER]="(?:"+o[p.NUMERICIDENTIFIER]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");o[p.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[p.NUMERICIDENTIFIERLOOSE]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");o[p.PRERELEASE]="(?:-("+o[p.PRERELEASEIDENTIFIER]+"(?:\\."+o[p.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");o[p.PRERELEASELOOSE]="(?:-?("+o[p.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[p.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");o[p.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");o[p.BUILD]="(?:\\+("+o[p.BUILDIDENTIFIER]+"(?:\\."+o[p.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");o[p.FULLPLAIN]="v?"+o[p.MAINVERSION]+o[p.PRERELEASE]+"?"+o[p.BUILD]+"?";o[p.FULL]="^"+o[p.FULLPLAIN]+"$";tok("LOOSEPLAIN");o[p.LOOSEPLAIN]="[v=\\s]*"+o[p.MAINVERSIONLOOSE]+o[p.PRERELEASELOOSE]+"?"+o[p.BUILD]+"?";tok("LOOSE");o[p.LOOSE]="^"+o[p.LOOSEPLAIN]+"$";tok("GTLT");o[p.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");o[p.XRANGEIDENTIFIERLOOSE]=o[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");o[p.XRANGEIDENTIFIER]=o[p.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");o[p.XRANGEPLAIN]="[v=\\s]*("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:"+o[p.PRERELEASE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");o[p.XRANGEPLAINLOOSE]="[v=\\s]*("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+o[p.PRERELEASELOOSE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGE");o[p.XRANGE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAIN]+"$";tok("XRANGELOOSE");o[p.XRANGELOOSE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAINLOOSE]+"$";tok("COERCE");o[p.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");n[p.COERCERTL]=new RegExp(o[p.COERCE],"g");tok("LONETILDE");o[p.LONETILDE]="(?:~>?)";tok("TILDETRIM");o[p.TILDETRIM]="(\\s*)"+o[p.LONETILDE]+"\\s+";n[p.TILDETRIM]=new RegExp(o[p.TILDETRIM],"g");var c="$1~";tok("TILDE");o[p.TILDE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAIN]+"$";tok("TILDELOOSE");o[p.TILDELOOSE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAINLOOSE]+"$";tok("LONECARET");o[p.LONECARET]="(?:\\^)";tok("CARETTRIM");o[p.CARETTRIM]="(\\s*)"+o[p.LONECARET]+"\\s+";n[p.CARETTRIM]=new RegExp(o[p.CARETTRIM],"g");var d="$1^";tok("CARET");o[p.CARET]="^"+o[p.LONECARET]+o[p.XRANGEPLAIN]+"$";tok("CARETLOOSE");o[p.CARETLOOSE]="^"+o[p.LONECARET]+o[p.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");o[p.COMPARATORLOOSE]="^"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");o[p.COMPARATOR]="^"+o[p.GTLT]+"\\s*("+o[p.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");o[p.COMPARATORTRIM]="(\\s*)"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+"|"+o[p.XRANGEPLAIN]+")";n[p.COMPARATORTRIM]=new RegExp(o[p.COMPARATORTRIM],"g");var u="$1$2$3";tok("HYPHENRANGE");o[p.HYPHENRANGE]="^\\s*("+o[p.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");o[p.HYPHENRANGELOOSE]="^\\s*("+o[p.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");o[p.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hi){return null}var r=t.loose?n[p.LOOSE]:n[p.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var a=e.trim().match(t.loose?n[p.LOOSE]:n[p.FULL]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,i){if(typeof r==="string"){i=r;r=undefined}try{return new SemVer(e,r).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var i=parse(t);var s="";if(r.prerelease.length||i.prerelease.length){s="pre";var a="prerelease"}for(var n in r){if(n==="major"||n==="minor"||n==="patch"){if(r[n]!==i[n]){return s+n}}}return a}}t.compareIdentifiers=compareIdentifiers;var g=/^[0-9]+$/;function compareIdentifiers(e,t){var r=g.test(e);var i=g.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,i);case"!=":return neq(e,r,i);case">":return gt(e,r,i);case">=":return gte(e,r,i);case"<":return lt(e,r,i);case"<=":return lte(e,r,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===y){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var y={};Comparator.prototype.parse=function(e){var t=this.options.loose?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=y}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===y||e===y){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var n=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var p=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||a&&n||o||p};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?n[p.HYPHENRANGELOOSE]:n[p.HYPHENRANGE];e=e.replace(i,hyphenReplace);r("hyphen replace",e);e=e.replace(n[p.COMPARATORTRIM],u);r("comparator trim",e,n[p.COMPARATORTRIM]);e=e.replace(n[p.TILDETRIM],c);e=e.replace(n[p.CARETTRIM],d);e=e.split(/\s+/).join(" ");var s=t?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var a=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter((function(e){return!!e.match(s)}))}a=a.map((function(e){return new Comparator(e,this.options)}),this);return a};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var r=true;var i=e.slice();var s=i.pop();while(r&&i.length){r=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?n[p.TILDELOOSE]:n[p.TILDE];return e.replace(i,(function(t,i,s,a,n){r("tilde",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(n){r("replaceTilde pr",n);o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}r("tilde return",o);return o}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var i=t.loose?n[p.CARETLOOSE]:n[p.CARET];return e.replace(i,(function(t,i,s,a,n){r("caret",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){if(i==="0"){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(n){r("replaceCaret pr",n);if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+(+i+1)+".0.0"}}else{r("no pr");if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"}}r("caret return",o);return o}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?n[p.XRANGELOOSE]:n[p.XRANGE];return e.replace(i,(function(i,s,a,n,o,p){r("xRange",e,i,s,a,n,o,p);var l=isX(a);var c=l||isX(n);var d=c||isX(o);var u=d;if(s==="="&&u){s=""}p=t.includePrerelease?"-0":"";if(l){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&u){if(c){n=0}o=0;if(s===">"){s=">=";if(c){a=+a+1;n=0;o=0}else{n=+n+1;o=0}}else if(s==="<="){s="<";if(c){a=+a+1}else{n=+n+1}}i=s+a+"."+n+"."+o+p}else if(c){i=">="+a+".0.0"+p+" <"+(+a+1)+".0.0"+p}else if(d){i=">="+a+"."+n+".0"+p+" <"+a+"."+(+n+1)+".0"+p}r("xRange return",i);return i}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(n[p.STAR],"")}function hyphenReplace(e,t,r,i,s,a,n,o,p,l,c,d,u){if(isX(r)){t=""}else if(isX(i)){t=">="+r+".0.0"}else if(isX(s)){t=">="+r+"."+i+".0"}else{t=">="+t}if(isX(p)){o=""}else if(isX(l)){o="<"+(+p+1)+".0.0"}else if(isX(c)){o="<"+p+"."+(+l+1)+".0"}else if(d){o="<="+p+"."+l+"."+c+"-"+d}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,r)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,r)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,i){e=new SemVer(e,i);t=new Range(t,i);var s,a,n,o,p;switch(r){case">":s=gt;a=lte;n=lt;o=">";p=">=";break;case"<":s=lt;a=gte;n=gt;o="<";p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var l=0;l=0.0.0")}d=d||e;u=u||e;if(s(e.semver,d.semver,i)){d=e}else if(n(e.semver,u.semver,i)){u=e}}));if(d.operator===o||d.operator===p){return false}if((!u.operator||u.operator===o)&&a(e,u.semver)){return false}else if(u.operator===p&&n(e,u.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(n[p.COERCE])}else{var i;while((i=n[p.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||i.index+i[0].length!==r.index+r[0].length){r=i}n[p.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}n[p.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},6385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t{const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}p("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(e){const t=this.options.loose?a[n.COMPARATORLOOSE]:a[n.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=i}else{this.semver=new l(r[2],this.options.loose)}}toString(){return this.value}test(e){p("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}return o(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new c(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new c(this.value,t).test(e.semver)}const r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const n=o(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const p=o(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||s&&a||n||p}}e.exports=Comparator;const s=r(102);const{re:a,t:n}=r(7159);const o=r(7741);const p=r(2527);const l=r(4055);const c=r(1581)},1581:(e,t,r)=>{class Range{constructor(e,t){t=a(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof n){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const i=s.get(r);if(i){return i}const a=this.options.loose;const p=a?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(p,hyphenReplace(this.options.includePrerelease));o("hyphen replace",e);e=e.replace(l[c.COMPARATORTRIM],d);o("comparator trim",e);e=e.replace(l[c.TILDETRIM],u);e=e.replace(l[c.CARETTRIM],h);e=e.split(/\s+/).join(" ");let g=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(a){g=g.filter((e=>{o("loose invalid filter",e,this.options);return!!e.match(l[c.COMPARATORLOOSE])}))}o("range list",g);const y=new Map;const v=g.map((e=>new n(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}y.set(e.value,e)}if(y.size>1&&y.has("")){y.delete("")}const b=[...y.values()];s.set(r,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new p(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const i=e.slice();let s=i.pop();while(r&&i.length){r=i.every((e=>s.intersects(e,t)));s=i.pop()}return r};const parseComparator=(e,t)=>{o("comp",e,t);e=replaceCarets(e,t);o("caret",e);e=replaceTildes(e,t);o("tildes",e);e=replaceXRanges(e,t);o("xrange",e);e=replaceStars(e,t);o("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(r,((t,r,i,s,a)=>{o("tilde",e,t,r,i,s,a);let n;if(isX(r)){n=""}else if(isX(i)){n=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){n=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`}else if(a){o("replaceTilde pr",a);n=`>=${r}.${i}.${s}-${a} <${r}.${+i+1}.0-0`}else{n=`>=${r}.${i}.${s} <${r}.${+i+1}.0-0`}o("tilde return",n);return n}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{o("caret",e,t);const r=t.loose?l[c.CARETLOOSE]:l[c.CARET];const i=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,a,n)=>{o("caret",e,t,r,s,a,n);let p;if(isX(r)){p=""}else if(isX(s)){p=`>=${r}.0.0${i} <${+r+1}.0.0-0`}else if(isX(a)){if(r==="0"){p=`>=${r}.${s}.0${i} <${r}.${+s+1}.0-0`}else{p=`>=${r}.${s}.0${i} <${+r+1}.0.0-0`}}else if(n){o("replaceCaret pr",n);if(r==="0"){if(s==="0"){p=`>=${r}.${s}.${a}-${n} <${r}.${s}.${+a+1}-0`}else{p=`>=${r}.${s}.${a}-${n} <${r}.${+s+1}.0-0`}}else{p=`>=${r}.${s}.${a}-${n} <${+r+1}.0.0-0`}}else{o("no pr");if(r==="0"){if(s==="0"){p=`>=${r}.${s}.${a}${i} <${r}.${s}.${+a+1}-0`}else{p=`>=${r}.${s}.${a}${i} <${r}.${+s+1}.0-0`}}else{p=`>=${r}.${s}.${a} <${+r+1}.0.0-0`}}o("caret return",p);return p}))};const replaceXRanges=(e,t)=>{o("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(r,((r,i,s,a,n,p)=>{o("xRange",e,r,i,s,a,n,p);const l=isX(s);const c=l||isX(a);const d=c||isX(n);const u=d;if(i==="="&&u){i=""}p=t.includePrerelease?"-0":"";if(l){if(i===">"||i==="<"){r="<0.0.0-0"}else{r="*"}}else if(i&&u){if(c){a=0}n=0;if(i===">"){i=">=";if(c){s=+s+1;a=0;n=0}else{a=+a+1;n=0}}else if(i==="<="){i="<";if(c){s=+s+1}else{a=+a+1}}if(i==="<"){p="-0"}r=`${i+s}.${a}.${n}${p}`}else if(c){r=`>=${s}.0.0${p} <${+s+1}.0.0-0`}else if(d){r=`>=${s}.${a}.0${p} <${s}.${+a+1}.0-0`}o("xRange return",r);return r}))};const replaceStars=(e,t)=>{o("replaceStars",e,t);return e.trim().replace(l[c.STAR],"")};const replaceGTE0=(e,t)=>{o("replaceGTE0",e,t);return e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")};const hyphenReplace=e=>(t,r,i,s,a,n,o,p,l,c,d,u,h)=>{if(isX(i)){r=""}else if(isX(s)){r=`>=${i}.0.0${e?"-0":""}`}else if(isX(a)){r=`>=${i}.${s}.0${e?"-0":""}`}else if(n){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(l)){p=""}else if(isX(c)){p=`<${+l+1}.0.0-0`}else if(isX(d)){p=`<${l}.${+c+1}.0-0`}else if(u){p=`<=${l}.${c}.${d}-${u}`}else if(e){p=`<${l}.${c}.${+d+1}-0`}else{p=`<=${p}`}return`${r} ${p}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},4055:(e,t,r)=>{const i=r(2527);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:a}=r(6818);const{re:n,t:o}=r(7159);const p=r(102);const{compareIdentifiers:l}=r(2671);class SemVer{constructor(e,t){t=p(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?n[o.LOOSE]:n[o.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(l(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},231:(e,t,r)=>{const i=r(1976);const clean=(e,t)=>{const r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},7741:(e,t,r)=>{const i=r(8166);const s=r(8880);const a=r(4085);const n=r(6354);const o=r(7775);const p=r(9362);const cmp=(e,t,r,l)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return i(e,r,l);case"!=":return s(e,r,l);case">":return a(e,r,l);case">=":return n(e,r,l);case"<":return o(e,r,l);case"<=":return p(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},382:(e,t,r)=>{const i=r(4055);const s=r(1976);const{re:a,t:n}=r(7159);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(a[n.COERCE])}else{let t;while((t=a[n.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}a[n.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}a[n.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},621:(e,t,r)=>{const i=r(4055);const compareBuild=(e,t,r)=>{const s=new i(e,r);const a=new i(t,r);return s.compare(a)||s.compareBuild(a)};e.exports=compareBuild},1125:(e,t,r)=>{const i=r(4640);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},4640:(e,t,r)=>{const i=r(4055);const compare=(e,t,r)=>new i(e,r).compare(new i(t,r));e.exports=compare},1441:(e,t,r)=>{const i=r(1976);const s=r(8166);const diff=(e,t)=>{if(s(e,t)){return null}else{const r=i(e);const s=i(t);const a=r.prerelease.length||s.prerelease.length;const n=a?"pre":"";const o=a?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==s[e]){return n+e}}}return o}};e.exports=diff},8166:(e,t,r)=>{const i=r(4640);const eq=(e,t,r)=>i(e,t,r)===0;e.exports=eq},4085:(e,t,r)=>{const i=r(4640);const gt=(e,t,r)=>i(e,t,r)>0;e.exports=gt},6354:(e,t,r)=>{const i=r(4640);const gte=(e,t,r)=>i(e,t,r)>=0;e.exports=gte},5045:(e,t,r)=>{const i=r(4055);const inc=(e,t,r,s)=>{if(typeof r==="string"){s=r;r=undefined}try{return new i(e instanceof i?e.version:e,r).inc(t,s).version}catch(e){return null}};e.exports=inc},7775:(e,t,r)=>{const i=r(4640);const lt=(e,t,r)=>i(e,t,r)<0;e.exports=lt},9362:(e,t,r)=>{const i=r(4640);const lte=(e,t,r)=>i(e,t,r)<=0;e.exports=lte},7176:(e,t,r)=>{const i=r(4055);const major=(e,t)=>new i(e,t).major;e.exports=major},5535:(e,t,r)=>{const i=r(4055);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},8880:(e,t,r)=>{const i=r(4640);const neq=(e,t,r)=>i(e,t,r)!==0;e.exports=neq},1976:(e,t,r)=>{const{MAX_LENGTH:i}=r(6818);const{re:s,t:a}=r(7159);const n=r(4055);const o=r(102);const parse=(e,t)=>{t=o(t);if(e instanceof n){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}const r=t.loose?s[a.LOOSE]:s[a.FULL];if(!r.test(e)){return null}try{return new n(e,t)}catch(e){return null}};e.exports=parse},2376:(e,t,r)=>{const i=r(4055);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},5109:(e,t,r)=>{const i=r(1976);const prerelease=(e,t)=>{const r=i(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},9126:(e,t,r)=>{const i=r(4640);const rcompare=(e,t,r)=>i(t,e,r);e.exports=rcompare},5020:(e,t,r)=>{const i=r(621);const rsort=(e,t)=>e.sort(((e,r)=>i(r,e,t)));e.exports=rsort},3794:(e,t,r)=>{const i=r(1581);const satisfies=(e,t,r)=>{try{t=new i(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},1378:(e,t,r)=>{const i=r(621);const sort=(e,t)=>e.sort(((e,r)=>i(e,r,t)));e.exports=sort},923:(e,t,r)=>{const i=r(1976);const valid=(e,t)=>{const r=i(e,t);return r?r.version:null};e.exports=valid},6581:(e,t,r)=>{const i=r(7159);const s=r(6818);const a=r(4055);const n=r(2671);const o=r(1976);const p=r(923);const l=r(231);const c=r(5045);const d=r(1441);const u=r(7176);const h=r(5535);const g=r(2376);const y=r(5109);const v=r(4640);const b=r(9126);const x=r(1125);const w=r(621);const S=r(1378);const E=r(5020);const T=r(4085);const N=r(7775);const _=r(8166);const P=r(8880);const C=r(6354);const O=r(9362);const R=r(7741);const A=r(382);const D=r(7557);const I=r(1581);const k=r(3794);const L=r(1856);const M=r(6520);const B=r(2580);const j=r(4938);const z=r(7416);const q=r(298);const U=r(3463);const G=r(3752);const H=r(9861);const V=r(9561);const $=r(8502);e.exports={parse:o,valid:p,clean:l,inc:c,diff:d,major:u,minor:h,patch:g,prerelease:y,compare:v,rcompare:b,compareLoose:x,compareBuild:w,sort:S,rsort:E,gt:T,lt:N,eq:_,neq:P,gte:C,lte:O,cmp:R,coerce:A,Comparator:D,Range:I,satisfies:k,toComparators:L,maxSatisfying:M,minSatisfying:B,minVersion:j,validRange:z,outside:q,gtr:U,ltr:G,intersects:H,simplifyRange:V,subset:$,SemVer:a,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers}},6818:e=>{const t="2.0.0";const r=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:s}},2527:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2671:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const i=t.test(e);const s=t.test(r);if(i&&s){e=+e;r=+r}return e===r?0:i&&!s?-1:s&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},102:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},7159:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=r(6818);const s=r(2527);t=e.exports={};const a=t.re=[];const n=t.src=[];const o=t.t={};let p=0;const createToken=(e,t,r)=>{const i=p++;s(e,i,t);o[e]=i;n[i]=t;a[i]=new RegExp(t,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${n[o.NUMERICIDENTIFIER]})\\.`+`(${n[o.NUMERICIDENTIFIER]})\\.`+`(${n[o.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${n[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${n[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${n[o.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${n[o.NUMERICIDENTIFIER]}|${n[o.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${n[o.NUMERICIDENTIFIERLOOSE]}|${n[o.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${n[o.PRERELEASEIDENTIFIER]}(?:\\.${n[o.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${n[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[o.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${n[o.BUILDIDENTIFIER]}(?:\\.${n[o.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${n[o.MAINVERSION]}${n[o.PRERELEASE]}?${n[o.BUILD]}?`);createToken("FULL",`^${n[o.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${n[o.MAINVERSIONLOOSE]}${n[o.PRERELEASELOOSE]}?${n[o.BUILD]}?`);createToken("LOOSE",`^${n[o.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${n[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${n[o.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${n[o.XRANGEIDENTIFIER]})`+`(?:\\.(${n[o.XRANGEIDENTIFIER]})`+`(?:\\.(${n[o.XRANGEIDENTIFIER]})`+`(?:${n[o.PRERELEASE]})?${n[o.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${n[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})`+`(?:${n[o.PRERELEASELOOSE]})?${n[o.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${n[o.GTLT]}\\s*${n[o.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${n[o.GTLT]}\\s*${n[o.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",n[o.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${n[o.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${n[o.LONETILDE]}${n[o.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${n[o.LONETILDE]}${n[o.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${n[o.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${n[o.LONECARET]}${n[o.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${n[o.LONECARET]}${n[o.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${n[o.GTLT]}\\s*(${n[o.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]}|${n[o.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${n[o.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${n[o.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${n[o.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${n[o.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},3463:(e,t,r)=>{const i=r(298);const gtr=(e,t,r)=>i(e,t,">",r);e.exports=gtr},9861:(e,t,r)=>{const i=r(1581);const intersects=(e,t,r)=>{e=new i(e,r);t=new i(t,r);return e.intersects(t)};e.exports=intersects},3752:(e,t,r)=>{const i=r(298);const ltr=(e,t,r)=>i(e,t,"<",r);e.exports=ltr},6520:(e,t,r)=>{const i=r(4055);const s=r(1581);const maxSatisfying=(e,t,r)=>{let a=null;let n=null;let o=null;try{o=new s(t,r)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!a||n.compare(e)===-1){a=e;n=new i(a,r)}}}));return a};e.exports=maxSatisfying},2580:(e,t,r)=>{const i=r(4055);const s=r(1581);const minSatisfying=(e,t,r)=>{let a=null;let n=null;let o=null;try{o=new s(t,r)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!a||n.compare(e)===1){a=e;n=new i(a,r)}}}));return a};e.exports=minSatisfying},4938:(e,t,r)=>{const i=r(4055);const s=r(1581);const a=r(4085);const minVersion=(e,t)=>{e=new s(e,t);let r=new i("0.0.0");if(e.test(r)){return r}r=new i("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||a(t,n)){n=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(n&&(!r||a(r,n))){r=n}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},298:(e,t,r)=>{const i=r(4055);const s=r(7557);const{ANY:a}=s;const n=r(1581);const o=r(3794);const p=r(4085);const l=r(7775);const c=r(9362);const d=r(6354);const outside=(e,t,r,u)=>{e=new i(e,u);t=new n(t,u);let h,g,y,v,b;switch(r){case">":h=p;g=c;y=l;v=">";b=">=";break;case"<":h=l;g=d;y=p;v="<";b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,u)){return false}for(let r=0;r{if(e.semver===a){e=new s(">=0.0.0")}n=n||e;o=o||e;if(h(e.semver,n.semver,u)){n=e}else if(y(e.semver,o.semver,u)){o=e}}));if(n.operator===v||n.operator===b){return false}if((!o.operator||o.operator===v)&&g(e,o.semver)){return false}else if(o.operator===b&&y(e,o.semver)){return false}}return true};e.exports=outside},9561:(e,t,r)=>{const i=r(3794);const s=r(4640);e.exports=(e,t,r)=>{const a=[];let n=null;let o=null;const p=e.sort(((e,t)=>s(e,t,r)));for(const e of p){const s=i(e,t,r);if(s){o=e;if(!n){n=e}}else{if(o){a.push([n,o])}o=null;n=null}}if(n){a.push([n,null])}const l=[];for(const[e,t]of a){if(e===t){l.push(e)}else if(!t&&e===p[0]){l.push("*")}else if(!t){l.push(`>=${e}`)}else if(e===p[0]){l.push(`<=${t}`)}else{l.push(`${e} - ${t}`)}}const c=l.join(" || ");const d=typeof t.raw==="string"?t.raw:String(t);return c.length{const i=r(1581);const s=r(7557);const{ANY:a}=s;const n=r(3794);const o=r(4640);const subset=(e,t,r={})=>{if(e===t){return true}e=new i(e,r);t=new i(t,r);let s=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a){return true}else if(r.includePrerelease){e=[new s(">=0.0.0-0")]}else{e=[new s(">=0.0.0")]}}if(t.length===1&&t[0].semver===a){if(r.includePrerelease){return true}else{t=[new s(">=0.0.0")]}}const i=new Set;let p,l;for(const t of e){if(t.operator===">"||t.operator===">="){p=higherGT(p,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{i.add(t.semver)}}if(i.size>1){return null}let c;if(p&&l){c=o(p.semver,l.semver,r);if(c>0){return null}else if(c===0&&(p.operator!==">="||l.operator!=="<=")){return null}}for(const e of i){if(p&&!n(e,String(p),r)){return null}if(l&&!n(e,String(l),r)){return null}for(const i of t){if(!n(e,String(i),r)){return false}}return true}let d,u;let h,g;let y=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let v=p&&!r.includePrerelease&&p.semver.prerelease.length?p.semver:false;if(y&&y.prerelease.length===1&&l.operator==="<"&&y.prerelease[0]===0){y=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";h=h||e.operator==="<"||e.operator==="<=";if(p){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator===">"||e.operator===">="){d=higherGT(p,e,r);if(d===e&&d!==p){return false}}else if(p.operator===">="&&!n(p.semver,String(e),r)){return false}}if(l){if(y){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch){y=false}}if(e.operator==="<"||e.operator==="<="){u=lowerLT(l,e,r);if(u===e&&u!==l){return false}}else if(l.operator==="<="&&!n(l.semver,String(e),r)){return false}}if(!e.operator&&(l||p)&&c!==0){return false}}if(p&&h&&!l&&c!==0){return false}if(l&&g&&!p&&c!==0){return false}if(v||y){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const i=o(e.semver,t.semver,r);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const i=o(e.semver,t.semver,r);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},1856:(e,t,r)=>{const i=r(1581);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},7416:(e,t,r)=>{const i=r(1581);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},2096:(e,t,r)=>{var i=r(7401);var s=r(1573);var a=s;a.v1=i;a.v4=s;e.exports=a},7370:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var s=t;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}e.exports=bytesToUuid},2385:(e,t,r)=>{var i=r(6113);e.exports=function nodeRNG(){return i.randomBytes(16)}},7401:(e,t,r)=>{var i=r(2385);var s=r(7370);var a;var n;var o=0;var p=0;function v1(e,t,r){var l=t&&r||0;var c=t||[];e=e||{};var d=e.node||a;var u=e.clockseq!==undefined?e.clockseq:n;if(d==null||u==null){var h=i();if(d==null){d=a=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]}if(u==null){u=n=(h[6]<<8|h[7])&16383}}var g=e.msecs!==undefined?e.msecs:(new Date).getTime();var y=e.nsecs!==undefined?e.nsecs:p+1;var v=g-o+(y-p)/1e4;if(v<0&&e.clockseq===undefined){u=u+1&16383}if((v<0||g>o)&&e.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=g;p=y;n=u;g+=122192928e5;var b=((g&268435455)*1e4+y)%4294967296;c[l++]=b>>>24&255;c[l++]=b>>>16&255;c[l++]=b>>>8&255;c[l++]=b&255;var x=g/4294967296*1e4&268435455;c[l++]=x>>>8&255;c[l++]=x&255;c[l++]=x>>>24&15|16;c[l++]=x>>>16&255;c[l++]=u>>>8|128;c[l++]=u&255;for(var w=0;w<6;++w){c[l+w]=d[w]}return t?t:s(c)}e.exports=v1},1573:(e,t,r)=>{var i=r(2385);var s=r(7370);function v4(e,t,r){var a=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var n=e.random||(e.rng||i)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){for(var o=0;o<16;++o){t[a+o]=n[o]}}return t||s(n)}e.exports=v4},7799:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const o=a(r(2186));const p=a(r(1017));const l=a(r(1518));const c=a(r(8245));const d=r(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,r,i,s=false){return n(this,void 0,void 0,(function*(){checkPaths(e);r=r||[];const a=[t,...r];o.debug("Resolved Keys:");o.debug(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}const n=yield l.getCompressionMethod();let u="";try{const t=yield c.getCacheEntry(a,e,{compressionMethod:n,enableCrossOsArchive:s});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(i===null||i===void 0?void 0:i.lookupOnly){o.info("Lookup only - skipping download");return t.cacheKey}u=p.join(yield l.createTempDirectory(),l.getCacheFileName(n));o.debug(`Archive Path: ${u}`);yield c.downloadCache(t.archiveLocation,u,i);if(o.isDebug()){yield(0,d.listTar)(u,n)}const r=l.getArchiveFileSizeInBytes(u);o.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield(0,d.extractTar)(u,n);o.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{o.warning(`Failed to restore: ${e.message}`)}}finally{try{yield l.unlinkFile(u)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return undefined}))}t.restoreCache=restoreCache;function saveCache(e,t,r,i=false){var s,a,u,h,g;return n(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const n=yield l.getCompressionMethod();let y=-1;const v=yield l.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(v)}`);if(v.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const b=yield l.createTempDirectory();const x=p.join(b,l.getCacheFileName(n));o.debug(`Archive Path: ${x}`);try{yield(0,d.createTar)(b,v,n);if(o.isDebug()){yield(0,d.listTar)(x,n)}const p=10*1024*1024*1024;const w=l.getArchiveFileSizeInBytes(x);o.debug(`File Size: ${w}`);if(w>p&&!l.isGhes()){throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`)}o.debug("Reserving Cache");const S=yield c.reserveCache(t,e,{compressionMethod:n,enableCrossOsArchive:i,cacheSize:w});if((s=S===null||S===void 0?void 0:S.result)===null||s===void 0?void 0:s.cacheId){y=(a=S===null||S===void 0?void 0:S.result)===null||a===void 0?void 0:a.cacheId}else if((S===null||S===void 0?void 0:S.statusCode)===400){throw new Error((h=(u=S===null||S===void 0?void 0:S.error)===null||u===void 0?void 0:u.message)!==null&&h!==void 0?h:`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(g=S===null||S===void 0?void 0:S.error)===null||g===void 0?void 0:g.message}`)}o.debug(`Saving Cache (ID: ${y})`);yield c.saveCache(y,x,r)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){o.info(`Failed to save: ${t.message}`)}else{o.warning(`Failed to save: ${t.message}`)}}finally{try{yield l.unlinkFile(x)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return y}))}t.saveCache=saveCache},8245:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.reserveCache=t.downloadCache=t.getCacheEntry=t.getCacheVersion=void 0;const o=a(r(2186));const p=r(6255);const l=r(5526);const c=a(r(6113));const d=a(r(7147));const u=r(7310);const h=a(r(1518));const g=r(5500);const y=r(6215);const v=r(3981);const b="1.0";function getCacheApiUrl(e){const t=process.env["ACTIONS_CACHE_URL"]||"";if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;o.debug(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new l.BearerCredentialHandler(e);return new p.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t,r=false){const i=e;if(t){i.push(t)}if(process.platform==="win32"&&!r){i.push("windows-only")}i.push(b);return c.createHash("sha256").update(i.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,r){return n(this,void 0,void 0,(function*(){const i=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const a=`cache?keys=${encodeURIComponent(e.join(","))}&version=${s}`;const p=yield(0,v.retryTypedResponse)("getCacheEntry",(()=>n(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(a))}))));if(p.statusCode===204){if(o.isDebug()){yield printCachesListForDiagnostics(e[0],i,s)}return null}if(!(0,v.isSuccessStatusCode)(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const c=l===null||l===void 0?void 0:l.archiveLocation;if(!c){throw new Error("Cache not found.")}o.setSecret(c);o.debug(`Cache Result:`);o.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,r){return n(this,void 0,void 0,(function*(){const i=`caches?key=${encodeURIComponent(e)}`;const s=yield(0,v.retryTypedResponse)("listCache",(()=>n(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(i))}))));if(s.statusCode===200){const t=s.result;const i=t===null||t===void 0?void 0:t.totalCount;if(i&&i>0){o.debug(`No matching cache found for cache key '${e}', version '${r} 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(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){o.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,r){return n(this,void 0,void 0,(function*(){const i=new u.URL(e);const s=(0,y.getDownloadOptions)(r);if(s.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield(0,g.downloadCacheStorageSDK)(e,t,s)}else{yield(0,g.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,r){return n(this,void 0,void 0,(function*(){const i=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const a={key:e,version:s,cacheSize:r===null||r===void 0?void 0:r.cacheSize};const o=yield(0,v.retryTypedResponse)("reserveCache",(()=>n(this,void 0,void 0,(function*(){return i.postJson(getCacheApiUrl("caches"),a)}))));return o}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,i,s){return n(this,void 0,void 0,(function*(){o.debug(`Uploading chunk of size ${s-i+1} bytes at offset ${i} with content range: ${getContentRange(i,s)}`);const a={"Content-Type":"application/octet-stream","Content-Range":getContentRange(i,s)};const p=yield(0,v.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${s})`,(()=>n(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),a)}))));if(!(0,v.isSuccessStatusCode)(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,i){return n(this,void 0,void 0,(function*(){const s=h.getArchiveFileSizeInBytes(r);const a=getCacheApiUrl(`caches/${t.toString()}`);const p=d.openSync(r,"r");const l=(0,y.getUploadOptions)(i);const c=h.assertDefined("uploadConcurrency",l.uploadConcurrency);const u=h.assertDefined("uploadChunkSize",l.uploadChunkSize);const g=[...new Array(c).keys()];o.debug("Awaiting all uploads");let v=0;try{yield Promise.all(g.map((()=>n(this,void 0,void 0,(function*(){while(vd.createReadStream(r,{fd:p,start:i,end:n,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,n)}})))))}finally{d.closeSync(p)}return}))}function commitCache(e,t,r){return n(this,void 0,void 0,(function*(){const i={size:r};return yield(0,v.retryTypedResponse)("commitCache",(()=>n(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),i)}))))}))}function saveCache(e,t,r){return n(this,void 0,void 0,(function*(){const i=createHttpClient();o.debug("Upload cache");yield uploadFile(i,e,t,r);o.debug("Commiting cache");const s=h.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const a=yield commitCache(i,e,s);if(!(0,v.isSuccessStatusCode)(a.statusCode)){throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`)}o.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.isGhes=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const p=a(r(2186));const l=a(r(1514));const c=a(r(8090));const d=a(r(7436));const u=a(r(7147));const h=a(r(1017));const g=a(r(5911));const y=a(r(3837));const v=r(4138);const b=r(8840);function createTempDirectory(){return n(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=h.join(r,"actions","temp")}const r=h.join(t,(0,v.v4)());yield d.mkdirP(r);return r}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return u.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,r;var i;return n(this,void 0,void 0,(function*(){const s=[];const a=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const n=yield c.create(e.join("\n"),{implicitDescendants:false});try{for(var l=o(n.globGenerator()),d;d=yield l.next(),!d.done;){const e=d.value;const t=h.relative(a,e).replace(new RegExp(`\\${h.sep}`,"g"),"/");p.debug(`Matched: ${t}`);if(t===""){s.push(".")}else{s.push(`${t}`)}}}catch(e){t={error:e}}finally{try{if(d&&!d.done&&(r=l.return))yield r.call(l)}finally{if(t)throw t.error}}return s}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return n(this,void 0,void 0,(function*(){return y.promisify(u.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return n(this,void 0,void 0,(function*(){let r="";t.push("--version");p.debug(`Checking ${e} ${t.join(" ")}`);try{yield l.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}})}catch(e){p.debug(e.message)}r=r.trim();p.debug(r);return r}))}function getCompressionMethod(){return n(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=g.clean(e);p.debug(`zstd version: ${t}`);if(e===""){return b.CompressionMethod.Gzip}else{return b.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===b.CompressionMethod.Gzip?b.CacheFilename.Gzip:b.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return n(this,void 0,void 0,(function*(){if(u.existsSync(b.GnuTarPathOnWindows)){return b.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?d.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");return e.hostname.toUpperCase()!=="GITHUB.COM"}t.isGhes=isGhes},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var r;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(r=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));var s;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(s=t.ArchiveToolType||(t.ArchiveToolType={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt"},5500:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const o=a(r(2186));const p=r(6255);const l=r(4100);const c=a(r(4300));const d=a(r(7147));const u=a(r(2781));const h=a(r(3837));const g=a(r(1518));const y=r(8840);const v=r(3981);const b=r(2557);function pipeResponseToStream(e,t){return n(this,void 0,void 0,(function*(){const r=h.promisify(u.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;o.debug(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const i=(e/(1024*1024)/(r/1e3)).toFixed(1);o.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return n(this,void 0,void 0,(function*(){const r=d.createWriteStream(t);const i=new p.HttpClient("actions/cache");const s=yield(0,v.retryHttpClientResponse)("downloadCache",(()=>n(this,void 0,void 0,(function*(){return i.get(e)}))));s.message.socket.setTimeout(y.SocketTimeout,(()=>{s.message.destroy();o.debug(`Aborting download, socket timed out after ${y.SocketTimeout} ms`)}));yield pipeResponseToStream(s,r);const a=s.message.headers["content-length"];if(a){const e=parseInt(a);const r=g.getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{o.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,r){var i;return n(this,void 0,void 0,(function*(){const s=new l.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const a=yield s.getProperties();const n=(i=a.contentLength)!==null&&i!==void 0?i:-1;if(n<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,c.constants.MAX_LENGTH);const i=new DownloadProgress(n);const a=d.openSync(t,"w");try{i.startDisplayTimer();const t=new b.AbortController;const o=t.signal;while(!i.isDone()){const p=i.segmentOffset+i.segmentSize;const l=Math.min(e,n-p);i.nextSegment(l);const c=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(p,l,{abortSignal:o,concurrency:r.downloadConcurrency,onProgress:i.onProgress()}));if(c==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(c)){d.writeFileSync(a,c)}}}finally{i.stopDisplayTimer();d.closeSync(a)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>n(void 0,void 0,void 0,(function*(){let r;const i=new Promise((t=>{r=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,i]).then((e=>{clearTimeout(r);return e}))}))},3981:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const o=a(r(2186));const p=r(6255);const l=r(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[p.HttpCodes.BadGateway,p.HttpCodes.ServiceUnavailable,p.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return n(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r,i=l.DefaultRetryAttempts,s=l.DefaultRetryDelay,a=undefined){return n(this,void 0,void 0,(function*(){let n="";let p=1;while(p<=i){let l=undefined;let c=undefined;let d=false;try{l=yield t()}catch(e){if(a){l=a(e)}d=true;n=e.message}if(l){c=r(l);if(!isServerErrorStatusCode(c)){return l}}if(c){d=isRetryableStatusCode(c);n=`Cache service responded with ${c}`}o.debug(`${e} - Attempt ${p} of ${i} failed with error: ${n}`);if(!d){o.debug(`${e} - Error is not retryable`);break}yield sleep(s);p++}throw Error(`${e} failed: ${n}`)}))}t.retry=retry;function retryTypedResponse(e,t,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay){return n(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),r,i,(e=>{if(e instanceof p.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay){return n(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),r,i)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const o=r(1514);const p=a(r(7436));const l=r(7147);const c=a(r(1017));const d=a(r(1518));const u=r(8840);const h=process.platform==="win32";function getTarPath(){return n(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield d.getGnuTarPathOnWindows();const t=u.SystemTarPathOnWindows;if(e){return{path:e,type:u.ArchiveToolType.GNU}}else if((0,l.existsSync)(t)){return{path:t,type:u.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:u.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:u.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:u.ArchiveToolType.GNU}}))}function getTarArgs(e,t,r,i=""){return n(this,void 0,void 0,(function*(){const s=[`"${e.path}"`];const a=d.getCacheFileName(t);const n="cache.tar";const o=getWorkingDirectory();const p=e.type===u.ArchiveToolType.BSD&&t!==u.CompressionMethod.Gzip&&h;switch(r){case"create":s.push("--posix","-cf",p?n:a.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"--exclude",p?n:a.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"--files-from",u.ManifestFilename);break;case"extract":s.push("-xf",p?n:i.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${c.sep}`,"g"),"/"));break;case"list":s.push("-tf",p?n:i.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"-P");break}if(e.type===u.ArchiveToolType.GNU){switch(process.platform){case"win32":s.push("--force-local");break;case"darwin":s.push("--delay-directory-restore");break}}return s}))}function getCommands(e,t,r=""){return n(this,void 0,void 0,(function*(){let i;const s=yield getTarPath();const a=yield getTarArgs(s,e,t,r);const n=t!=="create"?yield getDecompressionProgram(s,e,r):yield getCompressionProgram(s,e);const o=s.type===u.ArchiveToolType.BSD&&e!==u.CompressionMethod.Gzip&&h;if(o&&t!=="create"){i=[[...n].join(" "),[...a].join(" ")]}else{i=[[...a].join(" "),[...n].join(" ")]}if(o){return i}return[i.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,r){return n(this,void 0,void 0,(function*(){const i=e.type===u.ArchiveToolType.BSD&&t!==u.CompressionMethod.Gzip&&h;switch(t){case u.CompressionMethod.Zstd:return i?["zstd -d --long=30 --force -o",u.TarFilename,r.replace(new RegExp(`\\${c.sep}`,"g"),"/")]:["--use-compress-program",h?'"zstd -d --long=30"':"unzstd --long=30"];case u.CompressionMethod.ZstdWithoutLong:return i?["zstd -d --force -o",u.TarFilename,r.replace(new RegExp(`\\${c.sep}`,"g"),"/")]:["--use-compress-program",h?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return n(this,void 0,void 0,(function*(){const r=d.getCacheFileName(t);const i=e.type===u.ArchiveToolType.BSD&&t!==u.CompressionMethod.Gzip&&h;switch(t){case u.CompressionMethod.Zstd:return i?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${c.sep}`,"g"),"/"),u.TarFilename]:["--use-compress-program",h?'"zstd -T0 --long=30"':"zstdmt --long=30"];case u.CompressionMethod.ZstdWithoutLong:return i?["zstd -T0 --force -o",r.replace(new RegExp(`\\${c.sep}`,"g"),"/"),u.TarFilename]:["--use-compress-program",h?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return n(this,void 0,void 0,(function*(){for(const r of e){try{yield(0,o.exec)(r,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${r.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return n(this,void 0,void 0,(function*(){const r=yield getCommands(t,"list",e);yield execCommands(r)}))}t.listTar=listTar;function extractTar(e,t){return n(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield p.mkdirP(r);const i=yield getCommands(t,"extract",e);yield execCommands(i)}))}t.extractTar=extractTar;function createTar(e,t,r){return n(this,void 0,void 0,(function*(){(0,l.writeFileSync)(c.join(e,u.ManifestFilename),t.join("\n"));const i=yield getCommands(r,"create");yield execCommands(i,e)}))}t.createTar=createTar},6215:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const n=a(r(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}n.debug(`Upload concurrency: ${t.uploadConcurrency}`);n.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const r=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(r&&!isNaN(Number(r))&&isFinite(Number(r))){t.segmentTimeoutInMs=Number(r)*60*1e3}n.debug(`Use Azure SDK: ${t.useAzureSdk}`);n.debug(`Download concurrency: ${t.downloadConcurrency}`);n.debug(`Request timeout (ms): ${t.timeoutInMs}`);n.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);n.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);n.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},4138:(e,t,r)=>{var i=r(1610);var s=r(8373);var a=s;a.v1=i;a.v4=s;e.exports=a},5694:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var s=t;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}e.exports=bytesToUuid},4069:(e,t,r)=>{var i=r(6113);e.exports=function nodeRNG(){return i.randomBytes(16)}},1610:(e,t,r)=>{var i=r(4069);var s=r(5694);var a;var n;var o=0;var p=0;function v1(e,t,r){var l=t&&r||0;var c=t||[];e=e||{};var d=e.node||a;var u=e.clockseq!==undefined?e.clockseq:n;if(d==null||u==null){var h=i();if(d==null){d=a=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]}if(u==null){u=n=(h[6]<<8|h[7])&16383}}var g=e.msecs!==undefined?e.msecs:(new Date).getTime();var y=e.nsecs!==undefined?e.nsecs:p+1;var v=g-o+(y-p)/1e4;if(v<0&&e.clockseq===undefined){u=u+1&16383}if((v<0||g>o)&&e.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=g;p=y;n=u;g+=122192928e5;var b=((g&268435455)*1e4+y)%4294967296;c[l++]=b>>>24&255;c[l++]=b>>>16&255;c[l++]=b>>>8&255;c[l++]=b&255;var x=g/4294967296*1e4&268435455;c[l++]=x>>>8&255;c[l++]=x&255;c[l++]=x>>>24&15|16;c[l++]=x>>>16&255;c[l++]=u>>>8|128;c[l++]=u&255;for(var w=0;w<6;++w){c[l+w]=d[w]}return t?t:s(c)}e.exports=v1},8373:(e,t,r)=>{var i=r(4069);var s=r(5694);function v4(e,t,r){var a=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var n=e.random||(e.rng||i)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){for(var o=0;o<16;++o){t[a+o]=n[o]}}return t||s(n)}e.exports=v4},7351:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const n=a(r(2037));const o=r(5278);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=r(7351);const p=r(717);const l=r(5278);const c=a(r(2037));const d=a(r(1017));const u=r(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=l.toCommandValue(t);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){return p.issueFileCommand("ENV",p.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},r)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const i=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(i.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return p.issueFileCommand("OUTPUT",p.prepareKeyValueMessage(e,t))}process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return p.issueFileCommand("STATE",p.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return n(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var y=r(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return y.markdownSummary}});var v=r(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},717:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const n=a(r(7147));const o=a(r(2037));const p=r(5840);const l=r(5278);function issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}n.appendFileSync(r,`${l.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${p.v4()}`;const i=l.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(i.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${o.EOL}${i}${o.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(6255);const a=r(5526);const n=r(2186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const i=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(t=i.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}n.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);n.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const n=a(r(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,n.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(2037);const a=r(7147);const{access:n,appendFile:o,writeFile:p}=a.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield n(e,a.constants.R_OK|a.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const i=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${i}>`}return`<${e}${i}>${t}`}write(e){return i(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const i=t?p:o;yield i(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,i);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:i,rowspan:s}=e;const a=t?"th":"td";const n=Object.assign(Object.assign({},i&&{colspan:i}),s&&{rowspan:s});return this.wrap(a,r,n)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:i,height:s}=r||{};const a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s});const n=this.wrap("img",null,Object.assign({src:e,alt:t},a));return this.addRaw(n).addEOL()}addHeading(e,t){const r=`h${t}`;const i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=r(1576);const p=a(r(8159));function exec(e,t,r){return n(this,void 0,void 0,(function*(){const i=p.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=i[0];t=i.slice(1).concat(t||[]);const a=new p.ToolRunner(s,t,r);return a.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var i,s;return n(this,void 0,void 0,(function*(){let a="";let n="";const p=new o.StringDecoder("utf8");const l=new o.StringDecoder("utf8");const c=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stdout;const d=(s=r===null||r===void 0?void 0:r.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{n+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{a+=p.write(e);if(c){c(e)}};const u=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:u}));a+=p.end();n+=l.end();return{exitCode:h,stdout:a,stderr:n}}))}t.getExecOutput=getExecOutput},8159:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=a(r(2037));const p=a(r(2361));const l=a(r(2081));const c=a(r(1017));const d=a(r(7436));const u=a(r(1962));const h=r(9512);const g=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let s=t?"":"[command]";if(g){if(this._isCmdFile()){s+=r;for(const e of i){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of i){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(r);for(const e of i){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=r;for(const e of i){s+=` ${e}`}}return s}_processLineBuffer(e,t,r){try{let i=t+e.toString();let s=i.indexOf(o.EOL);while(s>-1){const e=i.substring(0,s);r(e);i=i.substring(s+o.EOL.length);s=i.indexOf(o.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(g){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(g){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(t.some((e=>e===i))){r=true;break}}if(!r){return e}let i='"';let s=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(s&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){s=true;i+='"'}else{s=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(r&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,(function*(){if(!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>n(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+o.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield u.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const a=l.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let n="";if(a.stdout){a.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}n=this._processLineBuffer(e,n,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(a.stderr){a.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}a.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));a.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));a.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((r,i)=>{if(n.length>0){this.emit("stdline",n)}if(p.length>0){this.emit("errline",p)}a.removeAllListeners();if(r){t(r)}else{e(i)}}));if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let i=false;let s="";function append(e){if(i&&e!=='"'){s+="\\"}s+=e;i=false}for(let a=0;a0){t.push(s);s=""}continue}append(n)}if(s.length>0){t.push(s.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends p.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const 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()}}},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const i=r(7147);const s=r(2037);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},5438:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const n=a(r(4087));const o=r(3030);t.context=new n.Context;function getOctokit(e,t,...r){const i=o.GitHub.plugin(...r);return new i(o.getOctokitOptions(e,t))}t.getOctokit=getOctokit},7914:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=a(r(6255));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new n.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},3030:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const n=a(r(4087));const o=a(r(7914));const p=r(6762);const l=r(3044);const c=r(4193);t.context=new n.Context;const d=o.getApiBaseUrl();t.defaults={baseUrl:d,request:{agent:o.getProxyAgent(d)}};t.GitHub=p.Octokit.plugin(l.restEndpointMethods,c.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const i=o.getAuthString(e,r);if(i){r.auth=i}return r}t.getOctokitOptions=getOctokitOptions},8090:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const s=r(8298);function create(e,t){return i(this,void 0,void 0,(function*(){return yield s.DefaultGlobber.create(e,t)}))}t.create=create},1026:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const n=a(r(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;n.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;n.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;n.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},8298:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),s,a=[];return s={},verb("next"),verb("throw"),verb("return"),s[Symbol.asyncIterator]=function(){return this},s;function verb(e){if(i[e])s[e]=function(t){return new Promise((function(r,i){a.push([e,t,r,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const c=a(r(2186));const d=a(r(7147));const u=a(r(1026));const h=a(r(1017));const g=a(r(9005));const y=r(1063);const v=r(4536);const b=r(9117);const x=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=u.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return n(this,void 0,void 0,(function*(){const r=[];try{for(var i=o(this.globGenerator()),s;s=yield i.next(),!s.done;){const e=s.value;r.push(e)}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return r}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=u.getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new v.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of g.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield p(d.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new b.SearchState(e,1))}const i=[];while(r.length){const s=r.pop();const a=g.match(t,s.path);const n=!!a||g.partialMatch(t,s.path);if(!a&&!n){continue}const o=yield p(DefaultGlobber.stat(s,e,i));if(!o){continue}if(o.isDirectory()){if(a&y.MatchKind.Directory){yield yield p(s.path)}else if(!n){continue}const e=s.level+1;const t=(yield p(d.promises.readdir(s.path))).map((t=>new b.SearchState(h.join(s.path,t),e)));r.push(...t.reverse())}else if(a&y.MatchKind.File){yield yield p(s.path)}}}))}static create(e,t){return n(this,void 0,void 0,(function*(){const r=new DefaultGlobber(t);if(x){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new v.Pattern(e))}}r.searchPaths.push(...g.getSearchPaths(r.patterns));return r}))}static stat(e,t,r){return n(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield d.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{i=yield d.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield d.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},1063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=t.MatchKind||(t.MatchKind={}))},1849:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const o=a(r(1017));const p=n(r(9491));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=o.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(o.sep)){return e}if(e===o.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const o=a(r(1017));const p=a(r(1849));const l=n(r(9491));const c=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(o.sep)}else{let t=e;let r=p.dirname(t);while(r!==t){const e=o.basename(t);this.segments.unshift(e);t=r;r=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const r of e){const e=p?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let s=false;let a=e;let o=n.dirname(a);while(o!==a){if(t[o]){s=true;break}a=o;o=n.dirname(a)}if(!s){r.push(i.searchPath);t[e]="included"}}return r}t.getSearchPaths=getSearchPaths;function match(e,t){let r=o.MatchKind.None;for(const i of e){if(i.negate){r&=~i.match(t)}else{r|=i.match(t)}}return r}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},4536:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const o=a(r(2037));const p=a(r(1017));const l=a(r(1849));const c=n(r(9491));const d=r(3973);const u=r(1063);const h=r(6836);const g=process.platform==="win32";class Pattern{constructor(e,t=false,r,i){this.negate=false;let s;if(typeof e==="string"){s=e.trim()}else{r=r||[];c.default(r.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(r[0]);c.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);s=new h.Path(r).toString().trim();if(e){s=`!${s}`}}while(s.startsWith("!")){this.negate=!this.negate;s=s.substr(1).trim()}s=Pattern.fixupPattern(s,i);this.segments=new h.Path(s).segments;this.trailingSeparator=l.normalizeSeparators(s).endsWith(p.sep);s=l.safeTrimTrailingSeparator(s);let a=false;const n=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!a&&!(a=e==="")));this.searchPath=new h.Path(n).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(n[0]),g?"i":"");this.isImplicitPattern=t;const o={dot:true,nobrace:true,nocase:g,nocomment:true,noext:true,nonegate:true};s=g?s.replace(/\\/g,"/"):s;this.minimatch=new d.Minimatch(s,o)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?u.MatchKind.Directory:u.MatchKind.All}return u.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(g?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(g?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c.default(e,"pattern cannot be empty");const r=new h.Path(e).segments.map((e=>Pattern.getLiteral(e)));c.default(r.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c.default(!l.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||o.homedir();c.default(t,"Unable to determine HOME directory");c.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(g&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(g&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(i.length>1){return""}if(i){t+=i;r=s;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},5526:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=a(r(3685));const p=a(r(5687));const l=a(r(9835));const c=a(r(4294));var d;(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"})(d=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var h;(function(e){e["ApplicationJson"]="application/json"})(h=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=l.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const g=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const y=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const v=["OPTIONS","GET","DELETE","HEAD"];const b=10;const x=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return n(this,void 0,void 0,(function*(){return new Promise((e=>n(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())}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return n(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return n(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return n(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return n(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,i){return n(this,void 0,void 0,(function*(){return this.request(e,t,r,i)}))}getJson(e,t={}){return n(this,void 0,void 0,(function*(){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,h.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,h.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,h.ApplicationJson);const s=yield this.post(e,i,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,h.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,h.ApplicationJson);const s=yield this.put(e,i,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,h.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,h.ApplicationJson);const s=yield this.patch(e,i,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,i){return n(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let a=this._prepareRequest(e,s,i);const n=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let o=0;let p;do{p=yield this.requestRaw(a,r);if(p&&p.message&&p.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(p)){e=t;break}}if(e){return e.handleAuthentication(this,a,r)}else{return p}}let t=this._maxRedirects;while(p.message.statusCode&&g.includes(p.message.statusCode)&&this._allowRedirects&&t>0){const n=p.message.headers["location"];if(!n){break}const o=new URL(n);if(s.protocol==="https:"&&s.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield p.readBody();if(o.hostname!==s.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}a=this._prepareRequest(e,o,i);p=yield this.requestRaw(a,r);t--}if(!p.message.statusCode||!y.includes(p.message.statusCode)){return p}o+=1;if(o{function callbackForResult(e,t){if(e){i(e)}else if(!t){i(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;function handleResult(e,t){if(!i){i=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let a;s.on("socket",(e=>{a=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(a){a.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?p:o;const a=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;const r=l.getProxyUrl(e);const i=r&&r.hostname;if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(t){return t}const s=e.protocol==="https:";let a=100;if(this.requestOptions){a=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let i;const n=r.protocol==="https:";if(s){i=n?c.httpsOverHttps:c.httpsOverHttp}else{i=n?c.httpOverHttps:c.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=s?new p.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=s?p.globalAgent:o.globalAgent}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return n(this,void 0,void 0,(function*(){e=Math.min(b,e);const t=x*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,i)=>n(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const a={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(a)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let n;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){n=JSON.parse(o,dateTimeDeserializer)}else{n=JSON.parse(o)}a.result=n}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(n&&n.message){e=n.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=a.result;i(t)}else{r(a)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){return new URL(r)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=a(r(7147));const l=a(r(1017));o=p.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return n(this,void 0,void 0,(function*(){const i=r?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const s=e;for(const a of r){e=s+a;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const r=l.dirname(e);const i=l.basename(e).toUpperCase();for(const s of yield t.readdir(r)){if(i===s.toUpperCase()){e=l.join(r,s);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=r(9491);const p=a(r(2081));const l=a(r(1017));const c=r(3837);const d=a(r(1962));const u=c.promisify(p.exec);const h=c.promisify(p.execFile);function cp(e,t,r={}){return n(this,void 0,void 0,(function*(){const{force:i,recursive:s,copySourceDirectory:a}=readCopyOptions(r);const n=(yield d.exists(t))?yield d.stat(t):null;if(n&&n.isFile()&&!i){return}const o=n&&n.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield d.stat(e);if(p.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,i)}}else{if(l.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,i)}}))}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,(function*(){if(yield d.exists(t)){let i=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));i=yield d.exists(t)}if(i){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield u(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield h(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`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.`)}else{throw new Error(`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}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(l.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){r.push(e)}}}const i=[];for(const s of r){const r=yield d.tryGetExecutablePath(l.join(s,e),t);if(r){i.push(r)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:i}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield d.readdir(e);for(const a of s){const s=`${e}/${a}`;const n=`${t}/${a}`;const o=yield d.lstat(s);if(o.isDirectory()){yield cpDirRecursive(s,n,r,i)}else{yield copyFile(s,n,i)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return n(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},2473:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=a(r(5911));const p=r(2186);const l=r(2037);const c=r(2081);const d=r(7147);function _findMatch(t,r,i,s){return n(this,void 0,void 0,(function*(){const a=l.platform();let n;let c;let d;for(const n of i){const i=n.version;p.debug(`check ${i} satisfies ${t}`);if(o.satisfies(i,t)&&(!r||n.stable===r)){d=n.files.find((t=>{p.debug(`${t.arch}===${s} && ${t.platform}===${a}`);let r=t.arch===s&&t.platform===a;if(r&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){r=true}else{r=o.satisfies(i,t.platform_version)}}return r}));if(d){p.debug(`matched ${n.version}`);c=n;break}}}if(c&&d){n=Object.assign({},c);n.files=[d]}return n}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let r="";if(d.existsSync(e)){r=d.readFileSync(e).toString()}else if(d.existsSync(t)){r=d.readFileSync(t).toString()}return r}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=a(r(2186));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,(function*(){let r=1;while(rsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},7784:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const p=a(r(2186));const l=a(r(7436));const c=a(r(7147));const d=a(r(2473));const u=a(r(2037));const h=a(r(1017));const g=a(r(6255));const y=a(r(5911));const v=a(r(2781));const b=a(r(3837));const x=r(9491);const w=o(r(7468));const S=r(1514);const E=r(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const T=process.platform==="win32";const N=process.platform==="darwin";const _="actions/tool-cache";function downloadTool(e,t,r,i){return n(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),w.default());yield l.mkdirP(h.dirname(t));p.debug(`Downloading ${e}`);p.debug(`Destination ${t}`);const s=3;const a=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const c=new E.RetryHelper(s,a,o);return yield c.execute((()=>n(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",r,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r,i){return n(this,void 0,void 0,(function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const s=new g.HttpClient(_,[],{allowRetries:false});if(r){p.debug("set auth");if(i===undefined){i={}}i.authorization=r}const a=yield s.get(e,i);if(a.message.statusCode!==200){const t=new HTTPError(a.message.statusCode);p.debug(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`);throw t}const n=b.promisify(v.pipeline);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>a.message));const d=o();let u=false;try{yield n(d,c.createWriteStream(t));p.debug("download complete");u=true;return t}finally{if(!u){p.debug("download failed");try{yield l.rmRF(t)}catch(e){p.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,r){return n(this,void 0,void 0,(function*(){x.ok(T,"extract7z() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(r){try{const t=p.isDebug()?"-bb1":"-bb0";const s=["x",t,"-bd","-sccUTF-8",e];const a={silent:true};yield S.exec(`"${r}"`,s,a)}finally{process.chdir(i)}}else{const r=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=`& '${r}' -Source '${s}' -Target '${a}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];const p={silent:true};try{const e=yield l.which("powershell",true);yield S.exec(`"${e}"`,o,p)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);p.debug("Checking tar --version");let i="";yield S.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});p.debug(i.trim());const s=i.toUpperCase().includes("GNU TAR");let a;if(r instanceof Array){a=r}else{a=[r]}if(p.isDebug()&&!r.includes("v")){a.push("-v")}let n=t;let o=e;if(T&&s){a.push("--force-local");n=t.replace(/\\/g,"/");o=e.replace(/\\/g,"/")}if(s){a.push("--warning=no-unknown-keyword");a.push("--overwrite")}a.push("-C",n,"-f",o);yield S.exec(`tar`,a);return t}))}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,(function*(){x.ok(N,"extractXar() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(r instanceof Array){i=r}else{i=[r]}i.push("-x","-C",t,"-f",e);if(p.isDebug()){i.push("-v")}const s=yield l.which("xar",true);yield S.exec(`"${s}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(T){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=yield l.which("pwsh",false);if(s){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];p.debug(`Using pwsh at path: ${s}`);yield S.exec(`"${s}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const s=yield l.which("powershell",true);p.debug(`Using powershell at path: ${s}`);yield S.exec(`"${s}"`,t)}}))}function extractZipNix(e,t){return n(this,void 0,void 0,(function*(){const r=yield l.which("unzip",true);const i=[e];if(!p.isDebug()){i.unshift("-q")}i.unshift("-o");yield S.exec(`"${r}"`,i,{cwd:t})}))}function cacheDir(e,t,r,i){return n(this,void 0,void 0,(function*(){r=y.clean(r)||r;i=i||u.arch();p.debug(`Caching tool ${t} ${r} ${i}`);p.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const s=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=h.join(e,t);yield l.cp(r,s,{recursive:true})}_completeToolPath(t,r,i);return s}))}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,(function*(){i=y.clean(i)||i;s=s||u.arch();p.debug(`Caching tool ${r} ${i} ${s}`);p.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const a=yield _createToolPath(r,i,s);const n=h.join(a,t);p.debug(`destination file ${n}`);yield l.cp(e,n);_completeToolPath(r,i,s);return a}))}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||u.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,r);const s=evaluateVersions(i,t);t=s}let i="";if(t){t=y.clean(t)||"";const s=h.join(_getCacheDirectory(),e,t,r);p.debug(`checking cache: ${s}`);if(c.existsSync(s)&&c.existsSync(`${s}.complete`)){p.debug(`Found tool in cache ${e} ${t} ${r}`);i=s}else{p.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const r=[];t=t||u.arch();const i=h.join(_getCacheDirectory(),e);if(c.existsSync(i)){const e=c.readdirSync(i);for(const s of e){if(isExplicitVersion(s)){const e=h.join(i,s,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(s)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,(function*(){let s=[];const a=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const n=new g.HttpClient("tool-cache");const o={};if(r){p.debug("set auth");o.authorization=r}const l=yield n.getJson(a,o);if(!l.result){return s}let c="";for(const e of l.result.tree){if(e.path==="versions-manifest.json"){c=e.url;break}}o["accept"]="application/vnd.github.VERSION.raw";let d=yield(yield n.get(c,o)).readBody();if(d){d=d.replace(/^\uFEFF/,"");try{s=JSON.parse(d)}catch(e){p.debug("Invalid json")}}return s}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=u.arch()){return n(this,void 0,void 0,(function*(){const s=yield d._findMatch(e,t,r,i);return s}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),w.default())}yield l.mkdirP(e);return e}))}function _createToolPath(e,t,r){return n(this,void 0,void 0,(function*(){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");p.debug(`destination ${i}`);const s=`${i}.complete`;yield l.rmRF(i);yield l.rmRF(s);yield l.mkdirP(i);return i}))}function _completeToolPath(e,t,r){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");const s=`${i}.complete`;c.writeFileSync(s,"");p.debug("finished caching tool")}function isExplicitVersion(e){const t=y.clean(e)||"";p.debug(`isExplicit: ${t}`);const r=y.valid(t)!=null;p.debug(`explicit? ${r}`);return r}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let r="";p.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(y.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const s=e[i];const a=y.satisfies(s,t);if(a){r=s;break}}if(r){p.debug(`matched: ${r}`)}else{p.debug("match not found")}return r}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";x.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";x.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},7701:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var s=t;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}e.exports=bytesToUuid},7269:(e,t,r)=>{var i=r(6113);e.exports=function nodeRNG(){return i.randomBytes(16)}},7468:(e,t,r)=>{var i=r(7269);var s=r(7701);function v4(e,t,r){var a=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var n=e.random||(e.rng||i)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){for(var o=0;o<16;++o){t[a+o]=n[o]}}return t||s(n)}e.exports=v4},2557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=new WeakMap;const i=new WeakMap;class AbortSignal{constructor(){this.onabort=null;r.set(this,[]);i.set(this,false)}get aborted(){if(!i.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return i.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=r.get(this);i.push(t)}removeEventListener(e,t){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=r.get(this);const s=i.indexOf(t);if(s>-1){i.splice(s,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=r.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}i.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const r=setTimeout(abortSignal,e,t);if(typeof r.unref==="function"){r.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},9645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class AzureKeyCredential{constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}get key(){return this._key}update(e){this._key=e}}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const r of t){if(!objectHasProperty(e,r)){return false}}return true}function objectHasProperty(e,t){return typeof e==="object"&&t in e}class AzureNamedKeyCredential{constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}get key(){return this._key}get name(){return this._name}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}get signature(){return this._signature}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}t.AzureKeyCredential=AzureKeyCredential;t.AzureNamedKeyCredential=AzureNamedKeyCredential;t.AzureSASCredential=AzureSASCredential;t.isNamedKeyCredential=isNamedKeyCredential;t.isSASCredential=isSASCredential;t.isTokenCredential=isTokenCredential},4607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(5840);var s=r(3837);var a=r(2107);var n=r(6189);var o=r(1333);var p=r(3233);var l=r(9645);var c=r(2037);var d=r(3685);var u=r(5687);var h=r(2557);var g=r(4294);var y=r(2781);var v=r(6279);var b=r(467);var x=r(4175);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:true,get:function(){return e[r]}})}}))}t["default"]=e;return Object.freeze(t)}var w=_interopNamespace(n);var S=_interopNamespace(c);var E=_interopNamespace(d);var T=_interopNamespace(u);var N=_interopNamespace(g);var _=_interopDefaultLegacy(v);var P=_interopDefaultLegacy(b);function getHeaderKey(e){return e.toLowerCase()}function isHttpHeadersLike(e){if(e&&typeof e==="object"){const t=e;if(typeof t.rawHeaders==="function"&&typeof t.clone==="function"&&typeof t.get==="function"&&typeof t.set==="function"&&typeof t.contains==="function"&&typeof t.remove==="function"&&typeof t.headersArray==="function"&&typeof t.headerValues==="function"&&typeof t.headerNames==="function"&&typeof t.toJson==="function"){return true}}return false}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let r=0;r{r=r.then(e)}));return r}function promiseToCallback(e){if(typeof e.then!=="function"){throw new Error("The provided input is not a Promise.")}return t=>{e.then((e=>t(undefined,e))).catch((e=>{t(e)}))}}function promiseToServiceCallback(e){if(typeof e.then!=="function"){throw new Error("The provided input is not a Promise.")}return t=>{e.then((e=>process.nextTick(t,undefined,e.parsedBody,e.request,e))).catch((e=>{process.nextTick(t,e)}))}}function prepareXMLRootList(e,t,r,i){if(!Array.isArray(e)){e=[e]}if(!r||!i){return{[t]:e}}const s={[t]:e};s[O]={[r]:i};return s}function applyMixins(e,t){const r=e;t.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((t=>{r.prototype[t]=e.prototype[t]}))}))}const I=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return I.test(e)}function replaceAll(e,t,r){return!e||!t?e:e.split(t).join(r||"")}function isPrimitiveType(e){return typeof e!=="object"&&typeof e!=="function"||e===null}function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}class Serializer{constructor(e={},t){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,r){const failValidation=(e,i)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${i}.`)};if(e.constraints&&t!=undefined){const r=t;const{ExclusiveMaximum:i,ExclusiveMinimum:s,InclusiveMaximum:a,InclusiveMinimum:n,MaxItems:o,MaxLength:p,MinItems:l,MinLength:c,MultipleOf:d,Pattern:u,UniqueItems:h}=e.constraints;if(i!=undefined&&r>=i){failValidation("ExclusiveMaximum",i)}if(s!=undefined&&r<=s){failValidation("ExclusiveMinimum",s)}if(a!=undefined&&r>a){failValidation("InclusiveMaximum",a)}if(n!=undefined&&ro){failValidation("MaxItems",o)}if(p!=undefined&&g.length>p){failValidation("MaxLength",p)}if(l!=undefined&&g.lengthr.indexOf(e)!==t))){failValidation("UniqueItems",h)}}}serialize(e,t,r,i={}){var s,a,n;const o={rootName:(s=i.rootName)!==null&&s!==void 0?s:"",includeRoot:(a=i.includeRoot)!==null&&a!==void 0?a:false,xmlCharKey:(n=i.xmlCharKey)!==null&&n!==void 0?n:R};let p={};const l=e.type.name;if(!r){r=e.serializedName}if(l.match(/^Sequence$/i)!==null){p=[]}if(e.isConstant){t=e.defaultValue}const{required:c,nullable:d}=e;if(c&&d&&t===undefined){throw new Error(`${r} cannot be undefined.`)}if(c&&!d&&t==undefined){throw new Error(`${r} cannot be null or undefined.`)}if(!c&&d===false&&t===null){throw new Error(`${r} cannot be null.`)}if(t==undefined){p=t}else{if(l.match(/^any$/i)!==null){p=t}else if(l.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){p=serializeBasicTypes(l,r,t)}else if(l.match(/^Enum$/i)!==null){const i=e;p=serializeEnumType(r,i.type.allowedValues,t)}else if(l.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){p=serializeDateTypes(l,t,r)}else if(l.match(/^ByteArray$/i)!==null){p=serializeByteArrayType(r,t)}else if(l.match(/^Base64Url$/i)!==null){p=serializeBase64UrlType(r,t)}else if(l.match(/^Sequence$/i)!==null){p=serializeSequenceType(this,e,t,r,Boolean(this.isXML),o)}else if(l.match(/^Dictionary$/i)!==null){p=serializeDictionaryType(this,e,t,r,Boolean(this.isXML),o)}else if(l.match(/^Composite$/i)!==null){p=serializeCompositeType(this,e,t,r,Boolean(this.isXML),o)}}return p}deserialize(e,t,r,i={}){var s,a,n;const o={rootName:(s=i.rootName)!==null&&s!==void 0?s:"",includeRoot:(a=i.includeRoot)!==null&&a!==void 0?a:false,xmlCharKey:(n=i.xmlCharKey)!==null&&n!==void 0?n:R};if(t==undefined){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let p;const l=e.type.name;if(!r){r=e.serializedName}if(l.match(/^Composite$/i)!==null){p=deserializeCompositeType(this,e,t,r,o)}else{if(this.isXML){const e=o.xmlCharKey;const r=t;if(r[O]!=undefined&&r[e]!=undefined){t=r[e]}}if(l.match(/^Number$/i)!==null){p=parseFloat(t);if(isNaN(p)){p=t}}else if(l.match(/^Boolean$/i)!==null){if(t==="true"){p=true}else if(t==="false"){p=false}else{p=t}}else if(l.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){p=t}else if(l.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){p=new Date(t)}else if(l.match(/^UnixTime$/i)!==null){p=unixTimeToDate(t)}else if(l.match(/^ByteArray$/i)!==null){p=decodeString(t)}else if(l.match(/^Base64Url$/i)!==null){p=base64UrlToByteArray(t)}else if(l.match(/^Sequence$/i)!==null){p=deserializeSequenceType(this,e,t,r,o)}else if(l.match(/^Dictionary$/i)!==null){p=deserializeDictionaryType(this,e,t,r,o)}}if(e.isConstant){p=e.defaultValue}return p}}function trimEnd(e,t){let r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let r="";if(e){const i=e.split(".");for(const e of i){if(e.charAt(e.length-1)==="\\"){r+=e.substr(0,e.length-1)+"."}else{r+=e;t.push(r);r=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error(`${t} with value ${r} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error(`${t} with value "${r}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&isValidUuid(r))){throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error(`${t} with value ${r} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof r;if(e!=="string"&&e!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return r}function serializeEnumType(e,t,r){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const i=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!i){throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return r}function serializeByteArrayType(e,t){let r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}r=encodeByteArray(t)}return r}function serializeBase64UrlType(e,t){let r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}r=bufferToBase64Url(t)||""}return r}function serializeDateTypes(e,t,r){if(t!=undefined){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} 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 new Error(`${r} 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 new Error(`${r} 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 new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,r,i,s,a){if(!Array.isArray(r)){throw new Error(`${i} must be of type Array.`)}const n=t.type.element;if(!n||typeof n!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}.`)}const o=[];for(let t=0;te!==s));if(o){n[s]=e.serialize(p,r[s],i+'["'+s+'"]',a)}}}return n}return r}function getXmlObjectValue(e,t,r,i){if(!r||!e.xmlNamespace){return t}const s=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const a={[s]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[O]){return t}else{const e=Object.assign({},t);e[O]=a;return e}}const n={};n[i.xmlCharKey]=t;n[O]=a;return n}function isSpecialXmlProperty(e,t){return[O,t.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,r,i,s){var a,n;const o=(a=s.xmlCharKey)!==null&&a!==void 0?a:R;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,r,"serializedName")}const p=resolveModelProperties(e,t,i);let l={};const c=[];for(const a of Object.keys(p)){const d=p[a];const u=splitSerializeName(p[a].serializedName);c.push(u[0]);const{serializedName:h,xmlName:g,xmlElementName:y}=d;let v=i;if(h!==""&&h!==undefined){v=i+"."+h}const b=d.headerCollectionPrefix;if(b){const t={};for(const i of Object.keys(r)){if(i.startsWith(b)){t[i.substring(b.length)]=e.deserialize(d.type.value,r[i],v,s)}c.push(i)}l[a]=t}else if(e.isXML){if(d.xmlIsAttribute&&r[O]){l[a]=e.deserialize(d,r[O][g],v,s)}else if(d.xmlIsMsText){if(r[o]!==undefined){l[a]=r[o]}else if(typeof r==="string"){l[a]=r}}else{const t=y||g||h;if(d.xmlIsWrapped){const t=r[g];const i=(n=t===null||t===void 0?void 0:t[y])!==null&&n!==void 0?n:[];l[a]=e.deserialize(d,i,v,s);c.push(g)}else{const i=r[t];l[a]=e.deserialize(d,i,v,s);c.push(t)}}}else{let i;let n=r;for(const e of u){if(!n)break;n=n[e]}i=n;const o=t.type.polymorphicDiscriminator;if(o&&a===o.clientName&&i==undefined){i=t.serializedName}let c;if(Array.isArray(r[a])&&p[a].serializedName===""){i=r[a];const t=e.deserialize(d,i,v,s);for(const[e,r]of Object.entries(l)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=r}}l=t}else if(i!==undefined||d.defaultValue!==undefined){c=e.deserialize(d,i,v,s);l[a]=c}}}const d=t.type.additionalProperties;if(d){const isAdditionalProperty=e=>{for(const t in p){const r=splitSerializeName(p[t].serializedName);if(r[0]===e){return false}}return true};for(const t in r){if(isAdditionalProperty(t)){l[t]=e.deserialize(d,r[t],i+'["'+t+'"]',s)}}}else if(r){for(const e of Object.keys(r)){if(l[e]===undefined&&!c.includes(e)&&!isSpecialXmlProperty(e,s)){l[e]=r[e]}}}return l}function deserializeDictionaryType(e,t,r,i,s){const a=t.type.value;if(!a||typeof a!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(r){const t={};for(const n of Object.keys(r)){t[n]=e.deserialize(a,r[n],i,s)}return t}return r}function deserializeSequenceType(e,t,r,i,s){const a=t.type.element;if(!a||typeof a!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(r){if(!Array.isArray(r)){r=[r]}const t=[];for(let n=0;n0}keys(){return Object.keys(this._rawQuery)}set(e,t){const r=t;if(e){if(r!==undefined&&r!==null){const t=Array.isArray(r)?r:r.toString();this._rawQuery[e]=t}else{delete this._rawQuery[e]}}}get(e){return e?this._rawQuery[e]:undefined}toString(){let e="";for(const t in this._rawQuery){if(e){e+="&"}const r=this._rawQuery[t];if(Array.isArray(r)){const i=[];for(const e of r){i.push(`${t}=${e}`)}e+=i.join("&")}else{e+=`${t}=${r}`}}return e}static parse(e){const t=new URLQuery;if(e){if(e.startsWith("?")){e=e.substring(1)}let r="ParameterName";let i="";let s="";for(let a=0;aisAlphaNumericCharacter(e)))}function readUntilCharacter(e,...t){return readWhile(e,(e=>t.indexOf(e)===-1))}function nextScheme(e){const t=readWhileLetterOrDigit(e);e._currentToken=URLToken.scheme(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else{e._currentState="HOST"}}function nextSchemeOrHost(e){const t=readUntilCharacter(e,":","/","?");if(!hasCurrentCharacter(e)){e._currentToken=URLToken.host(t);e._currentState="DONE"}else if(getCurrentCharacter(e)===":"){if(peekCharacters(e,3)==="://"){e._currentToken=URLToken.scheme(t);e._currentState="HOST"}else{e._currentToken=URLToken.host(t);e._currentState="PORT"}}else{e._currentToken=URLToken.host(t);if(getCurrentCharacter(e)==="/"){e._currentState="PATH"}else{e._currentState="QUERY"}}}function nextHost(e){if(peekCharacters(e,3)==="://"){nextCharacter(e,3)}const t=readUntilCharacter(e,":","/","?");e._currentToken=URLToken.host(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else if(getCurrentCharacter(e)===":"){e._currentState="PORT"}else if(getCurrentCharacter(e)==="/"){e._currentState="PATH"}else{e._currentState="QUERY"}}function nextPort(e){if(getCurrentCharacter(e)===":"){nextCharacter(e)}const t=readUntilCharacter(e,"/","?");e._currentToken=URLToken.port(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else if(getCurrentCharacter(e)==="/"){e._currentState="PATH"}else{e._currentState="QUERY"}}function nextPath(e){const t=readUntilCharacter(e,"?");e._currentToken=URLToken.path(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else{e._currentState="QUERY"}}function nextQuery(e){if(getCurrentCharacter(e)==="?"){nextCharacter(e)}const t=readRemaining(e);e._currentToken=URLToken.query(t);e._currentState="DONE"}function createProxyAgent(e,t,r){const i=URLBuilder.parse(t.host).getHost();if(!i){throw new Error("Expecting a non-empty host in proxy settings.")}if(!isValidPort(t.port)){throw new Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.")}const s={proxy:{host:i,port:t.port,headers:r&&r.rawHeaders()||{}}};if(t.username&&t.password){s.proxy.proxyAuth=`${t.username}:${t.password}`}else if(t.username){s.proxy.proxyAuth=`${t.username}`}const a=isUrlHttps(e);const n=isUrlHttps(t.host);const o={isHttps:a,agent:createTunnel(a,n,s)};return o}function isUrlHttps(e){const t=URLBuilder.parse(e).getScheme()||"";return t.toLowerCase()==="https"}function createTunnel(e,t,r){if(e&&t){return N.httpsOverHttps(r)}else if(e&&!t){return N.httpsOverHttp(r)}else if(!e&&t){return N.httpOverHttps(r)}else{return N.httpOverHttp(r)}}function isValidPort(e){return 0<=e&&e<=65535}const L="REDACTED";const M=["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"];const B=["api-version"];class Sanitizer{constructor({allowedHeaderNames:e=[],allowedQueryParameters:t=[]}={}){e=Array.isArray(e)?M.concat(e):M;t=Array.isArray(t)?B.concat(t):B;this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if(r instanceof Error){return Object.assign(Object.assign({},r),{name:r.name,message:r.message})}if(e==="_headersMap"){return this.sanitizeHeaders(r)}else if(e==="url"){return this.sanitizeUrl(r)}else if(e==="query"){return this.sanitizeQuery(r)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(r)||isObject(r)){if(t.has(r)){return"[Circular]"}t.add(r)}return r}),2)}sanitizeHeaders(e){return this.sanitizeObject(e,this.allowedHeaderNames,((e,t)=>e[t].value))}sanitizeQuery(e){return this.sanitizeObject(e,this.allowedQueryParameters,((e,t)=>e[t]))}sanitizeObject(e,t,r){if(typeof e!=="object"||e===null){return e}const i={};for(const s of Object.keys(e)){if(t.has(s.toLowerCase())){i[s]=r(e,s)}else{i[s]=L}}return i}sanitizeUrl(e){if(typeof e!=="string"||e===null){return e}const t=URLBuilder.parse(e);const r=t.getQuery();if(!r){return e}const i=URLQuery.parse(r);for(const e of i.keys()){if(!this.allowedQueryParameters.has(e.toLowerCase())){i.set(e,L)}}t.setQuery(i.toString());return t.toString()}}const j=s.inspect.custom;const z=new Sanitizer;class RestError extends Error{constructor(e,t,r,i,s){super(e);this.name="RestError";this.code=t;this.statusCode=r;this.request=i;this.response=s;Object.setPrototypeOf(this,RestError.prototype)}[j](){return`RestError: ${this.message} \n ${z.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const q=p.createClientLogger("core-http");function getCachedAgent(e,t){return e?t.httpsAgent:t.httpAgent}class ReportTransform extends y.Transform{constructor(e){super();this.progressCallback=e;this.loadedBytes=0}_transform(e,t,r){this.push(e);this.loadedBytes+=e.length;this.progressCallback({loadedBytes:this.loadedBytes});r(undefined)}}function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e,t){return new Promise((r=>{e.once("close",(()=>{t===null||t===void 0?void 0:t.abort();r()}));e.once("end",r);e.once("error",r)}))}function parseHeaders(e){const t=new HttpHeaders;e.forEach(((e,r)=>{t.set(r,e)}));return t}class NodeFetchHttpClient{constructor(){this.proxyAgentMap=new Map;this.keepAliveAgents={}}async sendRequest(e){var t;if(!e&&typeof e!=="object"){throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.")}const r=new h.AbortController;let i;if(e.abortSignal){if(e.abortSignal.aborted){throw new h.AbortError("The operation was aborted.")}i=e=>{if(e.type==="abort"){r.abort()}};e.abortSignal.addEventListener("abort",i)}if(e.timeout){setTimeout((()=>{r.abort()}),e.timeout)}if(e.formData){const t=e.formData;const r=new _["default"];const appendFormValue=(e,t)=>{if(typeof t==="function"){t=t()}if(t&&Object.prototype.hasOwnProperty.call(t,"value")&&Object.prototype.hasOwnProperty.call(t,"options")){r.append(e,t.value,t.options)}else{r.append(e,t)}};for(const e of Object.keys(t)){const r=t[e];if(Array.isArray(r)){for(let t=0;t{var t;(t=e.abortSignal)===null||t===void 0?void 0:t.removeEventListener("abort",i);return})).catch((e=>{q.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}getOrCreateAgent(e){var t;const r=isUrlHttps(e.url);if(e.proxySettings){const{host:i,port:s,username:a,password:n}=e.proxySettings;const o=`${i}:${s}:${a}:${n}`;const p=(t=this.proxyAgentMap.get(o))!==null&&t!==void 0?t:{};let l=getCachedAgent(r,p);if(l){return l}const c=createProxyAgent(e.url,e.proxySettings,e.headers);l=c.agent;if(c.isHttps){p.httpsAgent=c.agent}else{p.httpAgent=c.agent}this.proxyAgentMap.set(o,p);return l}else if(e.keepAlive){let t=getCachedAgent(r,this.keepAliveAgents);if(t){return t}const i={keepAlive:e.keepAlive};if(r){t=this.keepAliveAgents.httpsAgent=new T.Agent(i)}else{t=this.keepAliveAgents.httpAgent=new E.Agent(i)}return t}else{return r?T.globalAgent:E.globalAgent}}async fetch(e,t){return P["default"](e,t)}async prepareRequest(e){const t={};t.agent=this.getOrCreateAgent(e);t.compress=e.decompressResponse;return t}async processRequest(e){}}t.HttpPipelineLogLevel=void 0;(function(e){e[e["OFF"]=0]="OFF";e[e["ERROR"]=1]="ERROR";e[e["WARNING"]=2]="WARNING";e[e["INFO"]=3]="INFO"})(t.HttpPipelineLogLevel||(t.HttpPipelineLogLevel={}));function operationOptionsToRequestOptionsBase(e){const{requestOptions:t,tracingOptions:r}=e,i=a.__rest(e,["requestOptions","tracingOptions"]);let s=i;if(t){s=Object.assign(Object.assign({},s),t)}if(r){s.tracingContext=r.tracingContext;s.spanOptions=r===null||r===void 0?void 0:r.spanOptions}return s}class BaseRequestPolicy{constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}class RequestPolicyOptions{constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==t.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,t){if(this._logger&&this.shouldLog(e)){this._logger.log(e,t)}}}const U={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:O,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:undefined,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:undefined,attrValueProcessors:undefined,tagNameProcessors:undefined,valueProcessors:undefined,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:undefined,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false};const G=Object.assign({},U);G.explicitArray=false;const H=Object.assign({},U);H.explicitArray=false;H.renderOpts={pretty:false};function stringifyXML(e,t={}){var r;H.rootName=t.rootName;H.charkey=(r=t.xmlCharKey)!==null&&r!==void 0?r:R;const i=new w.Builder(H);return i.buildObject(e)}function parseXML(e,t={}){var r;G.explicitRoot=!!t.includeRoot;G.charkey=(r=t.xmlCharKey)!==null&&r!==void 0?r:R;const i=new w.Parser(G);return new Promise(((t,r)=>{if(!e){r(new Error("Document is empty"))}else{i.parseString(e,((e,i)=>{if(e){r(e)}else{t(i)}}))}}))}function deserializationPolicy(e,t){return{create:(r,i)=>new DeserializationPolicy(r,i,e,t)}}const V=["application/json","text/json"];const $=["application/xml","application/atom+xml"];const X={expectedContentTypes:{json:V,xml:$}};class DeserializationPolicy extends BaseRequestPolicy{constructor(e,t,r,i={}){var s;super(e,t);this.jsonContentTypes=r&&r.json||V;this.xmlContentTypes=r&&r.xml||$;this.xmlCharKey=(s=i.xmlCharKey)!==null&&s!==void 0?s:R}async sendRequest(e){return this._nextPolicy.sendRequest(e).then((e=>deserializeResponseBody(this.jsonContentTypes,this.xmlContentTypes,e,{xmlCharKey:this.xmlCharKey})))}}function getOperationResponse(e){let t;const r=e.request;const i=r.operationSpec;if(i){const s=r.operationResponseGetter;if(!s){t=i.responses[e.status]}else{t=s(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request.shouldDeserialize;let r;if(t===undefined){r=true}else if(typeof t==="boolean"){r=t}else{r=t(e)}return r}function deserializeResponseBody(e,t,r,i={}){var s,a,n;const o={rootName:(s=i.rootName)!==null&&s!==void 0?s:"",includeRoot:(a=i.includeRoot)!==null&&a!==void 0?a:false,xmlCharKey:(n=i.xmlCharKey)!==null&&n!==void 0?n:R};return parse(e,t,r,o).then((e=>{if(!shouldDeserializeResponse(e)){return e}const t=e.request.operationSpec;if(!t||!t.responses){return e}const s=getOperationResponse(e);const{error:a,shouldReturnResponse:n}=handleErrorResponse(e,t,s);if(a){throw a}else if(n){return e}if(s){if(s.bodyMapper){let r=e.parsedBody;if(t.isXML&&s.bodyMapper.type.name===k.Sequence){r=typeof r==="object"?r[s.bodyMapper.xmlElementName]:[]}try{e.parsedBody=t.serializer.deserialize(s.bodyMapper,r,"operationRes.parsedBody",i)}catch(t){const r=new RestError(`Error ${t} occurred in deserializing the responseBody - ${e.bodyAsText}`,undefined,e.status,e.request,e);throw r}}else if(t.httpMethod==="HEAD"){e.parsedBody=r.status>=200&&r.status<300}if(s.headersMapper){e.parsedHeaders=t.serializer.deserialize(s.headersMapper,e.headers.toJson(),"operationRes.parsedHeaders",i)}}return e}))}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,r){var i;const s=200<=e.status&&e.status<300;const a=isOperationSpecEmpty(t)?s:!!r;if(a){if(r){if(!r.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const n=r!==null&&r!==void 0?r:t.responses.default;const o=((i=e.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(e.status))||e.request.streamResponseBody;const p=o?`Unexpected status code: ${e.status}`:e.bodyAsText;const l=new RestError(p,undefined,e.status,e.request,e);if(!n){throw l}const c=n.bodyMapper;const d=n.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let i;if(c){let e=r;if(t.isXML&&c.type.name===k.Sequence){e=typeof r==="object"?r[c.xmlElementName]:[]}i=t.serializer.deserialize(c,e,"error.response.parsedBody")}const s=r.error||i||r;l.code=s.code;if(s.message){l.message=s.message}if(c){l.response.parsedBody=i}}if(e.headers&&d){l.response.parsedHeaders=t.serializer.deserialize(d,e.headers.toJson(),"operationRes.parsedHeaders")}}catch(t){l.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:false}}function parse(e,t,r,i){var s;const errorHandler=e=>{const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`;const i=e.code||RestError.PARSE_ERROR;const s=new RestError(t,i,r.status,r.request,r);return Promise.reject(s)};const a=((s=r.request.streamResponseStatusCodes)===null||s===void 0?void 0:s.has(r.status))||r.request.streamResponseBody;if(!a&&r.bodyAsText){const s=r.bodyAsText;const a=r.headers.get("Content-Type")||"";const n=!a?[]:a.split(";").map((e=>e.toLowerCase()));if(n.length===0||n.some((t=>e.indexOf(t)!==-1))){return new Promise((e=>{r.parsedBody=JSON.parse(s);e(r)})).catch(errorHandler)}else if(n.some((e=>t.indexOf(e)!==-1))){return parseXML(s,i).then((e=>{r.parsedBody=e;return r})).catch(errorHandler)}}return Promise.resolve(r)}const W={enable:true};function keepAlivePolicy(e){return{create:(t,r)=>new KeepAlivePolicy(t,r,e||W)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this.keepAliveOptions=r}async sendRequest(e){e.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(e)}}const K=["GET","HEAD"];const Q={handleRedirects:true,maxRetries:20};function redirectPolicy(e=20){return{create:(t,r)=>new RedirectPolicy(t,r,e)}}class RedirectPolicy extends BaseRequestPolicy{constructor(e,t,r=20){super(e,t);this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendRequest(e).then((e=>handleRedirect(this,e,0)))}}function handleRedirect(e,t,r){const{request:i,status:s}=t;const a=t.headers.get("location");if(a&&(s===300||s===301&&K.includes(i.method)||s===302&&K.includes(i.method)||s===303&&i.method==="POST"||s===307)&&(!e.maxRetries||rhandleRedirect(e,t,r+1)))}return Promise.resolve(t)}const Y=3;const J=1e3*30;const Z=1e3*90;const ee=1e3*3;function isNumber(e){return typeof e==="number"}function shouldRetry(e,t,r,i,s){if(!t(i,s)){return false}return r.retryCountnew ExponentialRetryPolicy(i,s,e,t,r)}}t.RetryMode=void 0;(function(e){e[e["Exponential"]=0]="Exponential"})(t.RetryMode||(t.RetryMode={}));const te={maxRetries:Y,retryDelayInMs:J,maxRetryDelayInMs:Z};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(e,t,r,i,s){super(e,t);this.retryCount=isNumber(r)?r:Y;this.retryInterval=isNumber(i)?i:J;this.maxRetryInterval=isNumber(s)?s:Z}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then((t=>retry$1(this,e,t))).catch((t=>retry$1(this,e,t.response,undefined,t)))}}async function retry$1(e,t,r,i,s){function shouldPolicyRetry(e){const t=e===null||e===void 0?void 0:e.status;if(t===503&&(r===null||r===void 0?void 0:r.headers.get(C.HeaderConstants.RETRY_AFTER))){return false}if(t===undefined||t<500&&t!==408||t===501||t===505){return false}return true}i=updateRetryData({retryInterval:e.retryInterval,minRetryInterval:0,maxRetryInterval:e.maxRetryInterval},i,s);const a=t.abortSignal&&t.abortSignal.aborted;if(!a&&shouldRetry(e.retryCount,shouldPolicyRetry,i,r)){q.info(`Retrying request in ${i.retryInterval}`);try{await o.delay(i.retryInterval);const r=await e._nextPolicy.sendRequest(t.clone());return retry$1(e,t,r,i)}catch(s){return retry$1(e,t,r,i,s)}}else if(a||s||!r){const e=i.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,r&&r.status,r&&r.request,r);throw e}else{return r}}function logPolicy(e={}){return{create:(t,r)=>new LogPolicy(t,r,e)}}class LogPolicy extends BaseRequestPolicy{constructor(e,t,{logger:r=q.info,allowedHeaderNames:i=[],allowedQueryParameters:s=[]}={}){super(e,t);this.logger=r;this.sanitizer=new Sanitizer({allowedHeaderNames:i,allowedQueryParameters:s})}get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(e){this.sanitizer.allowedHeaderNames=e}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(e){this.sanitizer.allowedQueryParameters=e}sendRequest(e){if(!this.logger.enabled)return this._nextPolicy.sendRequest(e);this.logRequest(e);return this._nextPolicy.sendRequest(e).then((e=>this.logResponse(e)))}logRequest(e){this.logger(`Request: ${this.sanitizer.sanitize(e)}`)}logResponse(e){this.logger(`Response status code: ${e.status}`);this.logger(`Headers: ${this.sanitizer.sanitize(e.headers)}`);return e}}function getPathStringFromParameter(e){return getPathStringFromParameterPath(e.parameterPath,e.mapper)}function getPathStringFromParameterPath(e,t){let r;if(typeof e==="string"){r=e}else if(Array.isArray(e)){r=e.join(".")}else{r=t.serializedName}return r}function getStreamResponseStatusCodes(e){const t=new Set;for(const r in e.responses){const i=e.responses[r];if(i.bodyMapper&&i.bodyMapper.type.name===k.Stream){t.add(Number(r))}}return t}function getDefaultUserAgentKey(){return C.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const e={key:"Node",value:process.version};const t={key:"OS",value:`(${S.arch()}-${S.type()}-${S.release()})`};return[e,t]}function getRuntimeInfo(){const e={key:"core-http",value:C.coreHttpVersion};return[e]}function getUserAgentString(e,t=" ",r="/"){return e.map((e=>{const t=e.value?`${r}${e.value}`:"";return`${e.key}${t}`})).join(t)}const re=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const e=getRuntimeInfo();const t=getPlatformSpecificData();const r=getUserAgentString(e.concat(t));return r}function userAgentPolicy(e){const t=!e||e.key===undefined||e.key===null?getDefaultUserAgentKey():e.key;const r=!e||e.value===undefined||e.value===null?getDefaultUserAgentValue():e.value;return{create:(e,i)=>new UserAgentPolicy(e,i,t,r)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(e,t,r,i){super(e,t);this._nextPolicy=e;this._options=t;this.headerKey=r;this.headerValue=i}sendRequest(e){this.addUserAgentHeader(e);return this._nextPolicy.sendRequest(e)}addUserAgentHeader(e){if(!e.headers){e.headers=new HttpHeaders}if(!e.headers.get(this.headerKey)&&this.headerValue){e.headers.set(this.headerKey,this.headerValue)}}}t.QueryCollectionFormat=void 0;(function(e){e["Csv"]=",";e["Ssv"]=" ";e["Tsv"]="\t";e["Pipes"]="|";e["Multi"]="Multi"})(t.QueryCollectionFormat||(t.QueryCollectionFormat={}));const ie={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,r);i=beginRefresh(tryGetAccessToken,a.retryIntervalInMs,(o=s===null||s===void 0?void 0:s.expiresOnTimestamp)!==null&&o!==void 0?o:Date.now()).then((e=>{i=null;s=e;return s})).catch((e=>{i=null;s=null;throw e}))}return i}return async e=>{if(n.mustRefresh)return refresh(e);if(n.shouldRefresh){refresh(e)}return s}}function bearerTokenAuthenticationPolicy(e,t){const r=createTokenCycler(e,t);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:t}=await r({abortSignal:e.abortSignal,tracingOptions:{tracingContext:e.tracingContext}});e.headers.set(C.HeaderConstants.AUTHORIZATION,`Bearer ${t}`);return this._nextPolicy.sendRequest(e)}}return{create:(e,t)=>new BearerTokenAuthenticationPolicy(e,t)}}function disableResponseDecompressionPolicy(){return{create:(e,t)=>new DisableResponseDecompressionPolicy(e,t)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){e.decompressResponse=false;return this._nextPolicy.sendRequest(e)}}function generateClientRequestIdPolicy(e="x-ms-client-request-id"){return{create:(t,r)=>new GenerateClientRequestIdPolicy(t,r,e)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this._requestIdHeaderName=r}sendRequest(e){if(!e.headers.contains(this._requestIdHeaderName)){e.headers.set(this._requestIdHeaderName,e.requestId)}return this._nextPolicy.sendRequest(e)}}let se;function getCachedDefaultHttpClient(){if(!se){se=new NodeFetchHttpClient}return se}function ndJsonPolicy(){return{create:(e,t)=>new NdJsonPolicy(e,t)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return this._nextPolicy.sendRequest(e)}}const ae=[];let ne=false;const oe=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(C.HTTPS_PROXY);const t=getEnvironmentValue(C.ALL_PROXY);const r=getEnvironmentValue(C.HTTP_PROXY);return e||t||r}function isBypassed(e,t,r){if(t.length===0){return false}const i=URLBuilder.parse(e).getHost();if(r===null||r===void 0?void 0:r.has(i)){return r.get(i)}let s=false;for(const e of t){if(e[0]==="."){if(i.endsWith(e)){s=true}else{if(i.length===e.length-1&&i===e.slice(1)){s=true}}}else{if(i===e){s=true}}}r===null||r===void 0?void 0:r.set(i,s);return s}function loadNoProxy(){const e=getEnvironmentValue(C.NO_PROXY);ne=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const{username:t,password:r,urlWithoutAuth:i}=extractAuthFromUrl(e);const s=URLBuilder.parse(i);const a=s.getScheme()?s.getScheme()+"://":"";return{host:a+s.getHost(),port:Number.parseInt(s.getPort()||"80"),username:t,password:r}}function proxyPolicy(e,t){if(!e){e=getDefaultProxySettings()}if(!ne){ae.push(...loadNoProxy())}return{create:(r,i)=>new ProxyPolicy(r,i,e,t===null||t===void 0?void 0:t.customNoProxyList)}}function extractAuthFromUrl(e){const t=e.indexOf("@");if(t===-1){return{urlWithoutAuth:e}}const r=e.indexOf("://");const i=r!==-1?r+3:0;const s=e.substring(i,t);const a=s.indexOf(":");const n=a!==-1;const o=n?s.substring(0,a):s;const p=n?s.substring(a+1):undefined;const l=e.substring(0,i)+e.substring(t+1);return{username:o,password:p,urlWithoutAuth:l}}class ProxyPolicy extends BaseRequestPolicy{constructor(e,t,r,i){super(e,t);this.proxySettings=r;this.customNoProxyList=i}sendRequest(e){var t;if(!e.proxySettings&&!isBypassed(e.url,(t=this.customNoProxyList)!==null&&t!==void 0?t:ae,this.customNoProxyList?undefined:oe)){e.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(e)}}function rpRegistrationPolicy(e=30){return{create:(t,r)=>new RPRegistrationPolicy(t,r,e)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(e,t,r=30){super(e,t);this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then((t=>registerIfNeeded(this,e,t)))}}function registerIfNeeded(e,t,r){if(r.status===409){const i=checkRPNotRegisteredError(r.bodyAsText);if(i){const s=extractSubscriptionUrl(t.url);return registerRP(e,s,i,t).catch((()=>false)).then((i=>{if(i){t.headers.set("x-ms-client-request-id",generateUuid());return e._nextPolicy.sendRequest(t.clone())}return r}))}}return Promise.resolve(r)}function getRequestEssentials(e,t=false){const r=e.clone();if(t){r.url=e.url}r.headers.set("x-ms-client-request-id",generateUuid());r.headers.set("Content-Type","application/json; charset=utf-8");return r}function checkRPNotRegisteredError(e){let t,r;if(e){try{r=JSON.parse(e)}catch(e){}if(r&&r.error&&r.error.message&&r.error.code&&r.error.code==="MissingSubscriptionRegistration"){const e=r.error.message.match(/.*'(.*)'/i);if(e){t=e.pop()}}}return t}function extractSubscriptionUrl(e){let t;const r=e.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(r&&r[0]){t=r[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${e}.`)}return t}async function registerRP(e,t,r,i){const s=`${t}providers/${r}/register?api-version=2016-02-01`;const a=`${t}providers/${r}?api-version=2016-02-01`;const n=getRequestEssentials(i);n.method="POST";n.url=s;const o=await e._nextPolicy.sendRequest(n);if(o.status!==200){throw new Error(`Autoregistration of ${r} failed. Please try registering manually.`)}return getRegistrationStatus(e,a,i)}async function getRegistrationStatus(e,t,r){const i=getRequestEssentials(r);i.url=t;i.method="GET";const s=await e._nextPolicy.sendRequest(i);const a=s.parsedBody;if(s.parsedBody&&a.registrationState&&a.registrationState==="Registered"){return true}else{await o.delay(e._retryTimeout*1e3);return getRegistrationStatus(e,t,r)}}function signingPolicy(e){return{create:(t,r)=>new SigningPolicy(t,r,e)}}class SigningPolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then((e=>this._nextPolicy.sendRequest(e)))}}function systemErrorRetryPolicy(e,t,r,i){return{create:(s,a)=>new SystemErrorRetryPolicy(s,a,e,t,r,i)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(e,t,r,i,s,a){super(e,t);this.retryCount=isNumber(r)?r:Y;this.retryInterval=isNumber(i)?i:J;this.minRetryInterval=isNumber(s)?s:ee;this.maxRetryInterval=isNumber(a)?a:Z}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch((t=>retry(this,e,t.response,t)))}}async function retry(e,t,r,i,s){s=updateRetryData(e,s,i);function shouldPolicyRetry(e,t){if(t&&t.code&&(t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT")){return true}return false}if(shouldRetry(e.retryCount,shouldPolicyRetry,s,r,i)){try{await o.delay(s.retryInterval);return e._nextPolicy.sendRequest(t.clone())}catch(i){return retry(e,t,r,i,s)}}else{if(i){return Promise.reject(s.error)}return r}}const pe=3;const le=C.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(e,t)=>new ThrottlingRetryPolicy(e,t)}}const ce="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this.numberOfRetries=0;this._handleResponse=r||this._defaultResponseHandler}async sendRequest(e){const t=await this._nextPolicy.sendRequest(e.clone());if(t.status!==le.TooManyRequests&&t.status!==le.ServiceUnavailable){return t}else{return this._handleResponse(e,t)}}async _defaultResponseHandler(e,t){var r;const i=t.headers.get(C.HeaderConstants.RETRY_AFTER);if(i){const t=ThrottlingRetryPolicy.parseRetryAfterHeader(i);if(t){this.numberOfRetries+=1;await o.delay(t,{abortSignal:e.abortSignal,abortErrorMsg:ce});if((r=e.abortSignal)===null||r===void 0?void 0:r.aborted){throw new h.AbortError(ce)}if(this.numberOfRetries{let r=undefined;const i=this;const s=t;return{create(t,a){const n=getCredentialScopes(s,i.baseUri);if(!n){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(r===undefined||r===null){r=bearerTokenAuthenticationPolicy(e,n)}return r.create(t,a)}}};i=wrappedPolicyFactory()}else if(e&&typeof e.signRequest==="function"){q.info("ServiceClient: creating signing policy from provided credentials");i=signingPolicy(e)}else if(e!==undefined&&e!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}q.info("ServiceClient: using default request policies");r=createDefaultRequestPolicyFactories(i,t);if(t.requestPolicyFactories){const e=t.requestPolicyFactories(r);if(e){r=e}}}this._requestPolicyFactories=r}sendRequest(e){if(e===null||e===undefined||typeof e!=="object"){throw new Error("options cannot be null or undefined and it must be of type object.")}let t;try{if(isWebResourceLike(e)){e.validateRequestProperties();t=e}else{t=new WebResource;t=t.prepare(e)}}catch(e){return Promise.reject(e)}let r=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let e=this._requestPolicyFactories.length-1;e>=0;--e){r=this._requestPolicyFactories[e].create(r,this._requestPolicyOptions)}}return r.sendRequest(t)}async sendOperationRequest(e,r,i){var s;if(typeof e.options==="function"){i=e.options;e.options=undefined}const a=(s=e.options)===null||s===void 0?void 0:s.serializerOptions;const n=new WebResource;let o;try{const i=r.baseUrl||this.baseUri;if(!i){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.")}n.method=r.httpMethod;n.operationSpec=r;const s=URLBuilder.parse(i);if(r.path){s.appendPath(r.path)}if(r.urlParameters&&r.urlParameters.length>0){for(const t of r.urlParameters){let i=getOperationArgumentValueFromParameter(this,e,t,r.serializer);i=r.serializer.serialize(t.mapper,i,getPathStringFromParameter(t),a);if(!t.skipEncoding){i=encodeURIComponent(i)}s.replaceAll(`{${t.mapper.serializedName||getPathStringFromParameter(t)}}`,i)}}if(r.queryParameters&&r.queryParameters.length>0){for(const i of r.queryParameters){let n=getOperationArgumentValueFromParameter(this,e,i,r.serializer);if(n!==undefined&&n!==null){n=r.serializer.serialize(i.mapper,n,getPathStringFromParameter(i),a);if(i.collectionFormat!==undefined&&i.collectionFormat!==null){if(i.collectionFormat===t.QueryCollectionFormat.Multi){if(n.length===0){continue}else{for(const e in n){const t=n[e];n[e]=t===undefined||t===null?"":t.toString()}}}else if(i.collectionFormat===t.QueryCollectionFormat.Ssv||i.collectionFormat===t.QueryCollectionFormat.Tsv){n=n.join(i.collectionFormat)}}if(!i.skipEncoding){if(Array.isArray(n)){for(const e in n){if(n[e]!==undefined&&n[e]!==null){n[e]=encodeURIComponent(n[e])}}}else{n=encodeURIComponent(n)}}if(i.collectionFormat!==undefined&&i.collectionFormat!==null&&i.collectionFormat!==t.QueryCollectionFormat.Multi&&i.collectionFormat!==t.QueryCollectionFormat.Ssv&&i.collectionFormat!==t.QueryCollectionFormat.Tsv){n=n.join(i.collectionFormat)}s.setQueryParameter(i.mapper.serializedName||getPathStringFromParameter(i),n)}}}n.url=s.toString();const p=r.contentType||this.requestContentType;if(p&&r.requestBody){n.headers.set("Content-Type",p)}if(r.headerParameters){for(const t of r.headerParameters){let i=getOperationArgumentValueFromParameter(this,e,t,r.serializer);if(i!==undefined&&i!==null){i=r.serializer.serialize(t.mapper,i,getPathStringFromParameter(t),a);const e=t.mapper.headerCollectionPrefix;if(e){for(const t of Object.keys(i)){n.headers.set(e+t,i[t])}}else{n.headers.set(t.mapper.serializedName||getPathStringFromParameter(t),i)}}}}const l=e.options;if(l){if(l.customHeaders){for(const e in l.customHeaders){n.headers.set(e,l.customHeaders[e])}}if(l.abortSignal){n.abortSignal=l.abortSignal}if(l.timeout){n.timeout=l.timeout}if(l.onUploadProgress){n.onUploadProgress=l.onUploadProgress}if(l.onDownloadProgress){n.onDownloadProgress=l.onDownloadProgress}if(l.spanOptions){n.spanOptions=l.spanOptions}if(l.tracingContext){n.tracingContext=l.tracingContext}if(l.shouldDeserialize!==undefined&&l.shouldDeserialize!==null){n.shouldDeserialize=l.shouldDeserialize}}n.withCredentials=this._withCredentials;serializeRequestBody(this,n,e,r);if(n.streamResponseStatusCodes===undefined){n.streamResponseStatusCodes=getStreamResponseStatusCodes(r)}let c;let d;try{c=await this.sendRequest(n)}catch(e){d=e}if(d){if(d.response){d.details=flattenResponse(d.response,r.responses[d.statusCode]||r.responses["default"])}o=Promise.reject(d)}else{o=Promise.resolve(flattenResponse(c,r.responses[c.status]))}}catch(e){o=Promise.reject(e)}const p=i;if(p){o.then((e=>p(null,e._response.parsedBody,e._response.request,e._response))).catch((e=>p(e)))}return o}}function serializeRequestBody(e,t,r,i){var s,a,n,o,p,l;const c=(a=(s=r.options)===null||s===void 0?void 0:s.serializerOptions)!==null&&a!==void 0?a:{};const d={rootName:(n=c.rootName)!==null&&n!==void 0?n:"",includeRoot:(o=c.includeRoot)!==null&&o!==void 0?o:false,xmlCharKey:(p=c.xmlCharKey)!==null&&p!==void 0?p:R};const u=c.xmlCharKey;if(i.requestBody&&i.requestBody.mapper){t.body=getOperationArgumentValueFromParameter(e,r,i.requestBody,i.serializer);const s=i.requestBody.mapper;const{required:a,xmlName:n,xmlElementName:o,serializedName:p,xmlNamespace:c,xmlNamespacePrefix:h}=s;const g=s.type.name;try{if(t.body!==undefined&&t.body!==null||a){const e=getPathStringFromParameter(i.requestBody);t.body=i.serializer.serialize(s,t.body,e,d);const r=g===k.Stream;if(i.isXML){const e=h?`xmlns:${h}`:"xmlns";const i=getXmlValueWithNamespace(c,e,g,t.body,d);if(g===k.Sequence){t.body=stringifyXML(prepareXMLRootList(i,o||n||p,e,c),{rootName:n||p,xmlCharKey:u})}else if(!r){t.body=stringifyXML(i,{rootName:n||p,xmlCharKey:u})}}else if(g===k.String&&(((l=i.contentType)===null||l===void 0?void 0:l.match("text/plain"))||i.mediaType==="text")){return}else if(!r){t.body=JSON.stringify(t.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(p,undefined," ")}.`)}}else if(i.formDataParameters&&i.formDataParameters.length>0){t.formData={};for(const s of i.formDataParameters){const a=getOperationArgumentValueFromParameter(e,r,s,i.serializer);if(a!==undefined&&a!==null){const e=s.mapper.serializedName||getPathStringFromParameter(s);t.formData[e]=i.serializer.serialize(s.mapper,a,getPathStringFromParameter(s),d)}}}}function getXmlValueWithNamespace(e,t,r,i,s){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};r[s.xmlCharKey]=i;r[O]={[t]:e};return r}return i}function getValueOrFunctionResult(e,t){let r;if(typeof e==="string"){r=e}else{r=t();if(typeof e==="function"){r=e(r)}}return r}function createDefaultRequestPolicyFactories(e,t){const r=[];if(t.generateClientRequestIdHeader){r.push(generateClientRequestIdPolicy(t.clientRequestIdHeaderName))}if(e){r.push(e)}const i=getValueOrFunctionResult(t.userAgentHeaderName,re);const s=getValueOrFunctionResult(t.userAgent,getDefaultUserAgentValue);if(i&&s){r.push(userAgentPolicy({key:i,value:s}))}r.push(redirectPolicy());r.push(rpRegistrationPolicy(t.rpRegistrationRetryTimeout));if(!t.noRetryPolicy){r.push(exponentialRetryPolicy());r.push(systemErrorRetryPolicy());r.push(throttlingRetryPolicy())}r.push(deserializationPolicy(t.deserializationContentTypes));if(D){r.push(proxyPolicy(t.proxySettings))}r.push(logPolicy({logger:q.info}));return r}function createPipelineFromOptions(e,t){const r=[];if(e.sendStreamingJson){r.push(ndJsonPolicy())}let i=undefined;if(e.userAgentOptions&&e.userAgentOptions.userAgentPrefix){const t=[];t.push(e.userAgentOptions.userAgentPrefix);const r=getDefaultUserAgentValue();if(t.indexOf(r)===-1){t.push(r)}i=t.join(" ")}const s=Object.assign(Object.assign({},W),e.keepAliveOptions);const a=Object.assign(Object.assign({},te),e.retryOptions);const n=Object.assign(Object.assign({},Q),e.redirectOptions);if(D){r.push(proxyPolicy(e.proxyOptions))}const o=Object.assign(Object.assign({},X),e.deserializationOptions);const p=Object.assign({},e.loggingOptions);r.push(tracingPolicy({userAgent:i}),keepAlivePolicy(s),userAgentPolicy({value:i}),generateClientRequestIdPolicy(),deserializationPolicy(o.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(a.maxRetries,a.retryDelayInMs,a.maxRetryDelayInMs));if(n.handleRedirects){r.push(redirectPolicy(n.maxRetries))}if(t){r.push(t)}r.push(logPolicy(p));if(D&&e.decompressResponse===false){r.push(disableResponseDecompressionPolicy())}return{httpClient:e.httpClient,requestPolicyFactories:r}}function getOperationArgumentValueFromParameter(e,t,r,i){return getOperationArgumentValueFromParameterPath(e,t,r.parameterPath,r.mapper,i)}function getOperationArgumentValueFromParameterPath(e,t,r,i,s){var a;let n;if(typeof r==="string"){r=[r]}const o=(a=t.options)===null||a===void 0?void 0:a.serializerOptions;if(Array.isArray(r)){if(r.length>0){if(i.isConstant){n=i.defaultValue}else{let s=getPropertyFromParameterPath(t,r);if(!s.propertyFound){s=getPropertyFromParameterPath(e,r)}let a=false;if(!s.propertyFound){a=i.required||r[0]==="options"&&r.length===2}n=a?i.defaultValue:s.propertyValue}const a=getPathStringFromParameterPath(r,i);s.serialize(i,n,a,o)}}else{if(i.required){n={}}for(const a in r){const p=i.type.modelProperties[a];const l=r[a];const c=getOperationArgumentValueFromParameterPath(e,t,l,p,s);const d=getPathStringFromParameterPath(l,p);s.serialize(p,c,d,o);if(c!==undefined&&c!==null){if(!n){n={}}n[a]=c}}}return n}function getPropertyFromParameterPath(e,t){const r={propertyFound:false};let i=0;for(;iObject.defineProperty(t,"_response",{value:e});if(i){const t=i.type.name;if(t==="Stream"){return addOperationResponse(Object.assign(Object.assign({},r),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}))}const s=t==="Composite"&&i.type.modelProperties||{};const a=Object.keys(s).some((e=>s[e].serializedName===""));if(t==="Sequence"||a){const t=[...e.parsedBody||[]];for(const r of Object.keys(s)){if(s[r].serializedName){t[r]=e.parsedBody[r]}}if(r){for(const e of Object.keys(r)){t[e]=r[e]}}addOperationResponse(t);return t}if(t==="Composite"||t==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},r),e.parsedBody))}}if(i||e.request.method==="HEAD"||isPrimitiveType(e.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},r),{body:e.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},r),e.parsedBody))}function getCredentialScopes(e,t){if(e===null||e===void 0?void 0:e.credentialScopes){const t=e.credentialScopes;return Array.isArray(t)?t.map((e=>new URL(e).toString())):new URL(t).toString()}if(t){return`${t}/.default`}return undefined}function createSpanFunction(e){return x.createSpanFunction(e)}const ue=2*60*1e3;class ExpiringAccessTokenCache{constructor(e=ue){this.cachedToken=undefined;this.tokenRefreshBufferMs=e}setCachedToken(e){this.cachedToken=e}getCachedToken(){if(this.cachedToken&&Date.now()+this.tokenRefreshBufferMs>=this.cachedToken.expiresOnTimestamp){this.cachedToken=undefined}return this.cachedToken}}class AccessTokenRefresher{constructor(e,t,r=3e4){this.credential=e;this.scopes=t;this.requiredMillisecondsBeforeNewRefresh=r;this.lastCalled=0}isReady(){return!this.lastCalled||Date.now()-this.lastCalled>this.requiredMillisecondsBeforeNewRefresh}async getToken(e){this.lastCalled=Date.now();const t=await this.credential.getToken(this.scopes,e);this.promise=undefined;return t||undefined}refresh(e){if(!this.promise){this.promise=this.getToken(e)}return this.promise}}const me=C.HeaderConstants;const he="Basic";class BasicAuthenticationCredentials{constructor(e,t,r=he){this.authorizationScheme=he;if(e===null||e===undefined||typeof e.valueOf()!=="string"){throw new Error("userName cannot be null or undefined and must be of type string.")}if(t===null||t===undefined||typeof t.valueOf()!=="string"){throw new Error("password cannot be null or undefined and must be of type string.")}this.userName=e;this.password=t;this.authorizationScheme=r}signRequest(e){const t=`${this.userName}:${this.password}`;const r=`${this.authorizationScheme} ${encodeString(t)}`;if(!e.headers)e.headers=new HttpHeaders;e.headers.set(me.AUTHORIZATION,r);return Promise.resolve(e)}}class ApiKeyCredentials{constructor(e){if(!e||e&&!e.inHeader&&!e.inQuery){throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`)}this.inHeader=e.inHeader;this.inQuery=e.inQuery}signRequest(e){if(!e){return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`))}if(this.inHeader){if(!e.headers){e.headers=new HttpHeaders}for(const t in this.inHeader){e.headers.set(t,this.inHeader[t])}}if(this.inQuery){if(!e.url){return Promise.reject(new Error(`url cannot be null in the request object.`))}if(e.url.indexOf("?")<0){e.url+="?"}for(const t in this.inQuery){if(!e.url.endsWith("?")){e.url+="&"}e.url+=`${t}=${this.inQuery[t]}`}}return Promise.resolve(e)}}class TopicCredentials extends ApiKeyCredentials{constructor(e){if(!e||e&&typeof e!=="string"){throw new Error("topicKey cannot be null or undefined and must be of type string.")}const t={inHeader:{"aeg-sas-key":e}};super(t)}}Object.defineProperty(t,"delay",{enumerable:true,get:function(){return o.delay}});Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return l.isTokenCredential}});t.AccessTokenRefresher=AccessTokenRefresher;t.ApiKeyCredentials=ApiKeyCredentials;t.BaseRequestPolicy=BaseRequestPolicy;t.BasicAuthenticationCredentials=BasicAuthenticationCredentials;t.Constants=C;t.DefaultHttpClient=NodeFetchHttpClient;t.ExpiringAccessTokenCache=ExpiringAccessTokenCache;t.HttpHeaders=HttpHeaders;t.MapperType=k;t.RequestPolicyOptions=RequestPolicyOptions;t.RestError=RestError;t.Serializer=Serializer;t.ServiceClient=ServiceClient;t.TopicCredentials=TopicCredentials;t.URLBuilder=URLBuilder;t.URLQuery=URLQuery;t.WebResource=WebResource;t.XML_ATTRKEY=O;t.XML_CHARKEY=R;t.applyMixins=applyMixins;t.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;t.createPipelineFromOptions=createPipelineFromOptions;t.createSpanFunction=createSpanFunction;t.deserializationPolicy=deserializationPolicy;t.deserializeResponseBody=deserializeResponseBody;t.disableResponseDecompressionPolicy=disableResponseDecompressionPolicy;t.encodeUri=encodeUri;t.executePromisesSequentially=executePromisesSequentially;t.exponentialRetryPolicy=exponentialRetryPolicy;t.flattenResponse=flattenResponse;t.generateClientRequestIdPolicy=generateClientRequestIdPolicy;t.generateUuid=generateUuid;t.getDefaultProxySettings=getDefaultProxySettings;t.getDefaultUserAgentValue=getDefaultUserAgentValue;t.isDuration=isDuration;t.isNode=D;t.isValidUuid=isValidUuid;t.keepAlivePolicy=keepAlivePolicy;t.logPolicy=logPolicy;t.operationOptionsToRequestOptionsBase=operationOptionsToRequestOptionsBase;t.parseXML=parseXML;t.promiseToCallback=promiseToCallback;t.promiseToServiceCallback=promiseToServiceCallback;t.proxyPolicy=proxyPolicy;t.redirectPolicy=redirectPolicy;t.serializeObject=serializeObject;t.signingPolicy=signingPolicy;t.stringifyXML=stringifyXML;t.stripRequest=stripRequest;t.stripResponse=stripResponse;t.systemErrorRetryPolicy=systemErrorRetryPolicy;t.throttlingRetryPolicy=throttlingRetryPolicy;t.tracingPolicy=tracingPolicy;t.userAgentPolicy=userAgentPolicy},6279:(e,t,r)=>{var i=r(5443);var s=r(3837);var a=r(1017);var n=r(3685);var o=r(5687);var p=r(7310).parse;var l=r(7147);var c=r(2781).Stream;var d=r(3583);var u=r(4812);var h=r(3971);e.exports=FormData;s.inherits(FormData,i);function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];i.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,r){r=r||{};if(typeof r=="string"){r={filename:r}}var a=i.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(s.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r);var o=this._multiPartFooter();a(n);a(t);a(o);this._trackLength(n,t,r)};FormData.prototype._trackLength=function(e,t,r){var i=0;if(r.knownLength!=null){i+=+r.knownLength}else if(Buffer.isBuffer(t)){i=t.length}else if(typeof t==="string"){i=Buffer.byteLength(t)}this._valueLength+=i;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))&&!(t instanceof c)){return}if(!r.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{l.stat(e.path,(function(r,i){var s;if(r){t(r);return}s=i.size-(e.start?e.start:0);t(null,s)}))}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",(function(r){e.pause();t(null,+r.headers["content-length"])}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string"){return r.header}var i=this._getContentDisposition(t,r);var s=this._getContentType(t,r);var a="";var n={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(s||[])};if(typeof r.header=="object"){h(n,r.header)}var o;for(var p in n){if(!n.hasOwnProperty(p))continue;o=n[p];if(o==null){continue}if(!Array.isArray(o)){o=[o]}if(o.length){a+=p+": "+o.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+a+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var r,i;if(typeof t.filepath==="string"){r=a.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){r=a.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){r=a.basename(e.client._httpMessage.path||"")}if(r){i='filename="'+r+'"'}return i};FormData.prototype._getContentType=function(e,t){var r=t.contentType;if(!r&&e.name){r=d.lookup(e.name)}if(!r&&e.path){r=d.lookup(e.path)}if(!r&&e.readable&&e.hasOwnProperty("httpVersion")){r=e.headers["content-type"]}if(!r&&(t.filepath||t.filename)){r=d.lookup(t.filepath||t.filename)}if(!r&&typeof e=="object"){r=FormData.DEFAULT_CONTENT_TYPE}return r};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var r=this._streams.length===0;if(r){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){r[t.toLowerCase()]=e[t]}}return r};FormData.prototype.setBoundary=function(e){this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var r=0,i=this._streams.length;r{e.exports=function(e,t){Object.keys(t).forEach((function(r){e[r]=e[r]||t[r]}));return e}},2107:e=>{var t;var r;var i;var s;var a;var n;var o;var p;var l;var c;var d;var u;var h;var g;var y;var v;var b;var x;var w;var S;var E;var T;var N;var _;var P;var C;var O;var R;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,i){return e[r]=t?t(r,i):i}}})((function(e){var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;o--)if(n=e[o])a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a;return s>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,i){t(r,i,e)}};n=function(e,t,r,i,s,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var n=i.kind,o=n==="getter"?"get":n==="setter"?"set":"value";var p=!t&&e?i["static"]?e:e.prototype:null;var l=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{});var c,d=false;for(var u=r.length-1;u>=0;u--){var h={};for(var g in i)h[g]=g==="access"?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var y=(0,r[u])(n==="accessor"?{get:l.get,set:l.set}:l[o],h);if(n==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(c=accept(y.get))l.get=c;if(c=accept(y.set))l.set=c;if(c=accept(y.init))s.push(c)}else if(c=accept(y)){if(n==="field")s.push(c);else l[o]=c}}if(p)Object.defineProperty(p,i.name,l);d=true};o=function(e,t,r){var i=arguments.length>2;for(var s=0;s0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],n;try{while((t===void 0||t-- >0)&&!(s=i.next()).done)a.push(s.value)}catch(e){n={error:e}}finally{try{if(s&&!s.done&&(r=i["return"]))r.call(i)}finally{if(n)throw n.error}}return a};v=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof w?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};E=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(r=!r)?{value:w(e[i](t)),done:false}:s?s(t):t}:s}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof g==="function"?g(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};N=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);I(t,e);return t};P=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};O=function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};R=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",r);e("__rest",i);e("__decorate",s);e("__param",a);e("__esDecorate",n);e("__runInitializers",o);e("__propKey",p);e("__setFunctionName",l);e("__metadata",c);e("__awaiter",d);e("__generator",u);e("__exportStar",h);e("__createBinding",A);e("__values",g);e("__read",y);e("__spread",v);e("__spreadArrays",b);e("__spreadArray",x);e("__await",w);e("__asyncGenerator",S);e("__asyncDelegator",E);e("__asyncValues",T);e("__makeTemplateObject",N);e("__importStar",_);e("__importDefault",P);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",O);e("__classPrivateFieldIn",R)}))},7094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(3233);var s=r(2557);const a=i.createClientLogger("core-lro");const n=2e3;const o=["succeeded","canceled","failed"];function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:r,isOperationError:i}=e;return e=>{if(i(e)){r.setError(t,e);r.setFailed(t)}throw e}}function processOperationStatus(e){const{state:t,stateProxy:r,status:i,isDone:s,processResult:a,response:n,setErrorAsResult:o}=e;switch(i){case"succeeded":{r.setSucceeded(t);break}case"failed":{r.setError(t,new Error(`The long-running operation has failed`));r.setFailed(t);break}case"canceled":{r.setCanceled(t);break}}if((s===null||s===void 0?void 0:s(n,t))||s===undefined&&["succeeded","canceled"].concat(o?[]:["failed"]).includes(i)){r.setResult(t,buildResult({response:n,state:t,processResult:a}))}}function buildResult(e){const{processResult:t,response:r,state:i}=e;return t?t(r,i):r}async function initOperation(e){const{init:t,stateProxy:r,processResult:i,getOperationStatus:s,withOperationLocation:n,setErrorAsResult:o}=e;const{operationLocation:p,resourceLocation:l,metadata:c,response:d}=await t();if(p)n===null||n===void 0?void 0:n(p,false);const u={metadata:c,operationLocation:p,resourceLocation:l};a.verbose(`LRO: Operation description:`,u);const h=r.initState(u);const g=s({response:d,state:h,operationLocation:p});processOperationStatus({state:h,status:g,stateProxy:r,response:d,setErrorAsResult:o,processResult:i});return h}async function pollOperationHelper(e){const{poll:t,state:r,stateProxy:i,operationLocation:s,getOperationStatus:n,getResourceLocation:p,isOperationError:l,options:c}=e;const d=await t(s,c).catch(setStateError({state:r,stateProxy:i,isOperationError:l}));const u=n(d,r);a.verbose(`LRO: Status:\n\tPolling from: ${r.config.operationLocation}\n\tOperation status: ${u}\n\tPolling status: ${o.includes(u)?"Stopped":"Running"}`);if(u==="succeeded"){const e=p(d,r);if(e!==undefined){return{response:await t(e).catch(setStateError({state:r,stateProxy:i,isOperationError:l})),status:u}}}return{response:d,status:u}}async function pollOperation(e){const{poll:t,state:r,stateProxy:i,options:s,getOperationStatus:a,getResourceLocation:n,getOperationLocation:p,isOperationError:l,withOperationLocation:c,getPollingInterval:d,processResult:u,updateState:h,setDelay:g,isDone:y,setErrorAsResult:v}=e;const{operationLocation:b}=r.config;if(b!==undefined){const{response:e,status:x}=await pollOperationHelper({poll:t,getOperationStatus:a,state:r,stateProxy:i,operationLocation:b,getResourceLocation:n,isOperationError:l,options:s});processOperationStatus({status:x,response:e,state:r,stateProxy:i,isDone:y,processResult:u,setErrorAsResult:v});if(!o.includes(x)){const t=d===null||d===void 0?void 0:d(e);if(t)g(t);const i=p===null||p===void 0?void 0:p(e,r);if(i!==undefined){const e=b!==i;r.config.operationLocation=i;c===null||c===void 0?void 0:c(i,e)}else c===null||c===void 0?void 0:c(b,false)}h===null||h===void 0?void 0:h(r,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:r}=e;return r!==null&&r!==void 0?r:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){const{location:t,requestMethod:r,requestPath:i,resourceLocationConfig:s}=e;switch(r){case"PUT":{return i}case"DELETE":{return undefined}default:{switch(s){case"azure-async-operation":{return undefined}case"original-uri":{return i}case"location":default:{return t}}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:r,requestPath:i,resourceLocationConfig:s}=e;const a=getOperationLocationHeader(t);const n=getAzureAsyncOperationHeader(t);const o=getOperationLocationPollingUrl({operationLocation:a,azureAsyncOperation:n});const p=getLocationHeader(t);const l=r===null||r===void 0?void 0:r.toLocaleUpperCase();if(o!==undefined){return{mode:"OperationLocation",operationLocation:o,resourceLocation:findResourceLocation({requestMethod:l,location:p,requestPath:i,resourceLocationConfig:s})}}else if(p!==undefined){return{mode:"ResourceLocation",operationLocation:p}}else if(l==="PUT"&&i){return{mode:"Body",operationLocation:i}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:r}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{a.warning(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:r}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:r,statusCode:e.statusCode})}function getProvisioningState(e){var t,r;const{properties:i,provisioningState:s}=(t=e.body)!==null&&t!==void 0?t:{};const a=(r=i===null||i===void 0?void 0:i.provisioningState)!==null&&r!==void 0?r:s;return transformStatus({status:a,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const r=e.getTime();if(t{const e=await s.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:a})}function getOperationLocation({rawResponse:e},t){var r;const i=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(i){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:e},t){var r;const i=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(i){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function getResourceLocation({flatResponse:e},t){if(typeof e==="object"){const r=e.resourceLocation;if(r!==undefined){t.config.resourceLocation=r}}return t.config.resourceLocation}function isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:r,options:i,processResult:s,updateState:a,setDelay:n,state:o,setErrorAsResult:p}=e;return pollOperation({state:o,stateProxy:r,setDelay:n,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e,updateState:a,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:i,poll:async(e,r)=>t.sendPollRequest(e,r),setErrorAsResult:p})}const maybemap=(e,t)=>e===undefined?undefined:t(e);const p=new Error("The poller is already stopped");function delayMs(e){let t=false;let r;return Object.assign(new Promise(((i,s)=>{let a;r=()=>{maybemap(a,clearTimeout);s(p)};if(t){r()}else{a=setTimeout(i,e)}})),{cancel:()=>{t=true;r===null||r===void 0?void 0:r()}})}const createStateProxy$1=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:r,getStatusFromPollResponse:i,isOperationError:a,getResourceLocation:o,getPollingInterval:p,resolveOnUnsuccessful:l}=e;return async({init:e,poll:c},d)=>{const{processResult:u,updateState:h,withOperationLocation:g,intervalInMs:y=n,restoreFrom:v}=d||{};const b=createStateProxy$1();const x=g?(()=>{let e=false;return(t,r)=>{if(r)g(t);else if(!e)g(t);e=true}})():undefined;const w=v?deserializeState(v):await initOperation({init:e,stateProxy:b,processResult:u,getOperationStatus:r,withOperationLocation:x,setErrorAsResult:!l});let S;let E;const T=new s.AbortController;const N=new Map;const handleProgressEvents=async()=>N.forEach((e=>e(w)));const _="Operation was canceled";let P=y;const C={getOperationState:()=>w,getResult:()=>w.result,isDone:()=>["succeeded","failed","canceled"].includes(w.status),isStopped:()=>S===undefined,stopPolling:()=>{T.abort();E===null||E===void 0?void 0:E()},toString:()=>JSON.stringify({state:w}),onProgress:e=>{const t=Symbol();N.set(t,e);return()=>N.delete(t)},pollUntilDone:e=>S!==null&&S!==void 0?S:S=(async()=>{const{abortSignal:t}=e||{};const{signal:r}=t?new s.AbortController([t,T.signal]):T;if(!C.isDone()){await C.poll({abortSignal:r});while(!C.isDone()){const e=delayMs(P);E=e.cancel;await e;await C.poll({abortSignal:r})}}if(l){return C.getResult()}else{switch(w.status){case"succeeded":return C.getResult();case"canceled":throw new Error(_);case"failed":throw w.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{S=undefined})),async poll(e){if(l){if(C.isDone())return}else{switch(w.status){case"succeeded":return;case"canceled":throw new Error(_);case"failed":throw w.error}}await pollOperation({poll:c,state:w,stateProxy:b,getOperationLocation:t,isOperationError:a,withOperationLocation:x,getPollingInterval:p,getOperationStatus:i,getResourceLocation:o,processResult:u,updateState:h,options:e,setDelay:e=>{P=e},setErrorAsResult:!l});await handleProgressEvents();if(!l){switch(w.status){case"canceled":throw new Error(_);case"failed":throw w.error}}}};return C}}async function createHttpPoller(e,t){const{resourceLocationConfig:r,intervalInMs:i,processResult:s,restoreFrom:a,updateState:n,withOperationLocation:o,resolveOnUnsuccessful:p=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,resolveOnUnsuccessful:p})({init:async()=>{const t=await e.sendInitialRequest();const i=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:r});return Object.assign({response:t,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:i,withOperationLocation:o,restoreFrom:a,updateState:n,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e})}const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,r,i,s,a,n){this.state=e;this.lro=t;this.setErrorAsResult=r;this.lroResourceLocationConfig=i;this.processResult=s;this.updateState=a;this.isDone=n}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const r=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:r,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const i=this.updateState;const s=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:r,processResult:this.processResult,updateState:i?(e,{rawResponse:t})=>i(e,t):undefined,isDone:s?({flatResponse:e},t)=>s(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){a.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const 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);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:r=n,resumeFrom:i,resolveOnUnsuccessful:s=false,isDone:a,lroResourceLocationConfig:o,processResult:p,updateState:l}=t||{};const c=i?deserializeState(i):{};const d=new GenericPollOperation(c,e,!s,o,p,l,a);super(d);this.resolveOnUnsuccessful=s;this.config={intervalInMs:r};d.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine;t.Poller=Poller;t.PollerCancelledError=PollerCancelledError;t.PollerStoppedError=PollerStoppedError;t.createHttpPoller=createHttpPoller},4559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(6429);function getPagedAsyncIterator(e){var t;const r=getItemAsyncIterator(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(t=e===null||e===void 0?void 0:e.byPage)!==null&&t!==void 0?t:t=>{const{continuationToken:r,maxPageSize:i}=t!==null&&t!==void 0?t:{};return getPageAsyncIterator(e,{pageLink:r,maxPageSize:i})}}}function getItemAsyncIterator(e){return i.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var t,r,s,a;const n=getPageAsyncIterator(e);const o=yield i.__await(n.next());if(!Array.isArray(o.value)){const{toElements:s}=e;if(s){yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(s(o.value))));try{for(var p=i.__asyncValues(n),l;l=yield i.__await(p.next()),!l.done;){const e=l.value;yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(s(e))))}}catch(e){t={error:e}}finally{try{if(l&&!l.done&&(r=p.return))yield i.__await(r.call(p))}finally{if(t)throw t.error}}}else{yield yield i.__await(o.value);yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(n)))}}else{yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(o.value)));try{for(var c=i.__asyncValues(n),d;d=yield i.__await(c.next()),!d.done;){const e=d.value;yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(e)))}}catch(e){s={error:e}}finally{try{if(d&&!d.done&&(a=c.return))yield i.__await(a.call(c))}finally{if(s)throw s.error}}}}))}function getPageAsyncIterator(e,t={}){return i.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:r,maxPageSize:s}=t;let a=yield i.__await(e.getPage(r!==null&&r!==void 0?r:e.firstPageLink,s));if(!a){return yield i.__await(void 0)}yield yield i.__await(a.page);while(a.nextPageLink){a=yield i.__await(e.getPage(a.nextPageLink,s));if(!a){return yield i.__await(void 0)}yield yield i.__await(a.page)}}))}t.getPagedAsyncIterator=getPagedAsyncIterator},6429:e=>{var t;var r;var i;var s;var a;var n;var o;var p;var l;var c;var d;var u;var h;var g;var y;var v;var b;var x;var w;var S;var E;var T;var N;var _;var P;var C;var O;var R;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,i){return e[r]=t?t(r,i):i}}})((function(e){var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;o--)if(n=e[o])a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a;return s>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,i){t(r,i,e)}};n=function(e,t,r,i,s,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var n=i.kind,o=n==="getter"?"get":n==="setter"?"set":"value";var p=!t&&e?i["static"]?e:e.prototype:null;var l=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{});var c,d=false;for(var u=r.length-1;u>=0;u--){var h={};for(var g in i)h[g]=g==="access"?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var y=(0,r[u])(n==="accessor"?{get:l.get,set:l.set}:l[o],h);if(n==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(c=accept(y.get))l.get=c;if(c=accept(y.set))l.set=c;if(c=accept(y.init))s.push(c)}else if(c=accept(y)){if(n==="field")s.push(c);else l[o]=c}}if(p)Object.defineProperty(p,i.name,l);d=true};o=function(e,t,r){var i=arguments.length>2;for(var s=0;s0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],n;try{while((t===void 0||t-- >0)&&!(s=i.next()).done)a.push(s.value)}catch(e){n={error:e}}finally{try{if(s&&!s.done&&(r=i["return"]))r.call(i)}finally{if(n)throw n.error}}return a};v=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof w?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};E=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(r=!r)?{value:w(e[i](t)),done:false}:s?s(t):t}:s}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof g==="function"?g(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};N=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);I(t,e);return t};P=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};O=function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};R=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",r);e("__rest",i);e("__decorate",s);e("__param",a);e("__esDecorate",n);e("__runInitializers",o);e("__propKey",p);e("__setFunctionName",l);e("__metadata",c);e("__awaiter",d);e("__generator",u);e("__exportStar",h);e("__createBinding",A);e("__values",g);e("__read",y);e("__spread",v);e("__spreadArrays",b);e("__spreadArray",x);e("__await",w);e("__asyncGenerator",S);e("__asyncDelegator",E);e("__asyncValues",T);e("__makeTemplateObject",N);e("__importStar",_);e("__importDefault",P);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",O);e("__classPrivateFieldIn",R)}))},4175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(5163);(function(e){e[e["INTERNAL"]=0]="INTERNAL";e[e["SERVER"]=1]="SERVER";e[e["CLIENT"]=2]="CLIENT";e[e["PRODUCER"]=3]="PRODUCER";e[e["CONSUMER"]=4]="CONSUMER"})(t.SpanKind||(t.SpanKind={}));function getSpan(e){return i.trace.getSpan(e)}function setSpan(e,t){return i.trace.setSpan(e,t)}function setSpanContext(e,t){return i.trace.setSpanContext(e,t)}function getSpanContext(e){return i.trace.getSpanContext(e)}function isSpanContextValid(e){return i.trace.isSpanContextValid(e)}function getTracer(e,t){return i.trace.getTracer(e||"azure/core-tracing",t)}const s=i.context;(function(e){e[e["UNSET"]=0]="UNSET";e[e["OK"]=1]="OK";e[e["ERROR"]=2]="ERROR"})(t.SpanStatusCode||(t.SpanStatusCode={}));function isTracingDisabled(){var e;if(typeof process==="undefined"){return false}const t=(e=process.env.AZURE_TRACING_DISABLED)===null||e===void 0?void 0:e.toLowerCase();if(t==="false"||t==="0"){return false}return Boolean(t)}function createSpanFunction(e){return function(r,a){const n=getTracer();const o=(a===null||a===void 0?void 0:a.tracingOptions)||{};const p=Object.assign({kind:t.SpanKind.INTERNAL},o.spanOptions);const l=e.packagePrefix?`${e.packagePrefix}.${r}`:r;let c;if(isTracingDisabled()){c=i.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT)}else{c=n.startSpan(l,p,o.tracingContext)}if(e.namespace){c.setAttribute("az.namespace",e.namespace)}let d=o.spanOptions||{};if(c.isRecording()&&e.namespace){d=Object.assign(Object.assign({},o.spanOptions),{attributes:Object.assign(Object.assign({},p.attributes),{"az.namespace":e.namespace})})}const u=Object.assign(Object.assign({},o),{spanOptions:d,tracingContext:setSpan(o.tracingContext||s.active(),c)});const h=Object.assign(Object.assign({},a),{tracingOptions:u});return{span:c,updatedOptions:h}}}const a="00";function extractSpanContextFromTraceParentHeader(e){const t=e.split("-");if(t.length!==4){return}const[r,i,s,n]=t;if(r!==a){return}const o=parseInt(n,16);const p={spanId:s,traceId:i,traceFlags:o};return p}function getTraceParentHeader(e){const t=[];if(!e.traceId){t.push("traceId")}if(!e.spanId){t.push("spanId")}if(t.length){return}const r=e.traceFlags||0;const i=r.toString(16);const s=i.length===1?`0${i}`:i;return`${a}-${e.traceId}-${e.spanId}-${s}`}t.context=s;t.createSpanFunction=createSpanFunction;t.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;t.getSpan=getSpan;t.getSpanContext=getSpanContext;t.getTraceParentHeader=getTraceParentHeader;t.getTracer=getTracer;t.isSpanContextValid=isSpanContextValid;t.setSpan=setSpan;t.setSpanContext=setSpanContext},1333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(2557);var s=r(6113);var a;const n=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((a=process.versions)===null||a===void 0?void 0:a.node);function createAbortablePromise(e,t){const{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:a}=t!==null&&t!==void 0?t:{};return new Promise(((t,n)=>{function rejectOnAbort(){n(new i.AbortError(a!==null&&a!==void 0?a:"The operation was aborted."))}function removeListeners(){s===null||s===void 0?void 0:s.removeEventListener("abort",onAbort)}function onAbort(){r===null||r===void 0?void 0:r();removeListeners();rejectOnAbort()}if(s===null||s===void 0?void 0:s.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();n(e)}))}catch(e){n(e)}s===null||s===void 0?void 0:s.addEventListener("abort",onAbort)}))}const o="The delay was aborted.";function delay(e,t){let r;const{abortSignal:i,abortErrorMsg:s}=t!==null&&t!==void 0?t:{};return createAbortablePromise((t=>{r=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:s!==null&&s!==void 0?s:o})}function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const r=Math.floor(Math.random()*(t-e+1));return r+e}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const r=typeof e.message==="string";return t&&r}return false}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}async function computeSha256Hmac(e,t,r){const i=Buffer.from(e,"base64");return s.createHmac("sha256",i).update(t).digest(r)}async function computeSha256Hash(e,t){return s.createHash("sha256").update(e).digest(t)}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const r of t){if(!objectHasProperty(e,r)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.createAbortablePromise=createAbortablePromise;t.delay=delay;t.getErrorMessage=getErrorMessage;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isDefined=isDefined;t.isError=isError;t.isNode=n;t.isObject=isObject;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty},3233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(2037);var s=r(3837);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var a=_interopDefaultLegacy(s);function log(e,...t){process.stderr.write(`${a["default"].format(e,...t)}${i.EOL}`)}const n=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let o;let p=[];let l=[];const c=[];if(n){enable(n)}const d=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){o=e;p=[];l=[];const t=/\*/g;const r=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of r){if(e.startsWith("-")){l.push(new RegExp(`^${e.substr(1)}$`))}else{p.push(new RegExp(`^${e}$`))}}for(const e of c){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of l){if(t.test(e)){return false}}for(const t of p){if(t.test(e)){return true}}return false}function disable(){const e=o||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:d.log,namespace:e,extend:extend});function debug(...r){if(!t.enabled){return}if(r.length>0){r[0]=`${e} ${r[0]}`}t.log(...r)}c.push(t);return t}function destroy(){const e=c.indexOf(this);if(e>=0){c.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var u=d;const h=new Set;const g=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let y;const v=u("azure");v.log=(...e)=>{u.log(...e)};const b=["verbose","info","warning","error"];if(g){if(isAzureLogLevel(g)){setLogLevel(g)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${g}'; logging is not enabled. Acceptable values: ${b.join(", ")}.`)}}function setLogLevel(e){if(e&&!isAzureLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${b.join(",")}`)}y=e;const t=[];for(const e of h){if(shouldEnable(e)){t.push(e.namespace)}}u.enable(t.join(","))}function getLogLevel(){return y}const x={verbose:400,info:300,warning:200,error:100};function createClientLogger(e){const t=v.extend(e);patchLogMethod(v,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function createLogger(e,t){const r=Object.assign(e.extend(t),{level:t});patchLogMethod(e,r);if(shouldEnable(r)){const e=u.disable();u.enable(e+","+r.namespace)}h.add(r);return r}function shouldEnable(e){return Boolean(y&&x[e.level]<=x[y])}function isAzureLogLevel(e){return b.includes(e)}t.AzureLogger=v;t.createClientLogger=createClientLogger;t.getLogLevel=getLogLevel;t.setLogLevel=setLogLevel},4100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(4607);var s=r(679);var a=r(4175);var n=r(3233);var o=r(2557);var p=r(2037);var l=r(6113);var c=r(2781);r(4559);var d=r(7094);var u=r(2361);var h=r(7147);var g=r(3837);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:true,get:function(){return e[r]}})}}))}t["default"]=e;return Object.freeze(t)}var y=_interopNamespace(i);var v=_interopNamespace(p);var b=_interopNamespace(h);var x=_interopNamespace(g);const w={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:true,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"}}}}};const S={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const E={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const T={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const N={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const _={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,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"}}}}};const P={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const C={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const O={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const R={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,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:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const A={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,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"}}}}}}};const D={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,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"}}}}};const I={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const k={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const L={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const M={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const B={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const j={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const z={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const q={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"}}}}};const U={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,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"}}}}};const G={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const H={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,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"}}}}};const V={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const $={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:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,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"]}},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"}}}}};const X={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,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"}}}}};const W={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:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const K={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Q={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"}}}}}}};const Y={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const J={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Z={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"}}}}};const ee={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const te={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const re={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,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"}}}}};const ie={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const se={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,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:"any"}}}}};const ae={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"}}}}};const ne={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const oe={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const pe={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,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"}}}}};const le={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"}}}}};const ce={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const de={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"}}}}};const ue={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={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"}}}}};const he={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={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"}}}}};const ge={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={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"}}}}};const ve={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={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"}}}}};const xe={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={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"}}}}};const Se={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={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"}}}}};const Te={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={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"}}}}};const _e={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},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"}}}}};const Ce={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={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"}}}}};const Re={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ae={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"}}}}};const De={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={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"}}}}};const ke={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={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"}}}}};const Me={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={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"}}}}};const je={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={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"}}}}};const Fe={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={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"}}}}};const Ue={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={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"}}}}};const He={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={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"}}}}};const $e={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={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"}}}}};const We={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={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"}}}}};const Qe={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ye={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"}}}}};const Je={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ze={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"}}}}};const et={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tt={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"}}}}};const rt={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const it={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"}}}}};const st={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nt={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"]}}}}};const ot={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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"}}}}};const ct={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dt={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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"}}}}};const ut={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mt={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"}}}}};const ht={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={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"}}}}};const yt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={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"}}}}};const bt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={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"}}}}};const wt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const St={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"]}}}}};const Et={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={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"}}}}};const Nt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={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"}}}}};const Pt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={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"}}}}};const Ot={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rt={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"}}}}};const At={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={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"}}}}};const It={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kt={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"}}}}};const Lt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={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"}}}}};const Bt={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={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"}}}}};const zt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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"}}}}};const qt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={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"}}}}};const Gt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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:true,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"}}}}};const Vt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $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"}}}}};const Xt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={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"}}}}};const Kt={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={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"]}}}}};const Yt={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"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"}}}}};const Zt={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const er={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"}}}}};const tr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rr={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"}}}}};const ir={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sr={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"}}}}};const ar={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={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"}}}}};const or={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={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"}}}}};const lr={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={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"}}}}};const dr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={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"}}}}};const mr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={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"}}}}};const fr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={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"}}}}};const yr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={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"}}}}};const br={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={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"}}}}};const wr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={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"}}}}};const Er={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={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"}}}}};const Nr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={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"}}}}};const Pr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={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"}}}}};const Or={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={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"}}}}};const Ar={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={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"}}}}};const Ir={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={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"}}}}};const Lr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={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"}}}}};const Br={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={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"}}}}};const zr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={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"}}}}};const qr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Ur=Object.freeze({__proto__:null,BlobServiceProperties:w,Logging:S,RetentionPolicy:E,Metrics:T,CorsRule:N,StaticWebsite:_,StorageError:P,BlobServiceStatistics:C,GeoReplication:O,ListContainersSegmentResponse:R,ContainerItem:A,ContainerProperties:D,KeyInfo:I,UserDelegationKey:k,FilterBlobSegment:L,FilterBlobItem:M,BlobTags:B,BlobTag:j,SignedIdentifier:z,AccessPolicy:q,ListBlobsFlatSegmentResponse:U,BlobFlatListSegment:G,BlobItemInternal:H,BlobName:V,BlobPropertiesInternal:$,ListBlobsHierarchySegmentResponse:X,BlobHierarchyListSegment:W,BlobPrefix:K,BlockLookupList:Q,BlockList:Y,Block:J,PageList:Z,PageRange:ee,ClearRange:te,QueryRequest:re,QuerySerialization:ie,QueryFormat:se,DelimitedTextConfiguration:ae,JsonTextConfiguration:ne,ArrowConfiguration:oe,ArrowField:pe,ServiceSetPropertiesHeaders:le,ServiceSetPropertiesExceptionHeaders:ce,ServiceGetPropertiesHeaders:de,ServiceGetPropertiesExceptionHeaders:ue,ServiceGetStatisticsHeaders:me,ServiceGetStatisticsExceptionHeaders:he,ServiceListContainersSegmentHeaders:fe,ServiceListContainersSegmentExceptionHeaders:ge,ServiceGetUserDelegationKeyHeaders:ye,ServiceGetUserDelegationKeyExceptionHeaders:ve,ServiceGetAccountInfoHeaders:be,ServiceGetAccountInfoExceptionHeaders:xe,ServiceSubmitBatchHeaders:we,ServiceSubmitBatchExceptionHeaders:Se,ServiceFilterBlobsHeaders:Ee,ServiceFilterBlobsExceptionHeaders:Te,ContainerCreateHeaders:Ne,ContainerCreateExceptionHeaders:_e,ContainerGetPropertiesHeaders:Pe,ContainerGetPropertiesExceptionHeaders:Ce,ContainerDeleteHeaders:Oe,ContainerDeleteExceptionHeaders:Re,ContainerSetMetadataHeaders:Ae,ContainerSetMetadataExceptionHeaders:De,ContainerGetAccessPolicyHeaders:Ie,ContainerGetAccessPolicyExceptionHeaders:ke,ContainerSetAccessPolicyHeaders:Le,ContainerSetAccessPolicyExceptionHeaders:Me,ContainerRestoreHeaders:Be,ContainerRestoreExceptionHeaders:je,ContainerRenameHeaders:ze,ContainerRenameExceptionHeaders:Fe,ContainerSubmitBatchHeaders:qe,ContainerSubmitBatchExceptionHeaders:Ue,ContainerFilterBlobsHeaders:Ge,ContainerFilterBlobsExceptionHeaders:He,ContainerAcquireLeaseHeaders:Ve,ContainerAcquireLeaseExceptionHeaders:$e,ContainerReleaseLeaseHeaders:Xe,ContainerReleaseLeaseExceptionHeaders:We,ContainerRenewLeaseHeaders:Ke,ContainerRenewLeaseExceptionHeaders:Qe,ContainerBreakLeaseHeaders:Ye,ContainerBreakLeaseExceptionHeaders:Je,ContainerChangeLeaseHeaders:Ze,ContainerChangeLeaseExceptionHeaders:et,ContainerListBlobFlatSegmentHeaders:tt,ContainerListBlobFlatSegmentExceptionHeaders:rt,ContainerListBlobHierarchySegmentHeaders:it,ContainerListBlobHierarchySegmentExceptionHeaders:st,ContainerGetAccountInfoHeaders:nt,ContainerGetAccountInfoExceptionHeaders:ot,BlobDownloadHeaders:pt,BlobDownloadExceptionHeaders:ct,BlobGetPropertiesHeaders:dt,BlobGetPropertiesExceptionHeaders:ut,BlobDeleteHeaders:mt,BlobDeleteExceptionHeaders:ht,BlobUndeleteHeaders:ft,BlobUndeleteExceptionHeaders:yt,BlobSetExpiryHeaders:vt,BlobSetExpiryExceptionHeaders:bt,BlobSetHttpHeadersHeaders:xt,BlobSetHttpHeadersExceptionHeaders:wt,BlobSetImmutabilityPolicyHeaders:St,BlobSetImmutabilityPolicyExceptionHeaders:Et,BlobDeleteImmutabilityPolicyHeaders:Tt,BlobDeleteImmutabilityPolicyExceptionHeaders:Nt,BlobSetLegalHoldHeaders:_t,BlobSetLegalHoldExceptionHeaders:Pt,BlobSetMetadataHeaders:Ct,BlobSetMetadataExceptionHeaders:Ot,BlobAcquireLeaseHeaders:Rt,BlobAcquireLeaseExceptionHeaders:At,BlobReleaseLeaseHeaders:Dt,BlobReleaseLeaseExceptionHeaders:It,BlobRenewLeaseHeaders:kt,BlobRenewLeaseExceptionHeaders:Lt,BlobChangeLeaseHeaders:Mt,BlobChangeLeaseExceptionHeaders:Bt,BlobBreakLeaseHeaders:jt,BlobBreakLeaseExceptionHeaders:zt,BlobCreateSnapshotHeaders:Ft,BlobCreateSnapshotExceptionHeaders:qt,BlobStartCopyFromURLHeaders:Ut,BlobStartCopyFromURLExceptionHeaders:Gt,BlobCopyFromURLHeaders:Ht,BlobCopyFromURLExceptionHeaders:Vt,BlobAbortCopyFromURLHeaders:$t,BlobAbortCopyFromURLExceptionHeaders:Xt,BlobSetTierHeaders:Wt,BlobSetTierExceptionHeaders:Kt,BlobGetAccountInfoHeaders:Qt,BlobGetAccountInfoExceptionHeaders:Yt,BlobQueryHeaders:Jt,BlobQueryExceptionHeaders:Zt,BlobGetTagsHeaders:er,BlobGetTagsExceptionHeaders:tr,BlobSetTagsHeaders:rr,BlobSetTagsExceptionHeaders:ir,PageBlobCreateHeaders:sr,PageBlobCreateExceptionHeaders:ar,PageBlobUploadPagesHeaders:nr,PageBlobUploadPagesExceptionHeaders:or,PageBlobClearPagesHeaders:pr,PageBlobClearPagesExceptionHeaders:lr,PageBlobUploadPagesFromURLHeaders:cr,PageBlobUploadPagesFromURLExceptionHeaders:dr,PageBlobGetPageRangesHeaders:ur,PageBlobGetPageRangesExceptionHeaders:mr,PageBlobGetPageRangesDiffHeaders:hr,PageBlobGetPageRangesDiffExceptionHeaders:fr,PageBlobResizeHeaders:gr,PageBlobResizeExceptionHeaders:yr,PageBlobUpdateSequenceNumberHeaders:vr,PageBlobUpdateSequenceNumberExceptionHeaders:br,PageBlobCopyIncrementalHeaders:xr,PageBlobCopyIncrementalExceptionHeaders:wr,AppendBlobCreateHeaders:Sr,AppendBlobCreateExceptionHeaders:Er,AppendBlobAppendBlockHeaders:Tr,AppendBlobAppendBlockExceptionHeaders:Nr,AppendBlobAppendBlockFromUrlHeaders:_r,AppendBlobAppendBlockFromUrlExceptionHeaders:Pr,AppendBlobSealHeaders:Cr,AppendBlobSealExceptionHeaders:Or,BlockBlobUploadHeaders:Rr,BlockBlobUploadExceptionHeaders:Ar,BlockBlobPutBlobFromUrlHeaders:Dr,BlockBlobPutBlobFromUrlExceptionHeaders:Ir,BlockBlobStageBlockHeaders:kr,BlockBlobStageBlockExceptionHeaders:Lr,BlockBlobStageBlockFromURLHeaders:Mr,BlockBlobStageBlockFromURLExceptionHeaders:Br,BlockBlobCommitBlockListHeaders:jr,BlockBlobCommitBlockListExceptionHeaders:zr,BlockBlobGetBlockListHeaders:Fr,BlockBlobGetBlockListExceptionHeaders:qr});const Gr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Hr={parameterPath:"blobServiceProperties",mapper:w};const Vr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const $r={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Xr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Wr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kr={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Qr={parameterPath:"version",mapper:{defaultValue:"2021-12-02",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const Yr={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const Jr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Zr={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ei={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ti={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const ri={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const ii={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const si={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:i.QueryCollectionFormat.Csv};const ai={parameterPath:"keyInfo",mapper:I};const ni={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const oi={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const pi={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const li={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ci={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const di={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const ui={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mi={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const hi={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const fi={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const gi={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const yi={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const vi={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const bi={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const xi={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const wi={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Si={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ei={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _i={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Pi={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Ci={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oi={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Ri={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Ai={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Di={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Ii={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const ki={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Li={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Mi={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Bi={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ji={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const zi={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Fi={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const qi={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Ui={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:i.QueryCollectionFormat.Csv};const Gi={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Hi={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Vi={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const $i={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Xi={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Wi={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Ki={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Qi={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const Yi={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Ji={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Zi={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const es={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const ts={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const rs={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const is={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ss={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const as={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const ns={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const os={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const ps={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const ls={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const cs={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const ds={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const us={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ms={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const hs={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const fs={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gs={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ys={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const vs={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bs={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"]}}};const xs={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const ws={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Ss={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Es={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Ts={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Ns={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const _s={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Ps={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Cs={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Os={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Rs={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const As={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Ds={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Is={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const ks={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ls={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const Ms={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Bs={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const js={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const zs={parameterPath:["options","queryRequest"],mapper:re};const Fs={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const qs={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Us={parameterPath:["options","tags"],mapper:B};const Gs={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Hs={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Vs={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const $s={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Xs={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Ws={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ks={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Qs={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ys={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Js={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Zs={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ea={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const ta={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const ra={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ia={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const sa={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const aa={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const na={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const oa={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const pa={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const la={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const ca={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const da={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ua={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ma={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ha={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const fa={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const ga={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const ya={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const va={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ba={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const xa={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wa={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Sa={parameterPath:"blocks",mapper:Q};const Ea={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ta={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(e){this.client=e}setProperties(e,t){const r={blobServiceProperties:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,_a)}getProperties(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Pa)}getStatistics(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ca)}listContainersSegment(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Oa)}getUserDelegationKey(e,t){const r={keyInfo:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ra)}getAccountInfo(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Aa)}submitBatch(e,t,r,i){const s={contentLength:e,multipartContentType:t,body:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Da)}filterBlobs(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ia)}}const Na=new y.Serializer(Ur,true);const _a={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:le},default:{bodyMapper:P,headersMapper:ce}},requestBody:Hr,queryParameters:[Xr,Wr,Kr],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Na};const Pa={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:w,headersMapper:de},default:{bodyMapper:P,headersMapper:ue}},queryParameters:[Xr,Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};const Ca={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:C,headersMapper:me},default:{bodyMapper:P,headersMapper:he}},queryParameters:[Xr,Kr,Zr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};const Oa={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:R,headersMapper:fe},default:{bodyMapper:P,headersMapper:ge}},queryParameters:[Kr,ei,ti,ri,ii,si],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};const Ra={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:k,headersMapper:ye},default:{bodyMapper:P,headersMapper:ve}},requestBody:ai,queryParameters:[Xr,Kr,ni],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Na};const Aa={path:"/",httpMethod:"GET",responses:{200:{headersMapper:be},default:{bodyMapper:P,headersMapper:xe}},queryParameters:[Wr,oi],urlParameters:[$r],headerParameters:[Qr,Jr],isXML:true,serializer:Na};const Da={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:we},default:{bodyMapper:P,headersMapper:Se}},requestBody:pi,queryParameters:[Kr,li],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,ci,di],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Na};const Ia={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:L,headersMapper:Ee},default:{bodyMapper:P,headersMapper:Te}},queryParameters:[Kr,ri,ii,ui,mi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};class Container{constructor(e){this.client=e}create(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,La)}getProperties(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ma)}delete(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ba)}setMetadata(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,ja)}getAccessPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,za)}setAccessPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Fa)}restore(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,qa)}rename(e,t){const r={sourceContainerName:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ua)}submitBatch(e,t,r,i){const s={contentLength:e,multipartContentType:t,body:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ga)}filterBlobs(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ha)}acquireLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Va)}releaseLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,$a)}renewLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Xa)}breakLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Wa)}changeLease(e,t,r){const i={leaseId:e,proposedLeaseId:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ka)}listBlobFlatSegment(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Qa)}listBlobHierarchySegment(e,t){const r={delimiter:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ya)}getAccountInfo(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ja)}}const ka=new y.Serializer(Ur,true);const La={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ne},default:{bodyMapper:P,headersMapper:_e}},queryParameters:[Kr,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,gi,yi,vi],isXML:true,serializer:ka};const Ma={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Pe},default:{bodyMapper:P,headersMapper:Ce}},queryParameters:[Kr,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi],isXML:true,serializer:ka};const Ba={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Oe},default:{bodyMapper:P,headersMapper:Re}},queryParameters:[Kr,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi],isXML:true,serializer:ka};const ja={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ae},default:{bodyMapper:P,headersMapper:De}},queryParameters:[Kr,hi,Si],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi],isXML:true,serializer:ka};const za={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Ie},default:{bodyMapper:P,headersMapper:ke}},queryParameters:[Kr,hi,Ei],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi],isXML:true,serializer:ka};const Fa={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Le},default:{bodyMapper:P,headersMapper:Me}},requestBody:Ti,queryParameters:[Kr,hi,Ei],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,gi,bi,xi,wi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const qa={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Be},default:{bodyMapper:P,headersMapper:je}},queryParameters:[Kr,hi,Ni],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,_i,Pi],isXML:true,serializer:ka};const Ua={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ze},default:{bodyMapper:P,headersMapper:Fe}},queryParameters:[Kr,hi,Ci],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,Oi,Ri],isXML:true,serializer:ka};const Ga={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:qe},default:{bodyMapper:P,headersMapper:Ue}},requestBody:pi,queryParameters:[Kr,li,hi],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,ci,di],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const Ha={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:L,headersMapper:Ge},default:{bodyMapper:P,headersMapper:He}},queryParameters:[Kr,ri,ii,ui,mi,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:ka};const Va={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ve},default:{bodyMapper:P,headersMapper:$e}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Di,Ii,ki],isXML:true,serializer:ka};const $a={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Xe},default:{bodyMapper:P,headersMapper:We}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Li,Mi],isXML:true,serializer:ka};const Xa={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ke},default:{bodyMapper:P,headersMapper:Qe}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Bi],isXML:true,serializer:ka};const Wa={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Ye},default:{bodyMapper:P,headersMapper:Je}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,ji,zi],isXML:true,serializer:ka};const Ka={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ze},default:{bodyMapper:P,headersMapper:et}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Fi,qi],isXML:true,serializer:ka};const Qa={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:tt},default:{bodyMapper:P,headersMapper:rt}},queryParameters:[Kr,ei,ti,ri,ii,hi,Ui],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:ka};const Ya={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:X,headersMapper:it},default:{bodyMapper:P,headersMapper:st}},queryParameters:[Kr,ei,ti,ri,ii,hi,Ui,Gi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:ka};const Ja={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:nt},default:{bodyMapper:P,headersMapper:ot}},queryParameters:[Wr,oi],urlParameters:[$r],headerParameters:[Qr,Jr],isXML:true,serializer:ka};class Blob$1{constructor(e){this.client=e}download(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,en)}getProperties(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,tn)}delete(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,rn)}undelete(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,sn)}setExpiry(e,t){const r={expiryOptions:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,an)}setHttpHeaders(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,nn)}setImmutabilityPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,on)}deleteImmutabilityPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,pn)}setLegalHold(e,t){const r={legalHold:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,ln)}setMetadata(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,cn)}acquireLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,dn)}releaseLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,un)}renewLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,mn)}changeLease(e,t,r){const i={leaseId:e,proposedLeaseId:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,hn)}breakLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,fn)}createSnapshot(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,gn)}startCopyFromURL(e,t){const r={copySource:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,yn)}copyFromURL(e,t){const r={copySource:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,vn)}abortCopyFromURL(e,t){const r={copyId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,bn)}setTier(e,t){const r={tier:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,xn)}getAccountInfo(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,wn)}query(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Sn)}getTags(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,En)}setTags(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Tn)}}const Za=new y.Serializer(Ur,true);const en={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:pt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:pt},default:{bodyMapper:P,headersMapper:ct}},queryParameters:[Kr,Hi,Vi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,$i,Xi,Wi,Ki,Qi,Yi,Ji,Zi,es],isXML:true,serializer:Za};const tn={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:dt},default:{bodyMapper:P,headersMapper:ut}},queryParameters:[Kr,Hi,Vi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es],isXML:true,serializer:Za};const rn={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:mt},default:{bodyMapper:P,headersMapper:ht}},queryParameters:[Kr,Hi,Vi,rs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,es,ts],isXML:true,serializer:Za};const sn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ft},default:{bodyMapper:P,headersMapper:yt}},queryParameters:[Kr,Ni],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Za};const an={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vt},default:{bodyMapper:P,headersMapper:bt}},queryParameters:[Kr,is],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ss,as],isXML:true,serializer:Za};const nn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xt},default:{bodyMapper:P,headersMapper:wt}},queryParameters:[Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,es,ns,os,ps,ls,cs,ds],isXML:true,serializer:Za};const on={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:St},default:{bodyMapper:P,headersMapper:Et}},queryParameters:[Kr,us],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,wi,ms,hs],isXML:true,serializer:Za};const pn={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Tt},default:{bodyMapper:P,headersMapper:Nt}},queryParameters:[Kr,us],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Za};const ln={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:P,headersMapper:Pt}},queryParameters:[Kr,fs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,gs],isXML:true,serializer:Za};const cn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ct},default:{bodyMapper:P,headersMapper:Ot}},queryParameters:[Kr,Si],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys],isXML:true,serializer:Za};const dn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rt},default:{bodyMapper:P,headersMapper:At}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Di,Ii,ki,Ji,Zi,es],isXML:true,serializer:Za};const un={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Dt},default:{bodyMapper:P,headersMapper:It}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Li,Mi,Ji,Zi,es],isXML:true,serializer:Za};const mn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kt},default:{bodyMapper:P,headersMapper:Lt}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Bi,Ji,Zi,es],isXML:true,serializer:Za};const hn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Mt},default:{bodyMapper:P,headersMapper:Bt}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Fi,qi,Ji,Zi,es],isXML:true,serializer:Za};const fn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jt},default:{bodyMapper:P,headersMapper:zt}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,ji,zi,Ji,Zi,es],isXML:true,serializer:Za};const gn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ft},default:{bodyMapper:P,headersMapper:qt}},queryParameters:[Kr,vs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys],isXML:true,serializer:Za};const yn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ut},default:{bodyMapper:P,headersMapper:Gt}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ji,Zi,es,ms,hs,bs,xs,ws,Ss,Es,Ts,Ns,_s,Ps,Cs,Os],isXML:true,serializer:Za};const vn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ht},default:{bodyMapper:P,headersMapper:Vt}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ji,Zi,es,ms,hs,ys,bs,ws,Ss,Es,Ts,_s,Ps,Os,Rs,As,Ds,Is],isXML:true,serializer:Za};const bn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:$t},default:{bodyMapper:P,headersMapper:Xt}},queryParameters:[Kr,ks,Ms],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,Ls],isXML:true,serializer:Za};const xn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Wt},202:{headersMapper:Wt},default:{bodyMapper:P,headersMapper:Kt}},queryParameters:[Kr,Hi,Vi,Bs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,es,xs,js],isXML:true,serializer:Za};const wn={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Qt},default:{bodyMapper:P,headersMapper:Yt}},queryParameters:[Wr,oi],urlParameters:[$r],headerParameters:[Qr,Jr],isXML:true,serializer:Za};const Sn={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Jt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Jt},default:{bodyMapper:P,headersMapper:Zt}},requestBody:zs,queryParameters:[Kr,Hi,Fs],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Za};const En={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:B,headersMapper:er},default:{bodyMapper:P,headersMapper:tr}},queryParameters:[Kr,Hi,Vi,qs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,es],isXML:true,serializer:Za};const Tn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:rr},default:{bodyMapper:P,headersMapper:ir}},requestBody:Us,queryParameters:[Kr,Vi,qs],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,bi,es,Gs,Hs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Za};class PageBlob{constructor(e){this.client=e}create(e,t,r){const i={contentLength:e,blobContentLength:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Pn)}uploadPages(e,t,r){const i={contentLength:e,body:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Cn)}clearPages(e,t){const r={contentLength:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,On)}uploadPagesFromURL(e,t,r,i,s){const a={sourceUrl:e,sourceRange:t,contentLength:r,range:i,options:y.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Rn)}getPageRanges(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,An)}getPageRangesDiff(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Dn)}resize(e,t){const r={blobContentLength:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,In)}updateSequenceNumber(e,t){const r={sequenceNumberAction:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,kn)}copyIncremental(e,t){const r={copySource:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ln)}}const Nn=new y.Serializer(Ur,true);const _n=new y.Serializer(Ur,false);const Pn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sr},default:{bodyMapper:P,headersMapper:ar}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,bs,Ps,Os,Vs,$s,Xs],isXML:true,serializer:Nn};const Cn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:nr},default:{bodyMapper:P,headersMapper:or}},requestBody:Ks,queryParameters:[Kr,Ys],urlParameters:[$r],headerParameters:[Qr,Yr,ci,bi,xi,wi,$i,Ki,Qi,Yi,Ji,Zi,es,ys,Gs,Hs,Ws,Qs,Js,Zs,ea,ta],mediaType:"binary",serializer:_n};const On={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:P,headersMapper:lr}},queryParameters:[Kr,Ys],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,xi,wi,$i,Ki,Qi,Yi,Ji,Zi,es,ys,Zs,ea,ta,ra],isXML:true,serializer:Nn};const Rn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cr},default:{bodyMapper:P,headersMapper:dr}},queryParameters:[Kr,Ys],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,ws,Ss,Es,Ts,As,Ds,Js,Zs,ea,ta,ia,sa,aa,na],isXML:true,serializer:Nn};const An={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Z,headersMapper:ur},default:{bodyMapper:P,headersMapper:mr}},queryParameters:[Kr,ri,ii,Hi,oa],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,$i,Ji,Zi,es],isXML:true,serializer:Nn};const Dn={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Z,headersMapper:hr},default:{bodyMapper:P,headersMapper:fr}},queryParameters:[Kr,ri,ii,Hi,oa,pa],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,$i,Ji,Zi,es,la],isXML:true,serializer:Nn};const In={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:gr},default:{bodyMapper:P,headersMapper:yr}},queryParameters:[Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,$s],isXML:true,serializer:Nn};const kn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vr},default:{bodyMapper:P,headersMapper:br}},queryParameters:[Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,es,Xs,ca],isXML:true,serializer:Nn};const Ln={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:xr},default:{bodyMapper:P,headersMapper:wr}},queryParameters:[Kr,da],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Ji,Zi,es,_s],isXML:true,serializer:Nn};class AppendBlob{constructor(e){this.client=e}create(e,t){const r={contentLength:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,jn)}appendBlock(e,t,r){const i={contentLength:e,body:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,zn)}appendBlockFromUrl(e,t,r){const i={sourceUrl:e,contentLength:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fn)}seal(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,qn)}}const Mn=new y.Serializer(Ur,true);const Bn=new y.Serializer(Ur,false);const jn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sr},default:{bodyMapper:P,headersMapper:Er}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,Ps,Os,ua],isXML:true,serializer:Mn};const zn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Tr},default:{bodyMapper:P,headersMapper:Nr}},requestBody:Ks,queryParameters:[Kr,ma],urlParameters:[$r],headerParameters:[Qr,Yr,ci,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,Gs,Hs,Ws,Qs,ha,fa],mediaType:"binary",serializer:Bn};const Fn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_r},default:{bodyMapper:P,headersMapper:Pr}},queryParameters:[Kr,ma],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,ws,Ss,Es,Ts,As,Ds,Gs,ia,aa,ha,fa,ga],isXML:true,serializer:Mn};const qn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Cr},default:{bodyMapper:P,headersMapper:Or}},queryParameters:[Kr,ya],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,fa],isXML:true,serializer:Mn};class BlockBlob{constructor(e){this.client=e}upload(e,t,r){const i={contentLength:e,body:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hn)}putBlobFromUrl(e,t,r){const i={contentLength:e,copySource:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Vn)}stageBlock(e,t,r,i){const s={blockId:e,contentLength:t,body:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,$n)}stageBlockFromURL(e,t,r,i){const s={blockId:e,contentLength:t,sourceUrl:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Xn)}commitBlockList(e,t){const r={blocks:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Wn)}getBlockList(e,t){const r={listType:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Kn)}}const Un=new y.Serializer(Ur,true);const Gn=new y.Serializer(Ur,false);const Hn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rr},default:{bodyMapper:P,headersMapper:Ar}},requestBody:Ks,queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,bs,Ps,Os,Gs,Hs,Ws,Qs,va],mediaType:"binary",serializer:Gn};const Vn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:P,headersMapper:Ir}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ys,bs,ws,Ss,Es,Ts,Ns,_s,Ps,As,Ds,Is,Gs,va,ba],isXML:true,serializer:Un};const $n={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:kr},default:{bodyMapper:P,headersMapper:Lr}},requestBody:Ks,queryParameters:[Kr,xa,wa],urlParameters:[$r],headerParameters:[Qr,Yr,ci,bi,Ki,Qi,Yi,ys,Gs,Hs,Ws,Qs],mediaType:"binary",serializer:Gn};const Xn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:P,headersMapper:Br}},queryParameters:[Kr,xa,wa],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,Ki,Qi,Yi,ys,ws,Ss,Es,Ts,As,Ds,ia,aa,ga],isXML:true,serializer:Un};const Wn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jr},default:{bodyMapper:P,headersMapper:zr}},requestBody:Sa,queryParameters:[Kr,Ea],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,bs,Ps,Os,Gs,Hs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Un};const Kn={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Y,headersMapper:Fr},default:{bodyMapper:P,headersMapper:qr}},queryParameters:[Kr,Hi,Ea,Ta],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,es],isXML:true,serializer:Un};const Qn=n.createClientLogger("storage-blob");const Yn="12.13.0";const Jn="2021-12-02";const Zn=256*1024*1024;const eo=4e3*1024*1024;const to=5e4;const ro=8*1024*1024;const io=4*1024*1024;const so=5;const ao=100*1e3;const no="https://storage.azure.com/.default";const oo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const po={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const lo={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"};const co="";const uo="*";const mo=1*1024*1024;const ho=256;const fo=4*mo;const go="\r\n";const yo="HTTP/1.1";const vo="AES256";const bo=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const xo=["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-if-tags","x-ms-source-if-tags"];const wo=["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"];const So="BlobUsesCustomerSpecifiedEncryption";const Eo="BlobDoesNotUseCustomerSpecifiedEncryption";const To=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=i.URLBuilder.parse(e);let r=t.getPath();r=r||"/";r=escape(r);t.setPath(r);return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=bo}let r=getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let s="";let a=Buffer.from("accountKey","base64");let n="";s=getValueInConnString(e,"AccountName");a=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!r){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}n=getValueInConnString(e,"EndpointSuffix");if(!n){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${i}://${s}.blob.${n}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(a.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:a,proxyUri:t}}else{const t=getValueInConnString(e,"SharedAccessSignature");const i=getAccountNameFromUrl(r);if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:r,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const r=i.URLBuilder.parse(e);let s=r.getPath();s=s?s.endsWith("/")?`${s}${t}`:`${s}/${t}`:t;r.setPath(s);const a=new URL(r.toString());return a.toString()}function setURLParameter(e,t,r){const s=i.URLBuilder.parse(e);s.setQueryParameter(t,r);return s.toString()}function getURLParameter(e,t){const r=i.URLBuilder.parse(e);return r.getQueryParameterValue(t)}function setURLHost(e,t){const r=i.URLBuilder.parse(e);r.setHost(t);return r.toString()}function getURLPath(e){const t=i.URLBuilder.parse(e);return t.getPath()}function getURLScheme(e){const t=i.URLBuilder.parse(e);return t.getScheme()}function getURLPathAndQuery(e){const t=i.URLBuilder.parse(e);const r=t.getPath();if(!r){throw new RangeError("Invalid url without valid path.")}let s=t.getQuery()||"";s=s.trim();if(s!==""){s=s.startsWith("?")?s:`?${s}`}return`${r}${s}`}function getURLQueries(e){let t=i.URLBuilder.parse(e).getQuery();if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substr(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const a=e+padStart(t.toString(),r-e.length,"0");return base64encode(a)}async function delay(e,t,r){return new Promise(((i,s)=>{let a;const abortHandler=()=>{if(a!==undefined){clearTimeout(a)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};a=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=i.URLBuilder.parse(e);let r;try{if(t.getHost().split(".")[1]==="blob"){r=t.getHost().split(".")[0]}else if(isIpEndpointStyle(t)){r=t.getPath().split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){if(e.getHost()===undefined){return false}const t=e.getHost()+(e.getPort()===undefined?"":":"+e.getPort());return/^.*:.*:.*$|^localhost(:[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.getPort()!==undefined&&To.includes(e.getPort())}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(i)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r];t.blobTagSet.push({key:r,value:i})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const r of e.blobTagSet){t[r.key]=r.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}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||false}}};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 parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const r in e){const i=r.split("_");const s="or-";if(i[0].startsWith(s)){i[0]=i[0].substring(s.length)}const a={ruleId:i[1],replicationStatus:e[r]};const n=t.findIndex((e=>e.policyId===i[0]));if(n>-1){t[n].rules.push(a)}else{t.push({policyId:i[0],rules:[a]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return Object.assign(Object.assign({},e),{segment:{blobItems:e.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name)});return t}))}})}function ConvertInternalResponseOfListBlobHierarchy(e){var t;return Object.assign(Object.assign({},e),{segment:{blobPrefixes:(t=e.segment.blobPrefixes)===null||t===void 0?void 0:t.map((e=>{const t={name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name)});return t}))}})}function*ExtractPageRangeInfoItems(e){let t=[];let r=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)r=e.clearRange;let i=0;let s=0;while(i=1?Math.floor(r.maxTries):No.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:No.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:No.maxRetryDelayInMs):No.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:No.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:No.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,r){const i=e.clone();const s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;if(!s){i.url=setURLHost(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=setURLParameter(i.url,oo.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let a;try{Qn.info(`RetryPolicy: =====> Try=${r} ${s?"Primary":"Secondary"}`);a=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(s,r,a)){return a}t=t||!s&&a.status===404}catch(e){Qn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(s,r,a,e)){throw e}}await this.delay(s,r,e.abortSignal);return this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,i){if(t>=this.retryOptions.maxTries){Qn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of s){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){Qn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(r||i){const t=r?r.status:i?i.statusCode:0;if(!e&&t===404){Qn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){Qn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if((i===null||i===void 0?void 0:i.code)==="PARSE_ERROR"&&(i===null||i===void 0?void 0:i.message.startsWith(`Error "Error: Unclosed root tag`))){Qn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,r,i){let s=0;if(e){switch(this.retryOptions.retryPolicyType){case t.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case t.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}}else{s=Math.random()*1e3}Qn.info(`RetryPolicy: Delay for ${s}ms`);return delay(s,i,_o)}}class StorageRetryPolicyFactory{constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(e,t){super(e,t)}}class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(e,t){return new AnonymousCredentialPolicy(e,t)}}class TelemetryPolicy extends i.BaseRequestPolicy{constructor(e,t,r){super(e,t);this.telemetry=r}async sendRequest(e){if(i.isNode){if(!e.headers){e.headers=new i.HttpHeaders}if(!e.headers.get(lo.USER_AGENT)){e.headers.set(lo.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(e)}}class TelemetryPolicyFactory{constructor(e){const t=[];if(i.isNode){if(e){const r=e.userAgentPrefix||"";if(r.length>0&&t.indexOf(r)===-1){t.push(r)}}const r=`azsdk-js-storageblob/${Yn}`;if(t.indexOf(r)===-1){t.push(r)}let i=`(NODE-VERSION ${process.version})`;if(v){i=`(NODE-VERSION ${process.version}; ${v.type()} ${v.release()})`}if(t.indexOf(i)===-1){t.push(i)}}this.telemetryString=t.join(" ")}create(e,t){return new TelemetryPolicy(e,t,this.telemetryString)}}const Po=new i.DefaultHttpClient;function getCachedDefaultHttpClient(){return Po}const Co={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Oo={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,r);i=beginRefresh(tryGetAccessToken,a.retryIntervalInMs,(o=s===null||s===void 0?void 0:s.expiresOnTimestamp)!==null&&o!==void 0?o:Date.now()).then((e=>{i=null;s=e;return s})).catch((e=>{i=null;s=null;throw e}))}return i}return async e=>{if(n.mustRefresh)return refresh(e);if(n.shouldRefresh){refresh(e)}return s}}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const r=`${t.trim()} `.split(" ").filter((e=>e));const i=r.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}function storageBearerTokenChallengeAuthenticationPolicy(e,t){let r=createTokenCycler(e,t);class StorageBearerTokenChallengeAuthenticationPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(t){if(!t.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const s=r;const a=(await s({abortSignal:t.abortSignal,tracingOptions:{tracingContext:t.tracingContext}})).token;t.headers.set(Co.HeaderConstants.AUTHORIZATION,`Bearer ${a}`);const n=await this._nextPolicy.sendRequest(t);if((n===null||n===void 0?void 0:n.status)===401){const s=getChallenge(n);if(s){const a=parseChallenge(s);const n=a.resource_id+Co.DefaultScope;const o=i.URLBuilder.parse(a.authorization_uri);const p=o.getPath().split("/");const l=p[1];const c=createTokenCycler(e,n);const d=(await c({abortSignal:t.abortSignal,tracingOptions:{tracingContext:t.tracingContext},tenantId:l})).token;r=c;t.headers.set(Co.HeaderConstants.AUTHORIZATION,`Bearer ${d}`);return this._nextPolicy.sendRequest(t)}}return n}}return{create:(e,t)=>new StorageBearerTokenChallengeAuthenticationPolicy(e,t)}}function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{constructor(e,t={}){this.factories=e;this.options=Object.assign(Object.assign({},t),{httpClient:t.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){var r;if(e===undefined){e=new AnonymousCredential}const s=new TelemetryPolicyFactory(t.userAgentOptions);const a=[i.tracingPolicy({userAgent:s.telemetryString}),i.keepAlivePolicy(t.keepAliveOptions),s,i.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(t.retryOptions),i.deserializationPolicy(undefined,{xmlCharKey:"#"}),i.logPolicy({logger:Qn.info,allowedHeaderNames:xo,allowedQueryParameters:wo})];if(i.isNode){a.push(i.proxyPolicy(t.proxyOptions));a.push(i.disableResponseDecompressionPolicy())}a.push(i.isTokenCredential(e)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(e,(r=t.audience)!==null&&r!==void 0?r:no),e):e);return new Pipeline(a,t)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(e,t,r){super(e,t);this.factory=r}signRequest(e){e.headers.set(lo.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(lo.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,lo.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,lo.CONTENT_ENCODING),this.getHeaderValueToSign(e,lo.CONTENT_LENGTH),this.getHeaderValueToSign(e,lo.CONTENT_MD5),this.getHeaderValueToSign(e,lo.CONTENT_TYPE),this.getHeaderValueToSign(e,lo.DATE),this.getHeaderValueToSign(e,lo.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,lo.IF_MATCH),this.getHeaderValueToSign(e,lo.IF_NONE_MATCH),this.getHeaderValueToSign(e,lo.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,lo.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const r=this.factory.computeHMACSHA256(t);e.headers.set(lo.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`);return e}getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===lo.CONTENT_LENGTH&&r==="0"){return""}return r}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(lo.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let r="";r+=`/${this.factory.accountName}${t}`;const i=getURLQueries(e.url);const s={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const r=t.toLowerCase();s[r]=i[t];e.push(r)}}e.sort();for(const t of e){r+=`\n${t}:${decodeURIComponent(s[t])}`}}return r}}class StorageSharedKeyCredential extends Credential{constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return l.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const Ro="azure-storage-blob";const Ao="12.13.0";class StorageClientContext extends y.ServiceClient{constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}if(!t.userAgent){const e=y.getDefaultUserAgentValue();t.userAgent=`${Ro}/${Ao} ${e}`}super(undefined,t);this.requestContentType="application/json; charset=utf-8";this.baseUri=t.endpoint||"{url}";this.url=e;this.version=t.version||"2021-12-02"}}class StorageClient{constructor(e,t){this.url=escapeURLPath(e);this.accountName=getAccountNameFromUrl(e);this.pipeline=t;this.storageClientContext=new StorageClientContext(this.url,t.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const e of this.pipeline.factories){if(i.isNode&&e instanceof StorageSharedKeyCredential||e instanceof AnonymousCredential){this.credential=e}else if(i.isTokenCredential(e.credential)){this.credential=e.credential}}const r=this.storageClientContext;r.requestContentType=undefined}}const Do=a.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(e){var t,r;return{spanOptions:(t=e===null||e===void 0?void 0:e.tracingOptions)===null||t===void 0?void 0:t.spanOptions,tracingContext:(r=e===null||e===void 0?void 0:e.tracingOptions)===null||r===void 0?void 0:r.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(e){const t=new BlobSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${r}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(e){const t=new ContainerSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${r}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}class UserDelegationKeyCredential{constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return l.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}}function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}t.SASProtocol=void 0;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(t.SASProtocol||(t.SASProtocol={}));class SASQueryParameters{constructor(e,t,r,i,s,a,n,o,p,l,c,d,u,h,g,y,v,b,x,w){this.version=e;this.signature=t;if(r!==undefined&&typeof r!=="string"){this.permissions=r.permissions;this.services=r.services;this.resourceTypes=r.resourceTypes;this.protocol=r.protocol;this.startsOn=r.startsOn;this.expiresOn=r.expiresOn;this.ipRangeInner=r.ipRange;this.identifier=r.identifier;this.encryptionScope=r.encryptionScope;this.resource=r.resource;this.cacheControl=r.cacheControl;this.contentDisposition=r.contentDisposition;this.contentEncoding=r.contentEncoding;this.contentLanguage=r.contentLanguage;this.contentType=r.contentType;if(r.userDelegationKey){this.signedOid=r.userDelegationKey.signedObjectId;this.signedTenantId=r.userDelegationKey.signedTenantId;this.signedStartsOn=r.userDelegationKey.signedStartsOn;this.signedExpiresOn=r.userDelegationKey.signedExpiresOn;this.signedService=r.userDelegationKey.signedService;this.signedVersion=r.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=r.preauthorizedAgentObjectId;this.correlationId=r.correlationId}}else{this.services=i;this.resourceTypes=s;this.expiresOn=o;this.permissions=r;this.protocol=a;this.startsOn=n;this.ipRangeInner=p;this.encryptionScope=w;this.identifier=l;this.resource=c;this.cacheControl=d;this.contentDisposition=u;this.contentEncoding=h;this.contentLanguage=g;this.contentType=y;if(v){this.signedOid=v.signedObjectId;this.signedTenantId=v.signedTenantId;this.signedStartsOn=v.signedStartsOn;this.signedExpiresOn=v.signedExpiresOn;this.signedService=v.signedService;this.signedVersion=v.signedVersion;this.preauthorizedAgentObjectId=b;this.correlationId=x}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const t=[];for(const r of e){switch(r){case"sv":this.tryAppendQueryParameter(t,r,this.version);break;case"ss":this.tryAppendQueryParameter(t,r,this.services);break;case"srt":this.tryAppendQueryParameter(t,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,r,this.protocol);break;case"st":this.tryAppendQueryParameter(t,r,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,r,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,r,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,r,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,r,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,r,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,r,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,r,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,r,this.resource);break;case"sp":this.tryAppendQueryParameter(t,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,r,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,r,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,r,this.correlationId);break}}return t.join("&")}tryAppendQueryParameter(e,t,r){if(!r){return}t=encodeURIComponent(t);r=encodeURIComponent(r);if(t.length>0&&r.length>0){e.push(`${t}=${r}`)}}}function generateBlobSASQueryParameters(e,t,r){const i=e.version?e.version:Jn;const s=t instanceof StorageSharedKeyCredential?t:undefined;let a;if(s===undefined&&r!==undefined){a=new UserDelegationKeyCredential(r,t)}if(s===undefined&&a===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(i>="2020-12-06"){if(s!==undefined){return generateBlobSASQueryParameters20201206(e,s)}else{return generateBlobSASQueryParametersUDK20201206(e,a)}}if(i>="2018-11-09"){if(s!==undefined){return generateBlobSASQueryParameters20181109(e,s)}else{if(i>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,a)}else{return generateBlobSASQueryParametersUDK20181109(e,a)}}}if(i>="2015-04-05"){if(s!==undefined){return generateBlobSASQueryParameters20150405(e,s)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";if(e.blobName){r="b"}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const s=[i?i:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(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("\n");const a=t.computeHMACSHA256(s);return new SASQueryParameters(e.version,a,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId)}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope)}function getCanonicalName(e,t,r){const i=[`/blob/${e}/${t}`];if(r){i.push(`/${r}`)}return i.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:Jn;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&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===undefined&&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.")}e.version=t;return e}class BlobLeaseClient{constructor(e,t){const r=new StorageClientContext(e.url,e.pipeline.toServiceClientOptions());this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(r)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(r)}if(!t){t=i.generateUuid()}this._leaseId=t}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,t={}){var r,i,s,n,o,p;const{span:l,updatedOptions:c}=Do("BlobLeaseClient-acquireLease",t);if(this._isContainer&&(((r=t.conditions)===null||r===void 0?void 0:r.ifMatch)&&((i=t.conditions)===null||i===void 0?void 0:i.ifMatch)!==co||((s=t.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((n=t.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==co||((o=t.conditions)===null||o===void 0?void 0:o.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(p=t.conditions)===null||p===void 0?void 0:p.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(c)))}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}async changeLease(e,t={}){var r,i,s,n,o,p;const{span:l,updatedOptions:c}=Do("BlobLeaseClient-changeLease",t);if(this._isContainer&&(((r=t.conditions)===null||r===void 0?void 0:r.ifMatch)&&((i=t.conditions)===null||i===void 0?void 0:i.ifMatch)!==co||((s=t.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((n=t.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==co||((o=t.conditions)===null||o===void 0?void 0:o.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const r=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(p=t.conditions)===null||p===void 0?void 0:p.tagConditions})},convertTracingToRequestOptionsBase(c)));this._leaseId=e;return r}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}async releaseLease(e={}){var t,r,i,s,n,o;const{span:p,updatedOptions:l}=Do("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(((t=e.conditions)===null||t===void 0?void 0:t.ifMatch)&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==co||((i=e.conditions)===null||i===void 0?void 0:i.ifNoneMatch)&&((s=e.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==co||((n=e.conditions)===null||n===void 0?void 0:n.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(o=e.conditions)===null||o===void 0?void 0:o.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(e){p.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{p.end()}}async renewLease(e={}){var t,r,i,s,n,o;const{span:p,updatedOptions:l}=Do("BlobLeaseClient-renewLease",e);if(this._isContainer&&(((t=e.conditions)===null||t===void 0?void 0:t.ifMatch)&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==co||((i=e.conditions)===null||i===void 0?void 0:i.ifNoneMatch)&&((s=e.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==co||((n=e.conditions)===null||n===void 0?void 0:n.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(o=e.conditions)===null||o===void 0?void 0:o.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(e){p.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{p.end()}}async breakLease(e,t={}){var r,i,s,n,o,p;const{span:l,updatedOptions:c}=Do("BlobLeaseClient-breakLease",t);if(this._isContainer&&(((r=t.conditions)===null||r===void 0?void 0:r.ifMatch)&&((i=t.conditions)===null||i===void 0?void 0:i.ifMatch)!==co||((s=t.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((n=t.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==co||((o=t.conditions)===null||o===void 0?void 0:o.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const r=Object.assign({abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(p=t.conditions)===null||p===void 0?void 0:p.tagConditions})},convertTracingToRequestOptionsBase(c));return await this._containerOrBlobOperation.breakLease(r)}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}}class RetriableReadableStream extends c.Readable{constructor(e,t,r,i,s={}){super({highWaterMark:s.highWaterMark});this.retries=0;this.sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};this.sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new 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}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=t;this.source=e;this.start=r;this.offset=r;this.end=r+i-1;this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0;this.onProgress=s.onProgress;this.options=s;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)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{constructor(e,t,r,i,s={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,i,s)}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 i.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Io=16;const ko=new Uint8Array([79,98,106,1]);const Lo="avro.codec";const Mo="avro.schema";class AvroParser{static async readFixedBytes(e,t,r={}){const i=await e.read(t,{abortSignal:r.abortSignal});if(i.length!==t){throw new Error("Hit stream end.")}return i}static async readByte(e,t={}){const r=await AvroParser.readFixedBytes(e,1,t);return r[0]}static async readZigZagLong(e,t={}){let r=0;let i=0;let s,a,n;do{s=await AvroParser.readByte(e,t);a=s&128;r|=(s&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return i}return r>>1^-(r&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const r=await AvroParser.readByte(e,t);if(r===1){return true}else if(r===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const r=await AvroParser.readFixedBytes(e,4,t);const i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.getFloat32(0,true)}static async readDouble(e,t={}){const r=await AvroParser.readFixedBytes(e,8,t);const i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.getFloat64(0,true)}static async readBytes(e,t={}){const r=await AvroParser.readLong(e,t);if(r<0){throw new Error("Bytes size was negative.")}return e.read(r,{abortSignal:t.abortSignal})}static async readString(e,t={}){const r=await AvroParser.readBytes(e,t);const i=new TextDecoder;return i.decode(r)}static async readMapPair(e,t,r={}){const i=await AvroParser.readString(e,r);const s=await t(e,r);return{key:i,value:s}}static async readMap(e,t,r={}){const readPairMethod=(e,r={})=>AvroParser.readMapPair(e,t,r);const i=await AvroParser.readArray(e,readPairMethod,r);const s={};for(const e of i){s[e.key]=e.value}return s}static async readArray(e,t,r={}){const i=[];for(let s=await AvroParser.readLong(e,r);s!==0;s=await AvroParser.readLong(e,r)){if(s<0){await AvroParser.readLong(e,r);s=-s}while(s--){const s=await t(e,r);i.push(s)}}return i}}var Bo;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(Bo||(Bo={}));var jo;(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"})(jo||(jo={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case jo.NULL:case jo.BOOLEAN:case jo.INT:case jo.LONG:case jo.FLOAT:case jo.DOUBLE:case jo.BYTES:case jo.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch(e){}switch(t){case Bo.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const r={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){r[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(r,e.name);case Bo.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case Bo.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case Bo.ARRAY:case Bo.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case jo.NULL:return AvroParser.readNull();case jo.BOOLEAN:return AvroParser.readBoolean(e,t);case jo.INT:return AvroParser.readInt(e,t);case jo.LONG:return AvroParser.readLong(e,t);case jo.FLOAT:return AvroParser.readFloat(e,t);case jo.DOUBLE:return AvroParser.readDouble(e,t);case jo.BYTES:return AvroParser.readBytes(e,t);case jo.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(e){super();this._symbols=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._symbols[r]}}class AvroUnionType extends AvroType{constructor(e){super();this._types=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._types[r].read(e,t)}}class AvroMapType extends AvroType{constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const r={};r["$schema"]=this._name;for(const i in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,i)){r[i]=await this._fields[i].read(e,t)}}return r}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let r=0;r0){for(let t=0;t0}parseObjects(e={}){return s.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield s.__await(this.initialize(e))}while(this.hasNext()){const t=yield s.__await(this._itemType.read(this._dataStream,{abortSignal:e.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=yield s.__await(AvroParser.readFixedBytes(this._dataStream,Io,{abortSignal:e.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield s.__await(AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal}))}catch(e){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield s.__await(AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal}))}}yield yield s.__await(t)}}))}}class AvroReadable{}const zo=new o.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(e){super();this._readable=e;this._position=0}toUint8Array(e){if(typeof e==="string"){return Buffer.from(e)}return e}get position(){return this._position}async read(e,t={}){var r;if((r=t.abortSignal)===null||r===void 0?void 0:r.aborted){throw zo}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const i=this._readable.read(e);if(i){this._position+=i.length;return this.toUint8Array(i)}else{return new Promise(((r,i)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();r(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();i()};const abortHandler=()=>{cleanUp();i(zo)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends c.Readable{constructor(e,t={}){super();this.avroPaused=true;this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const r=t.$schema;if(typeof r!=="string"){throw Error("Missing schema in avro record.")}switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const 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){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const r=t.name;if(typeof r!=="string"){throw Error("Invalid name in avro error record.")}const i=t.description;if(typeof i!=="string"){throw Error("Invalid description in avro error record.")}const s=t.position;if(typeof s!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:s,name:r,isFatal:e,description:i})}break;default:throw Error(`Unknown schema ${r} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}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 undefined}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(){return undefined}get readableStreamBody(){return i.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}t.BlockBlobTier=void 0;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(t.BlockBlobTier||(t.BlockBlobTier={}));t.PremiumPageBlobTier=void 0;(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"})(t.PremiumPageBlobTier||(t.PremiumPageBlobTier={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=vo}}t.StorageBlobAudience=void 0;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(t.StorageBlobAudience||(t.StorageBlobAudience={}));function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const r=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return Object.assign(Object.assign({},e),{pageRange:t,clearRange:r,_response:Object.assign(Object.assign({},e._response),{parsedBody:{pageRange:t,clearRange:r}})})}class BlobBeginCopyFromUrlPoller extends d.Poller{constructor(e){const{blobClient:t,copySource:r,intervalInMs:i=15e3,onProgress:s,resumeFrom:a,startCopyFromURLOptions:n}=e;let o;if(a){o=JSON.parse(a).state}const p=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},o),{blobClient:t,copySource:r,startCopyFromURLOptions:n}));super(p);if(typeof s==="function"){this.onProgress(s)}this.intervalInMs=i}delay(){return i.delay(this.intervalInMs)}}const Fo=async function cancel(e={}){const t=this.state;const{copyId:r}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!r){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const qo=async function update(e={}){const t=this.state;const{blobClient:r,copySource:i,startCopyFromURLOptions:s}=t;if(!t.isStarted){t.isStarted=true;const e=await r.startCopyFromURL(i,s);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:i,copyProgress:s}=r;const a=t.copyProgress;if(s){t.copyProgress=s}if(i==="pending"&&s!==a&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(i==="success"){t.result=r;t.isCompleted=true}else if(i==="failed"){t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const Uo=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:Object.assign({},e),cancel:Fo,toString:Uo,update:qo}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new 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 Go;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(Go||(Go={}));class Batch{constructor(e=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=Go.Good;if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new u.EventEmitter}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(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=Go.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let r=0;while(re-r){const i=this.byteOffsetInCurrentBuffer+e-r;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,i));this.pushedBytesLength+=e-r;this.byteOffsetInCurrentBuffer=i;r=e;break}else{const e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(a===s){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=a;r+=a}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}const Ho=r(4300).constants.MAX_LENGTH;class PooledBuffer{constructor(e,t,r){this.buffers=[];this.capacity=e;this._size=0;const i=Math.ceil(e/Ho);for(let t=0;t0){e[0]=e[0].slice(a)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(e,t,r,i,s,a){this.emitter=new u.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(r<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${r}`)}if(s<=0){throw new RangeError(`concurrency must be larger than 0, current is ${s}`)}this.bufferSize=t;this.maxBuffers=r;this.readable=e;this.outgoingHandler=i;this.concurrency=s;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);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;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.unresolvedLengthr.getReadableStream()),r.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){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(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();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const 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);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(e,t,r,i,s){let a=0;const n=i-r;return new Promise(((i,o)=>{const p=setTimeout((()=>o(new Error(`The operation cannot be completed in timeout.`))),ao);e.on("readable",(()=>{if(a>=n){clearTimeout(p);i();return}let o=e.read();if(!o){return}if(typeof o==="string"){o=Buffer.from(o,s)}const l=a+o.length>n?n-a:o.length;t.fill(o.slice(0,l),r+a,r+a+l);a+=l}));e.on("end",(()=>{clearTimeout(p);if(a{clearTimeout(p);o(e)}))}))}async function streamToBuffer2(e,t,r){let i=0;const s=t.length;return new Promise(((a,n)=>{e.on("readable",(()=>{let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,r)}if(i+a.length>s){n(new Error(`Stream exceeds buffer size. Buffer size: ${s}`));return}t.fill(a,i,i+a.length);i+=a.length}));e.on("end",(()=>{a(i)}));e.on("error",n)}))}async function readStreamToLocalFile(e,t){return new Promise(((r,i)=>{const s=b.createWriteStream(t);e.on("error",(e=>{i(e)}));s.on("error",(e=>{i(e)}));s.on("close",r);e.pipe(s)}))}const Vo=x.promisify(b.stat);const $o=b.createReadStream;class BlobClient extends StorageClient{constructor(e,t,r,s){s=s||{};let a;let n;if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,oo.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,oo.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new BlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(setURLParameter(this.url,oo.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,r={}){var s;r.conditions=r.conditions||{};r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const{span:n,updatedOptions:o}=Do("BlobClient-download",r);try{const a=await this.blobContext.download(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onDownloadProgress:i.isNode?undefined:r.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(o)));const p=Object.assign(Object.assign({},a),{_response:a._response,objectReplicationDestinationPolicyId:a.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(a.objectReplicationRules)});if(!i.isNode){return p}if(r.maxRetryRequests===undefined||r.maxRetryRequests<0){r.maxRetryRequests=so}if(a.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!a.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async t=>{var i;const s={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||a.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions},range:rangeToString({count:e+a.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:r.abortSignal},s))).readableStreamBody}),e,a.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async exists(e={}){const{span:t,updatedOptions:r}=Do("BlobClient-exists",e);try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===So||e.details.errorCode===Eo)){return true}t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getProperties(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-getProperties",e);try{e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);const s=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},convertTracingToRequestOptionsBase(i)));return Object.assign(Object.assign({},s),{_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)})}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async delete(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async deleteIfExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("BlobClient-deleteIfExists",e);try{const e=await this.delete(s);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobNotFound"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async undelete(e={}){const{span:t,updatedOptions:r}=Do("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setHTTPHeaders(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async setMetadata(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async setTags(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)),{tags:toBlobTags(e)}))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async getTags(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-getTags",e);try{const s=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(i)));const a=Object.assign(Object.assign({},s),{_response:s._response,tags:toTags({blobTagSet:s.blobTagSet})||{}});return a}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async beginCopyFromURL(e,t={}){const r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const i=new BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await i.poll();return i}async abortCopyFromURL(e,t={}){const{span:r,updatedOptions:i}=Do("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async syncCopyFromURL(e,t={}){var r,i,s;const{span:n,updatedOptions:o}=Do("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(s=t.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async setAccessTier(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(toAccessTier(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),rehydratePriority:t.rehydratePriority},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async downloadToBuffer(e,t,r,i={}){let s;let n=0;let o=0;let p=i;if(e instanceof Buffer){s=e;n=t||0;o=typeof r==="number"?r:0}else{n=typeof e==="number"?e:0;o=typeof t==="number"?t:0;p=r||{}}const{span:l,updatedOptions:c}=Do("BlobClient-downloadToBuffer",p);try{if(!p.blockSize){p.blockSize=0}if(p.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(p.blockSize===0){p.blockSize=io}if(n<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!p.conditions){p.conditions={}}if(!o){const e=await this.getProperties(Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(c))}));o=e.contentLength-n;if(o<0){throw new RangeError(`offset ${n} shouldn't be larger than blob size ${e.contentLength}`)}}if(!s){try{s=Buffer.alloc(o)}catch(e){throw new 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(s.length{let t=n+o;if(r+p.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).toString();t(appendToURLQuery(this.url,r))}))}async deleteImmutabilityPolicy(e){const{span:t,updatedOptions:r}=Do("BlobClient-deleteImmutabilityPolicy",e);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:e===null||e===void 0?void 0:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setImmutabilityPolicy(e,t){const{span:r,updatedOptions:i}=Do("BlobClient-setImmutabilityPolicy",t);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:t===null||t===void 0?void 0:t.abortSignal,immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,modifiedAccessConditions:t===null||t===void 0?void 0:t.modifiedAccessCondition},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setLegalHold(e,t){const{span:r,updatedOptions:i}=Do("BlobClient-setLegalHold",t);try{return await this.blobContext.setLegalHold(e,Object.assign({abortSignal:t===null||t===void 0?void 0:t.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}}class AppendBlobClient extends BlobClient{constructor(e,t,r,s){let a;let n;s=s||{};if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(e){return new AppendBlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){var t,r,i;const{span:s,updatedOptions:n}=Do("AppendBlobClient-create",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:(r=e.immutabilityPolicy)===null||r===void 0?void 0:r.expiriesOn,immutabilityPolicyMode:(i=e.immutabilityPolicy)===null||i===void 0?void 0:i.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags)},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async createIfNotExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("AppendBlobClient-createIfNotExists",e);const n={ifNoneMatch:uo};try{const e=await this.create(Object.assign(Object.assign({},s),{conditions:n}));return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobAlreadyExists"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async seal(e={}){var t;const{span:r,updatedOptions:i}=Do("AppendBlobClient-seal",e);e.conditions=e.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async appendBlock(e,t,r={}){var i;const{span:s,updatedOptions:n}=Do("AppendBlobClient-appendBlock",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(t,e,Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async appendBlockFromURL(e,t,r,i={}){var s;const{span:n,updatedOptions:o}=Do("AppendBlobClient-appendBlockFromURL",i);i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(e,0,Object.assign({abortSignal:i.abortSignal,sourceRange:rangeToString({offset:t,count:r}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}}class BlockBlobClient extends BlobClient{constructor(e,t,r,s){let a;let n;s=s||{};if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(e){return new BlockBlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){var r;ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);const{span:s,updatedOptions:n}=Do("BlockBlobClient-query",t);try{if(!i.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);const a=await this._blobContext.query(Object.assign({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey},convertTracingToRequestOptionsBase(n)));return new BlobQueryResponse(a,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async upload(e,t,r={}){var i,s,n;r.conditions=r.conditions||{};const{span:o,updatedOptions:p}=Do("BlockBlobClient-upload",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(t,e,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(s=r.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(n=r.immutabilityPolicy)===null||n===void 0?void 0:n.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(p)))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}async syncUploadFromURL(e,t={}){var r,i,s,n,o;t.conditions=t.conditions||{};const{span:p,updatedOptions:l}=Do("BlockBlobClient-syncUploadFromURL",t);try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,e,Object.assign(Object.assign(Object.assign({},t),{blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:t.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(r=t.sourceConditions)===null||r===void 0?void 0:r.ifMatch,sourceIfModifiedSince:(i=t.sourceConditions)===null||i===void 0?void 0:i.ifModifiedSince,sourceIfNoneMatch:(s=t.sourceConditions)===null||s===void 0?void 0:s.ifNoneMatch,sourceIfUnmodifiedSince:(n=t.sourceConditions)===null||n===void 0?void 0:n.ifUnmodifiedSince,sourceIfTags:(o=t.sourceConditions)===null||o===void 0?void 0:o.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags}),convertTracingToRequestOptionsBase(l)))}catch(e){p.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{p.end()}}async stageBlock(e,t,r,i={}){const{span:s,updatedOptions:n}=Do("BlockBlobClient-stageBlock",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(e,r,t,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async stageBlockFromURL(e,t,r=0,i,s={}){const{span:n,updatedOptions:o}=Do("BlockBlobClient-stageBlockFromURL",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(e,0,t,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:r===0&&!i?undefined:rangeToString({offset:r,count:i}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization)},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async commitBlockList(e,t={}){var r,i,s;t.conditions=t.conditions||{};const{span:n,updatedOptions:o}=Do("BlockBlobClient-commitBlockList",t);try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:e},Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(s=t.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags)},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async getBlockList(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlockBlobClient-getBlockList",t);try{const a=await this.blockBlobContext.getBlockList(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async uploadData(e,t={}){const{span:r,updatedOptions:s}=Do("BlockBlobClient-uploadData",t);try{if(i.isNode){let t;if(e instanceof Buffer){t=e}else if(e instanceof ArrayBuffer){t=Buffer.from(e)}else{e=e;t=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,r)=>t.slice(e,e+r)),t.byteLength,s)}else{const t=new Blob([e]);return this.uploadSeekableInternal(((e,r)=>t.slice(e,e+r)),t.size,s)}}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async uploadBrowserData(e,t={}){const{span:r,updatedOptions:i}=Do("BlockBlobClient-uploadBrowserData",t);try{const t=new Blob([e]);return await this.uploadSeekableInternal(((e,r)=>t.slice(e,e+r)),t.size,i)}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async uploadSeekableInternal(e,t,r={}){if(!r.blockSize){r.blockSize=0}if(r.blockSize<0||r.blockSize>eo){throw new RangeError(`blockSize option must be >= 0 and <= ${eo}`)}if(r.maxSingleShotSize!==0&&!r.maxSingleShotSize){r.maxSingleShotSize=Zn}if(r.maxSingleShotSize<0||r.maxSingleShotSize>Zn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Zn}`)}if(r.blockSize===0){if(t>eo*to){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>r.maxSingleShotSize){r.blockSize=Math.ceil(t/to);if(r.blockSizeto){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${to}`)}const o=[];const p=i.generateUuid();let l=0;const c=new Batch(r.concurrency);for(let i=0;i{const s=generateBlockID(p,i);const c=r.blockSize*i;const d=i===a-1?t:c+r.blockSize;const u=d-c;o.push(s);await this.stageBlock(s,e(c,u),u,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions});l+=u;if(r.onProgress){r.onProgress({loadedBytes:l})}}))}await c.do();return this.commitBlockList(o,n)}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async uploadFile(e,t={}){const{span:r,updatedOptions:i}=Do("BlockBlobClient-uploadFile",t);try{const s=(await Vo(e)).size;return await this.uploadSeekableInternal(((t,r)=>()=>$o(e,{autoClose:true,end:r?t+r-1:Infinity,start:t})),s,Object.assign(Object.assign({},t),{tracingOptions:Object.assign(Object.assign({},t.tracingOptions),convertTracingToRequestOptionsBase(i))}))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async uploadStream(e,t=ro,r=5,s={}){if(!s.blobHTTPHeaders){s.blobHTTPHeaders={}}if(!s.conditions){s.conditions={}}const{span:n,updatedOptions:o}=Do("BlockBlobClient-uploadStream",s);try{let a=0;const p=i.generateUuid();let l=0;const c=[];const d=new BufferScheduler(e,t,r,(async(e,t)=>{const r=generateBlockID(p,a);c.push(r);a++;await this.stageBlock(r,e,t,{conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions});l+=t;if(s.onProgress){s.onProgress({loadedBytes:l})}}),Math.ceil(r/4*3));await d.do();return await this.commitBlockList(c,Object.assign(Object.assign({},s),{tracingOptions:Object.assign(Object.assign({},s.tracingOptions),convertTracingToRequestOptionsBase(o))}))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}}class PageBlobClient extends BlobClient{constructor(e,t,r,s){let a;let n;s=s||{};if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(e){return new PageBlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){var r,i,s;t.conditions=t.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-create",t);try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,e,Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(s=t.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags)},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async createIfNotExists(e,t={}){var r,i;const{span:s,updatedOptions:n}=Do("PageBlobClient-createIfNotExists",t);try{const r={ifNoneMatch:uo};const i=await this.create(e,Object.assign(Object.assign({},t),{conditions:r,tracingOptions:n.tracingOptions}));return Object.assign(Object.assign({succeeded:true},i),{_response:i._response})}catch(e){if(((r=e.details)===null||r===void 0?void 0:r.errorCode)==="BlobAlreadyExists"){s.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(i=e.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:e.response})}s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async uploadPages(e,t,r,i={}){var s;i.conditions=i.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-uploadPages",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(r,e,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},range:rangeToString({offset:t,count:r}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async uploadPagesFromURL(e,t,r,i,s={}){var n;s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};const{span:o,updatedOptions:p}=Do("PageBlobClient-uploadPagesFromURL",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:i}),0,rangeToString({offset:r,count:i}),Object.assign({abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(n=s.conditions)===null||n===void 0?void 0:n.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions.ifMatch,sourceIfModifiedSince:s.sourceConditions.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization)},convertTracingToRequestOptionsBase(p)))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}async clearPages(e=0,t,r={}){var i;r.conditions=r.conditions||{};const{span:s,updatedOptions:n}=Do("PageBlobClient-clearPages",r);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async getPageRanges(e=0,t,r={}){var i;r.conditions=r.conditions||{};const{span:s,updatedOptions:n}=Do("PageBlobClient-getPageRanges",r);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),range:rangeToString({offset:e,count:t})},convertTracingToRequestOptionsBase(n))).then(rangeResponseFromModel)}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async listPageRangesSegment(e=0,t,r,i={}){var s;const{span:n,updatedOptions:o}=Do("PageBlobClient-getPageRangesSegment",i);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),range:rangeToString({offset:e,count:t}),marker:r,maxPageSize:i.maxPageSize},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}listPageRangeItemSegments(e=0,t,r,i={}){return s.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let a;if(!!r||r===undefined){do{a=yield s.__await(this.listPageRangesSegment(e,t,r,i));r=a.continuationToken;yield yield s.__await(yield s.__await(a))}while(r)}}))}listPageRangeItems(e=0,t,r={}){return s.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var i,a;let n;try{for(var o=s.__asyncValues(this.listPageRangeItemSegments(e,t,n,r)),p;p=yield s.__await(o.next()),!p.done;){const e=p.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(ExtractPageRangeInfoItems(e))))}}catch(e){i={error:e}}finally{try{if(p&&!p.done&&(a=o.return))yield s.__await(a.call(o))}finally{if(i)throw i.error}}}))}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const i=this.listPageRangeItems(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeItemSegments(e,t,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},r))}}async getPageRangesDiff(e,t,r,i={}){var s;i.conditions=i.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-getPageRangesDiff",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),prevsnapshot:r,range:rangeToString({offset:e,count:t})},convertTracingToRequestOptionsBase(o))).then(rangeResponseFromModel)}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async listPageRangesDiffSegment(e,t,r,i,s){var n;const{span:o,updatedOptions:p}=Do("PageBlobClient-getPageRangesDiffSegment",s);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:s===null||s===void 0?void 0:s.abortSignal,leaseAccessConditions:s===null||s===void 0?void 0:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s===null||s===void 0?void 0:s.conditions),{ifTags:(n=s===null||s===void 0?void 0:s.conditions)===null||n===void 0?void 0:n.tagConditions}),prevsnapshot:r,range:rangeToString({offset:e,count:t}),marker:i,maxPageSize:s===null||s===void 0?void 0:s.maxPageSize},convertTracingToRequestOptionsBase(p)))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}listPageRangeDiffItemSegments(e,t,r,i,a){return s.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let n;if(!!i||i===undefined){do{n=yield s.__await(this.listPageRangesDiffSegment(e,t,r,i,a));i=n.continuationToken;yield yield s.__await(yield s.__await(n))}while(i)}}))}listPageRangeDiffItems(e,t,r,i){return s.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var a,n;let o;try{for(var p=s.__asyncValues(this.listPageRangeDiffItemSegments(e,t,r,o,i)),l;l=yield s.__await(p.next()),!l.done;){const e=l.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(ExtractPageRangeInfoItems(e))))}}catch(e){a={error:e}}finally{try{if(l&&!l.done&&(n=p.return))yield s.__await(n.call(p))}finally{if(a)throw a.error}}}))}listPageRangesDiff(e,t,r,i={}){i.conditions=i.conditions||{};const s=this.listPageRangeDiffItems(e,t,r,Object.assign({},i));return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,t,r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},i))}}async getPageRangesDiffForManagedDisks(e,t,r,i={}){var s;i.conditions=i.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-GetPageRangesDiffForManagedDisks",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),prevSnapshotUrl:r,range:rangeToString({offset:e,count:t})},convertTracingToRequestOptionsBase(o))).then(rangeResponseFromModel)}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async resize(e,t={}){var r;t.conditions=t.conditions||{};const{span:i,updatedOptions:s}=Do("PageBlobClient-resize",t);try{return await this.pageBlobContext.resize(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async updateSequenceNumber(e,t,r={}){var i;r.conditions=r.conditions||{};const{span:s,updatedOptions:n}=Do("PageBlobClient-updateSequenceNumber",r);try{return await this.pageBlobContext.updateSequenceNumber(e,Object.assign({abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async startCopyIncremental(e,t={}){var r;const{span:i,updatedOptions:s}=Do("PageBlobClient-startCopyIncremental",t);try{return await this.pageBlobContext.copyIncremental(e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}}async function getBodyAsText(e){let t=Buffer.alloc(fo);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const Xo=": ";const Wo=" ";const Ko=-1;class BatchResponseParser{constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${go}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==po.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const r=t.length;if(r!==this.subRequests.size&&r!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const s=new Array(r);let a=0;let n=0;for(let e=0;e=0&&u{if(this.keys[e]===undefined||this.keys[e]===Qo.UNLOCKED){this.keys[e]=Qo.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=Qo.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===Qo.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,r){let s;let n;if(typeof e==="string"&&(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t))){s=e;n=t}else if(e instanceof BlobClient){s=e.url;n=e.credential;r=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!r){r={}}const{span:o,updatedOptions:p}=Do("BatchDeleteRequest-addSubRequest",r);try{this.setBatchType("delete");await this.addSubRequestInternal({url:s,credential:n},(async()=>{await new BlobClient(s,this.batchRequest.createPipeline(n)).delete(p)}))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}async setBlobAccessTier(e,t,r,s){let n;let o;let p;if(typeof e==="string"&&(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t))){n=e;o=t;p=r}else if(e instanceof BlobClient){n=e.url;o=e.credential;p=t;s=r}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!s){s={}}const{span:l,updatedOptions:c}=Do("BatchSetTierRequest-addSubRequest",s);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:n,credential:o},(async()=>{await new BlobClient(n,this.batchRequest.createPipeline(o)).setAccessTier(p,c)}))}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const e=i.generateUuid();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${go}${lo.CONTENT_TYPE}: application/http${go}${lo.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=e instanceof AnonymousCredential;const r=3+(t?0:1);const s=new Array(r);s[0]=i.deserializationPolicy();s[1]=new BatchHeaderFilterPolicyFactory;if(!t){s[2]=i.isTokenCredential(e)?attachCredential(i.bearerTokenAuthenticationPolicy(e,no),e):e}s[r-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(s,{})}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${lo.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${getURLPathAndQuery(e.url)} ${yo}${go}`].join(go);for(const t of e.headers.headersArray()){this.body+=`${t.name}: ${t.value}${go}`}this.body+=go}preAddSubRequest(e){if(this.operationCount>=ho){throw new RangeError(`Cannot exceed ${ho} sub requests in a single batch`)}const t=getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${go}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends i.BaseRequestPolicy{constructor(e,t,r){super(t,r);this.dummyResponse={request:new i.WebResource,status:200,headers:new i.HttpHeaders};this.batchRequest=e}async sendRequest(e){await this.batchRequest.appendSubRequestToBody(e);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(e){this.batchRequest=e}create(e,t){return new BatchRequestAssemblePolicy(this.batchRequest,e,t)}}class BatchHeaderFilterPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){let t="";for(const r of e.headers.headersArray()){if(iEqual(r.name,lo.X_MS_VERSION)){t=r.name}}if(t!==""){e.headers.remove(t)}return this._nextPolicy.sendRequest(e)}}class BatchHeaderFilterPolicyFactory{create(e,t){return new BatchHeaderFilterPolicy(e,t)}}class BlobBatchClient{constructor(e,t,r){let i;if(isPipelineLike(t)){i=t}else if(!t){i=newPipeline(new AnonymousCredential,r)}else{i=newPipeline(t,r)}const s=new StorageClientContext(e,i.toServiceClientOptions());const a=getURLPath(e);if(a&&a!=="/"){this.serviceOrContainerContext=new Container(s)}else{this.serviceOrContainerContext=new Service(s)}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,r){const i=new BlobBatch;for(const s of e){if(typeof s==="string"){await i.deleteBlob(s,t,r)}else{await i.deleteBlob(s,t)}}return this.submitBatch(i)}async setBlobsAccessTier(e,t,r,i){const s=new BlobBatch;for(const a of e){if(typeof a==="string"){await s.setBlobAccessTier(a,t,r,i)}else{await s.setBlobAccessTier(a,t,r)}}return this.submitBatch(s)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:r,updatedOptions:i}=Do("BlobBatchClient-submitBatch",t);try{const s=e.getHttpRequestBody();const a=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(s),e.getMultiPartContentType(),s,Object.assign(Object.assign({},t),convertTracingToRequestOptionsBase(i)));const n=new BatchResponseParser(a,e.getSubRequests());const o=await n.parseBatchResponse();const p={_response:a._response,contentType:a.contentType,errorCode:a.errorCode,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,subResponses:o.subResponses,subResponsesSucceededCount:o.subResponsesSucceededCount,subResponsesFailedCount:o.subResponsesFailedCount};return p}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}}class ContainerClient extends StorageClient{constructor(e,t,r){let s;let a;r=r||{};if(isPipelineLike(t)){a=e;s=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){a=e;s=newPipeline(t,r)}else if(!t&&typeof t!=="string"){a=e;s=newPipeline(new AnonymousCredential,r)}else if(t&&typeof t==="string"){const n=t;const o=extractConnectionStringParts(e);if(o.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(o.accountName,o.accountKey);a=appendToURLPath(o.url,encodeURIComponent(n));if(!r.proxyOptions){r.proxyOptions=i.getDefaultProxySettings(o.proxyUri)}s=newPipeline(e,r)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){a=appendToURLPath(o.url,encodeURIComponent(n))+"?"+o.accountSas;s=newPipeline(new AnonymousCredential,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(a,s);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(e={}){const{span:t,updatedOptions:r}=Do("ContainerClient-create",e);try{return await this.containerContext.create(Object.assign(Object.assign({},e),convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async createIfNotExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("ContainerClient-createIfNotExists",e);try{const e=await this.create(s);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="ContainerAlreadyExists"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async exists(e={}){const{span:t,updatedOptions:r}=Do("ContainerClient-exists",e);try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions});return true}catch(e){if(e.statusCode===404){t.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}getBlobClient(e){return new BlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}const{span:t,updatedOptions:r}=Do("ContainerClient-getProperties",e);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:e.abortSignal},e.conditions),convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async delete(e={}){if(!e.conditions){e.conditions={}}const{span:t,updatedOptions:r}=Do("ContainerClient-delete",e);try{return await this.containerContext.delete(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async deleteIfExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("ContainerClient-deleteIfExists",e);try{const e=await this.delete(s);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="ContainerNotFound"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:r,updatedOptions:i}=Do("ContainerClient-setMetadata",t);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}const{span:t,updatedOptions:r}=Do("ContainerClient-getAccessPolicy",e);try{const i=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions},convertTracingToRequestOptionsBase(r)));const s={_response:i._response,blobPublicAccess:i.blobPublicAccess,date:i.date,etag:i.etag,errorCode:i.errorCode,lastModified:i.lastModified,requestId:i.requestId,clientRequestId:i.clientRequestId,signedIdentifiers:[],version:i.version};for(const e of i){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}s.signedIdentifiers.push({accessPolicy:t,id:e.id})}return s}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setAccessPolicy(e,t,r={}){r.conditions=r.conditions||{};const{span:i,updatedOptions:s}=Do("ContainerClient-setAccessPolicy",r);try{const a=[];for(const e of t||[]){a.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:r.abortSignal,access:e,containerAcl:a,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,r,i={}){const{span:s,updatedOptions:n}=Do("ContainerClient-uploadBlockBlob",i);try{const i=this.getBlockBlobClient(e);const a=await i.upload(t,r,n);return{blockBlobClient:i,response:a}}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async deleteBlob(e,t={}){const{span:r,updatedOptions:i}=Do("ContainerClient-deleteBlob",t);try{let s=this.getBlobClient(e);if(t.versionId){s=s.withVersion(t.versionId)}return await s.delete(i)}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async listBlobFlatSegment(e,t={}){const{span:r,updatedOptions:i}=Do("ContainerClient-listBlobFlatSegment",t);try{const s=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:e},t),convertTracingToRequestOptionsBase(i)));const a=Object.assign(Object.assign({},s),{_response:Object.assign(Object.assign({},s._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(s._response.parsedBody)}),segment:Object.assign(Object.assign({},s.segment),{blobItems:s.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)});return t}))})});return a}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async listBlobHierarchySegment(e,t,r={}){var i;const{span:s,updatedOptions:n}=Do("ContainerClient-listBlobHierarchySegment",r);try{const a=await this.containerContext.listBlobHierarchySegment(e,Object.assign(Object.assign({marker:t},r),convertTracingToRequestOptionsBase(n)));const o=Object.assign(Object.assign({},a),{_response:Object.assign(Object.assign({},a._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(a._response.parsedBody)}),segment:Object.assign(Object.assign({},a.segment),{blobItems:a.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)});return t})),blobPrefixes:(i=a.segment.blobPrefixes)===null||i===void 0?void 0:i.map((e=>{const t={name:BlobNameToString(e.name)};return t}))})});return o}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}listSegments(e,t={}){return s.__asyncGenerator(this,arguments,(function*listSegments_1(){let r;if(!!e||e===undefined){do{r=yield s.__await(this.listBlobFlatSegment(e,t));e=r.continuationToken;yield yield s.__await(yield s.__await(r))}while(e)}}))}listItems(e={}){return s.__asyncGenerator(this,arguments,(function*listItems_1(){var t,r;let i;try{for(var a=s.__asyncValues(this.listSegments(i,e)),n;n=yield s.__await(a.next()),!n.done;){const e=n.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.segment.blobItems)))}}catch(e){t={error:e}}finally{try{if(n&&!n.done&&(r=a.return))yield s.__await(r.call(a))}finally{if(t)throw t.error}}}))}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const r=Object.assign(Object.assign({},e),t.length>0?{include:t}:{});const i=this.listItems(r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,Object.assign({maxPageSize:e.maxPageSize},r))}}listHierarchySegments(e,t,r={}){return s.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let i;if(!!t||t===undefined){do{i=yield s.__await(this.listBlobHierarchySegment(e,t,r));t=i.continuationToken;yield yield s.__await(yield s.__await(i))}while(t)}}))}listItemsByHierarchy(e,t={}){return s.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var r,i;let a;try{for(var n=s.__asyncValues(this.listHierarchySegments(e,a,t)),o;o=yield s.__await(n.next()),!o.done;){const e=o.value;const t=e.segment;if(t.blobPrefixes){for(const e of t.blobPrefixes){yield yield s.__await(Object.assign({kind:"prefix"},e))}}for(const e of t.blobItems){yield yield s.__await(Object.assign({kind:"blob"},e))}}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(i=n.return))yield s.__await(i.call(n))}finally{if(r)throw r.error}}}))}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const r=[];if(t.includeCopy){r.push("copy")}if(t.includeDeleted){r.push("deleted")}if(t.includeMetadata){r.push("metadata")}if(t.includeSnapshots){r.push("snapshots")}if(t.includeVersions){r.push("versions")}if(t.includeUncommitedBlobs){r.push("uncommittedblobs")}if(t.includeTags){r.push("tags")}if(t.includeDeletedWithVersions){r.push("deletedwithversions")}if(t.includeImmutabilityPolicy){r.push("immutabilitypolicy")}if(t.includeLegalHold){r.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const i=Object.assign(Object.assign({},t),r.length>0?{include:r}:{});const s=this.listItemsByHierarchy(e,i);return{async next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,Object.assign({maxPageSize:t.maxPageSize},i))}}async findBlobsByTagsSegment(e,t,r={}){const{span:i,updatedOptions:s}=Do("ContainerClient-findBlobsByTagsSegment",r);try{const a=await this.containerContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize},convertTracingToRequestOptionsBase(s)));const n=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((e=>{var t;let r="";if(((t=e.tags)===null||t===void 0?void 0:t.blobTagSet.length)===1){r=e.tags.blobTagSet[0].value}return Object.assign(Object.assign({},e),{tags:toTags(e.tags),tagValue:r})}))});return n}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}findBlobsByTagsSegments(e,t,r={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let i;if(!!t||t===undefined){do{i=yield s.__await(this.findBlobsByTagsSegment(e,t,r));i.blobs=i.blobs||[];t=i.continuationToken;yield yield s.__await(i)}while(t)}}))}findBlobsByTagsItems(e,t={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var r,i;let a;try{for(var n=s.__asyncValues(this.findBlobsByTagsSegments(e,a,t)),o;o=yield s.__await(n.next()),!o.done;){const e=o.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.blobs)))}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(i=n.return))yield s.__await(i.call(n))}finally{if(r)throw r.error}}}))}findBlobsByTags(e,t={}){const r=Object.assign({},t);const i=this.findBlobsByTagsItems(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,Object.assign({maxPageSize:t.maxPageSize},r))}}getContainerNameFromUrl(){let e;try{const t=i.URLBuilder.parse(this.url);if(t.getHost().split(".")[1]==="blob"){e=t.getPath().split("/")[1]}else if(isIpEndpointStyle(t)){e=t.getPath().split("/")[2]}else{e=t.getPath().split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},e),this.credential).toString();t(appendToURLQuery(this.url,r))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(e){const t=new AccountSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${r}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(e){const t=new AccountSASResourceTypes;for(const r of e){switch(r){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${r}`)}}return t}toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(e){const t=new AccountSASServices;for(const r of e){switch(r){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${r}`)}}return t}toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){const r=e.version?e.version:Jn;if(e.permissions&&e.permissions.setImmutabilityPolicy&&r<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&r<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const i=AccountSASPermissions.parse(e.permissions.toString());const s=AccountSASServices.parse(e.services).toString();const a=AccountSASResourceTypes.parse(e.resourceTypes).toString();let n;if(r>="2020-12-06"){n=[t.accountName,i,s,a,e.startsOn?truncatedISO8061Date(e.startsOn,false):"",truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{n=[t.accountName,i,s,a,e.startsOn?truncatedISO8061Date(e.startsOn,false):"",truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,""].join("\n")}const o=t.computeHMACSHA256(n);return new SASQueryParameters(r,o,i.toString(),s,a,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(e,t,r){let s;if(isPipelineLike(t)){s=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){s=newPipeline(t,r)}else{s=newPipeline(new AnonymousCredential,r)}super(e,s);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(e,t){t=t||{};const r=extractConnectionStringParts(e);if(r.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(r.accountName,r.accountKey);if(!t.proxyOptions){t.proxyOptions=i.getDefaultProxySettings(r.proxyUri)}const s=newPipeline(e,t);return new BlobServiceClient(r.url,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(r.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(r.url+"?"+r.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(e){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-createContainer",t);try{const t=this.getContainerClient(e);const s=await t.create(i);return{containerClient:t,containerCreateResponse:s}}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async deleteContainer(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-deleteContainer",t);try{const t=this.getContainerClient(e);return await t.delete(i)}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async undeleteContainer(e,t,r={}){const{span:i,updatedOptions:s}=Do("BlobServiceClient-undeleteContainer",r);try{const a=this.getContainerClient(r.destinationContainerName||e);const n=new Container(a["storageClientContext"]);const o=await n.restore(Object.assign({deletedContainerName:e,deletedContainerVersion:t},s));return{containerClient:a,containerUndeleteResponse:o}}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async renameContainer(e,t,r={}){var i;const{span:s,updatedOptions:n}=Do("BlobServiceClient-renameContainer",r);try{const a=this.getContainerClient(t);const o=new Container(a["storageClientContext"]);const p=await o.rename(e,Object.assign(Object.assign({},n),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:a,containerRenameResponse:p}}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async getProperties(e={}){const{span:t,updatedOptions:r}=Do("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setProperties(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-setProperties",t);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:t.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getStatistics(e={}){const{span:t,updatedOptions:r}=Do("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getAccountInfo(e={}){const{span:t,updatedOptions:r}=Do("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async listContainersSegment(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-listContainersSegment",t);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:t.abortSignal,marker:e},t),{include:typeof t.include==="string"?[t.include]:t.include}),convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async findBlobsByTagsSegment(e,t,r={}){const{span:i,updatedOptions:s}=Do("BlobServiceClient-findBlobsByTagsSegment",r);try{const a=await this.serviceContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize},convertTracingToRequestOptionsBase(s)));const n=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((e=>{var t;let r="";if(((t=e.tags)===null||t===void 0?void 0:t.blobTagSet.length)===1){r=e.tags.blobTagSet[0].value}return Object.assign(Object.assign({},e),{tags:toTags(e.tags),tagValue:r})}))});return n}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}findBlobsByTagsSegments(e,t,r={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let i;if(!!t||t===undefined){do{i=yield s.__await(this.findBlobsByTagsSegment(e,t,r));i.blobs=i.blobs||[];t=i.continuationToken;yield yield s.__await(i)}while(t)}}))}findBlobsByTagsItems(e,t={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var r,i;let a;try{for(var n=s.__asyncValues(this.findBlobsByTagsSegments(e,a,t)),o;o=yield s.__await(n.next()),!o.done;){const e=o.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.blobs)))}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(i=n.return))yield s.__await(i.call(n))}finally{if(r)throw r.error}}}))}findBlobsByTags(e,t={}){const r=Object.assign({},t);const i=this.findBlobsByTagsItems(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,Object.assign({maxPageSize:t.maxPageSize},r))}}listSegments(e,t={}){return s.__asyncGenerator(this,arguments,(function*listSegments_1(){let r;if(!!e||e===undefined){do{r=yield s.__await(this.listContainersSegment(e,t));r.containerItems=r.containerItems||[];e=r.continuationToken;yield yield s.__await(yield s.__await(r))}while(e)}}))}listItems(e={}){return s.__asyncGenerator(this,arguments,(function*listItems_1(){var t,r;let i;try{for(var a=s.__asyncValues(this.listSegments(i,e)),n;n=yield s.__await(a.next()),!n.done;){const e=n.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.containerItems)))}}catch(e){t={error:e}}finally{try{if(n&&!n.done&&(r=a.return))yield s.__await(r.call(a))}finally{if(t)throw t.error}}}))}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const r=Object.assign(Object.assign({},e),t.length>0?{include:t}:{});const i=this.listItems(r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,Object.assign({maxPageSize:e.maxPageSize},r))}}async getUserDelegationKey(e,t,r={}){const{span:i,updatedOptions:s}=Do("BlobServiceClient-getUserDelegationKey",r);try{const a=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(e,false),expiresOn:truncatedISO8061Date(t,false)},Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)));const n={signedObjectId:a.signedObjectId,signedTenantId:a.signedTenantId,signedStartsOn:new Date(a.signedStartsOn),signedExpiresOn:new Date(a.signedExpiresOn),signedService:a.signedService,signedVersion:a.signedVersion,value:a.value};const o=Object.assign({_response:a._response,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,date:a.date,errorCode:a.errorCode},n);return o}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),r="sco",i={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const s=generateAccountSASQueryParameters(Object.assign({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString()},i),this.credential).toString();return appendToURLQuery(this.url,s)}}t.KnownEncryptionAlgorithmType=void 0;(function(e){e["AES256"]="AES256"})(t.KnownEncryptionAlgorithmType||(t.KnownEncryptionAlgorithmType={}));Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return i.BaseRequestPolicy}});Object.defineProperty(t,"HttpHeaders",{enumerable:true,get:function(){return i.HttpHeaders}});Object.defineProperty(t,"RequestPolicyOptions",{enumerable:true,get:function(){return i.RequestPolicyOptions}});Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return i.RestError}});Object.defineProperty(t,"WebResource",{enumerable:true,get:function(){return i.WebResource}});Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return i.deserializationPolicy}});t.AccountSASPermissions=AccountSASPermissions;t.AccountSASResourceTypes=AccountSASResourceTypes;t.AccountSASServices=AccountSASServices;t.AnonymousCredential=AnonymousCredential;t.AnonymousCredentialPolicy=AnonymousCredentialPolicy;t.AppendBlobClient=AppendBlobClient;t.BlobBatch=BlobBatch;t.BlobBatchClient=BlobBatchClient;t.BlobClient=BlobClient;t.BlobLeaseClient=BlobLeaseClient;t.BlobSASPermissions=BlobSASPermissions;t.BlobServiceClient=BlobServiceClient;t.BlockBlobClient=BlockBlobClient;t.ContainerClient=ContainerClient;t.ContainerSASPermissions=ContainerSASPermissions;t.Credential=Credential;t.CredentialPolicy=CredentialPolicy;t.PageBlobClient=PageBlobClient;t.Pipeline=Pipeline;t.SASQueryParameters=SASQueryParameters;t.StorageBrowserPolicy=StorageBrowserPolicy;t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;t.StorageOAuthScopes=no;t.StorageRetryPolicy=StorageRetryPolicy;t.StorageRetryPolicyFactory=StorageRetryPolicyFactory;t.StorageSharedKeyCredential=StorageSharedKeyCredential;t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.isPipelineLike=isPipelineLike;t.logger=Qn;t.newPipeline=newPipeline},679:e=>{var t;var r;var i;var s;var a;var n;var o;var p;var l;var c;var d;var u;var h;var g;var y;var v;var b;var x;var w;var S;var E;var T;var N;var _;var P;var C;var O;var R;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,i){return e[r]=t?t(r,i):i}}})((function(e){var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;o--)if(n=e[o])a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a;return s>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,i){t(r,i,e)}};n=function(e,t,r,i,s,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var n=i.kind,o=n==="getter"?"get":n==="setter"?"set":"value";var p=!t&&e?i["static"]?e:e.prototype:null;var l=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{});var c,d=false;for(var u=r.length-1;u>=0;u--){var h={};for(var g in i)h[g]=g==="access"?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var y=(0,r[u])(n==="accessor"?{get:l.get,set:l.set}:l[o],h);if(n==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(c=accept(y.get))l.get=c;if(c=accept(y.set))l.set=c;if(c=accept(y.init))s.push(c)}else if(c=accept(y)){if(n==="field")s.push(c);else l[o]=c}}if(p)Object.defineProperty(p,i.name,l);d=true};o=function(e,t,r){var i=arguments.length>2;for(var s=0;s0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],n;try{while((t===void 0||t-- >0)&&!(s=i.next()).done)a.push(s.value)}catch(e){n={error:e}}finally{try{if(s&&!s.done&&(r=i["return"]))r.call(i)}finally{if(n)throw n.error}}return a};v=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof w?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};E=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(r=!r)?{value:w(e[i](t)),done:false}:s?s(t):t}:s}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof g==="function"?g(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};N=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);I(t,e);return t};P=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};O=function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};R=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",r);e("__rest",i);e("__decorate",s);e("__param",a);e("__esDecorate",n);e("__runInitializers",o);e("__propKey",p);e("__setFunctionName",l);e("__metadata",c);e("__awaiter",d);e("__generator",u);e("__exportStar",h);e("__createBinding",A);e("__values",g);e("__read",y);e("__spread",v);e("__spreadArrays",b);e("__spreadArray",x);e("__await",w);e("__asyncGenerator",S);e("__asyncDelegator",E);e("__asyncValues",T);e("__makeTemplateObject",N);e("__importStar",_);e("__importDefault",P);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",O);e("__classPrivateFieldIn",R)}))},334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=/^v1\./;const i=/^ghs_/;const s=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const a=r.test(e)||i.test(e);const n=s.test(e);const o=t?"app":a?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:o}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,i){const s=t.endpoint.merge(r,i);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}const a=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=a},6762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(5030);var s=r(3682);var a=r(6234);var n=r(8467);var o=r(334);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var i=Object.keys(e);var s,a;for(a=0;a=0)continue;r[s]=e[s]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,i))continue;r[i]=e[i]}}return r}const p="3.6.0";const l=["authStrategy"];class Octokit{constructor(e={}){const t=new s.Collection;const r={baseUrl:a.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${p} ${i.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=a.request.defaults(r);this.graphql=n.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=o.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,i=_objectWithoutProperties(e,l);const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));t.wrap("request",s.hook);this.auth=s}const c=this.constructor;c.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const i=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return i}}Octokit.VERSION=p;Octokit.plugins=[];t.Octokit=Octokit},9440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(3287);var s=r(5030);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((s=>{if(i.isPlainObject(t[s])){if(!(s in e))Object.assign(r,{[s]:t[s]});else r[s]=mergeDeep(e[s],t[s])}else{Object.assign(r,{[s]:t[s]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const i=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){i.mediaType.previews=e.mediaType.previews.filter((e=>!i.mediaType.previews.includes(e))).concat(i.mediaType.previews)}i.mediaType.previews=i.mediaType.previews.map((e=>e.replace(/-preview/,"")));return i}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const i=Object.keys(t);if(i.length===0){return e}return e+r+i.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const a=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(a);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,i){var s=e[r],a=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(i&&i!=="*"){s=s.substring(0,parseInt(i,10))}a.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(i==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){a.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){a.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){a.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){a.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){a.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){a.push(encodeUnreserved(r)+"=")}else if(s===""){a.push("")}}return a}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,i,s){if(i){let e="";const s=[];if(r.indexOf(i.charAt(0))!==-1){e=i.charAt(0);i=i.substr(1)}i.split(/,/g).forEach((function(r){var i=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,i[1],i[2]||i[3]))}));if(e&&e!=="+"){var a=",";if(e==="?"){a="&"}else if(e!=="#"){a=e}return(s.length!==0?e:"")+s.join(a)}else{return s.join(",")}}else{return encodeReserved(s)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let i=Object.assign({},e.headers);let s;let a=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const n=extractUrlVariableNames(r);r=parseUrl(r).expand(a);if(!/^http/.test(r)){r=e.baseUrl+r}const o=Object.keys(e).filter((e=>n.includes(e))).concat("baseUrl");const p=omit(a,o);const l=/application\/octet-stream/i.test(i.accept);if(!l){if(e.mediaType.format){i.accept=i.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=i.accept.match(/[\w-]+(?=-preview)/g)||[];i.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,p)}else{if("data"in p){s=p.data}else{if(Object.keys(p).length){s=p}else{i["content-length"]=0}}}if(!i["content-type"]&&typeof s!=="undefined"){i["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:i},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const i=endpointWithDefaults.bind(null,r);return Object.assign(i,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const n="6.0.12";const o=`octokit-endpoint.js/${n} ${s.getUserAgent()}`;const p={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":o},mediaType:{format:"",previews:[]}};const l=withDefaults(null,p);t.endpoint=l},8467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(6234);var s=r(5030);const a="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const n=["method","baseUrl","url","headers","request","query","mediaType"];const o=["query","method","url"];const p=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!o.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const i=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(i).reduce(((e,t)=>{if(n.includes(t)){e[t]=i[t];return e}if(!e.variables){e.variables={}}e.variables[t]=i[t];return e}),{});const a=i.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(p.test(a)){s.url=a.replace(p,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlResponseError(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:i.request.endpoint})}const l=withDefaults(i.request,{headers:{"user-agent":`octokit-graphql.js/${a} ${s.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=l;t.withCustomRequest=withCustomRequest},4193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.21.3";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t({async next(){if(!o)return{done:true};try{const e=await s({method:a,url:o,headers:n});const t=normalizePaginatedListResponse(e);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;o="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,i){if(typeof r==="function"){i=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),i)}function gather(e,t,r,i){return r.next().then((s=>{if(s.done){return t}let a=false;function done(){a=true}t=t.concat(i?i(s.value,done):s.value.data);if(a){return t}return gather(e,t,r,i)}))}const i=Object.assign(paginate,{iterator:iterator});const s=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return s.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=i;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=s},3044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t){i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(8932);var s=_interopDefault(r(1223));const a=s((e=>console.warn(e)));const n=s((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let s;if("headers"in r&&typeof r.headers!=="undefined"){s=r.headers}if("response"in r){this.response=r.response;s=r.response.headers}const o=Object.assign({},r.request);if(r.request.headers.authorization){o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o;Object.defineProperty(this,"code",{get(){a(new i.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){n(new i.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return s||{}}})}}t.RequestError=RequestError},6234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(9440);var s=r(5030);var a=r(3287);var n=_interopDefault(r(467));var o=r(537);const p="5.6.3";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(a.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let r={};let i;let s;const p=e.request&&e.request.fetch||n;return p(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async a=>{s=a.url;i=a.status;for(const e of a.headers){r[e[0]]=e[1]}if("deprecation"in r){const i=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/);const s=i&&i.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${s?`. See ${s}`:""}`)}if(i===204||i===205){return}if(e.method==="HEAD"){if(i<400){return}throw new o.RequestError(a.statusText,i,{response:{url:s,status:i,headers:r,data:undefined},request:e})}if(i===304){throw new o.RequestError("Not modified",i,{response:{url:s,status:i,headers:r,data:await getResponseData(a)},request:e})}if(i>=400){const t=await getResponseData(a);const n=new o.RequestError(toErrorMessage(t),i,{response:{url:s,status:i,headers:r,data:t},request:e});throw n}return getResponseData(a)})).then((e=>({status:i,url:s,headers:r,data:e}))).catch((t=>{if(t instanceof o.RequestError)throw t;throw new o.RequestError(t.message,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const i=r.merge(e,t);if(!i.request||!i.request.hook){return fetchWrapper(r.parse(i))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return i.request.hook(request,i)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const l=withDefaults(i.endpoint,{headers:{"user-agent":`octokit-request.js/${p} ${s.getUserAgent()}`}});t.request=l},7171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContextAPI=void 0;const i=r(4118);const s=r(5135);const a=r(1877);const n="context";const o=new i.NoopContextManager;class ContextAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new ContextAPI}return this._instance}setGlobalContextManager(e){return(0,s.registerGlobal)(n,e,a.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...i){return this._getContextManager().with(e,t,r,...i)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,s.getGlobal)(n)||o}disable(){this._getContextManager().disable();(0,s.unregisterGlobal)(n,a.DiagAPI.instance())}}t.ContextAPI=ContextAPI},1877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagAPI=void 0;const i=r(7978);const s=r(9639);const a=r(8077);const n=r(5135);const o="diag";class DiagAPI{constructor(){function _logProxy(e){return function(...t){const r=(0,n.getGlobal)("diag");if(!r)return;return r[e](...t)}}const e=this;const setLogger=(t,r={logLevel:a.DiagLogLevel.INFO})=>{var i,o,p;if(t===e){const t=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");e.error((i=t.stack)!==null&&i!==void 0?i:t.message);return false}if(typeof r==="number"){r={logLevel:r}}const l=(0,n.getGlobal)("diag");const c=(0,s.createLogLevelDiagLogger)((o=r.logLevel)!==null&&o!==void 0?o:a.DiagLogLevel.INFO,t);if(l&&!r.suppressOverrideMessage){const e=(p=(new Error).stack)!==null&&p!==void 0?p:"";l.warn(`Current logger will be overwritten from ${e}`);c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,n.registerGlobal)("diag",c,e,true)};e.setLogger=setLogger;e.disable=()=>{(0,n.unregisterGlobal)(o,e)};e.createComponentLogger=e=>new i.DiagComponentLogger(e);e.verbose=_logProxy("verbose");e.debug=_logProxy("debug");e.info=_logProxy("info");e.warn=_logProxy("warn");e.error=_logProxy("error")}static instance(){if(!this._instance){this._instance=new DiagAPI}return this._instance}}t.DiagAPI=DiagAPI},7696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MetricsAPI=void 0;const i=r(2647);const s=r(5135);const a=r(1877);const n="metrics";class MetricsAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new MetricsAPI}return this._instance}setGlobalMeterProvider(e){return(0,s.registerGlobal)(n,e,a.DiagAPI.instance())}getMeterProvider(){return(0,s.getGlobal)(n)||i.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,s.unregisterGlobal)(n,a.DiagAPI.instance())}}t.MetricsAPI=MetricsAPI},9909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PropagationAPI=void 0;const i=r(5135);const s=r(2368);const a=r(865);const n=r(7682);const o=r(8136);const p=r(1877);const l="propagation";const c=new s.NoopTextMapPropagator;class PropagationAPI{constructor(){this.createBaggage=o.createBaggage;this.getBaggage=n.getBaggage;this.getActiveBaggage=n.getActiveBaggage;this.setBaggage=n.setBaggage;this.deleteBaggage=n.deleteBaggage}static getInstance(){if(!this._instance){this._instance=new PropagationAPI}return this._instance}setGlobalPropagator(e){return(0,i.registerGlobal)(l,e,p.DiagAPI.instance())}inject(e,t,r=a.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=a.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,i.unregisterGlobal)(l,p.DiagAPI.instance())}_getGlobalPropagator(){return(0,i.getGlobal)(l)||c}}t.PropagationAPI=PropagationAPI},1539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TraceAPI=void 0;const i=r(5135);const s=r(2285);const a=r(9745);const n=r(3326);const o=r(1877);const p="trace";class TraceAPI{constructor(){this._proxyTracerProvider=new s.ProxyTracerProvider;this.wrapSpanContext=a.wrapSpanContext;this.isSpanContextValid=a.isSpanContextValid;this.deleteSpan=n.deleteSpan;this.getSpan=n.getSpan;this.getActiveSpan=n.getActiveSpan;this.getSpanContext=n.getSpanContext;this.setSpan=n.setSpan;this.setSpanContext=n.setSpanContext}static getInstance(){if(!this._instance){this._instance=new TraceAPI}return this._instance}setGlobalTracerProvider(e){const t=(0,i.registerGlobal)(p,this._proxyTracerProvider,o.DiagAPI.instance());if(t){this._proxyTracerProvider.setDelegate(e)}return t}getTracerProvider(){return(0,i.getGlobal)(p)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,i.unregisterGlobal)(p,o.DiagAPI.instance());this._proxyTracerProvider=new s.ProxyTracerProvider}}t.TraceAPI=TraceAPI},7682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;const i=r(7171);const s=r(8242);const a=(0,s.createContextKey)("OpenTelemetry Baggage Key");function getBaggage(e){return e.getValue(a)||undefined}t.getBaggage=getBaggage;function getActiveBaggage(){return getBaggage(i.ContextAPI.getInstance().active())}t.getActiveBaggage=getActiveBaggage;function setBaggage(e,t){return e.setValue(a,t)}t.setBaggage=setBaggage;function deleteBaggage(e){return e.deleteValue(a)}t.deleteBaggage=deleteBaggage},4811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaggageImpl=void 0;class BaggageImpl{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){const t=this._entries.get(e);if(!t){return undefined}return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map((([e,t])=>[e,t]))}setEntry(e,t){const r=new BaggageImpl(this._entries);r._entries.set(e,t);return r}removeEntry(e){const t=new BaggageImpl(this._entries);t._entries.delete(e);return t}removeEntries(...e){const t=new BaggageImpl(this._entries);for(const r of e){t._entries.delete(r)}return t}clear(){return new BaggageImpl}}t.BaggageImpl=BaggageImpl},3542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.baggageEntryMetadataSymbol=void 0;t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},8136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.baggageEntryMetadataFromString=t.createBaggage=void 0;const i=r(1877);const s=r(4811);const a=r(3542);const n=i.DiagAPI.instance();function createBaggage(e={}){return new s.BaggageImpl(new Map(Object.entries(e)))}t.createBaggage=createBaggage;function baggageEntryMetadataFromString(e){if(typeof e!=="string"){n.error(`Cannot create baggage metadata from unknown type: ${typeof e}`);e=""}return{__TYPE__:a.baggageEntryMetadataSymbol,toString(){return e}}}t.baggageEntryMetadataFromString=baggageEntryMetadataFromString},7393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.context=void 0;const i=r(7171);t.context=i.ContextAPI.getInstance()},4118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopContextManager=void 0;const i=r(8242);class NoopContextManager{active(){return i.ROOT_CONTEXT}with(e,t,r,...i){return t.call(r,...i)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=NoopContextManager},8242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ROOT_CONTEXT=t.createContextKey=void 0;function createContextKey(e){return Symbol.for(e)}t.createContextKey=createContextKey;class BaseContext{constructor(e){const t=this;t._currentContext=e?new Map(e):new Map;t.getValue=e=>t._currentContext.get(e);t.setValue=(e,r)=>{const i=new BaseContext(t._currentContext);i._currentContext.set(e,r);return i};t.deleteValue=e=>{const r=new BaseContext(t._currentContext);r._currentContext.delete(e);return r}}}t.ROOT_CONTEXT=new BaseContext},9721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diag=void 0;const i=r(1877);t.diag=i.DiagAPI.instance()},7978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagComponentLogger=void 0;const i=r(5135);class DiagComponentLogger{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return logProxy("debug",this._namespace,e)}error(...e){return logProxy("error",this._namespace,e)}info(...e){return logProxy("info",this._namespace,e)}warn(...e){return logProxy("warn",this._namespace,e)}verbose(...e){return logProxy("verbose",this._namespace,e)}}t.DiagComponentLogger=DiagComponentLogger;function logProxy(e,t,r){const s=(0,i.getGlobal)("diag");if(!s){return}r.unshift(t);return s[e](...r)}},3041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagConsoleLogger=void 0;const r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class DiagConsoleLogger{constructor(){function _consoleFunc(e){return function(...t){if(console){let r=console[e];if(typeof r!=="function"){r=console.log}if(typeof r==="function"){return r.apply(console,t)}}}}for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLogLevelDiagLogger=void 0;const i=r(8077);function createLogLevelDiagLogger(e,t){if(ei.DiagLogLevel.ALL){e=i.DiagLogLevel.ALL}t=t||{};function _filterFunc(r,i){const s=t[r];if(typeof s==="function"&&e>=i){return s.bind(t)}return function(){}}return{error:_filterFunc("error",i.DiagLogLevel.ERROR),warn:_filterFunc("warn",i.DiagLogLevel.WARN),info:_filterFunc("info",i.DiagLogLevel.INFO),debug:_filterFunc("debug",i.DiagLogLevel.DEBUG),verbose:_filterFunc("verbose",i.DiagLogLevel.VERBOSE)}}t.createLogLevelDiagLogger=createLogLevelDiagLogger},8077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagLogLevel=void 0;var r;(function(e){e[e["NONE"]=0]="NONE";e[e["ERROR"]=30]="ERROR";e[e["WARN"]=50]="WARN";e[e["INFO"]=60]="INFO";e[e["DEBUG"]=70]="DEBUG";e[e["VERBOSE"]=80]="VERBOSE";e[e["ALL"]=9999]="ALL"})(r=t.DiagLogLevel||(t.DiagLogLevel={}))},5163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trace=t.propagation=t.metrics=t.diag=t.context=t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=t.isValidSpanId=t.isValidTraceId=t.isSpanContextValid=t.createTraceState=t.TraceFlags=t.SpanStatusCode=t.SpanKind=t.SamplingDecision=t.ProxyTracerProvider=t.ProxyTracer=t.defaultTextMapSetter=t.defaultTextMapGetter=t.ValueType=t.createNoopMeter=t.DiagLogLevel=t.DiagConsoleLogger=t.ROOT_CONTEXT=t.createContextKey=t.baggageEntryMetadataFromString=void 0;var i=r(8136);Object.defineProperty(t,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return i.baggageEntryMetadataFromString}});var s=r(8242);Object.defineProperty(t,"createContextKey",{enumerable:true,get:function(){return s.createContextKey}});Object.defineProperty(t,"ROOT_CONTEXT",{enumerable:true,get:function(){return s.ROOT_CONTEXT}});var a=r(3041);Object.defineProperty(t,"DiagConsoleLogger",{enumerable:true,get:function(){return a.DiagConsoleLogger}});var n=r(8077);Object.defineProperty(t,"DiagLogLevel",{enumerable:true,get:function(){return n.DiagLogLevel}});var o=r(4837);Object.defineProperty(t,"createNoopMeter",{enumerable:true,get:function(){return o.createNoopMeter}});var p=r(9999);Object.defineProperty(t,"ValueType",{enumerable:true,get:function(){return p.ValueType}});var l=r(865);Object.defineProperty(t,"defaultTextMapGetter",{enumerable:true,get:function(){return l.defaultTextMapGetter}});Object.defineProperty(t,"defaultTextMapSetter",{enumerable:true,get:function(){return l.defaultTextMapSetter}});var c=r(3503);Object.defineProperty(t,"ProxyTracer",{enumerable:true,get:function(){return c.ProxyTracer}});var d=r(2285);Object.defineProperty(t,"ProxyTracerProvider",{enumerable:true,get:function(){return d.ProxyTracerProvider}});var u=r(3209);Object.defineProperty(t,"SamplingDecision",{enumerable:true,get:function(){return u.SamplingDecision}});var h=r(1424);Object.defineProperty(t,"SpanKind",{enumerable:true,get:function(){return h.SpanKind}});var g=r(8845);Object.defineProperty(t,"SpanStatusCode",{enumerable:true,get:function(){return g.SpanStatusCode}});var y=r(6905);Object.defineProperty(t,"TraceFlags",{enumerable:true,get:function(){return y.TraceFlags}});var v=r(2615);Object.defineProperty(t,"createTraceState",{enumerable:true,get:function(){return v.createTraceState}});var b=r(9745);Object.defineProperty(t,"isSpanContextValid",{enumerable:true,get:function(){return b.isSpanContextValid}});Object.defineProperty(t,"isValidTraceId",{enumerable:true,get:function(){return b.isValidTraceId}});Object.defineProperty(t,"isValidSpanId",{enumerable:true,get:function(){return b.isValidSpanId}});var x=r(1760);Object.defineProperty(t,"INVALID_SPANID",{enumerable:true,get:function(){return x.INVALID_SPANID}});Object.defineProperty(t,"INVALID_TRACEID",{enumerable:true,get:function(){return x.INVALID_TRACEID}});Object.defineProperty(t,"INVALID_SPAN_CONTEXT",{enumerable:true,get:function(){return x.INVALID_SPAN_CONTEXT}});const w=r(7393);Object.defineProperty(t,"context",{enumerable:true,get:function(){return w.context}});const S=r(9721);Object.defineProperty(t,"diag",{enumerable:true,get:function(){return S.diag}});const E=r(2601);Object.defineProperty(t,"metrics",{enumerable:true,get:function(){return E.metrics}});const T=r(7591);Object.defineProperty(t,"propagation",{enumerable:true,get:function(){return T.propagation}});const N=r(8989);Object.defineProperty(t,"trace",{enumerable:true,get:function(){return N.trace}});t["default"]={context:w.context,diag:S.diag,metrics:E.metrics,propagation:T.propagation,trace:N.trace}},5135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;const i=r(9957);const s=r(8996);const a=r(1522);const n=s.VERSION.split(".")[0];const o=Symbol.for(`opentelemetry.js.api.${n}`);const p=i._globalThis;function registerGlobal(e,t,r,i=false){var a;const n=p[o]=(a=p[o])!==null&&a!==void 0?a:{version:s.VERSION};if(!i&&n[e]){const t=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);r.error(t.stack||t.message);return false}if(n.version!==s.VERSION){const t=new Error(`@opentelemetry/api: Registration of version v${n.version} for ${e} does not match previously registered API v${s.VERSION}`);r.error(t.stack||t.message);return false}n[e]=t;r.debug(`@opentelemetry/api: Registered a global for ${e} v${s.VERSION}.`);return true}t.registerGlobal=registerGlobal;function getGlobal(e){var t,r;const i=(t=p[o])===null||t===void 0?void 0:t.version;if(!i||!(0,a.isCompatible)(i)){return}return(r=p[o])===null||r===void 0?void 0:r[e]}t.getGlobal=getGlobal;function unregisterGlobal(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${s.VERSION}.`);const r=p[o];if(r){delete r[e]}}t.unregisterGlobal=unregisterGlobal},1522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCompatible=t._makeCompatibilityCheck=void 0;const i=r(8996);const s=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(e){const t=new Set([e]);const r=new Set;const i=e.match(s);if(!i){return()=>false}const a={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(a.prerelease!=null){return function isExactmatch(t){return t===e}}function _reject(e){r.add(e);return false}function _accept(e){t.add(e);return true}return function isCompatible(e){if(t.has(e)){return true}if(r.has(e)){return false}const i=e.match(s);if(!i){return _reject(e)}const n={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(n.prerelease!=null){return _reject(e)}if(a.major!==n.major){return _reject(e)}if(a.major===0){if(a.minor===n.minor&&a.patch<=n.patch){return _accept(e)}return _reject(e)}if(a.minor<=n.minor){return _accept(e)}return _reject(e)}}t._makeCompatibilityCheck=_makeCompatibilityCheck;t.isCompatible=_makeCompatibilityCheck(i.VERSION)},2601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.metrics=void 0;const i=r(7696);t.metrics=i.MetricsAPI.getInstance()},9999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValueType=void 0;var r;(function(e){e[e["INT"]=0]="INT";e[e["DOUBLE"]=1]="DOUBLE"})(r=t.ValueType||(t.ValueType={}))},4837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class NoopMeter{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=NoopMeter;class NoopMetric{}t.NoopMetric=NoopMetric;class NoopCounterMetric extends NoopMetric{add(e,t){}}t.NoopCounterMetric=NoopCounterMetric;class NoopUpDownCounterMetric extends NoopMetric{add(e,t){}}t.NoopUpDownCounterMetric=NoopUpDownCounterMetric;class NoopHistogramMetric extends NoopMetric{record(e,t){}}t.NoopHistogramMetric=NoopHistogramMetric;class NoopObservableMetric{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=NoopObservableMetric;class NoopObservableCounterMetric extends NoopObservableMetric{}t.NoopObservableCounterMetric=NoopObservableCounterMetric;class NoopObservableGaugeMetric extends NoopObservableMetric{}t.NoopObservableGaugeMetric=NoopObservableGaugeMetric;class NoopObservableUpDownCounterMetric extends NoopObservableMetric{}t.NoopObservableUpDownCounterMetric=NoopObservableUpDownCounterMetric;t.NOOP_METER=new NoopMeter;t.NOOP_COUNTER_METRIC=new NoopCounterMetric;t.NOOP_HISTOGRAM_METRIC=new NoopHistogramMetric;t.NOOP_UP_DOWN_COUNTER_METRIC=new NoopUpDownCounterMetric;t.NOOP_OBSERVABLE_COUNTER_METRIC=new NoopObservableCounterMetric;t.NOOP_OBSERVABLE_GAUGE_METRIC=new NoopObservableGaugeMetric;t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new NoopObservableUpDownCounterMetric;function createNoopMeter(){return t.NOOP_METER}t.createNoopMeter=createNoopMeter},2647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;const i=r(4837);class NoopMeterProvider{getMeter(e,t,r){return i.NOOP_METER}}t.NoopMeterProvider=NoopMeterProvider;t.NOOP_METER_PROVIDER=new NoopMeterProvider},9957:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7200),t)},9406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._globalThis=void 0;t._globalThis=typeof globalThis==="object"?globalThis:global},7200:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9406),t)},7591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.propagation=void 0;const i=r(9909);t.propagation=i.PropagationAPI.getInstance()},2368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopTextMapPropagator=void 0;class NoopTextMapPropagator{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=NoopTextMapPropagator},865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultTextMapSetter=t.defaultTextMapGetter=void 0;t.defaultTextMapGetter={get(e,t){if(e==null){return undefined}return e[t]},keys(e){if(e==null){return[]}return Object.keys(e)}};t.defaultTextMapSetter={set(e,t,r){if(e==null){return}e[t]=r}}},8989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trace=void 0;const i=r(1539);t.trace=i.TraceAPI.getInstance()},1462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NonRecordingSpan=void 0;const i=r(1760);class NonRecordingSpan{constructor(e=i.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return false}recordException(e,t){}}t.NonRecordingSpan=NonRecordingSpan},7606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopTracer=void 0;const i=r(7171);const s=r(3326);const a=r(1462);const n=r(9745);const o=i.ContextAPI.getInstance();class NoopTracer{startSpan(e,t,r=o.active()){const i=Boolean(t===null||t===void 0?void 0:t.root);if(i){return new a.NonRecordingSpan}const p=r&&(0,s.getSpanContext)(r);if(isSpanContext(p)&&(0,n.isSpanContextValid)(p)){return new a.NonRecordingSpan(p)}else{return new a.NonRecordingSpan}}startActiveSpan(e,t,r,i){let a;let n;let p;if(arguments.length<2){return}else if(arguments.length===2){p=t}else if(arguments.length===3){a=t;p=r}else{a=t;n=r;p=i}const l=n!==null&&n!==void 0?n:o.active();const c=this.startSpan(e,a,l);const d=(0,s.setSpan)(l,c);return o.with(d,p,undefined,c)}}t.NoopTracer=NoopTracer;function isSpanContext(e){return typeof e==="object"&&typeof e["spanId"]==="string"&&typeof e["traceId"]==="string"&&typeof e["traceFlags"]==="number"}},3259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopTracerProvider=void 0;const i=r(7606);class NoopTracerProvider{getTracer(e,t,r){return new i.NoopTracer}}t.NoopTracerProvider=NoopTracerProvider},3503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProxyTracer=void 0;const i=r(7606);const s=new i.NoopTracer;class ProxyTracer{constructor(e,t,r,i){this._provider=e;this.name=t;this.version=r;this.options=i}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,i){const s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)}_getTracer(){if(this._delegate){return this._delegate}const e=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!e){return s}this._delegate=e;return this._delegate}}t.ProxyTracer=ProxyTracer},2285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProxyTracerProvider=void 0;const i=r(3503);const s=r(3259);const a=new s.NoopTracerProvider;class ProxyTracerProvider{getTracer(e,t,r){var s;return(s=this.getDelegateTracer(e,t,r))!==null&&s!==void 0?s:new i.ProxyTracer(this,e,t,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:a}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,t,r)}}t.ProxyTracerProvider=ProxyTracerProvider},3209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SamplingDecision=void 0;var r;(function(e){e[e["NOT_RECORD"]=0]="NOT_RECORD";e[e["RECORD"]=1]="RECORD";e[e["RECORD_AND_SAMPLED"]=2]="RECORD_AND_SAMPLED"})(r=t.SamplingDecision||(t.SamplingDecision={}))},3326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;const i=r(8242);const s=r(1462);const a=r(7171);const n=(0,i.createContextKey)("OpenTelemetry Context Key SPAN");function getSpan(e){return e.getValue(n)||undefined}t.getSpan=getSpan;function getActiveSpan(){return getSpan(a.ContextAPI.getInstance().active())}t.getActiveSpan=getActiveSpan;function setSpan(e,t){return e.setValue(n,t)}t.setSpan=setSpan;function deleteSpan(e){return e.deleteValue(n)}t.deleteSpan=deleteSpan;function setSpanContext(e,t){return setSpan(e,new s.NonRecordingSpan(t))}t.setSpanContext=setSpanContext;function getSpanContext(e){var t;return(t=getSpan(e))===null||t===void 0?void 0:t.spanContext()}t.getSpanContext=getSpanContext},2110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TraceStateImpl=void 0;const i=r(4864);const s=32;const a=512;const n=",";const o="=";class TraceStateImpl{constructor(e){this._internalState=new Map;if(e)this._parse(e)}set(e,t){const r=this._clone();if(r._internalState.has(e)){r._internalState.delete(e)}r._internalState.set(e,t);return r}unset(e){const t=this._clone();t._internalState.delete(e);return t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce(((e,t)=>{e.push(t+o+this.get(t));return e}),[]).join(n)}_parse(e){if(e.length>a)return;this._internalState=e.split(n).reverse().reduce(((e,t)=>{const r=t.trim();const s=r.indexOf(o);if(s!==-1){const a=r.slice(0,s);const n=r.slice(s+1,t.length);if((0,i.validateKey)(a)&&(0,i.validateValue)(n)){e.set(a,n)}else{}}return e}),new Map);if(this._internalState.size>s){this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,s))}}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new TraceStateImpl;e._internalState=new Map(this._internalState);return e}}t.TraceStateImpl=TraceStateImpl},4864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateValue=t.validateKey=void 0;const r="[_0-9a-z-*/]";const i=`[a-z]${r}{0,255}`;const s=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`;const a=new RegExp(`^(?:${i}|${s})$`);const n=/^[ -~]{0,255}[!-~]$/;const o=/,|=/;function validateKey(e){return a.test(e)}t.validateKey=validateKey;function validateValue(e){return n.test(e)&&!o.test(e)}t.validateValue=validateValue},2615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTraceState=void 0;const i=r(2110);function createTraceState(e){return new i.TraceStateImpl(e)}t.createTraceState=createTraceState},1760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;const i=r(6905);t.INVALID_SPANID="0000000000000000";t.INVALID_TRACEID="00000000000000000000000000000000";t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:i.TraceFlags.NONE}},1424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SpanKind=void 0;var r;(function(e){e[e["INTERNAL"]=0]="INTERNAL";e[e["SERVER"]=1]="SERVER";e[e["CLIENT"]=2]="CLIENT";e[e["PRODUCER"]=3]="PRODUCER";e[e["CONSUMER"]=4]="CONSUMER"})(r=t.SpanKind||(t.SpanKind={}))},9745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;const i=r(1760);const s=r(1462);const a=/^([0-9a-f]{32})$/i;const n=/^[0-9a-f]{16}$/i;function isValidTraceId(e){return a.test(e)&&e!==i.INVALID_TRACEID}t.isValidTraceId=isValidTraceId;function isValidSpanId(e){return n.test(e)&&e!==i.INVALID_SPANID}t.isValidSpanId=isValidSpanId;function isSpanContextValid(e){return isValidTraceId(e.traceId)&&isValidSpanId(e.spanId)}t.isSpanContextValid=isSpanContextValid;function wrapSpanContext(e){return new s.NonRecordingSpan(e)}t.wrapSpanContext=wrapSpanContext},8845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SpanStatusCode=void 0;var r;(function(e){e[e["UNSET"]=0]="UNSET";e[e["OK"]=1]="OK";e[e["ERROR"]=2]="ERROR"})(r=t.SpanStatusCode||(t.SpanStatusCode={}))},6905:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TraceFlags=void 0;var r;(function(e){e[e["NONE"]=0]="NONE";e[e["SAMPLED"]=1]="SAMPLED"})(r=t.TraceFlags||(t.TraceFlags={}))},8996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VERSION=void 0;t.VERSION="1.4.1"},4812:(e,t,r)=>{e.exports={parallel:r(8210),serial:r(445),serialOrdered:r(3578)}},1700:e=>{e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},2794:(e,t,r)=>{var i=r(5295);e.exports=async;function async(e){var t=false;i((function(){t=true}));return function async_callback(r,s){if(t){e(r,s)}else{i((function nextTick_callback(){e(r,s)}))}}}},5295:e=>{e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},9023:(e,t,r)=>{var i=r(2794),s=r(1700);e.exports=iterate;function iterate(e,t,r,i){var a=r["keyedList"]?r["keyedList"][r.index]:r.index;r.jobs[a]=runJob(t,a,e[a],(function(e,t){if(!(a in r.jobs)){return}delete r.jobs[a];if(e){s(r)}else{r.results[a]=t}i(e,r.results)}))}function runJob(e,t,r,s){var a;if(e.length==2){a=e(r,i(s))}else{a=e(r,t,i(s))}return a}},2474:e=>{e.exports=state;function state(e,t){var r=!Array.isArray(e),i={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};if(t){i.keyedList.sort(r?t:function(r,i){return t(e[r],e[i])})}return i}},7942:(e,t,r)=>{var i=r(1700),s=r(2794);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;i(this);s(e)(null,this.results)}},8210:(e,t,r)=>{var i=r(9023),s=r(2474),a=r(7942);e.exports=parallel;function parallel(e,t,r){var n=s(e);while(n.index<(n["keyedList"]||e).length){i(e,t,n,(function(e,t){if(e){r(e,t);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}));n.index++}return a.bind(n,r)}},445:(e,t,r)=>{var i=r(3578);e.exports=serial;function serial(e,t,r){return i(e,t,null,r)}},3578:(e,t,r)=>{var i=r(9023),s=r(2474),a=r(7942);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,r,n){var o=s(e,r);i(e,t,o,(function iteratorHandler(r,s){if(r){n(r,s);return}o.index++;if(o.index<(o["keyedList"]||e).length){i(e,t,o,iteratorHandler);return}n(null,o.results)}));return a.bind(o,n)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,s,a,n,o;var p=r.indexOf(e);var l=r.indexOf(t,p+1);var c=p;if(p>=0&&l>0){if(e===t){return[p,l]}i=[];a=r.length;while(c>=0&&!o){if(c==p){i.push(c);p=r.indexOf(e,c+1)}else if(i.length==1){o=[i.pop(),l]}else{s=i.pop();if(s=0?p:l}if(i.length){o=[a,n]}}return o}},3682:(e,t,r)=>{var i=r(4670);var s=r(5549);var a=r(6819);var n=Function.bind;var o=n.bind(n);function bindApi(e,t,r){var i=o(a,null).apply(null,r?[t,r]:[t]);e.api={remove:i};e.remove=i;["before","error","after","wrap"].forEach((function(i){var a=r?[t,i,r]:[t,i];e[i]=e.api[i]=o(s,null).apply(null,a)}))}function HookSingular(){var e="h";var t={registry:{}};var r=i.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=i.bind(null,e);bindApi(t,e);return t}var p=false;function Hook(){if(!p){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');p=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},5549:e=>{e.exports=addHook;function addHook(e,t,r,i){var s=i;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){i=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){i=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:i,orig:s})}},4670:e=>{e.exports=register;function register(e,t,r,i){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!i){i={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,i)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(i)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,i)}),r)()}))}},6819:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var i=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(i===-1){return}e.registry[t].splice(i,1)}},3717:(e,t,r)=>{var i=r(6891);var s=r(9417);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var n="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var p="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(n).split("\\}").join(o).split("\\,").join(p).split("\\.").join(l)}function unescapeBraces(e){return e.split(a).join("\\").split(n).join("{").split(o).join("}").split(p).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var i=r.pre;var a=r.body;var n=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var p=parseCommaParts(n);if(n.length){o[o.length-1]+=p.shift();o.push.apply(o,p)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var a=s("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=n||p;var c=a.body.indexOf(",")>=0;if(!l&&!c){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+o+a.post;return expand(e)}return[e]}var d;if(l){d=a.body.split(/\.\./)}else{d=parseCommaParts(a.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var u=a.post.length?expand(a.post,false):[""];return u.map((function(e){return a.pre+d[0]+e}))}}}var h=a.pre;var u=a.post.length?expand(a.post,false):[""];var g;if(l){var y=numeric(d[0]);var v=numeric(d[1]);var b=Math.max(d[0].length,d[1].length);var x=d.length==3?Math.abs(numeric(d[2])):1;var w=lte;var S=v0){var P=new Array(_+1).join("0");if(T<0)N="-"+P+N.slice(1);else N=P+N}}}g.push(N)}}else{g=i(d,(function(e){return expand(e,false)}))}for(var C=0;C{var i=r(3837);var s=r(2781).Stream;var a=r(8611);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}i.inherits(CombinedStream,s);CombinedStream.create=function(e){var t=new this;e=e||{};for(var r in e){t[r]=e[r]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof a)){var r=a.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=r}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){s.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var r=e;this.write(r);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},6891:e=>{e.exports=function(e,r){var i=[];for(var s=0;s{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.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"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let i=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){s=i}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}a++;const s=createDebug.formatters[i];if(typeof s==="function"){const i=e[a];t=s.call(r,i);e.splice(a,1);a--}return t}));createDebug.formatArgs.call(r,e);const n=r.log||createDebug.log;n.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(i!==createDebug.namespaces){i=createDebug.namespaces;s=createDebug.enabled(e)}return s},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const i=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(4874)}},4874:(e,t,r)=>{const i=r(6224);const s=r(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.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){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[r]=i;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:i}=this;if(i){const i=this.color;const s="[3"+(i<8?i:"8;5;"+i);const a=` ${s};1m${r} `;t[0]=a+t[0].split("\n").join("\n"+a);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let i=0;ie.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},8611:(e,t,r)=>{var i=r(2781).Stream;var s=r(3837);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}s.inherits(DelayedStream,i);DelayedStream.create=function(e,t){var r=new this;t=t||{};for(var i in t){r[i]=t[i]}r.source=e;var s=e.emit;e.emit=function(){r._handleEmit(arguments);return s.apply(e,arguments)};e.on("error",(function(){}));if(r.pauseStream){e.pause()}return r};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},8932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},3138:(e,t,r)=>{const i=r(6113),s=r(8237),a=r(7422),n=r(1017);const o={algo:"sha1",encoding:"base64",files:{exclude:[],include:[],matchBasename:true,matchPath:false,ignoreBasename:false,ignoreRootName:false},folders:{exclude:[],include:[],matchBasename:true,matchPath:false,ignoreBasename:false,ignoreRootName:false},symbolicLinks:{include:true,ignoreBasename:false,ignoreTargetPath:true,ignoreTargetContent:false,ignoreTargetContentAfterError:false}};const p={match:s("fhash:match"),params:e=>{s("fhash:parameters")(e);return e},err:s("fhash:err"),symlink:s("fhash:symlink"),queue:s("fhash:queue")};function prep(e){let t=[];let r=undefined;function hashElement(t,r,i,s){s=arguments[arguments.length-1];return parseParameters(arguments).then((({basename:t,dir:r,options:i})=>{i.skipMatching=true;return e.promises.lstat(n.join(r,t)).then((e=>{e.name=t;return e})).then((e=>hashElementPromise(e,r,i,true)))})).then((e=>{if(isFunction(s)){return s(undefined,e)}else{return e}})).catch((e=>{p.err("Fatal error:",e);if(isFunction(s)){return s(e)}else{throw e}}))}function hashElementPromise(e,i,s,a=false){const n=e.name;let o=undefined;if(e.isDirectory()){o=hashFolderPromise(n,i,s,a)}else if(e.isFile()){o=hashFilePromise(n,i,s,a)}else if(e.isSymbolicLink()){o=hashSymLinkPromise(n,i,s,a)}else{p.err("hashElementPromise cannot handle ",e);return Promise.resolve({name:n,hash:"Error: unknown element type"})}return o.catch((o=>{if(o.code&&(o.code==="EMFILE"||o.code==="ENFILE")){p.queue(`queued ${i}/${n} because of ${o.code}`);const l=new Promise(((r,o)=>{t.push((()=>{p.queue(`Will processs queued ${i}/${n}`);return hashElementPromise(e,i,s,a).then((e=>r(e))).catch((e=>o(e)))}))}));if(r===undefined){r=setTimeout(processQueue,0)}return l}throw o}))}function processQueue(){r=undefined;const e=t;t=[];e.forEach((e=>e()))}async function hashFolderPromise(t,r,i,s=false){const a=n.join(r,t);let o=i.ignoreBasenameOnce;delete i.ignoreBasenameOnce;if(i.skipMatching){p.match(`skipped '${a}'`);delete i.skipMatching}else if(ignore(t,a,i.folders)){return undefined}const c=await e.promises.readdir(a,{withFileTypes:true});const d=await Promise.all(c.sort(((e,t)=>e.name.localeCompare(t.name))).map((e=>hashElementPromise(e,a,i))));if(o)i.ignoreBasenameOnce=true;const u=new l(t,d.filter(notUndefined),i,s);return u}function hashFilePromise(t,r,s,a=false){const o=n.join(r,t);if(s.skipMatching){p.match(`skipped '${o}'`);delete s.skipMatching}else if(ignore(t,o,s.files)){return Promise.resolve(undefined)}return new Promise(((r,n)=>{try{const l=i.createHash(s.algo);if(s.files.ignoreBasename||s.ignoreBasenameOnce||a&&s.files.ignoreRootName){delete s.ignoreBasenameOnce;p.match(`omitted name of ${o} from hash`)}else{l.update(t)}const d=e.createReadStream(o);d.on("error",(e=>{n(e)}));d.pipe(l,{end:false});d.on("end",(()=>{const e=new c(t,l,s.encoding);return r(e)}))}catch(e){return n(e)}}))}async function hashSymLinkPromise(t,r,i,s=false){const a=await e.promises.readlink(n.join(r,t));p.symlink(`handling symbolic link ${t} -> ${a}`);if(i.symbolicLinks.include){if(i.symbolicLinks.ignoreTargetContent){return symLinkIgnoreTargetContent(t,a,i,s)}else{return symLinkResolve(t,r,a,i,s)}}else{p.symlink("skipping symbolic link");return Promise.resolve(undefined)}}function symLinkIgnoreTargetContent(e,t,r,s){delete r.skipMatching;p.symlink("ignoring symbolic link target content");const a=i.createHash(r.algo);if(!r.symbolicLinks.ignoreBasename&&!(s&&r.files.ignoreRootName)){p.symlink("hash basename");a.update(e)}if(!r.symbolicLinks.ignoreTargetPath){p.symlink("hash targetpath");a.update(t)}return Promise.resolve(new c(e,a,r.encoding))}async function symLinkResolve(t,r,s,a,o){delete a.skipMatching;if(a.symbolicLinks.ignoreBasename){a.ignoreBasenameOnce=true}try{const l=await e.promises.stat(n.join(r,t));l.name=t;const c=await hashElementPromise(l,r,a,o);if(!a.symbolicLinks.ignoreTargetPath){const e=i.createHash(a.algo);e.update(c.hash);p.symlink("hash targetpath");e.update(s);c.hash=e.digest(a.encoding)}return c}catch(e){if(a.symbolicLinks.ignoreTargetContentAfterError){p.symlink(`Ignoring error "${e.code}" when hashing symbolic link ${t}`,e);const r=i.createHash(a.algo);if(!a.symbolicLinks.ignoreBasename&&!(o&&a.files.ignoreRootName)){r.update(t)}if(!a.symbolicLinks.ignoreTargetPath){r.update(s)}return new c(t,r,a.encoding)}else{p.symlink(`Error "${e.code}": When hashing symbolic link ${t}`,e);throw e}}}function ignore(e,t,r){if(r.exclude){if(r.matchBasename&&r.exclude(e)){p.match(`exclude basename '${e}'`);return true}else if(r.matchPath&&r.exclude(t)){p.match(`exclude path '${t}'`);return true}}if(r.include){if(r.matchBasename&&r.include(e)){p.match(`include basename '${e}'`);return false}else if(r.matchPath&&r.include(t)){p.match(`include path '${t}'`);return false}else{p.match(`include rule failed for path '${t}'`);return true}}p.match(`Will not ignore unmatched '${t}'`);return false}return hashElement}function parseParameters(e){let t=e[0],r=e[1],i=e[2];if(!isString(t)){return Promise.reject(new TypeError("First argument must be a string"))}if(!isString(r)){r=n.dirname(t);t=n.basename(t);i=e[1]}if(!isObject(i))i={};const s={algo:i.algo||o.algo,encoding:i.encoding||o.encoding,files:Object.assign({},o.files,i.files),folders:Object.assign({},o.folders,i.folders),match:Object.assign({},o.match,i.match),symbolicLinks:Object.assign({},o.symbolicLinks,i.symbolicLinks)};s.files.exclude=reduceGlobPatterns(s.files.exclude);s.files.include=reduceGlobPatterns(s.files.include);s.folders.exclude=reduceGlobPatterns(s.folders.exclude);s.folders.include=reduceGlobPatterns(s.folders.include);return Promise.resolve(p.params({basename:t,dir:r,options:s}))}const l=function HashedFolder(e,t,r,s=false){this.name=e;this.children=t;const a=i.createHash(r.algo);if(r.folders.ignoreBasename||r.ignoreBasenameOnce||s&&r.folders.ignoreRootName){delete r.ignoreBasenameOnce;p.match(`omitted name of folder ${e} from hash`)}else{a.update(e)}t.forEach((e=>{if(e.hash){a.update(e.hash)}}));this.hash=a.digest(r.encoding)};l.prototype.toString=function(e=""){const t=`${e}{ name: '${this.name}', hash: '${this.hash}',\n`;e+=" ";return`${t}${e}children: ${this.childrenToString(e)}}`};l.prototype.childrenToString=function(e=""){if(this.children.length===0){return"[]"}else{const t=e+" ";const r=this.children.map((e=>e.toString(t))).join("\n");return`[\n${r}\n${e}]`}};const c=function HashedFile(e,t,r){this.name=e;this.hash=t.digest(r)};c.prototype.toString=function(e=""){return e+"{ name: '"+this.name+"', hash: '"+this.hash+"' }"};function isFunction(e){return typeof e==="function"}function isString(e){return typeof e==="string"||e instanceof String}function isObject(e){return e!==null&&typeof e==="object"}function notUndefined(e){return typeof e!=="undefined"}function reduceGlobPatterns(e){if(isFunction(e)){return e}else if(!e||!Array.isArray(e)||e.length===0){return undefined}else{const t=new RegExp(e.reduce(((e,t)=>e+"|"+a.makeRe(t).source),"").substr(1));return e=>t.test(e)}}e.exports={defaults:o,hashElement:prep(r(7147)),prep:prep,parseParameters:parseParameters}},1566:(e,t,r)=>{var i=r(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var n="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(n).split("\\,").join(o).split("\\.").join(p)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(n).join("}").split(o).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var s=r.pre;var a=r.body;var n=r.post;var o=s.split(",");o[o.length-1]+="{"+a+"}";var p=parseCommaParts(n);if(n.length){o[o.length-1]+=p.shift();o.push.apply(o,p)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s)return[e];var a=s.pre;var o=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var p=0;p=0;if(!u&&!h){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+n+s.post;return expand(e)}return[e]}var g;if(u){g=s.body.split(/\.\./)}else{g=parseCommaParts(s.body);if(g.length===1){g=expand(g[0],false).map(embrace);if(g.length===1){return o.map((function(e){return s.pre+g[0]+e}))}}}var y;if(u){var v=numeric(g[0]);var b=numeric(g[1]);var x=Math.max(g[0].length,g[1].length);var w=g.length==3?Math.abs(numeric(g[2])):1;var S=lte;var E=b0){var C=new Array(P+1).join("0");if(N<0)_="-"+C+_.slice(1);else _=C+_}}}y.push(_)}}else{y=[];for(var O=0;O{const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},7422:(e,t,r)=>{const i=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=i;const s=r(9629);i.sep=s.sep;const a=Symbol("globstar **");i.GLOBSTAR=a;const n=r(1566);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const p="[^/]";const l=p+"*?";const c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const d="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const u=charSet("().*{}+?[]^$\\!");const h=charSet("[.(");const g=/\/+/;i.filter=(e,t={})=>(r,s,a)=>i(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};i.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return i}const t=i;const m=(r,i,s)=>t(r,i,ext(e,s));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,i)=>t.filter(r,ext(e,i));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,i)=>t.makeRe(r,ext(e,i));m.braceExpand=(r,i)=>t.braceExpand(r,ext(e,i));m.match=(r,i,s)=>t.match(r,i,ext(e,s));return m};i.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return n(e)};const y=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>y){throw new TypeError("pattern is too long")}};const v=Symbol("subparse");i.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();i.match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(g)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i>> no match, partial?",e,d,t,u);if(d===o)return true}return false}var g;if(typeof l==="string"){g=c===l;this.debug("string match",l,c,g)}else{g=c.match(l);this.debug("pattern match",l,c,g)}if(!g)return false}if(s===o&&n===p){return true}else if(s===o){return r}else if(n===p){return s===o-1&&e[s]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return a;else e="*"}if(e==="")return"";let i="";let s=false;let n=false;const c=[];const d=[];let g;let y=false;let b=-1;let x=-1;let w;let S;let E;let T=e.charAt(0)===".";let N=r.dot||T;const patternStart=()=>T?"":N?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(g){switch(g){case"*":i+=l;s=true;break;case"?":i+=p;s=true;break;default:i+="\\"+g;break}this.debug("clearStateChar %j %j",g,i);g=false}};for(let t=0,a;t{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,S,i);const t=S.type==="*"?l:S.type==="?"?p:"\\"+S.type;s=true;i=i.slice(0,S.reStart)+t+"\\("+e}clearStateChar();if(n){i+="\\\\"}const _=h[i.charAt(0)];for(let e=d.length-1;e>-1;e--){const r=d[e];const s=i.slice(0,r.reStart);const a=i.slice(r.reStart,r.reEnd-8);let n=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+n;const p=s.split(")").length;const l=s.split("(").length-p;let c=n;for(let e=0;e{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===a?a:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===a&&t===a)){e.push(t)}return e}),[]);e.forEach(((t,i)=>{if(t!==a||e[i-1]===a){return}if(i===0){if(e.length>1){e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]}else{e[i]=r}}else if(i===e.length-1){e[i-1]+="(?:\\/|"+r+")?"}else{e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1];e[i+1]=a}}));return e.filter((e=>e!==a)).join("/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,i)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(s.sep!=="/"){e=e.split(s.sep).join("/")}e=e.split(g);this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let a;for(let t=e.length-1;t>=0;t--){a=e[t];if(a)break}for(let s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Glob=void 0;const i=r(266);const s=r(9569);const a=r(7310);const n=r(4887);const o=r(671);const p=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(e,t){this.withFileTypes=!!t.withFileTypes;this.signal=t.signal;this.follow=!!t.follow;this.dot=!!t.dot;this.dotRelative=!!t.dotRelative;this.nodir=!!t.nodir;this.mark=!!t.mark;if(!t.cwd){this.cwd=""}else if(t.cwd instanceof URL||t.cwd.startsWith("file://")){t.cwd=(0,a.fileURLToPath)(t.cwd)}this.cwd=t.cwd||"";this.root=t.root;this.magicalBraces=!!t.magicalBraces;this.nobrace=!!t.nobrace;this.noext=!!t.noext;this.realpath=!!t.realpath;this.absolute=t.absolute;this.noglobstar=!!t.noglobstar;this.matchBase=!!t.matchBase;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:Infinity;this.stat=!!t.stat;this.ignore=t.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof e==="string"){e=[e]}this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){e=e.map((e=>e.replace(/\\/g,"/")))}if(this.matchBase){if(t.noglobstar){throw new TypeError("base matching requires globstar")}e=e.map((e=>e.includes("/")?e:`./**/${e}`))}this.pattern=e;this.platform=t.platform||p;this.opts={...t,platform:this.platform};if(t.scurry){this.scurry=t.scurry;if(t.nocase!==undefined&&t.nocase!==t.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const e=t.platform==="win32"?s.PathScurryWin32:t.platform==="darwin"?s.PathScurryDarwin:t.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:true,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const o=this.pattern.map((e=>new i.Minimatch(e,r)));const[l,c]=o.reduce(((e,t)=>{e[0].push(...t.set);e[1].push(...t.globParts);return e}),[[],[]]);this.patterns=l.map(((e,t)=>new n.Pattern(e,c[t],0,this.platform)))}async walk(){return[...await new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=Glob},9099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasMagic=void 0;const i=r(266);const hasMagic=(e,t={})=>{if(!Array.isArray(e)){e=[e]}for(const r of e){if(new i.Minimatch(r,t).hasMagic())return true}return false};t.hasMagic=hasMagic},469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Ignore=void 0;const i=r(266);const s=r(4887);const a=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;constructor(e,{nobrace:t,nocase:r,noext:n,noglobstar:o,platform:p=a}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];const l={dot:true,nobrace:t,nocase:r,noext:n,noglobstar:o,optimizationLevel:2,platform:p,nocomment:true,nonegate:true};for(const t of e){const e=new i.Minimatch(t,l);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.glob=t.hasMagic=t.Glob=t.unescape=t.escape=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.globIterate=t.globIterateSync=t.globSync=t.globStream=t.globStreamSync=void 0;const i=r(266);const s=r(8596);const a=r(9099);function globStreamSync(e,t={}){return new s.Glob(e,t).streamSync()}t.globStreamSync=globStreamSync;function globStream(e,t={}){return new s.Glob(e,t).stream()}t.globStream=globStream;function globSync(e,t={}){return new s.Glob(e,t).walkSync()}t.globSync=globSync;async function glob_(e,t={}){return new s.Glob(e,t).walk()}function globIterateSync(e,t={}){return new s.Glob(e,t).iterateSync()}t.globIterateSync=globIterateSync;function globIterate(e,t={}){return new s.Glob(e,t).iterate()}t.globIterate=globIterate;t.streamSync=globStreamSync;t.stream=Object.assign(globStream,{sync:globStreamSync});t.iterateSync=globIterateSync;t.iterate=Object.assign(globIterate,{sync:globIterateSync});t.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});var n=r(266);Object.defineProperty(t,"escape",{enumerable:true,get:function(){return n.escape}});Object.defineProperty(t,"unescape",{enumerable:true,get:function(){return n.unescape}});var o=r(8596);Object.defineProperty(t,"Glob",{enumerable:true,get:function(){return o.Glob}});var p=r(9099);Object.defineProperty(t,"hasMagic",{enumerable:true,get:function(){return p.hasMagic}});t.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:t.sync,globStream:globStream,stream:t.stream,globStreamSync:globStreamSync,streamSync:t.streamSync,globIterate:globIterate,iterate:t.iterate,globIterateSync:globIterateSync,iterateSync:t.iterateSync,Glob:s.Glob,hasMagic:a.hasMagic,escape:i.escape,unescape:i.unescape});t.glob.glob=t.glob},4887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const i=r(266);const isPatternList=e=>e.length>=1;const isGlobList=e=>e.length>=1;class Pattern{#e;#t;#r;length;#i;#s;#a;#n;#o;#p;#l=true;constructor(e,t,r,i){if(!isPatternList(e)){throw new TypeError("empty pattern list")}if(!isGlobList(t)){throw new TypeError("empty glob list")}if(t.length!==e.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=e.length;if(r<0||r>=this.length){throw new TypeError("index out of range")}this.#e=e;this.#t=t;this.#r=r;this.#i=i;if(this.#r===0){if(this.isUNC()){const[e,t,r,i,...s]=this.#e;const[a,n,o,p,...l]=this.#t;if(s[0]===""){s.shift();l.shift()}const c=[e,t,r,i,""].join("/");const d=[a,n,o,p,""].join("/");this.#e=[c,...s];this.#t=[d,...l];this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#e;const[r,...i]=this.#t;if(t[0]===""){t.shift();i.shift()}const s=e+"/";const a=r+"/";this.#e=[s,...t];this.#t=[a,...i];this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]==="string"}isGlobstar(){return this.#e[this.#r]===i.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#a=this.#a||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){if(this.#s!==undefined)return this.#s;if(!this.hasMore())return this.#s=null;this.#s=new Pattern(this.#e,this.#t,this.#r+1,this.#i);this.#s.#p=this.#p;this.#s.#o=this.#o;this.#s.#n=this.#n;return this.#s}isUNC(){const e=this.#e;return this.#o!==undefined?this.#o:this.#o=this.#i==="win32"&&this.#r===0&&e[0]===""&&e[1]===""&&typeof e[2]==="string"&&!!e[2]&&typeof e[3]==="string"&&!!e[3]}isDrive(){const e=this.#e;return this.#n!==undefined?this.#n:this.#n=this.#i==="win32"&&this.#r===0&&this.length>1&&typeof e[0]==="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#e;return this.#p!==undefined?this.#p:this.#p=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#e[0];return typeof e==="string"&&this.isAbsolute()&&this.#r===0?e:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){if(this.#r===0||!this.isGlobstar()||!this.#l)return false;this.#l=false;return true}}t.Pattern=Pattern},9107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const i=r(266);class HasWalkedCache{store;constructor(e=new Map){this.store=e}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath();const i=this.store.get(r);if(i)i.add(t.globString());else this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(e,t,r){const i=(t?2:0)|(r?1:0);const s=this.store.get(e);this.store.set(e,s===undefined?i:i&s)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(t&2),!!(t&1)]))}}t.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(e,t){if(!e.canReaddir()){return}const r=this.store.get(e);if(r){if(!r.find((e=>e.globString()===t.globString()))){r.push(t)}}else this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t){throw new Error("attempting to walk unknown path")}return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(e,t){this.opts=e;this.follow=!!e.follow;this.dot=!!e.dot;this.hasWalkedCache=t?t.copy():new HasWalkedCache}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root();const s=t.isAbsolute()&&this.opts.absolute!==false;if(r){e=e.resolve(r==="/"&&this.opts.root!==undefined?this.opts.root:r);const i=t.rest();if(!i){this.matches.add(e,true,false);continue}else{t=i}}if(e.isENOENT())continue;let a;let n;let o=false;while(typeof(a=t.pattern())==="string"&&(n=t.rest())){const r=e.resolve(a);if(r.isUnknown()&&a!=="..")break;e=r;t=n;o=true}a=t.pattern();n=t.rest();if(o){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if(typeof a==="string"){if(!n){const t=a===".."||a===""||a===".";this.matches.add(e.resolve(a),s,t)}else{this.subwalks.add(e,t)}continue}else if(a===i.GLOBSTAR){if(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar()){this.subwalks.add(e,t)}const r=n?.pattern();const i=n?.rest();if(!n||(r===""||r===".")&&!i){this.matches.add(e,s,r===""||r===".")}else{if(r===".."){const t=e.parent||e;if(!i)this.matches.add(t,s,true);else if(!this.hasWalkedCache.hasWalked(t,i)){this.subwalks.add(t,i)}}}}else if(a instanceof RegExp){this.subwalks.add(e,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e);const s=this.child();for(const e of t){for(const t of r){const r=t.isAbsolute();const a=t.pattern();const n=t.rest();if(a===i.GLOBSTAR){s.testGlobstar(e,t,n,r)}else if(a instanceof RegExp){s.testRegExp(e,a,n,r)}else{s.testString(e,a,n,r)}}}return s}testGlobstar(e,t,r,i){if(this.dot||!e.name.startsWith(".")){if(!t.hasMore()){this.matches.add(e,i,false)}if(e.canReaddir()){if(this.follow||!e.isSymbolicLink()){this.subwalks.add(e,t)}else if(e.isSymbolicLink()){if(r&&t.checkFollowGlobstar()){this.subwalks.add(e,r)}else if(t.markFollowGlobstar()){this.subwalks.add(e,t)}}}}if(r){const t=r.pattern();if(typeof t==="string"&&t!==".."&&t!==""&&t!=="."){this.testString(e,t,r.rest(),i)}else if(t===".."){const t=e.parent||e;this.subwalks.add(t,r)}else if(t instanceof RegExp){this.testRegExp(e,t,r.rest(),i)}}}testRegExp(e,t,r,i){if(!t.test(e.name))return;if(!r){this.matches.add(e,i,false)}else{this.subwalks.add(e,r)}}testString(e,t,r,i){if(!e.isNamed(t))return;if(!r){this.matches.add(e,i,false)}else{this.subwalks.add(e,r)}}}t.Processor=Processor},671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const i=r(1077);const s=r(469);const a=r(9107);const makeIgnore=(e,t)=>typeof e==="string"?new s.Ignore([e],t):Array.isArray(e)?new s.Ignore(e,t):e;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#c=[];#d;#u;signal;maxDepth;constructor(e,t,r){this.patterns=e;this.path=t;this.opts=r;this.#u=!r.posix&&r.platform==="win32"?"\\":"/";if(r.ignore){this.#d=makeIgnore(r.ignore,r)}this.maxDepth=r.maxDepth||Infinity;if(r.signal){this.signal=r.signal;this.signal.addEventListener("abort",(()=>{this.#c.length=0}))}}#m(e){return this.seen.has(e)||!!this.#d?.ignored?.(e)}#h(e){return!!this.#d?.childrenIgnored?.(e)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let e=undefined;while(!this.paused&&(e=this.#c.shift())){e()}}onResume(e){if(this.signal?.aborted)return;if(!this.paused){e()}else{this.#c.push(e)}}async matchCheck(e,t){if(t&&this.opts.nodir)return undefined;let r;if(this.opts.realpath){r=e.realpathCached()||await e.realpath();if(!r)return undefined;e=r}const i=e.isUnknown()||this.opts.stat;return this.matchCheckTest(i?await e.lstat():e,t)}matchCheckTest(e,t){return e&&(this.maxDepth===Infinity||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&!this.#m(e)?e:undefined}matchCheckSync(e,t){if(t&&this.opts.nodir)return undefined;let r;if(this.opts.realpath){r=e.realpathCached()||e.realpathSync();if(!r)return undefined;e=r}const i=e.isUnknown()||this.opts.stat;return this.matchCheckTest(i?e.lstatSync():e,t)}matchFinish(e,t){if(this.#m(e))return;const r=this.opts.absolute===undefined?t:this.opts.absolute;this.seen.add(e);const i=this.opts.mark&&e.isDirectory()?this.#u:"";if(this.opts.withFileTypes){this.matchEmit(e)}else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+i)}else{const t=this.opts.posix?e.relativePosix():e.relative();const r=this.opts.dotRelative&&!t.startsWith(".."+this.#u)?"."+this.#u:"";this.matchEmit(!t?"."+i:r+t+i)}}async match(e,t,r){const i=await this.matchCheck(e,r);if(i)this.matchFinish(i,t)}matchSync(e,t,r){const i=this.matchCheckSync(e,r);if(i)this.matchFinish(i,t)}walkCB(e,t,r){if(this.signal?.aborted)r();this.walkCB2(e,t,new a.Processor(this.opts),r)}walkCB2(e,t,r,i){if(this.#h(e))return i();if(this.signal?.aborted)i();if(this.paused){this.onResume((()=>this.walkCB2(e,t,r,i)));return}r.processPatterns(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;s++;this.match(e,t,i).then((()=>next()))}for(const e of r.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}s++;const t=e.readdirCached();if(e.calledReaddir())this.walkCB3(e,t,r,next);else{e.readdirCB(((t,i)=>this.walkCB3(e,i,r,next)),true)}}next()}walkCB3(e,t,r,i){r=r.filterEntries(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;s++;this.match(e,t,i).then((()=>next()))}for(const[e,t]of r.subwalks.entries()){s++;this.walkCB2(e,t,r.child(),next)}next()}walkCBSync(e,t,r){if(this.signal?.aborted)r();this.walkCB2Sync(e,t,new a.Processor(this.opts),r)}walkCB2Sync(e,t,r,i){if(this.#h(e))return i();if(this.signal?.aborted)i();if(this.paused){this.onResume((()=>this.walkCB2Sync(e,t,r,i)));return}r.processPatterns(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;this.matchSync(e,t,i)}for(const e of r.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}s++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,next)}next()}walkCB3Sync(e,t,r,i){r=r.filterEntries(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;this.matchSync(e,t,i)}for(const[e,t]of r.subwalks.entries()){s++;this.walkCB2Sync(e,t,r.child(),next)}next()}}t.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches;constructor(e,t,r){super(e,t,r);this.matches=new Set}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){t(this.signal.reason)}else{e(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}t.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(e,t,r){super(e,t,r);this.results=new i.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e);if(!this.results.flowing)this.pause()}stream(){const e=this.path;if(e.isUnknown()){e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(e,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}t.GlobStream=GlobStream},1046:(e,t,r)=>{var i=r(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var n="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(n).split("\\,").join(o).split("\\.").join(p)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(n).join("}").split(o).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var s=r.pre;var a=r.body;var n=r.post;var o=s.split(",");o[o.length-1]+="{"+a+"}";var p=parseCommaParts(n);if(n.length){o[o.length-1]+=p.shift();o.push.apply(o,p)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s)return[e];var a=s.pre;var o=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var p=0;p=0;if(!u&&!h){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+n+s.post;return expand(e)}return[e]}var g;if(u){g=s.body.split(/\.\./)}else{g=parseCommaParts(s.body);if(g.length===1){g=expand(g[0],false).map(embrace);if(g.length===1){return o.map((function(e){return s.pre+g[0]+e}))}}}var y;if(u){var v=numeric(g[0]);var b=numeric(g[1]);var x=Math.max(g[0].length,g[1].length);var w=g.length==3?Math.abs(numeric(g[2])):1;var S=lte;var E=b0){var C=new Array(P+1).join("0");if(N<0)_="-"+C+_.slice(1);else _=C+_}}}y.push(_)}}else{y=[];for(var O=0;O{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const i=t.indexOf(r+e);const s=t.indexOf("--");return i!==-1&&(s===-1||i{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +(()=>{var __webpack_modules__={2544:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.annotate=t.escapeProperty=t.escapeData=void 0;const n=a(r(2037));function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}t.escapeData=escapeData;function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}t.escapeProperty=escapeProperty;const o="::";function render(e,t,r){let i=o+e;if(r&&Object.keys(r).length>0){i+=" ";let e=true;for(const[t,s]of Object.entries(r)){if(s){if(e){e=false}else{i+=","}i+=`${t}=${escapeProperty(s)}`}}}i+=`${o}${escapeData(t)}`;return i}function annotate(e){let t;switch(e.annotation_level){case"notice":case"warning":t="warning";break;case"failure":t="error";break}const r=render(t,e.message,{file:e.path,line:e.start_line,col:e.start_column});process.stdout.write(r+n.EOL)}t.annotate=annotate},6014:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.CheckReporter=void 0;const n=a(r(3706));class CheckReporter{constructor(e,t){this.client=e;this.checkName=t;this.checkId=undefined}async startCheck(e){const{owner:t,repo:r}=n.context.repo;const i=await this.client.checks.create({owner:t,repo:r,name:this.checkName,head_sha:n.context.sha,status:e?e:"in_progress"});this.checkId=i.data.id;return this.checkId}async finishCheck(e,t){const{owner:r,repo:i}=n.context.repo;await this.client.checks.update({owner:r,repo:i,name:this.checkName,check_run_id:this.checkId,status:"completed",conclusion:e,completed_at:(new Date).toISOString(),output:t});return}async cancelCheck(){const{owner:e,repo:t}=n.context.repo;await this.client.checks.update({owner:e,repo:t,name:this.checkName,check_run_id:this.checkId,status:"completed",conclusion:"cancelled",completed_at:(new Date).toISOString(),output:{title:this.checkName,summary:"Unhandled error",text:"Check was cancelled due to unhandled error. Check the Action logs for details."}});return}}t.CheckReporter=CheckReporter},9438:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Cargo=t.resolveVersion=void 0;const n=a(r(7436));const o=a(r(2186));const p=a(r(1514));const l=a(r(2574));const c=a(r(4287));const d=a(r(1017));async function resolveVersion(e){const t=`https://crates.io/api/v1/crates/${e}`;const r=new c.HttpClient("@actions-rs (https://github.com/actions-rs/)");const i=await r.getJson(t);if(i.result==null){throw new Error("Unable to fetch latest crate version")}return i.result["crate"]["newest_version"]}t.resolveVersion=resolveVersion;class Cargo{constructor(e){this.path=e}static async get(){try{const e=await n.which("cargo",true);return new Cargo(e)}catch(e){o.error("cargo is not installed by default for some virtual environments, see https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions");o.error("To install it, use this action: https://github.com/actions-rs/toolchain");throw e}}async installCached(e,t,r,i){if(t=="latest"){t=await resolveVersion(e)}if(r){i=i||[];const s=[d.join(d.dirname(this.path),e)];const a=e+"-"+t+"-"+r;const n=i.map((r=>e+"-"+t+"-"+r));const p=await l.restoreCache(s,a,n);if(p){o.info(`Using cached \`${e}\` with version ${t}`);return e}else{const r=await this.install(e,t);try{o.info(`Caching \`${e}\` with key ${a}`);await l.saveCache(s,a)}catch(e){if(e.name===l.ValidationError.name){throw e}else if(e.name===l.ReserveCacheError.name){o.info(e.message)}else{o.info("[warning]"+e.message)}}return r}}else{return await this.install(e,t)}}async install(e,t){const r=["install"];if(t&&t!="latest"){r.push("--version");r.push(t)}r.push(e);try{o.startGroup(`Installing "${e} = ${t||"latest"}"`);await this.call(r)}finally{o.endGroup()}return e}async findOrInstall(e,t){try{return await n.which(e,true)}catch(t){o.info(`${e} is not installed, installing it now`)}return await this.installCached(e,t)}async call(e,t){return await p.exec(this.path,e,t)}}t.Cargo=Cargo},6820:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Cross=void 0;const n=a(r(2037));const o=a(r(7436));const p=a(r(2186));const l=a(r(1514));const c=r(9438);class Cross{constructor(e){this.path=e}static async getOrInstall(){try{return await Cross.get()}catch(e){p.debug(`${e}`);return await Cross.install()}}static async get(){const e=await o.which("cross",true);return new Cross(e)}static async install(e){const t=await c.Cargo.get();const r=process.cwd();process.chdir(n.tmpdir());try{const r=await t.installCached("cross",e);return new Cross(r)}finally{process.chdir(r);p.endGroup()}}async call(e,t){return await l.exec(this.path,e,t)}}t.Cross=Cross},3704:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.RustUp=void 0;const n=r(7147);const o=a(r(1017));const p=a(r(7282));const l=a(r(6581));const c=a(r(7436));const d=a(r(2186));const u=a(r(1514));const h=a(r(7442));const g="1.20.1";const y="1.20.1";class RustUp{constructor(e){this.path=e}static async getOrInstall(){try{return await RustUp.get()}catch(e){d.debug(`Unable to find "rustup" executable, installing it now. Reason: ${e}`);return await RustUp.install()}}static async get(){const e=await c.which("rustup",true);return new RustUp(e)}static async install(){const e=["--default-toolchain","none","-y"];switch(p.platform){case"darwin":case"linux":{const t=await h.downloadTool("https://sh.rustup.rs");d.debug(`Executing chmod 755 on the ${t}`);await n.promises.chmod(t,493);await u.exec(t,e);break}case"win32":{const t=await h.downloadTool("https://win.rustup.rs");await u.exec(t,e);break}default:throw new Error(`Unknown platform ${p.platform}, can't install rustup`)}d.addPath(o.join(p.env.HOME,".cargo","bin"));return new RustUp("rustup")}async installToolchain(e,t){const r=["toolchain","install",e];if(t){if(t.components&&t.components.length>0){for(const e of t.components){r.push("--component");r.push(e)}}if(t.noSelfUpdate){r.push("--no-self-update")}if(t.allowDowngrade){r.push("--allow-downgrade")}if(t.force){r.push("--force")}}await this.call(r);if(t&&t.default){await this.call(["default",e])}if(t&&t.override){await this.call(["override","set",e])}return 0}async addTarget(e,t){const r=["target","add"];if(t){r.push("--toolchain");r.push(t)}r.push(e);return await this.call(r)}async activeToolchain(){const e=await this.callStdout(["show","active-toolchain"]);if(e){return e.split(" ",2)[0]}else{throw new Error("Unable to determine active toolchain")}}async supportProfiles(){const e=await this.version();const t=l.gte(e,g);if(t){d.info(`Installed rustup ${e} support profiles`)}else{d.info(`Installed rustup ${e} does not support profiles, expected at least ${g}`)}return t}async supportComponents(){const e=await this.version();const t=l.gte(e,y);if(t){d.info(`Installed rustup ${e} support components`)}else{d.info(`Installed rustup ${e} does not support components, expected at least ${g}`)}return t}async setProfile(e){return await this.call(["set","profile",e])}async version(){const e=await this.callStdout(["-V"]);return e.split(" ")[1]}async which(e){const t=await this.callStdout(["which",e]);if(t){return t}else{throw new Error(`Unable to find the ${e}`)}}async selfUpdate(){return await this.call(["self","update"])}async call(e,t){return await u.exec(this.path,e,t)}async callStdout(e,t){let r="";const i=Object.assign({},t,{listeners:{stdout:e=>{r+=e.toString()}}});await this.call(e,i);return r}}t.RustUp=RustUp},822:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.annotations=t.checks=t.input=void 0;a(r(9438),t);a(r(6820),t);a(r(3704),t);const o=n(r(8870));t.input=o;const p=n(r(6014));t.checks=p;const l=n(r(2544));t.annotations=l},8870:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getInputAsArray=t.getInputList=t.getInputBool=t.getInput=void 0;const n=a(r(2186));function getInput(e,t){const r=e.replace(/-/g,"_");const i=n.getInput(r,t);if(i.length>0){return i}return n.getInput(e,t)}t.getInput=getInput;function getInputBool(e,t){const r=getInput(e,t);if(r&&(r==="true"||r==="1")){return true}else{return false}}t.getInputBool=getInputBool;function getInputList(e,t){const r=getInput(e,t);return r.split(",").map((e=>e.trim())).filter((e=>e.length>0))}t.getInputList=getInputList;function getInputAsArray(e,t){return getInput(e,t).split("\n").map((e=>e.trim())).filter((e=>e!==""))}t.getInputAsArray=getInputAsArray},2574:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=s(r(1017));const o=s(r(7161));const p=s(r(8920));const l=r(8844);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function restoreCache(e,t,r,s){return i(this,void 0,void 0,(function*(){checkPaths(e);r=r||[];const i=[t,...r];a.debug("Resolved Keys:");a.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const c=yield o.getCompressionMethod();const d=yield p.getCacheEntry(i,e,{compressionMethod:c});if(!(d===null||d===void 0?void 0:d.archiveLocation)){return undefined}const u=n.join(yield o.createTempDirectory(),o.getCacheFileName(c));a.debug(`Archive Path: ${u}`);try{yield p.downloadCache(d.archiveLocation,u,s);if(a.isDebug()){yield l.listTar(u,c)}const e=o.getArchiveFileSizeInBytes(u);a.info(`Cache Size: ~${Math.round(e/(1024*1024))} MB (${e} B)`);yield l.extractTar(u,c);a.info("Cache restored successfully")}finally{try{yield o.unlinkFile(u)}catch(e){a.debug(`Failed to delete archive: ${e}`)}}return d.cacheKey}))}t.restoreCache=restoreCache;function saveCache(e,t,r){return i(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const i=yield o.getCompressionMethod();a.debug("Reserving Cache");const s=yield p.reserveCache(t,e,{compressionMethod:i});if(s===-1){throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}a.debug(`Cache ID: ${s}`);const c=yield o.resolvePaths(e);a.debug("Cache Paths:");a.debug(`${JSON.stringify(c)}`);const d=yield o.createTempDirectory();const u=n.join(d,o.getCacheFileName(i));a.debug(`Archive Path: ${u}`);try{yield l.createTar(d,c,i);if(a.isDebug()){yield l.listTar(u,i)}const e=10*1024*1024*1024;const t=o.getArchiveFileSizeInBytes(u);a.debug(`File Size: ${t}`);if(t>e){throw new Error(`Cache size of ~${Math.round(t/(1024*1024))} MB (${t} B) is over the 10GB limit, not saving cache.`)}a.debug(`Saving Cache (ID: ${s})`);yield p.saveCache(s,u,r)}finally{try{yield o.unlinkFile(u)}catch(e){a.debug(`Failed to delete archive: ${e}`)}}return s}))}t.saveCache=saveCache},8920:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=r(4287);const o=r(9308);const p=s(r(6113));const l=s(r(7147));const c=r(7310);const d=s(r(7161));const u=r(3039);const h=r(963);const g=r(9077);const y=r(25);const v="1.0";function getCacheApiUrl(e){const t=(process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RUNTIME_URL"]||"").replace("pipelines","artifactcache");if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;a.debug(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new o.BearerCredentialHandler(e);return new n.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t){const r=e.concat(!t||t===u.CompressionMethod.Gzip?[]:[t]);r.push(v);return p.createHash("sha256").update(r.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,r){return i(this,void 0,void 0,(function*(){const s=createHttpClient();const n=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod);const o=`cache?keys=${encodeURIComponent(e.join(","))}&version=${n}`;const p=yield y.retryTypedResponse("getCacheEntry",(()=>i(this,void 0,void 0,(function*(){return s.getJson(getCacheApiUrl(o))}))));if(p.statusCode===204){return null}if(!y.isSuccessStatusCode(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const c=l===null||l===void 0?void 0:l.archiveLocation;if(!c){throw new Error("Cache not found.")}a.setSecret(c);a.debug(`Cache Result:`);a.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function downloadCache(e,t,r){return i(this,void 0,void 0,(function*(){const i=new c.URL(e);const s=g.getDownloadOptions(r);if(s.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield h.downloadCacheStorageSDK(e,t,s)}else{yield h.downloadCacheHttpClient(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,r){var s,a;return i(this,void 0,void 0,(function*(){const n=createHttpClient();const o=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod);const p={key:e,version:o};const l=yield y.retryTypedResponse("reserveCache",(()=>i(this,void 0,void 0,(function*(){return n.postJson(getCacheApiUrl("caches"),p)}))));return(a=(s=l===null||l===void 0?void 0:l.result)===null||s===void 0?void 0:s.cacheId)!==null&&a!==void 0?a:-1}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,s,n){return i(this,void 0,void 0,(function*(){a.debug(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${getContentRange(s,n)}`);const o={"Content-Type":"application/octet-stream","Content-Range":getContentRange(s,n)};const p=yield y.retryHttpClientResponse(`uploadChunk (start: ${s}, end: ${n})`,(()=>i(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),o)}))));if(!y.isSuccessStatusCode(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,s){return i(this,void 0,void 0,(function*(){const n=d.getArchiveFileSizeInBytes(r);const o=getCacheApiUrl(`caches/${t.toString()}`);const p=l.openSync(r,"r");const c=g.getUploadOptions(s);const u=d.assertDefined("uploadConcurrency",c.uploadConcurrency);const h=d.assertDefined("uploadChunkSize",c.uploadChunkSize);const y=[...new Array(u).keys()];a.debug("Awaiting all uploads");let v=0;try{yield Promise.all(y.map((()=>i(this,void 0,void 0,(function*(){while(vl.createReadStream(r,{fd:p,start:i,end:s,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,s)}})))))}finally{l.closeSync(p)}return}))}function commitCache(e,t,r){return i(this,void 0,void 0,(function*(){const s={size:r};return yield y.retryTypedResponse("commitCache",(()=>i(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),s)}))))}))}function saveCache(e,t,r){return i(this,void 0,void 0,(function*(){const i=createHttpClient();a.debug("Upload cache");yield uploadFile(i,e,t,r);a.debug("Commiting cache");const s=d.getArchiveFileSizeInBytes(t);a.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const n=yield commitCache(i,e,s);if(!y.isSuccessStatusCode(n.statusCode)){throw new Error(`Cache service responded with ${n.statusCode} during commit cache.`)}a.info("Cache saved successfully")}))}t.saveCache=saveCache},7161:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=a(r(2186));const o=a(r(1514));const p=a(r(8090));const l=a(r(7436));const c=a(r(7147));const d=a(r(1017));const u=a(r(7007));const h=a(r(3837));const g=r(2096);const y=r(3039);function createTempDirectory(){return i(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=d.join(r,"actions","temp")}const r=d.join(t,g.v4());yield l.mkdirP(r);return r}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return c.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,r;var a;return i(this,void 0,void 0,(function*(){const i=[];const o=(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const l=yield p.create(e.join("\n"),{implicitDescendants:false});try{for(var c=s(l.globGenerator()),u;u=yield c.next(),!u.done;){const e=u.value;const t=d.relative(o,e).replace(new RegExp(`\\${d.sep}`,"g"),"/");n.debug(`Matched: ${t}`);i.push(`${t}`)}}catch(e){t={error:e}}finally{try{if(u&&!u.done&&(r=c.return))yield r.call(c)}finally{if(t)throw t.error}}return i}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return i(this,void 0,void 0,(function*(){return h.promisify(c.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e){return i(this,void 0,void 0,(function*(){n.debug(`Checking ${e} --version`);let t="";try{yield o.exec(`${e} --version`,[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}})}catch(e){n.debug(e.message)}t=t.trim();n.debug(t);return t}))}function getCompressionMethod(){return i(this,void 0,void 0,(function*(){if(process.platform==="win32"&&!(yield isGnuTarInstalled())){return y.CompressionMethod.Gzip}const e=yield getVersion("zstd");const t=u.clean(e);if(!e.toLowerCase().includes("zstd command line interface")){return y.CompressionMethod.Gzip}else if(!t||u.lt(t,"v1.3.2")){return y.CompressionMethod.ZstdWithoutLong}else{return y.CompressionMethod.Zstd}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===y.CompressionMethod.Gzip?y.CacheFilename.Gzip:y.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function isGnuTarInstalled(){return i(this,void 0,void 0,(function*(){const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")}))}t.isGnuTarInstalled=isGnuTarInstalled;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined},3039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(r=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3},963:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=r(4287);const o=r(4100);const p=s(r(4300));const l=s(r(7147));const c=s(r(2781));const d=s(r(3837));const u=s(r(7161));const h=r(3039);const g=r(25);function pipeResponseToStream(e,t){return i(this,void 0,void 0,(function*(){const r=d.promisify(c.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;a.debug(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const i=(e/(1024*1024)/(r/1e3)).toFixed(1);a.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return i(this,void 0,void 0,(function*(){const r=l.createWriteStream(t);const s=new n.HttpClient("actions/cache");const o=yield g.retryHttpClientResponse("downloadCache",(()=>i(this,void 0,void 0,(function*(){return s.get(e)}))));o.message.socket.setTimeout(h.SocketTimeout,(()=>{o.message.destroy();a.debug(`Aborting download, socket timed out after ${h.SocketTimeout} ms`)}));yield pipeResponseToStream(o,r);const p=o.message.headers["content-length"];if(p){const e=parseInt(p);const r=u.getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{a.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,r){var s;return i(this,void 0,void 0,(function*(){const i=new o.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const n=yield i.getProperties();const c=(s=n.contentLength)!==null&&s!==void 0?s:-1;if(c<0){a.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(2147483647,p.constants.MAX_LENGTH);const s=new DownloadProgress(c);const a=l.openSync(t,"w");try{s.startDisplayTimer();while(!s.isDone()){const t=s.segmentOffset+s.segmentSize;const n=Math.min(e,c-t);s.nextSegment(n);const o=yield i.downloadToBuffer(t,n,{concurrency:r.downloadConcurrency,onProgress:s.onProgress()});l.writeFileSync(a,o)}}finally{s.stopDisplayTimer();l.closeSync(a)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK},25:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(2186));const n=r(4287);const o=r(3039);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[n.HttpCodes.BadGateway,n.HttpCodes.ServiceUnavailable,n.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r,s=o.DefaultRetryAttempts,n=o.DefaultRetryDelay,p=undefined){return i(this,void 0,void 0,(function*(){let i="";let o=1;while(o<=s){let l=undefined;let c=undefined;let d=false;try{l=yield t()}catch(e){if(p){l=p(e)}d=true;i=e.message}if(l){c=r(l);if(!isServerErrorStatusCode(c)){return l}}if(c){d=isRetryableStatusCode(c);i=`Cache service responded with ${c}`}a.debug(`${e} - Attempt ${o} of ${s} failed with error: ${i}`);if(!d){a.debug(`${e} - Error is not retryable`);break}yield sleep(n);o++}throw Error(`${e} failed: ${i}`)}))}t.retry=retry;function retryTypedResponse(e,t,r=o.DefaultRetryAttempts,s=o.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),r,s,(e=>{if(e instanceof n.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{}}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,r=o.DefaultRetryAttempts,s=o.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),r,s)}))}t.retryHttpClientResponse=retryHttpClientResponse},8844:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=r(1514);const n=s(r(7436));const o=r(7147);const p=s(r(1017));const l=s(r(7161));const c=r(3039);function getTarPath(e,t){return i(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const r=`${process.env["windir"]}\\System32\\tar.exe`;if(t!==c.CompressionMethod.Gzip){e.push("--force-local")}else if(o.existsSync(r)){return r}else if(yield l.isGnuTarInstalled()){e.push("--force-local")}break}case"darwin":{const t=yield n.which("gtar",false);if(t){e.push("--delay-directory-restore");return t}break}default:break}return yield n.which("tar",true)}))}function execTar(e,t,r){return i(this,void 0,void 0,(function*(){try{yield a.exec(`"${yield getTarPath(e,t)}"`,e,{cwd:r})}catch(e){throw new Error(`Tar failed with error: ${e===null||e===void 0?void 0:e.message}`)}}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function extractTar(e,t){return i(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield n.mkdirP(r);function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const i=[...getCompressionProgram(),"-xf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",r.replace(new RegExp(`\\${p.sep}`,"g"),"/")];yield execTar(i,t)}))}t.extractTar=extractTar;function createTar(e,t,r){return i(this,void 0,void 0,(function*(){const i="manifest.txt";const s=l.getCacheFileName(r);o.writeFileSync(p.join(e,i),t.join("\n"));const a=getWorkingDirectory();function getCompressionProgram(){switch(r){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -T0 --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -T0"];default:return["-z"]}}const n=["--posix",...getCompressionProgram(),"-cf",s.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",a.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"--files-from",i];yield execTar(n,r,e)}))}t.createTar=createTar;function listTar(e,t){return i(this,void 0,void 0,(function*(){function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const r=[...getCompressionProgram(),"-tf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P"];yield execTar(r,t)}))}t.listTar=listTar},9077:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}s.debug(`Upload concurrency: ${t.uploadConcurrency}`);s.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}}s.debug(`Use Azure SDK: ${t.useAzureSdk}`);s.debug(`Download concurrency: ${t.downloadConcurrency}`);s.debug(`Request timeout (ms): ${t.timeoutInMs}`);return t}t.getDownloadOptions=getDownloadOptions},7007:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var n=t.re=[];var o=t.src=[];var p=t.tokens={};var l=0;function tok(e){p[e]=l++}tok("NUMERICIDENTIFIER");o[p.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");o[p.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");o[p.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");o[p.MAINVERSION]="("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");o[p.MAINVERSIONLOOSE]="("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");o[p.PRERELEASEIDENTIFIER]="(?:"+o[p.NUMERICIDENTIFIER]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");o[p.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[p.NUMERICIDENTIFIERLOOSE]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");o[p.PRERELEASE]="(?:-("+o[p.PRERELEASEIDENTIFIER]+"(?:\\."+o[p.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");o[p.PRERELEASELOOSE]="(?:-?("+o[p.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[p.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");o[p.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");o[p.BUILD]="(?:\\+("+o[p.BUILDIDENTIFIER]+"(?:\\."+o[p.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");o[p.FULLPLAIN]="v?"+o[p.MAINVERSION]+o[p.PRERELEASE]+"?"+o[p.BUILD]+"?";o[p.FULL]="^"+o[p.FULLPLAIN]+"$";tok("LOOSEPLAIN");o[p.LOOSEPLAIN]="[v=\\s]*"+o[p.MAINVERSIONLOOSE]+o[p.PRERELEASELOOSE]+"?"+o[p.BUILD]+"?";tok("LOOSE");o[p.LOOSE]="^"+o[p.LOOSEPLAIN]+"$";tok("GTLT");o[p.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");o[p.XRANGEIDENTIFIERLOOSE]=o[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");o[p.XRANGEIDENTIFIER]=o[p.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");o[p.XRANGEPLAIN]="[v=\\s]*("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:"+o[p.PRERELEASE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");o[p.XRANGEPLAINLOOSE]="[v=\\s]*("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+o[p.PRERELEASELOOSE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGE");o[p.XRANGE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAIN]+"$";tok("XRANGELOOSE");o[p.XRANGELOOSE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAINLOOSE]+"$";tok("COERCE");o[p.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");n[p.COERCERTL]=new RegExp(o[p.COERCE],"g");tok("LONETILDE");o[p.LONETILDE]="(?:~>?)";tok("TILDETRIM");o[p.TILDETRIM]="(\\s*)"+o[p.LONETILDE]+"\\s+";n[p.TILDETRIM]=new RegExp(o[p.TILDETRIM],"g");var c="$1~";tok("TILDE");o[p.TILDE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAIN]+"$";tok("TILDELOOSE");o[p.TILDELOOSE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAINLOOSE]+"$";tok("LONECARET");o[p.LONECARET]="(?:\\^)";tok("CARETTRIM");o[p.CARETTRIM]="(\\s*)"+o[p.LONECARET]+"\\s+";n[p.CARETTRIM]=new RegExp(o[p.CARETTRIM],"g");var d="$1^";tok("CARET");o[p.CARET]="^"+o[p.LONECARET]+o[p.XRANGEPLAIN]+"$";tok("CARETLOOSE");o[p.CARETLOOSE]="^"+o[p.LONECARET]+o[p.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");o[p.COMPARATORLOOSE]="^"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");o[p.COMPARATOR]="^"+o[p.GTLT]+"\\s*("+o[p.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");o[p.COMPARATORTRIM]="(\\s*)"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+"|"+o[p.XRANGEPLAIN]+")";n[p.COMPARATORTRIM]=new RegExp(o[p.COMPARATORTRIM],"g");var u="$1$2$3";tok("HYPHENRANGE");o[p.HYPHENRANGE]="^\\s*("+o[p.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");o[p.HYPHENRANGELOOSE]="^\\s*("+o[p.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");o[p.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hi){return null}var r=t.loose?n[p.LOOSE]:n[p.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var a=e.trim().match(t.loose?n[p.LOOSE]:n[p.FULL]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,i){if(typeof r==="string"){i=r;r=undefined}try{return new SemVer(e,r).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var i=parse(t);var s="";if(r.prerelease.length||i.prerelease.length){s="pre";var a="prerelease"}for(var n in r){if(n==="major"||n==="minor"||n==="patch"){if(r[n]!==i[n]){return s+n}}}return a}}t.compareIdentifiers=compareIdentifiers;var g=/^[0-9]+$/;function compareIdentifiers(e,t){var r=g.test(e);var i=g.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,i);case"!=":return neq(e,r,i);case">":return gt(e,r,i);case">=":return gte(e,r,i);case"<":return lt(e,r,i);case"<=":return lte(e,r,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===y){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var y={};Comparator.prototype.parse=function(e){var t=this.options.loose?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=y}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===y||e===y){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var n=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var p=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||a&&n||o||p};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?n[p.HYPHENRANGELOOSE]:n[p.HYPHENRANGE];e=e.replace(i,hyphenReplace);r("hyphen replace",e);e=e.replace(n[p.COMPARATORTRIM],u);r("comparator trim",e,n[p.COMPARATORTRIM]);e=e.replace(n[p.TILDETRIM],c);e=e.replace(n[p.CARETTRIM],d);e=e.split(/\s+/).join(" ");var s=t?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var a=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter((function(e){return!!e.match(s)}))}a=a.map((function(e){return new Comparator(e,this.options)}),this);return a};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var r=true;var i=e.slice();var s=i.pop();while(r&&i.length){r=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?n[p.TILDELOOSE]:n[p.TILDE];return e.replace(i,(function(t,i,s,a,n){r("tilde",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(n){r("replaceTilde pr",n);o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}r("tilde return",o);return o}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var i=t.loose?n[p.CARETLOOSE]:n[p.CARET];return e.replace(i,(function(t,i,s,a,n){r("caret",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){if(i==="0"){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(n){r("replaceCaret pr",n);if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+(+i+1)+".0.0"}}else{r("no pr");if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"}}r("caret return",o);return o}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?n[p.XRANGELOOSE]:n[p.XRANGE];return e.replace(i,(function(i,s,a,n,o,p){r("xRange",e,i,s,a,n,o,p);var l=isX(a);var c=l||isX(n);var d=c||isX(o);var u=d;if(s==="="&&u){s=""}p=t.includePrerelease?"-0":"";if(l){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&u){if(c){n=0}o=0;if(s===">"){s=">=";if(c){a=+a+1;n=0;o=0}else{n=+n+1;o=0}}else if(s==="<="){s="<";if(c){a=+a+1}else{n=+n+1}}i=s+a+"."+n+"."+o+p}else if(c){i=">="+a+".0.0"+p+" <"+(+a+1)+".0.0"+p}else if(d){i=">="+a+"."+n+".0"+p+" <"+a+"."+(+n+1)+".0"+p}r("xRange return",i);return i}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(n[p.STAR],"")}function hyphenReplace(e,t,r,i,s,a,n,o,p,l,c,d,u){if(isX(r)){t=""}else if(isX(i)){t=">="+r+".0.0"}else if(isX(s)){t=">="+r+"."+i+".0"}else{t=">="+t}if(isX(p)){o=""}else if(isX(l)){o="<"+(+p+1)+".0.0"}else if(isX(c)){o="<"+p+"."+(+l+1)+".0"}else if(d){o="<="+p+"."+l+"."+c+"-"+d}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,r)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,r)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,i){e=new SemVer(e,i);t=new Range(t,i);var s,a,n,o,p;switch(r){case">":s=gt;a=lte;n=lt;o=">";p=">=";break;case"<":s=lt;a=gte;n=gt;o="<";p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var l=0;l=0.0.0")}d=d||e;u=u||e;if(s(e.semver,d.semver,i)){d=e}else if(n(e.semver,u.semver,i)){u=e}}));if(d.operator===o||d.operator===p){return false}if((!u.operator||u.operator===o)&&a(e,u.semver)){return false}else if(u.operator===p&&n(e,u.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(n[p.COERCE])}else{var i;while((i=n[p.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||i.index+i[0].length!==r.index+r[0].length){r=i}n[p.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}n[p.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},2328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const i=r(7147);const s=r(2037);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},3706:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const n=a(r(2328));const o=r(1289);t.context=new n.Context;function getOctokit(e,t){return new o.GitHub(o.getOctokitOptions(e,t))}t.getOctokit=getOctokit},8909:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=a(r(4287));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new n.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},1289:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const n=a(r(2328));const o=a(r(8909));const p=r(6762);const l=r(6385);const c=r(4193);t.context=new n.Context;const d=o.getApiBaseUrl();const u={baseUrl:d,request:{agent:o.getProxyAgent(d)}};t.GitHub=p.Octokit.plugin(l.restEndpointMethods,c.paginateRest).defaults(u);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const i=o.getAuthString(e,r);if(i){r.auth=i}return r}t.getOctokitOptions=getOctokitOptions},9308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(3685);const s=r(5687);const a=r(2145);let n;var o;(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"})(o=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=a.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const c=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect];const d=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout];const u=["OPTIONS","GET","DELETE","HEAD"];const h=10;const g=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,i){return this.request(e,t,r,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,l.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,l.ApplicationJson);let s=await this.post(e,i,r);return this._processResponse(s,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,l.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,l.ApplicationJson);let s=await this.put(e,i,r);return this._processResponse(s,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,l.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,l.ApplicationJson);let s=await this.patch(e,i,r);return this._processResponse(s,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(t);let a=this._prepareRequest(e,s,i);let n=this._allowRetries&&u.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let l;while(p0){const n=l.message.headers["location"];if(!n){break}let o=new URL(n);if(s.protocol=="https:"&&s.protocol!=o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(o.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}a=this._prepareRequest(e,o,i);l=await this.requestRaw(a,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}p+=1;if(p{let callbackForResult=function(e,t){if(e){i(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;let handleResult=(e,t)=>{if(!s){s=true;r(e,t)}};let a=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));a.on("socket",(e=>{i=e}));a.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));a.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){a.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){a.end()}));t.pipe(a)}else{a.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const a={};a.parsedUrl=t;const n=a.parsedUrl.protocol==="https:";a.httpModule=n?s:i;const o=n?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):o;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(a.options)}))}return a}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let o=a.getProxyUrl(e);let p=o&&o.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(p){if(!n){n=r(4294)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{...(o.username||o.password)&&{proxyAuth:`${o.username}:${o.password}`},host:o.hostname,port:o.port}};let i;const s=o.protocol==="https:";if(l){i=s?n.httpsOverHttps:n.httpsOverHttp}else{i=s?n.httpOverHttps:n.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=l?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=l?s.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=g*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,i)=>{const s=e.message.statusCode;const a={statusCode:s,result:null,headers:{}};if(s==o.NotFound){r(a)}let n;let p;try{p=await e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){n=JSON.parse(p,HttpClient.dateTimeDeserializer)}else{n=JSON.parse(p)}a.result=n}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(n&&n.message){e=n.message}else if(p&&p.length>0){e=p}else{e="Failed request: ("+s+")"}let t=new HttpClientError(e,s);t.result=a.result;i(t)}else{r(a)}}))}}t.HttpClient=HttpClient},2145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=new URL(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},8179:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=a(r(4860));const p=r(2186);const l=r(2037);const c=r(2081);const d=r(7147);function _findMatch(t,r,i,s){return n(this,void 0,void 0,(function*(){const a=l.platform();let n;let c;let d;for(const n of i){const i=n.version;p.debug(`check ${i} satisfies ${t}`);if(o.satisfies(i,t)&&(!r||n.stable===r)){d=n.files.find((t=>{p.debug(`${t.arch}===${s} && ${t.platform}===${a}`);let r=t.arch===s&&t.platform===a;if(r&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){r=true}else{r=o.satisfies(i,t.platform_version)}}return r}));if(d){p.debug(`matched ${n.version}`);c=n;break}}}if(c&&d){n=Object.assign({},c);n.files=[d]}return n}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let r="";if(d.existsSync(e)){r=d.readFileSync(e).toString()}else if(d.existsSync(t)){r=d.readFileSync(t).toString()}return r}t._readLinuxVersionFile=_readLinuxVersionFile},2089:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=a(r(2186));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,(function*(){let r=1;while(rsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},7442:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const p=a(r(2186));const l=a(r(7436));const c=a(r(7147));const d=a(r(8179));const u=a(r(2037));const h=a(r(1017));const g=a(r(4287));const y=a(r(4860));const v=a(r(2781));const b=a(r(3837));const x=o(r(1573));const w=r(1514);const S=r(9491);const E=r(2089);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const T=process.platform==="win32";const N=process.platform==="darwin";const _="actions/tool-cache";function downloadTool(e,t,r,i){return n(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),x.default());yield l.mkdirP(h.dirname(t));p.debug(`Downloading ${e}`);p.debug(`Destination ${t}`);const s=3;const a=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const c=new E.RetryHelper(s,a,o);return yield c.execute((()=>n(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",r,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r,i){return n(this,void 0,void 0,(function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const s=new g.HttpClient(_,[],{allowRetries:false});if(r){p.debug("set auth");if(i===undefined){i={}}i.authorization=r}const a=yield s.get(e,i);if(a.message.statusCode!==200){const t=new HTTPError(a.message.statusCode);p.debug(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`);throw t}const n=b.promisify(v.pipeline);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>a.message));const d=o();let u=false;try{yield n(d,c.createWriteStream(t));p.debug("download complete");u=true;return t}finally{if(!u){p.debug("download failed");try{yield l.rmRF(t)}catch(e){p.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,r){return n(this,void 0,void 0,(function*(){S.ok(T,"extract7z() not supported on current OS");S.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(r){try{const t=p.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield w.exec(`"${r}"`,i,s)}finally{process.chdir(i)}}else{const r=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=`& '${r}' -Source '${s}' -Target '${a}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];const p={silent:true};try{const e=yield l.which("powershell",true);yield w.exec(`"${e}"`,o,p)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);p.debug("Checking tar --version");let i="";yield w.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});p.debug(i.trim());const s=i.toUpperCase().includes("GNU TAR");let a;if(r instanceof Array){a=r}else{a=[r]}if(p.isDebug()&&!r.includes("v")){a.push("-v")}let n=t;let o=e;if(T&&s){a.push("--force-local");n=t.replace(/\\/g,"/");o=e.replace(/\\/g,"/")}if(s){a.push("--warning=no-unknown-keyword");a.push("--overwrite")}a.push("-C",n,"-f",o);yield w.exec(`tar`,a);return t}))}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,(function*(){S.ok(N,"extractXar() not supported on current OS");S.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(r instanceof Array){i=r}else{i=[r]}i.push("-x","-C",t,"-f",e);if(p.isDebug()){i.push("-v")}const s=yield l.which("xar",true);yield w.exec(`"${s}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(T){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=yield l.which("pwsh",false);if(s){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];p.debug(`Using pwsh at path: ${s}`);yield w.exec(`"${s}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const s=yield l.which("powershell",true);p.debug(`Using powershell at path: ${s}`);yield w.exec(`"${s}"`,t)}}))}function extractZipNix(e,t){return n(this,void 0,void 0,(function*(){const r=yield l.which("unzip",true);const i=[e];if(!p.isDebug()){i.unshift("-q")}i.unshift("-o");yield w.exec(`"${r}"`,i,{cwd:t})}))}function cacheDir(e,t,r,i){return n(this,void 0,void 0,(function*(){r=y.clean(r)||r;i=i||u.arch();p.debug(`Caching tool ${t} ${r} ${i}`);p.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const s=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=h.join(e,t);yield l.cp(r,s,{recursive:true})}_completeToolPath(t,r,i);return s}))}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,(function*(){i=y.clean(i)||i;s=s||u.arch();p.debug(`Caching tool ${r} ${i} ${s}`);p.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const a=yield _createToolPath(r,i,s);const n=h.join(a,t);p.debug(`destination file ${n}`);yield l.cp(e,n);_completeToolPath(r,i,s);return a}))}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||u.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,r);const s=evaluateVersions(i,t);t=s}let i="";if(t){t=y.clean(t)||"";const s=h.join(_getCacheDirectory(),e,t,r);p.debug(`checking cache: ${s}`);if(c.existsSync(s)&&c.existsSync(`${s}.complete`)){p.debug(`Found tool in cache ${e} ${t} ${r}`);i=s}else{p.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const r=[];t=t||u.arch();const i=h.join(_getCacheDirectory(),e);if(c.existsSync(i)){const e=c.readdirSync(i);for(const s of e){if(isExplicitVersion(s)){const e=h.join(i,s,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(s)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,(function*(){let s=[];const a=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const n=new g.HttpClient("tool-cache");const o={};if(r){p.debug("set auth");o.authorization=r}const l=yield n.getJson(a,o);if(!l.result){return s}let c="";for(const e of l.result.tree){if(e.path==="versions-manifest.json"){c=e.url;break}}o["accept"]="application/vnd.github.VERSION.raw";let d=yield(yield n.get(c,o)).readBody();if(d){d=d.replace(/^\uFEFF/,"");try{s=JSON.parse(d)}catch(e){p.debug("Invalid json")}}return s}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=u.arch()){return n(this,void 0,void 0,(function*(){const s=yield d._findMatch(e,t,r,i);return s}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),x.default())}yield l.mkdirP(e);return e}))}function _createToolPath(e,t,r){return n(this,void 0,void 0,(function*(){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");p.debug(`destination ${i}`);const s=`${i}.complete`;yield l.rmRF(i);yield l.rmRF(s);yield l.mkdirP(i);return i}))}function _completeToolPath(e,t,r){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");const s=`${i}.complete`;c.writeFileSync(s,"");p.debug("finished caching tool")}function isExplicitVersion(e){const t=y.clean(e)||"";p.debug(`isExplicit: ${t}`);const r=y.valid(t)!=null;p.debug(`explicit? ${r}`);return r}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let r="";p.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(y.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const s=e[i];const a=y.satisfies(s,t);if(a){r=s;break}}if(r){p.debug(`matched: ${r}`)}else{p.debug("match not found")}return r}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";S.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";S.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},4860:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var n=t.re=[];var o=t.src=[];var p=t.tokens={};var l=0;function tok(e){p[e]=l++}tok("NUMERICIDENTIFIER");o[p.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");o[p.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");o[p.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");o[p.MAINVERSION]="("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");o[p.MAINVERSIONLOOSE]="("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");o[p.PRERELEASEIDENTIFIER]="(?:"+o[p.NUMERICIDENTIFIER]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");o[p.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[p.NUMERICIDENTIFIERLOOSE]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");o[p.PRERELEASE]="(?:-("+o[p.PRERELEASEIDENTIFIER]+"(?:\\."+o[p.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");o[p.PRERELEASELOOSE]="(?:-?("+o[p.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[p.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");o[p.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");o[p.BUILD]="(?:\\+("+o[p.BUILDIDENTIFIER]+"(?:\\."+o[p.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");o[p.FULLPLAIN]="v?"+o[p.MAINVERSION]+o[p.PRERELEASE]+"?"+o[p.BUILD]+"?";o[p.FULL]="^"+o[p.FULLPLAIN]+"$";tok("LOOSEPLAIN");o[p.LOOSEPLAIN]="[v=\\s]*"+o[p.MAINVERSIONLOOSE]+o[p.PRERELEASELOOSE]+"?"+o[p.BUILD]+"?";tok("LOOSE");o[p.LOOSE]="^"+o[p.LOOSEPLAIN]+"$";tok("GTLT");o[p.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");o[p.XRANGEIDENTIFIERLOOSE]=o[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");o[p.XRANGEIDENTIFIER]=o[p.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");o[p.XRANGEPLAIN]="[v=\\s]*("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:"+o[p.PRERELEASE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");o[p.XRANGEPLAINLOOSE]="[v=\\s]*("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+o[p.PRERELEASELOOSE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGE");o[p.XRANGE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAIN]+"$";tok("XRANGELOOSE");o[p.XRANGELOOSE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAINLOOSE]+"$";tok("COERCE");o[p.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");n[p.COERCERTL]=new RegExp(o[p.COERCE],"g");tok("LONETILDE");o[p.LONETILDE]="(?:~>?)";tok("TILDETRIM");o[p.TILDETRIM]="(\\s*)"+o[p.LONETILDE]+"\\s+";n[p.TILDETRIM]=new RegExp(o[p.TILDETRIM],"g");var c="$1~";tok("TILDE");o[p.TILDE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAIN]+"$";tok("TILDELOOSE");o[p.TILDELOOSE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAINLOOSE]+"$";tok("LONECARET");o[p.LONECARET]="(?:\\^)";tok("CARETTRIM");o[p.CARETTRIM]="(\\s*)"+o[p.LONECARET]+"\\s+";n[p.CARETTRIM]=new RegExp(o[p.CARETTRIM],"g");var d="$1^";tok("CARET");o[p.CARET]="^"+o[p.LONECARET]+o[p.XRANGEPLAIN]+"$";tok("CARETLOOSE");o[p.CARETLOOSE]="^"+o[p.LONECARET]+o[p.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");o[p.COMPARATORLOOSE]="^"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");o[p.COMPARATOR]="^"+o[p.GTLT]+"\\s*("+o[p.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");o[p.COMPARATORTRIM]="(\\s*)"+o[p.GTLT]+"\\s*("+o[p.LOOSEPLAIN]+"|"+o[p.XRANGEPLAIN]+")";n[p.COMPARATORTRIM]=new RegExp(o[p.COMPARATORTRIM],"g");var u="$1$2$3";tok("HYPHENRANGE");o[p.HYPHENRANGE]="^\\s*("+o[p.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");o[p.HYPHENRANGELOOSE]="^\\s*("+o[p.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+o[p.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");o[p.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hi){return null}var r=t.loose?n[p.LOOSE]:n[p.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var a=e.trim().match(t.loose?n[p.LOOSE]:n[p.FULL]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,i){if(typeof r==="string"){i=r;r=undefined}try{return new SemVer(e,r).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var i=parse(t);var s="";if(r.prerelease.length||i.prerelease.length){s="pre";var a="prerelease"}for(var n in r){if(n==="major"||n==="minor"||n==="patch"){if(r[n]!==i[n]){return s+n}}}return a}}t.compareIdentifiers=compareIdentifiers;var g=/^[0-9]+$/;function compareIdentifiers(e,t){var r=g.test(e);var i=g.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,i);case"!=":return neq(e,r,i);case">":return gt(e,r,i);case">=":return gte(e,r,i);case"<":return lt(e,r,i);case"<=":return lte(e,r,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===y){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var y={};Comparator.prototype.parse=function(e){var t=this.options.loose?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=y}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===y||e===y){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var n=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var p=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||a&&n||o||p};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?n[p.HYPHENRANGELOOSE]:n[p.HYPHENRANGE];e=e.replace(i,hyphenReplace);r("hyphen replace",e);e=e.replace(n[p.COMPARATORTRIM],u);r("comparator trim",e,n[p.COMPARATORTRIM]);e=e.replace(n[p.TILDETRIM],c);e=e.replace(n[p.CARETTRIM],d);e=e.split(/\s+/).join(" ");var s=t?n[p.COMPARATORLOOSE]:n[p.COMPARATOR];var a=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter((function(e){return!!e.match(s)}))}a=a.map((function(e){return new Comparator(e,this.options)}),this);return a};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var r=true;var i=e.slice();var s=i.pop();while(r&&i.length){r=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?n[p.TILDELOOSE]:n[p.TILDE];return e.replace(i,(function(t,i,s,a,n){r("tilde",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(n){r("replaceTilde pr",n);o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}r("tilde return",o);return o}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var i=t.loose?n[p.CARETLOOSE]:n[p.CARET];return e.replace(i,(function(t,i,s,a,n){r("caret",e,t,i,s,a,n);var o;if(isX(i)){o=""}else if(isX(s)){o=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(a)){if(i==="0"){o=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{o=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(n){r("replaceCaret pr",n);if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+"-"+n+" <"+(+i+1)+".0.0"}}else{r("no pr");if(i==="0"){if(s==="0"){o=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1)}else{o=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0"}}else{o=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"}}r("caret return",o);return o}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?n[p.XRANGELOOSE]:n[p.XRANGE];return e.replace(i,(function(i,s,a,n,o,p){r("xRange",e,i,s,a,n,o,p);var l=isX(a);var c=l||isX(n);var d=c||isX(o);var u=d;if(s==="="&&u){s=""}p=t.includePrerelease?"-0":"";if(l){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&u){if(c){n=0}o=0;if(s===">"){s=">=";if(c){a=+a+1;n=0;o=0}else{n=+n+1;o=0}}else if(s==="<="){s="<";if(c){a=+a+1}else{n=+n+1}}i=s+a+"."+n+"."+o+p}else if(c){i=">="+a+".0.0"+p+" <"+(+a+1)+".0.0"+p}else if(d){i=">="+a+"."+n+".0"+p+" <"+a+"."+(+n+1)+".0"+p}r("xRange return",i);return i}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(n[p.STAR],"")}function hyphenReplace(e,t,r,i,s,a,n,o,p,l,c,d,u){if(isX(r)){t=""}else if(isX(i)){t=">="+r+".0.0"}else if(isX(s)){t=">="+r+"."+i+".0"}else{t=">="+t}if(isX(p)){o=""}else if(isX(l)){o="<"+(+p+1)+".0.0"}else if(isX(c)){o="<"+p+"."+(+l+1)+".0"}else if(d){o="<="+p+"."+l+"."+c+"-"+d}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,r)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var i=null;var s=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,r)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,i){e=new SemVer(e,i);t=new Range(t,i);var s,a,n,o,p;switch(r){case">":s=gt;a=lte;n=lt;o=">";p=">=";break;case"<":s=lt;a=gte;n=gt;o="<";p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var l=0;l=0.0.0")}d=d||e;u=u||e;if(s(e.semver,d.semver,i)){d=e}else if(n(e.semver,u.semver,i)){u=e}}));if(d.operator===o||d.operator===p){return false}if((!u.operator||u.operator===o)&&a(e,u.semver)){return false}else if(u.operator===p&&n(e,u.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(n[p.COERCE])}else{var i;while((i=n[p.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||i.index+i[0].length!==r.index+r[0].length){r=i}n[p.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}n[p.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},6385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t{const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}p("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(e){const t=this.options.loose?a[n.COMPARATORLOOSE]:a[n.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=i}else{this.semver=new l(r[2],this.options.loose)}}toString(){return this.value}test(e){p("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}return o(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new c(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new c(this.value,t).test(e.semver)}const r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const n=o(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const p=o(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||s&&a||n||p}}e.exports=Comparator;const s=r(102);const{re:a,t:n}=r(7159);const o=r(7741);const p=r(2527);const l=r(4055);const c=r(1581)},1581:(e,t,r)=>{class Range{constructor(e,t){t=a(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof n){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const i=s.get(r);if(i){return i}const a=this.options.loose;const p=a?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(p,hyphenReplace(this.options.includePrerelease));o("hyphen replace",e);e=e.replace(l[c.COMPARATORTRIM],d);o("comparator trim",e);e=e.replace(l[c.TILDETRIM],u);e=e.replace(l[c.CARETTRIM],h);e=e.split(/\s+/).join(" ");let g=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(a){g=g.filter((e=>{o("loose invalid filter",e,this.options);return!!e.match(l[c.COMPARATORLOOSE])}))}o("range list",g);const y=new Map;const v=g.map((e=>new n(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}y.set(e.value,e)}if(y.size>1&&y.has("")){y.delete("")}const b=[...y.values()];s.set(r,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new p(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const i=e.slice();let s=i.pop();while(r&&i.length){r=i.every((e=>s.intersects(e,t)));s=i.pop()}return r};const parseComparator=(e,t)=>{o("comp",e,t);e=replaceCarets(e,t);o("caret",e);e=replaceTildes(e,t);o("tildes",e);e=replaceXRanges(e,t);o("xrange",e);e=replaceStars(e,t);o("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(r,((t,r,i,s,a)=>{o("tilde",e,t,r,i,s,a);let n;if(isX(r)){n=""}else if(isX(i)){n=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){n=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`}else if(a){o("replaceTilde pr",a);n=`>=${r}.${i}.${s}-${a} <${r}.${+i+1}.0-0`}else{n=`>=${r}.${i}.${s} <${r}.${+i+1}.0-0`}o("tilde return",n);return n}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{o("caret",e,t);const r=t.loose?l[c.CARETLOOSE]:l[c.CARET];const i=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,a,n)=>{o("caret",e,t,r,s,a,n);let p;if(isX(r)){p=""}else if(isX(s)){p=`>=${r}.0.0${i} <${+r+1}.0.0-0`}else if(isX(a)){if(r==="0"){p=`>=${r}.${s}.0${i} <${r}.${+s+1}.0-0`}else{p=`>=${r}.${s}.0${i} <${+r+1}.0.0-0`}}else if(n){o("replaceCaret pr",n);if(r==="0"){if(s==="0"){p=`>=${r}.${s}.${a}-${n} <${r}.${s}.${+a+1}-0`}else{p=`>=${r}.${s}.${a}-${n} <${r}.${+s+1}.0-0`}}else{p=`>=${r}.${s}.${a}-${n} <${+r+1}.0.0-0`}}else{o("no pr");if(r==="0"){if(s==="0"){p=`>=${r}.${s}.${a}${i} <${r}.${s}.${+a+1}-0`}else{p=`>=${r}.${s}.${a}${i} <${r}.${+s+1}.0-0`}}else{p=`>=${r}.${s}.${a} <${+r+1}.0.0-0`}}o("caret return",p);return p}))};const replaceXRanges=(e,t)=>{o("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(r,((r,i,s,a,n,p)=>{o("xRange",e,r,i,s,a,n,p);const l=isX(s);const c=l||isX(a);const d=c||isX(n);const u=d;if(i==="="&&u){i=""}p=t.includePrerelease?"-0":"";if(l){if(i===">"||i==="<"){r="<0.0.0-0"}else{r="*"}}else if(i&&u){if(c){a=0}n=0;if(i===">"){i=">=";if(c){s=+s+1;a=0;n=0}else{a=+a+1;n=0}}else if(i==="<="){i="<";if(c){s=+s+1}else{a=+a+1}}if(i==="<"){p="-0"}r=`${i+s}.${a}.${n}${p}`}else if(c){r=`>=${s}.0.0${p} <${+s+1}.0.0-0`}else if(d){r=`>=${s}.${a}.0${p} <${s}.${+a+1}.0-0`}o("xRange return",r);return r}))};const replaceStars=(e,t)=>{o("replaceStars",e,t);return e.trim().replace(l[c.STAR],"")};const replaceGTE0=(e,t)=>{o("replaceGTE0",e,t);return e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")};const hyphenReplace=e=>(t,r,i,s,a,n,o,p,l,c,d,u,h)=>{if(isX(i)){r=""}else if(isX(s)){r=`>=${i}.0.0${e?"-0":""}`}else if(isX(a)){r=`>=${i}.${s}.0${e?"-0":""}`}else if(n){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(l)){p=""}else if(isX(c)){p=`<${+l+1}.0.0-0`}else if(isX(d)){p=`<${l}.${+c+1}.0-0`}else if(u){p=`<=${l}.${c}.${d}-${u}`}else if(e){p=`<${l}.${c}.${+d+1}-0`}else{p=`<=${p}`}return`${r} ${p}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},4055:(e,t,r)=>{const i=r(2527);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:a}=r(6818);const{re:n,t:o}=r(7159);const p=r(102);const{compareIdentifiers:l}=r(2671);class SemVer{constructor(e,t){t=p(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?n[o.LOOSE]:n[o.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(l(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},231:(e,t,r)=>{const i=r(1976);const clean=(e,t)=>{const r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},7741:(e,t,r)=>{const i=r(8166);const s=r(8880);const a=r(4085);const n=r(6354);const o=r(7775);const p=r(9362);const cmp=(e,t,r,l)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return i(e,r,l);case"!=":return s(e,r,l);case">":return a(e,r,l);case">=":return n(e,r,l);case"<":return o(e,r,l);case"<=":return p(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},382:(e,t,r)=>{const i=r(4055);const s=r(1976);const{re:a,t:n}=r(7159);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(a[n.COERCE])}else{let t;while((t=a[n.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}a[n.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}a[n.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},621:(e,t,r)=>{const i=r(4055);const compareBuild=(e,t,r)=>{const s=new i(e,r);const a=new i(t,r);return s.compare(a)||s.compareBuild(a)};e.exports=compareBuild},1125:(e,t,r)=>{const i=r(4640);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},4640:(e,t,r)=>{const i=r(4055);const compare=(e,t,r)=>new i(e,r).compare(new i(t,r));e.exports=compare},1441:(e,t,r)=>{const i=r(1976);const s=r(8166);const diff=(e,t)=>{if(s(e,t)){return null}else{const r=i(e);const s=i(t);const a=r.prerelease.length||s.prerelease.length;const n=a?"pre":"";const o=a?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==s[e]){return n+e}}}return o}};e.exports=diff},8166:(e,t,r)=>{const i=r(4640);const eq=(e,t,r)=>i(e,t,r)===0;e.exports=eq},4085:(e,t,r)=>{const i=r(4640);const gt=(e,t,r)=>i(e,t,r)>0;e.exports=gt},6354:(e,t,r)=>{const i=r(4640);const gte=(e,t,r)=>i(e,t,r)>=0;e.exports=gte},5045:(e,t,r)=>{const i=r(4055);const inc=(e,t,r,s)=>{if(typeof r==="string"){s=r;r=undefined}try{return new i(e instanceof i?e.version:e,r).inc(t,s).version}catch(e){return null}};e.exports=inc},7775:(e,t,r)=>{const i=r(4640);const lt=(e,t,r)=>i(e,t,r)<0;e.exports=lt},9362:(e,t,r)=>{const i=r(4640);const lte=(e,t,r)=>i(e,t,r)<=0;e.exports=lte},7176:(e,t,r)=>{const i=r(4055);const major=(e,t)=>new i(e,t).major;e.exports=major},5535:(e,t,r)=>{const i=r(4055);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},8880:(e,t,r)=>{const i=r(4640);const neq=(e,t,r)=>i(e,t,r)!==0;e.exports=neq},1976:(e,t,r)=>{const{MAX_LENGTH:i}=r(6818);const{re:s,t:a}=r(7159);const n=r(4055);const o=r(102);const parse=(e,t)=>{t=o(t);if(e instanceof n){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}const r=t.loose?s[a.LOOSE]:s[a.FULL];if(!r.test(e)){return null}try{return new n(e,t)}catch(e){return null}};e.exports=parse},2376:(e,t,r)=>{const i=r(4055);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},5109:(e,t,r)=>{const i=r(1976);const prerelease=(e,t)=>{const r=i(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},9126:(e,t,r)=>{const i=r(4640);const rcompare=(e,t,r)=>i(t,e,r);e.exports=rcompare},5020:(e,t,r)=>{const i=r(621);const rsort=(e,t)=>e.sort(((e,r)=>i(r,e,t)));e.exports=rsort},3794:(e,t,r)=>{const i=r(1581);const satisfies=(e,t,r)=>{try{t=new i(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},1378:(e,t,r)=>{const i=r(621);const sort=(e,t)=>e.sort(((e,r)=>i(e,r,t)));e.exports=sort},923:(e,t,r)=>{const i=r(1976);const valid=(e,t)=>{const r=i(e,t);return r?r.version:null};e.exports=valid},6581:(e,t,r)=>{const i=r(7159);const s=r(6818);const a=r(4055);const n=r(2671);const o=r(1976);const p=r(923);const l=r(231);const c=r(5045);const d=r(1441);const u=r(7176);const h=r(5535);const g=r(2376);const y=r(5109);const v=r(4640);const b=r(9126);const x=r(1125);const w=r(621);const S=r(1378);const E=r(5020);const T=r(4085);const N=r(7775);const _=r(8166);const P=r(8880);const C=r(6354);const O=r(9362);const R=r(7741);const A=r(382);const D=r(7557);const I=r(1581);const k=r(3794);const L=r(1856);const M=r(6520);const B=r(2580);const j=r(4938);const z=r(7416);const q=r(298);const U=r(3463);const G=r(3752);const H=r(9861);const V=r(9561);const $=r(8502);e.exports={parse:o,valid:p,clean:l,inc:c,diff:d,major:u,minor:h,patch:g,prerelease:y,compare:v,rcompare:b,compareLoose:x,compareBuild:w,sort:S,rsort:E,gt:T,lt:N,eq:_,neq:P,gte:C,lte:O,cmp:R,coerce:A,Comparator:D,Range:I,satisfies:k,toComparators:L,maxSatisfying:M,minSatisfying:B,minVersion:j,validRange:z,outside:q,gtr:U,ltr:G,intersects:H,simplifyRange:V,subset:$,SemVer:a,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers}},6818:e=>{const t="2.0.0";const r=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:s}},2527:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2671:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const i=t.test(e);const s=t.test(r);if(i&&s){e=+e;r=+r}return e===r?0:i&&!s?-1:s&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},102:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},7159:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=r(6818);const s=r(2527);t=e.exports={};const a=t.re=[];const n=t.src=[];const o=t.t={};let p=0;const createToken=(e,t,r)=>{const i=p++;s(e,i,t);o[e]=i;n[i]=t;a[i]=new RegExp(t,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${n[o.NUMERICIDENTIFIER]})\\.`+`(${n[o.NUMERICIDENTIFIER]})\\.`+`(${n[o.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${n[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${n[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${n[o.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${n[o.NUMERICIDENTIFIER]}|${n[o.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${n[o.NUMERICIDENTIFIERLOOSE]}|${n[o.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${n[o.PRERELEASEIDENTIFIER]}(?:\\.${n[o.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${n[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[o.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${n[o.BUILDIDENTIFIER]}(?:\\.${n[o.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${n[o.MAINVERSION]}${n[o.PRERELEASE]}?${n[o.BUILD]}?`);createToken("FULL",`^${n[o.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${n[o.MAINVERSIONLOOSE]}${n[o.PRERELEASELOOSE]}?${n[o.BUILD]}?`);createToken("LOOSE",`^${n[o.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${n[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${n[o.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${n[o.XRANGEIDENTIFIER]})`+`(?:\\.(${n[o.XRANGEIDENTIFIER]})`+`(?:\\.(${n[o.XRANGEIDENTIFIER]})`+`(?:${n[o.PRERELEASE]})?${n[o.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${n[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})`+`(?:${n[o.PRERELEASELOOSE]})?${n[o.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${n[o.GTLT]}\\s*${n[o.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${n[o.GTLT]}\\s*${n[o.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",n[o.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${n[o.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${n[o.LONETILDE]}${n[o.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${n[o.LONETILDE]}${n[o.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${n[o.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${n[o.LONECARET]}${n[o.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${n[o.LONECARET]}${n[o.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${n[o.GTLT]}\\s*(${n[o.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]}|${n[o.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${n[o.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${n[o.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${n[o.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${n[o.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},3463:(e,t,r)=>{const i=r(298);const gtr=(e,t,r)=>i(e,t,">",r);e.exports=gtr},9861:(e,t,r)=>{const i=r(1581);const intersects=(e,t,r)=>{e=new i(e,r);t=new i(t,r);return e.intersects(t)};e.exports=intersects},3752:(e,t,r)=>{const i=r(298);const ltr=(e,t,r)=>i(e,t,"<",r);e.exports=ltr},6520:(e,t,r)=>{const i=r(4055);const s=r(1581);const maxSatisfying=(e,t,r)=>{let a=null;let n=null;let o=null;try{o=new s(t,r)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!a||n.compare(e)===-1){a=e;n=new i(a,r)}}}));return a};e.exports=maxSatisfying},2580:(e,t,r)=>{const i=r(4055);const s=r(1581);const minSatisfying=(e,t,r)=>{let a=null;let n=null;let o=null;try{o=new s(t,r)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!a||n.compare(e)===1){a=e;n=new i(a,r)}}}));return a};e.exports=minSatisfying},4938:(e,t,r)=>{const i=r(4055);const s=r(1581);const a=r(4085);const minVersion=(e,t)=>{e=new s(e,t);let r=new i("0.0.0");if(e.test(r)){return r}r=new i("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||a(t,n)){n=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(n&&(!r||a(r,n))){r=n}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},298:(e,t,r)=>{const i=r(4055);const s=r(7557);const{ANY:a}=s;const n=r(1581);const o=r(3794);const p=r(4085);const l=r(7775);const c=r(9362);const d=r(6354);const outside=(e,t,r,u)=>{e=new i(e,u);t=new n(t,u);let h,g,y,v,b;switch(r){case">":h=p;g=c;y=l;v=">";b=">=";break;case"<":h=l;g=d;y=p;v="<";b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,u)){return false}for(let r=0;r{if(e.semver===a){e=new s(">=0.0.0")}n=n||e;o=o||e;if(h(e.semver,n.semver,u)){n=e}else if(y(e.semver,o.semver,u)){o=e}}));if(n.operator===v||n.operator===b){return false}if((!o.operator||o.operator===v)&&g(e,o.semver)){return false}else if(o.operator===b&&y(e,o.semver)){return false}}return true};e.exports=outside},9561:(e,t,r)=>{const i=r(3794);const s=r(4640);e.exports=(e,t,r)=>{const a=[];let n=null;let o=null;const p=e.sort(((e,t)=>s(e,t,r)));for(const e of p){const s=i(e,t,r);if(s){o=e;if(!n){n=e}}else{if(o){a.push([n,o])}o=null;n=null}}if(n){a.push([n,null])}const l=[];for(const[e,t]of a){if(e===t){l.push(e)}else if(!t&&e===p[0]){l.push("*")}else if(!t){l.push(`>=${e}`)}else if(e===p[0]){l.push(`<=${t}`)}else{l.push(`${e} - ${t}`)}}const c=l.join(" || ");const d=typeof t.raw==="string"?t.raw:String(t);return c.length{const i=r(1581);const s=r(7557);const{ANY:a}=s;const n=r(3794);const o=r(4640);const subset=(e,t,r={})=>{if(e===t){return true}e=new i(e,r);t=new i(t,r);let s=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a){return true}else if(r.includePrerelease){e=[new s(">=0.0.0-0")]}else{e=[new s(">=0.0.0")]}}if(t.length===1&&t[0].semver===a){if(r.includePrerelease){return true}else{t=[new s(">=0.0.0")]}}const i=new Set;let p,l;for(const t of e){if(t.operator===">"||t.operator===">="){p=higherGT(p,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{i.add(t.semver)}}if(i.size>1){return null}let c;if(p&&l){c=o(p.semver,l.semver,r);if(c>0){return null}else if(c===0&&(p.operator!==">="||l.operator!=="<=")){return null}}for(const e of i){if(p&&!n(e,String(p),r)){return null}if(l&&!n(e,String(l),r)){return null}for(const i of t){if(!n(e,String(i),r)){return false}}return true}let d,u;let h,g;let y=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let v=p&&!r.includePrerelease&&p.semver.prerelease.length?p.semver:false;if(y&&y.prerelease.length===1&&l.operator==="<"&&y.prerelease[0]===0){y=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";h=h||e.operator==="<"||e.operator==="<=";if(p){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator===">"||e.operator===">="){d=higherGT(p,e,r);if(d===e&&d!==p){return false}}else if(p.operator===">="&&!n(p.semver,String(e),r)){return false}}if(l){if(y){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch){y=false}}if(e.operator==="<"||e.operator==="<="){u=lowerLT(l,e,r);if(u===e&&u!==l){return false}}else if(l.operator==="<="&&!n(l.semver,String(e),r)){return false}}if(!e.operator&&(l||p)&&c!==0){return false}}if(p&&h&&!l&&c!==0){return false}if(l&&g&&!p&&c!==0){return false}if(v||y){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const i=o(e.semver,t.semver,r);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const i=o(e.semver,t.semver,r);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},1856:(e,t,r)=>{const i=r(1581);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},7416:(e,t,r)=>{const i=r(1581);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},2096:(e,t,r)=>{var i=r(7401);var s=r(1573);var a=s;a.v1=i;a.v4=s;e.exports=a},7370:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var s=t;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}e.exports=bytesToUuid},2385:(e,t,r)=>{var i=r(6113);e.exports=function nodeRNG(){return i.randomBytes(16)}},7401:(e,t,r)=>{var i=r(2385);var s=r(7370);var a;var n;var o=0;var p=0;function v1(e,t,r){var l=t&&r||0;var c=t||[];e=e||{};var d=e.node||a;var u=e.clockseq!==undefined?e.clockseq:n;if(d==null||u==null){var h=i();if(d==null){d=a=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]}if(u==null){u=n=(h[6]<<8|h[7])&16383}}var g=e.msecs!==undefined?e.msecs:(new Date).getTime();var y=e.nsecs!==undefined?e.nsecs:p+1;var v=g-o+(y-p)/1e4;if(v<0&&e.clockseq===undefined){u=u+1&16383}if((v<0||g>o)&&e.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=g;p=y;n=u;g+=122192928e5;var b=((g&268435455)*1e4+y)%4294967296;c[l++]=b>>>24&255;c[l++]=b>>>16&255;c[l++]=b>>>8&255;c[l++]=b&255;var x=g/4294967296*1e4&268435455;c[l++]=x>>>8&255;c[l++]=x&255;c[l++]=x>>>24&15|16;c[l++]=x>>>16&255;c[l++]=u>>>8|128;c[l++]=u&255;for(var w=0;w<6;++w){c[l+w]=d[w]}return t?t:s(c)}e.exports=v1},1573:(e,t,r)=>{var i=r(2385);var s=r(7370);function v4(e,t,r){var a=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var n=e.random||(e.rng||i)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){for(var o=0;o<16;++o){t[a+o]=n[o]}}return t||s(n)}e.exports=v4},7799:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const o=a(r(2186));const p=a(r(1017));const l=a(r(1518));const c=a(r(8245));const d=r(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,r,i,s=false){return n(this,void 0,void 0,(function*(){checkPaths(e);r=r||[];const a=[t,...r];o.debug("Resolved Keys:");o.debug(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}const n=yield l.getCompressionMethod();let u="";try{const t=yield c.getCacheEntry(a,e,{compressionMethod:n,enableCrossOsArchive:s});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(i===null||i===void 0?void 0:i.lookupOnly){o.info("Lookup only - skipping download");return t.cacheKey}u=p.join(yield l.createTempDirectory(),l.getCacheFileName(n));o.debug(`Archive Path: ${u}`);yield c.downloadCache(t.archiveLocation,u,i);if(o.isDebug()){yield(0,d.listTar)(u,n)}const r=l.getArchiveFileSizeInBytes(u);o.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield(0,d.extractTar)(u,n);o.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{o.warning(`Failed to restore: ${e.message}`)}}finally{try{yield l.unlinkFile(u)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return undefined}))}t.restoreCache=restoreCache;function saveCache(e,t,r,i=false){var s,a,u,h,g;return n(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const n=yield l.getCompressionMethod();let y=-1;const v=yield l.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(v)}`);if(v.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const b=yield l.createTempDirectory();const x=p.join(b,l.getCacheFileName(n));o.debug(`Archive Path: ${x}`);try{yield(0,d.createTar)(b,v,n);if(o.isDebug()){yield(0,d.listTar)(x,n)}const p=10*1024*1024*1024;const w=l.getArchiveFileSizeInBytes(x);o.debug(`File Size: ${w}`);if(w>p&&!l.isGhes()){throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`)}o.debug("Reserving Cache");const S=yield c.reserveCache(t,e,{compressionMethod:n,enableCrossOsArchive:i,cacheSize:w});if((s=S===null||S===void 0?void 0:S.result)===null||s===void 0?void 0:s.cacheId){y=(a=S===null||S===void 0?void 0:S.result)===null||a===void 0?void 0:a.cacheId}else if((S===null||S===void 0?void 0:S.statusCode)===400){throw new Error((h=(u=S===null||S===void 0?void 0:S.error)===null||u===void 0?void 0:u.message)!==null&&h!==void 0?h:`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(g=S===null||S===void 0?void 0:S.error)===null||g===void 0?void 0:g.message}`)}o.debug(`Saving Cache (ID: ${y})`);yield c.saveCache(y,x,r)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){o.info(`Failed to save: ${t.message}`)}else{o.warning(`Failed to save: ${t.message}`)}}finally{try{yield l.unlinkFile(x)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return y}))}t.saveCache=saveCache},8245:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.reserveCache=t.downloadCache=t.getCacheEntry=t.getCacheVersion=void 0;const o=a(r(2186));const p=r(6255);const l=r(5526);const c=a(r(6113));const d=a(r(7147));const u=r(7310);const h=a(r(1518));const g=r(5500);const y=r(6215);const v=r(3981);const b="1.0";function getCacheApiUrl(e){const t=process.env["ACTIONS_CACHE_URL"]||"";if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;o.debug(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new l.BearerCredentialHandler(e);return new p.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t,r=false){const i=e;if(t){i.push(t)}if(process.platform==="win32"&&!r){i.push("windows-only")}i.push(b);return c.createHash("sha256").update(i.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,r){return n(this,void 0,void 0,(function*(){const i=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const a=`cache?keys=${encodeURIComponent(e.join(","))}&version=${s}`;const p=yield(0,v.retryTypedResponse)("getCacheEntry",(()=>n(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(a))}))));if(p.statusCode===204){if(o.isDebug()){yield printCachesListForDiagnostics(e[0],i,s)}return null}if(!(0,v.isSuccessStatusCode)(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const c=l===null||l===void 0?void 0:l.archiveLocation;if(!c){throw new Error("Cache not found.")}o.setSecret(c);o.debug(`Cache Result:`);o.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,r){return n(this,void 0,void 0,(function*(){const i=`caches?key=${encodeURIComponent(e)}`;const s=yield(0,v.retryTypedResponse)("listCache",(()=>n(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(i))}))));if(s.statusCode===200){const t=s.result;const i=t===null||t===void 0?void 0:t.totalCount;if(i&&i>0){o.debug(`No matching cache found for cache key '${e}', version '${r} 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(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){o.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,r){return n(this,void 0,void 0,(function*(){const i=new u.URL(e);const s=(0,y.getDownloadOptions)(r);if(s.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield(0,g.downloadCacheStorageSDK)(e,t,s)}else{yield(0,g.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,r){return n(this,void 0,void 0,(function*(){const i=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const a={key:e,version:s,cacheSize:r===null||r===void 0?void 0:r.cacheSize};const o=yield(0,v.retryTypedResponse)("reserveCache",(()=>n(this,void 0,void 0,(function*(){return i.postJson(getCacheApiUrl("caches"),a)}))));return o}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,i,s){return n(this,void 0,void 0,(function*(){o.debug(`Uploading chunk of size ${s-i+1} bytes at offset ${i} with content range: ${getContentRange(i,s)}`);const a={"Content-Type":"application/octet-stream","Content-Range":getContentRange(i,s)};const p=yield(0,v.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${s})`,(()=>n(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),a)}))));if(!(0,v.isSuccessStatusCode)(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,i){return n(this,void 0,void 0,(function*(){const s=h.getArchiveFileSizeInBytes(r);const a=getCacheApiUrl(`caches/${t.toString()}`);const p=d.openSync(r,"r");const l=(0,y.getUploadOptions)(i);const c=h.assertDefined("uploadConcurrency",l.uploadConcurrency);const u=h.assertDefined("uploadChunkSize",l.uploadChunkSize);const g=[...new Array(c).keys()];o.debug("Awaiting all uploads");let v=0;try{yield Promise.all(g.map((()=>n(this,void 0,void 0,(function*(){while(vd.createReadStream(r,{fd:p,start:i,end:n,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,n)}})))))}finally{d.closeSync(p)}return}))}function commitCache(e,t,r){return n(this,void 0,void 0,(function*(){const i={size:r};return yield(0,v.retryTypedResponse)("commitCache",(()=>n(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),i)}))))}))}function saveCache(e,t,r){return n(this,void 0,void 0,(function*(){const i=createHttpClient();o.debug("Upload cache");yield uploadFile(i,e,t,r);o.debug("Commiting cache");const s=h.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const a=yield commitCache(i,e,s);if(!(0,v.isSuccessStatusCode)(a.statusCode)){throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`)}o.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.isGhes=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const p=a(r(2186));const l=a(r(1514));const c=a(r(8090));const d=a(r(7436));const u=a(r(7147));const h=a(r(1017));const g=a(r(5911));const y=a(r(3837));const v=r(4138);const b=r(8840);function createTempDirectory(){return n(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=h.join(r,"actions","temp")}const r=h.join(t,(0,v.v4)());yield d.mkdirP(r);return r}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return u.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,r;var i;return n(this,void 0,void 0,(function*(){const s=[];const a=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const n=yield c.create(e.join("\n"),{implicitDescendants:false});try{for(var l=o(n.globGenerator()),d;d=yield l.next(),!d.done;){const e=d.value;const t=h.relative(a,e).replace(new RegExp(`\\${h.sep}`,"g"),"/");p.debug(`Matched: ${t}`);if(t===""){s.push(".")}else{s.push(`${t}`)}}}catch(e){t={error:e}}finally{try{if(d&&!d.done&&(r=l.return))yield r.call(l)}finally{if(t)throw t.error}}return s}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return n(this,void 0,void 0,(function*(){return y.promisify(u.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return n(this,void 0,void 0,(function*(){let r="";t.push("--version");p.debug(`Checking ${e} ${t.join(" ")}`);try{yield l.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}})}catch(e){p.debug(e.message)}r=r.trim();p.debug(r);return r}))}function getCompressionMethod(){return n(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=g.clean(e);p.debug(`zstd version: ${t}`);if(e===""){return b.CompressionMethod.Gzip}else{return b.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===b.CompressionMethod.Gzip?b.CacheFilename.Gzip:b.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return n(this,void 0,void 0,(function*(){if(u.existsSync(b.GnuTarPathOnWindows)){return b.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?d.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");return e.hostname.toUpperCase()!=="GITHUB.COM"}t.isGhes=isGhes},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var r;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(r=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));var s;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(s=t.ArchiveToolType||(t.ArchiveToolType={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt"},5500:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const o=a(r(2186));const p=r(6255);const l=r(4100);const c=a(r(4300));const d=a(r(7147));const u=a(r(2781));const h=a(r(3837));const g=a(r(1518));const y=r(8840);const v=r(3981);const b=r(2557);function pipeResponseToStream(e,t){return n(this,void 0,void 0,(function*(){const r=h.promisify(u.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;o.debug(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const i=(e/(1024*1024)/(r/1e3)).toFixed(1);o.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return n(this,void 0,void 0,(function*(){const r=d.createWriteStream(t);const i=new p.HttpClient("actions/cache");const s=yield(0,v.retryHttpClientResponse)("downloadCache",(()=>n(this,void 0,void 0,(function*(){return i.get(e)}))));s.message.socket.setTimeout(y.SocketTimeout,(()=>{s.message.destroy();o.debug(`Aborting download, socket timed out after ${y.SocketTimeout} ms`)}));yield pipeResponseToStream(s,r);const a=s.message.headers["content-length"];if(a){const e=parseInt(a);const r=g.getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{o.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,r){var i;return n(this,void 0,void 0,(function*(){const s=new l.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const a=yield s.getProperties();const n=(i=a.contentLength)!==null&&i!==void 0?i:-1;if(n<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,c.constants.MAX_LENGTH);const i=new DownloadProgress(n);const a=d.openSync(t,"w");try{i.startDisplayTimer();const t=new b.AbortController;const o=t.signal;while(!i.isDone()){const p=i.segmentOffset+i.segmentSize;const l=Math.min(e,n-p);i.nextSegment(l);const c=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(p,l,{abortSignal:o,concurrency:r.downloadConcurrency,onProgress:i.onProgress()}));if(c==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(c)){d.writeFileSync(a,c)}}}finally{i.stopDisplayTimer();d.closeSync(a)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>n(void 0,void 0,void 0,(function*(){let r;const i=new Promise((t=>{r=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,i]).then((e=>{clearTimeout(r);return e}))}))},3981:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const o=a(r(2186));const p=r(6255);const l=r(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[p.HttpCodes.BadGateway,p.HttpCodes.ServiceUnavailable,p.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return n(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r,i=l.DefaultRetryAttempts,s=l.DefaultRetryDelay,a=undefined){return n(this,void 0,void 0,(function*(){let n="";let p=1;while(p<=i){let l=undefined;let c=undefined;let d=false;try{l=yield t()}catch(e){if(a){l=a(e)}d=true;n=e.message}if(l){c=r(l);if(!isServerErrorStatusCode(c)){return l}}if(c){d=isRetryableStatusCode(c);n=`Cache service responded with ${c}`}o.debug(`${e} - Attempt ${p} of ${i} failed with error: ${n}`);if(!d){o.debug(`${e} - Error is not retryable`);break}yield sleep(s);p++}throw Error(`${e} failed: ${n}`)}))}t.retry=retry;function retryTypedResponse(e,t,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay){return n(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),r,i,(e=>{if(e instanceof p.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay){return n(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),r,i)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const o=r(1514);const p=a(r(7436));const l=r(7147);const c=a(r(1017));const d=a(r(1518));const u=r(8840);const h=process.platform==="win32";function getTarPath(){return n(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield d.getGnuTarPathOnWindows();const t=u.SystemTarPathOnWindows;if(e){return{path:e,type:u.ArchiveToolType.GNU}}else if((0,l.existsSync)(t)){return{path:t,type:u.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:u.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:u.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:u.ArchiveToolType.GNU}}))}function getTarArgs(e,t,r,i=""){return n(this,void 0,void 0,(function*(){const s=[`"${e.path}"`];const a=d.getCacheFileName(t);const n="cache.tar";const o=getWorkingDirectory();const p=e.type===u.ArchiveToolType.BSD&&t!==u.CompressionMethod.Gzip&&h;switch(r){case"create":s.push("--posix","-cf",p?n:a.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"--exclude",p?n:a.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"--files-from",u.ManifestFilename);break;case"extract":s.push("-xf",p?n:i.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${c.sep}`,"g"),"/"));break;case"list":s.push("-tf",p?n:i.replace(new RegExp(`\\${c.sep}`,"g"),"/"),"-P");break}if(e.type===u.ArchiveToolType.GNU){switch(process.platform){case"win32":s.push("--force-local");break;case"darwin":s.push("--delay-directory-restore");break}}return s}))}function getCommands(e,t,r=""){return n(this,void 0,void 0,(function*(){let i;const s=yield getTarPath();const a=yield getTarArgs(s,e,t,r);const n=t!=="create"?yield getDecompressionProgram(s,e,r):yield getCompressionProgram(s,e);const o=s.type===u.ArchiveToolType.BSD&&e!==u.CompressionMethod.Gzip&&h;if(o&&t!=="create"){i=[[...n].join(" "),[...a].join(" ")]}else{i=[[...a].join(" "),[...n].join(" ")]}if(o){return i}return[i.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,r){return n(this,void 0,void 0,(function*(){const i=e.type===u.ArchiveToolType.BSD&&t!==u.CompressionMethod.Gzip&&h;switch(t){case u.CompressionMethod.Zstd:return i?["zstd -d --long=30 --force -o",u.TarFilename,r.replace(new RegExp(`\\${c.sep}`,"g"),"/")]:["--use-compress-program",h?'"zstd -d --long=30"':"unzstd --long=30"];case u.CompressionMethod.ZstdWithoutLong:return i?["zstd -d --force -o",u.TarFilename,r.replace(new RegExp(`\\${c.sep}`,"g"),"/")]:["--use-compress-program",h?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return n(this,void 0,void 0,(function*(){const r=d.getCacheFileName(t);const i=e.type===u.ArchiveToolType.BSD&&t!==u.CompressionMethod.Gzip&&h;switch(t){case u.CompressionMethod.Zstd:return i?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${c.sep}`,"g"),"/"),u.TarFilename]:["--use-compress-program",h?'"zstd -T0 --long=30"':"zstdmt --long=30"];case u.CompressionMethod.ZstdWithoutLong:return i?["zstd -T0 --force -o",r.replace(new RegExp(`\\${c.sep}`,"g"),"/"),u.TarFilename]:["--use-compress-program",h?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return n(this,void 0,void 0,(function*(){for(const r of e){try{yield(0,o.exec)(r,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${r.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return n(this,void 0,void 0,(function*(){const r=yield getCommands(t,"list",e);yield execCommands(r)}))}t.listTar=listTar;function extractTar(e,t){return n(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield p.mkdirP(r);const i=yield getCommands(t,"extract",e);yield execCommands(i)}))}t.extractTar=extractTar;function createTar(e,t,r){return n(this,void 0,void 0,(function*(){(0,l.writeFileSync)(c.join(e,u.ManifestFilename),t.join("\n"));const i=yield getCommands(r,"create");yield execCommands(i,e)}))}t.createTar=createTar},6215:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const n=a(r(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}n.debug(`Upload concurrency: ${t.uploadConcurrency}`);n.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const r=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(r&&!isNaN(Number(r))&&isFinite(Number(r))){t.segmentTimeoutInMs=Number(r)*60*1e3}n.debug(`Use Azure SDK: ${t.useAzureSdk}`);n.debug(`Download concurrency: ${t.downloadConcurrency}`);n.debug(`Request timeout (ms): ${t.timeoutInMs}`);n.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);n.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);n.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},4138:(e,t,r)=>{var i=r(1610);var s=r(8373);var a=s;a.v1=i;a.v4=s;e.exports=a},5694:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var s=t;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}e.exports=bytesToUuid},4069:(e,t,r)=>{var i=r(6113);e.exports=function nodeRNG(){return i.randomBytes(16)}},1610:(e,t,r)=>{var i=r(4069);var s=r(5694);var a;var n;var o=0;var p=0;function v1(e,t,r){var l=t&&r||0;var c=t||[];e=e||{};var d=e.node||a;var u=e.clockseq!==undefined?e.clockseq:n;if(d==null||u==null){var h=i();if(d==null){d=a=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]}if(u==null){u=n=(h[6]<<8|h[7])&16383}}var g=e.msecs!==undefined?e.msecs:(new Date).getTime();var y=e.nsecs!==undefined?e.nsecs:p+1;var v=g-o+(y-p)/1e4;if(v<0&&e.clockseq===undefined){u=u+1&16383}if((v<0||g>o)&&e.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=g;p=y;n=u;g+=122192928e5;var b=((g&268435455)*1e4+y)%4294967296;c[l++]=b>>>24&255;c[l++]=b>>>16&255;c[l++]=b>>>8&255;c[l++]=b&255;var x=g/4294967296*1e4&268435455;c[l++]=x>>>8&255;c[l++]=x&255;c[l++]=x>>>24&15|16;c[l++]=x>>>16&255;c[l++]=u>>>8|128;c[l++]=u&255;for(var w=0;w<6;++w){c[l+w]=d[w]}return t?t:s(c)}e.exports=v1},8373:(e,t,r)=>{var i=r(4069);var s=r(5694);function v4(e,t,r){var a=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var n=e.random||(e.rng||i)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){for(var o=0;o<16;++o){t[a+o]=n[o]}}return t||s(n)}e.exports=v4},7351:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const n=a(r(2037));const o=r(5278);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=r(7351);const p=r(717);const l=r(5278);const c=a(r(2037));const d=a(r(1017));const u=r(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=l.toCommandValue(t);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){return p.issueFileCommand("ENV",p.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},r)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const i=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(i.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return p.issueFileCommand("OUTPUT",p.prepareKeyValueMessage(e,t))}process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return p.issueFileCommand("STATE",p.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return n(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var y=r(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return y.markdownSummary}});var v=r(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},717:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const n=a(r(7147));const o=a(r(2037));const p=r(5840);const l=r(5278);function issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}n.appendFileSync(r,`${l.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${p.v4()}`;const i=l.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(i.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${o.EOL}${i}${o.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(6255);const a=r(5526);const n=r(2186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const i=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(t=i.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}n.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);n.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const n=a(r(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,n.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(2037);const a=r(7147);const{access:n,appendFile:o,writeFile:p}=a.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield n(e,a.constants.R_OK|a.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const i=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${i}>`}return`<${e}${i}>${t}`}write(e){return i(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const i=t?p:o;yield i(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,i);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:i,rowspan:s}=e;const a=t?"th":"td";const n=Object.assign(Object.assign({},i&&{colspan:i}),s&&{rowspan:s});return this.wrap(a,r,n)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:i,height:s}=r||{};const a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s});const n=this.wrap("img",null,Object.assign({src:e,alt:t},a));return this.addRaw(n).addEOL()}addHeading(e,t){const r=`h${t}`;const i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=r(1576);const p=a(r(8159));function exec(e,t,r){return n(this,void 0,void 0,(function*(){const i=p.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=i[0];t=i.slice(1).concat(t||[]);const a=new p.ToolRunner(s,t,r);return a.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var i,s;return n(this,void 0,void 0,(function*(){let a="";let n="";const p=new o.StringDecoder("utf8");const l=new o.StringDecoder("utf8");const c=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stdout;const d=(s=r===null||r===void 0?void 0:r.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{n+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{a+=p.write(e);if(c){c(e)}};const u=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:u}));a+=p.end();n+=l.end();return{exitCode:h,stdout:a,stderr:n}}))}t.getExecOutput=getExecOutput},8159:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=a(r(2037));const p=a(r(2361));const l=a(r(2081));const c=a(r(1017));const d=a(r(7436));const u=a(r(1962));const h=r(9512);const g=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let s=t?"":"[command]";if(g){if(this._isCmdFile()){s+=r;for(const e of i){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of i){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(r);for(const e of i){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=r;for(const e of i){s+=` ${e}`}}return s}_processLineBuffer(e,t,r){try{let i=t+e.toString();let s=i.indexOf(o.EOL);while(s>-1){const e=i.substring(0,s);r(e);i=i.substring(s+o.EOL.length);s=i.indexOf(o.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(g){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(g){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(t.some((e=>e===i))){r=true;break}}if(!r){return e}let i='"';let s=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(s&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){s=true;i+='"'}else{s=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(r&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,(function*(){if(!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>n(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+o.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield u.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const a=l.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let n="";if(a.stdout){a.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}n=this._processLineBuffer(e,n,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(a.stderr){a.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}a.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));a.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));a.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((r,i)=>{if(n.length>0){this.emit("stdline",n)}if(p.length>0){this.emit("errline",p)}a.removeAllListeners();if(r){t(r)}else{e(i)}}));if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let i=false;let s="";function append(e){if(i&&e!=='"'){s+="\\"}s+=e;i=false}for(let a=0;a0){t.push(s);s=""}continue}append(n)}if(s.length>0){t.push(s.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends p.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const 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()}}},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const i=r(7147);const s=r(2037);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},5438:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const n=a(r(4087));const o=r(3030);t.context=new n.Context;function getOctokit(e,t,...r){const i=o.GitHub.plugin(...r);return new i(o.getOctokitOptions(e,t))}t.getOctokit=getOctokit},7914:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=a(r(6255));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new n.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},3030:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const n=a(r(4087));const o=a(r(7914));const p=r(6762);const l=r(3044);const c=r(4193);t.context=new n.Context;const d=o.getApiBaseUrl();t.defaults={baseUrl:d,request:{agent:o.getProxyAgent(d)}};t.GitHub=p.Octokit.plugin(l.restEndpointMethods,c.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const i=o.getAuthString(e,r);if(i){r.auth=i}return r}t.getOctokitOptions=getOctokitOptions},8090:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const s=r(8298);function create(e,t){return i(this,void 0,void 0,(function*(){return yield s.DefaultGlobber.create(e,t)}))}t.create=create},1026:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const n=a(r(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;n.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;n.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;n.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},8298:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),s,a=[];return s={},verb("next"),verb("throw"),verb("return"),s[Symbol.asyncIterator]=function(){return this},s;function verb(e){if(i[e])s[e]=function(t){return new Promise((function(r,i){a.push([e,t,r,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const c=a(r(2186));const d=a(r(7147));const u=a(r(1026));const h=a(r(1017));const g=a(r(9005));const y=r(1063);const v=r(4536);const b=r(9117);const x=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=u.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return n(this,void 0,void 0,(function*(){const r=[];try{for(var i=o(this.globGenerator()),s;s=yield i.next(),!s.done;){const e=s.value;r.push(e)}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return r}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=u.getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new v.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of g.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield p(d.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new b.SearchState(e,1))}const i=[];while(r.length){const s=r.pop();const a=g.match(t,s.path);const n=!!a||g.partialMatch(t,s.path);if(!a&&!n){continue}const o=yield p(DefaultGlobber.stat(s,e,i));if(!o){continue}if(o.isDirectory()){if(a&y.MatchKind.Directory){yield yield p(s.path)}else if(!n){continue}const e=s.level+1;const t=(yield p(d.promises.readdir(s.path))).map((t=>new b.SearchState(h.join(s.path,t),e)));r.push(...t.reverse())}else if(a&y.MatchKind.File){yield yield p(s.path)}}}))}static create(e,t){return n(this,void 0,void 0,(function*(){const r=new DefaultGlobber(t);if(x){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new v.Pattern(e))}}r.searchPaths.push(...g.getSearchPaths(r.patterns));return r}))}static stat(e,t,r){return n(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield d.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{i=yield d.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield d.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},1063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=t.MatchKind||(t.MatchKind={}))},1849:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const o=a(r(1017));const p=n(r(9491));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=o.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(o.sep)){return e}if(e===o.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const o=a(r(1017));const p=a(r(1849));const l=n(r(9491));const c=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(o.sep)}else{let t=e;let r=p.dirname(t);while(r!==t){const e=o.basename(t);this.segments.unshift(e);t=r;r=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const r of e){const e=p?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let s=false;let a=e;let o=n.dirname(a);while(o!==a){if(t[o]){s=true;break}a=o;o=n.dirname(a)}if(!s){r.push(i.searchPath);t[e]="included"}}return r}t.getSearchPaths=getSearchPaths;function match(e,t){let r=o.MatchKind.None;for(const i of e){if(i.negate){r&=~i.match(t)}else{r|=i.match(t)}}return r}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},4536:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const o=a(r(2037));const p=a(r(1017));const l=a(r(1849));const c=n(r(9491));const d=r(3973);const u=r(1063);const h=r(6836);const g=process.platform==="win32";class Pattern{constructor(e,t=false,r,i){this.negate=false;let s;if(typeof e==="string"){s=e.trim()}else{r=r||[];c.default(r.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(r[0]);c.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);s=new h.Path(r).toString().trim();if(e){s=`!${s}`}}while(s.startsWith("!")){this.negate=!this.negate;s=s.substr(1).trim()}s=Pattern.fixupPattern(s,i);this.segments=new h.Path(s).segments;this.trailingSeparator=l.normalizeSeparators(s).endsWith(p.sep);s=l.safeTrimTrailingSeparator(s);let a=false;const n=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!a&&!(a=e==="")));this.searchPath=new h.Path(n).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(n[0]),g?"i":"");this.isImplicitPattern=t;const o={dot:true,nobrace:true,nocase:g,nocomment:true,noext:true,nonegate:true};s=g?s.replace(/\\/g,"/"):s;this.minimatch=new d.Minimatch(s,o)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?u.MatchKind.Directory:u.MatchKind.All}return u.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(g?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(g?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c.default(e,"pattern cannot be empty");const r=new h.Path(e).segments.map((e=>Pattern.getLiteral(e)));c.default(r.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c.default(!l.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||o.homedir();c.default(t,"Unable to determine HOME directory");c.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(g&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(g&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(i.length>1){return""}if(i){t+=i;r=s;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},5526:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=a(r(3685));const p=a(r(5687));const l=a(r(9835));const c=a(r(4294));var d;(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"})(d=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var h;(function(e){e["ApplicationJson"]="application/json"})(h=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=l.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const g=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const y=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const v=["OPTIONS","GET","DELETE","HEAD"];const b=10;const x=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return n(this,void 0,void 0,(function*(){return new Promise((e=>n(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())}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return n(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return n(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return n(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return n(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,i){return n(this,void 0,void 0,(function*(){return this.request(e,t,r,i)}))}getJson(e,t={}){return n(this,void 0,void 0,(function*(){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,h.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,h.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,h.ApplicationJson);const s=yield this.post(e,i,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,h.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,h.ApplicationJson);const s=yield this.put(e,i,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,h.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,h.ApplicationJson);const s=yield this.patch(e,i,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,i){return n(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let a=this._prepareRequest(e,s,i);const n=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let o=0;let p;do{p=yield this.requestRaw(a,r);if(p&&p.message&&p.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(p)){e=t;break}}if(e){return e.handleAuthentication(this,a,r)}else{return p}}let t=this._maxRedirects;while(p.message.statusCode&&g.includes(p.message.statusCode)&&this._allowRedirects&&t>0){const n=p.message.headers["location"];if(!n){break}const o=new URL(n);if(s.protocol==="https:"&&s.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield p.readBody();if(o.hostname!==s.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}a=this._prepareRequest(e,o,i);p=yield this.requestRaw(a,r);t--}if(!p.message.statusCode||!y.includes(p.message.statusCode)){return p}o+=1;if(o{function callbackForResult(e,t){if(e){i(e)}else if(!t){i(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;function handleResult(e,t){if(!i){i=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let a;s.on("socket",(e=>{a=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(a){a.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?p:o;const a=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;const r=l.getProxyUrl(e);const i=r&&r.hostname;if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(t){return t}const s=e.protocol==="https:";let a=100;if(this.requestOptions){a=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let i;const n=r.protocol==="https:";if(s){i=n?c.httpsOverHttps:c.httpsOverHttp}else{i=n?c.httpOverHttps:c.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=s?new p.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=s?p.globalAgent:o.globalAgent}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return n(this,void 0,void 0,(function*(){e=Math.min(b,e);const t=x*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,i)=>n(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const a={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(a)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let n;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){n=JSON.parse(o,dateTimeDeserializer)}else{n=JSON.parse(o)}a.result=n}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(n&&n.message){e=n.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=a.result;i(t)}else{r(a)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){return new URL(r)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=a(r(7147));const l=a(r(1017));o=p.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return n(this,void 0,void 0,(function*(){const i=r?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const s=e;for(const a of r){e=s+a;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const r=l.dirname(e);const i=l.basename(e).toUpperCase();for(const s of yield t.readdir(r)){if(i===s.toUpperCase()){e=l.join(r,s);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=r(9491);const p=a(r(2081));const l=a(r(1017));const c=r(3837);const d=a(r(1962));const u=c.promisify(p.exec);const h=c.promisify(p.execFile);function cp(e,t,r={}){return n(this,void 0,void 0,(function*(){const{force:i,recursive:s,copySourceDirectory:a}=readCopyOptions(r);const n=(yield d.exists(t))?yield d.stat(t):null;if(n&&n.isFile()&&!i){return}const o=n&&n.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield d.stat(e);if(p.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,i)}}else{if(l.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,i)}}))}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,(function*(){if(yield d.exists(t)){let i=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));i=yield d.exists(t)}if(i){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield u(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield h(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`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.`)}else{throw new Error(`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}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(l.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){r.push(e)}}}const i=[];for(const s of r){const r=yield d.tryGetExecutablePath(l.join(s,e),t);if(r){i.push(r)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:i}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield d.readdir(e);for(const a of s){const s=`${e}/${a}`;const n=`${t}/${a}`;const o=yield d.lstat(s);if(o.isDirectory()){yield cpDirRecursive(s,n,r,i)}else{yield copyFile(s,n,i)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return n(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},2473:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=a(r(5911));const p=r(2186);const l=r(2037);const c=r(2081);const d=r(7147);function _findMatch(t,r,i,s){return n(this,void 0,void 0,(function*(){const a=l.platform();let n;let c;let d;for(const n of i){const i=n.version;p.debug(`check ${i} satisfies ${t}`);if(o.satisfies(i,t)&&(!r||n.stable===r)){d=n.files.find((t=>{p.debug(`${t.arch}===${s} && ${t.platform}===${a}`);let r=t.arch===s&&t.platform===a;if(r&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){r=true}else{r=o.satisfies(i,t.platform_version)}}return r}));if(d){p.debug(`matched ${n.version}`);c=n;break}}}if(c&&d){n=Object.assign({},c);n.files=[d]}return n}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let r="";if(d.existsSync(e)){r=d.readFileSync(e).toString()}else if(d.existsSync(t)){r=d.readFileSync(t).toString()}return r}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=a(r(2186));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,(function*(){let r=1;while(rsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},7784:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(t,e,r);s(t,e);return t};var n=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const p=a(r(2186));const l=a(r(7436));const c=a(r(7147));const d=a(r(2473));const u=a(r(2037));const h=a(r(1017));const g=a(r(6255));const y=a(r(5911));const v=a(r(2781));const b=a(r(3837));const x=r(9491);const w=o(r(7468));const S=r(1514);const E=r(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const T=process.platform==="win32";const N=process.platform==="darwin";const _="actions/tool-cache";function downloadTool(e,t,r,i){return n(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),w.default());yield l.mkdirP(h.dirname(t));p.debug(`Downloading ${e}`);p.debug(`Destination ${t}`);const s=3;const a=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const c=new E.RetryHelper(s,a,o);return yield c.execute((()=>n(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",r,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r,i){return n(this,void 0,void 0,(function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const s=new g.HttpClient(_,[],{allowRetries:false});if(r){p.debug("set auth");if(i===undefined){i={}}i.authorization=r}const a=yield s.get(e,i);if(a.message.statusCode!==200){const t=new HTTPError(a.message.statusCode);p.debug(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`);throw t}const n=b.promisify(v.pipeline);const o=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>a.message));const d=o();let u=false;try{yield n(d,c.createWriteStream(t));p.debug("download complete");u=true;return t}finally{if(!u){p.debug("download failed");try{yield l.rmRF(t)}catch(e){p.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,r){return n(this,void 0,void 0,(function*(){x.ok(T,"extract7z() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(r){try{const t=p.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield S.exec(`"${r}"`,i,s)}finally{process.chdir(i)}}else{const r=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=`& '${r}' -Source '${s}' -Target '${a}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];const p={silent:true};try{const e=yield l.which("powershell",true);yield S.exec(`"${e}"`,o,p)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);p.debug("Checking tar --version");let i="";yield S.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});p.debug(i.trim());const s=i.toUpperCase().includes("GNU TAR");let a;if(r instanceof Array){a=r}else{a=[r]}if(p.isDebug()&&!r.includes("v")){a.push("-v")}let n=t;let o=e;if(T&&s){a.push("--force-local");n=t.replace(/\\/g,"/");o=e.replace(/\\/g,"/")}if(s){a.push("--warning=no-unknown-keyword");a.push("--overwrite")}a.push("-C",n,"-f",o);yield S.exec(`tar`,a);return t}))}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,(function*(){x.ok(N,"extractXar() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(r instanceof Array){i=r}else{i=[r]}i.push("-x","-C",t,"-f",e);if(p.isDebug()){i.push("-v")}const s=yield l.which("xar",true);yield S.exec(`"${s}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(T){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=yield l.which("pwsh",false);if(s){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];p.debug(`Using pwsh at path: ${s}`);yield S.exec(`"${s}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const s=yield l.which("powershell",true);p.debug(`Using powershell at path: ${s}`);yield S.exec(`"${s}"`,t)}}))}function extractZipNix(e,t){return n(this,void 0,void 0,(function*(){const r=yield l.which("unzip",true);const i=[e];if(!p.isDebug()){i.unshift("-q")}i.unshift("-o");yield S.exec(`"${r}"`,i,{cwd:t})}))}function cacheDir(e,t,r,i){return n(this,void 0,void 0,(function*(){r=y.clean(r)||r;i=i||u.arch();p.debug(`Caching tool ${t} ${r} ${i}`);p.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const s=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=h.join(e,t);yield l.cp(r,s,{recursive:true})}_completeToolPath(t,r,i);return s}))}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,(function*(){i=y.clean(i)||i;s=s||u.arch();p.debug(`Caching tool ${r} ${i} ${s}`);p.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const a=yield _createToolPath(r,i,s);const n=h.join(a,t);p.debug(`destination file ${n}`);yield l.cp(e,n);_completeToolPath(r,i,s);return a}))}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||u.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,r);const s=evaluateVersions(i,t);t=s}let i="";if(t){t=y.clean(t)||"";const s=h.join(_getCacheDirectory(),e,t,r);p.debug(`checking cache: ${s}`);if(c.existsSync(s)&&c.existsSync(`${s}.complete`)){p.debug(`Found tool in cache ${e} ${t} ${r}`);i=s}else{p.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const r=[];t=t||u.arch();const i=h.join(_getCacheDirectory(),e);if(c.existsSync(i)){const e=c.readdirSync(i);for(const s of e){if(isExplicitVersion(s)){const e=h.join(i,s,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(s)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,(function*(){let s=[];const a=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const n=new g.HttpClient("tool-cache");const o={};if(r){p.debug("set auth");o.authorization=r}const l=yield n.getJson(a,o);if(!l.result){return s}let c="";for(const e of l.result.tree){if(e.path==="versions-manifest.json"){c=e.url;break}}o["accept"]="application/vnd.github.VERSION.raw";let d=yield(yield n.get(c,o)).readBody();if(d){d=d.replace(/^\uFEFF/,"");try{s=JSON.parse(d)}catch(e){p.debug("Invalid json")}}return s}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=u.arch()){return n(this,void 0,void 0,(function*(){const s=yield d._findMatch(e,t,r,i);return s}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),w.default())}yield l.mkdirP(e);return e}))}function _createToolPath(e,t,r){return n(this,void 0,void 0,(function*(){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");p.debug(`destination ${i}`);const s=`${i}.complete`;yield l.rmRF(i);yield l.rmRF(s);yield l.mkdirP(i);return i}))}function _completeToolPath(e,t,r){const i=h.join(_getCacheDirectory(),e,y.clean(t)||t,r||"");const s=`${i}.complete`;c.writeFileSync(s,"");p.debug("finished caching tool")}function isExplicitVersion(e){const t=y.clean(e)||"";p.debug(`isExplicit: ${t}`);const r=y.valid(t)!=null;p.debug(`explicit? ${r}`);return r}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let r="";p.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(y.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const s=e[i];const a=y.satisfies(s,t);if(a){r=s;break}}if(r){p.debug(`matched: ${r}`)}else{p.debug("match not found")}return r}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";x.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";x.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},7701:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var s=t;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}e.exports=bytesToUuid},7269:(e,t,r)=>{var i=r(6113);e.exports=function nodeRNG(){return i.randomBytes(16)}},7468:(e,t,r)=>{var i=r(7269);var s=r(7701);function v4(e,t,r){var a=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var n=e.random||(e.rng||i)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){for(var o=0;o<16;++o){t[a+o]=n[o]}}return t||s(n)}e.exports=v4},2557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=new WeakMap;const i=new WeakMap;class AbortSignal{constructor(){this.onabort=null;r.set(this,[]);i.set(this,false)}get aborted(){if(!i.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return i.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=r.get(this);i.push(t)}removeEventListener(e,t){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=r.get(this);const s=i.indexOf(t);if(s>-1){i.splice(s,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=r.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}i.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const r=setTimeout(abortSignal,e,t);if(typeof r.unref==="function"){r.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},9645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class AzureKeyCredential{constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}get key(){return this._key}update(e){this._key=e}}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const r of t){if(!objectHasProperty(e,r)){return false}}return true}function objectHasProperty(e,t){return typeof e==="object"&&t in e}class AzureNamedKeyCredential{constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}get key(){return this._key}get name(){return this._name}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}get signature(){return this._signature}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}t.AzureKeyCredential=AzureKeyCredential;t.AzureNamedKeyCredential=AzureNamedKeyCredential;t.AzureSASCredential=AzureSASCredential;t.isNamedKeyCredential=isNamedKeyCredential;t.isSASCredential=isSASCredential;t.isTokenCredential=isTokenCredential},4607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(5840);var s=r(3837);var a=r(2107);var n=r(6189);var o=r(1333);var p=r(3233);var l=r(9645);var c=r(2037);var d=r(3685);var u=r(5687);var h=r(2557);var g=r(4294);var y=r(2781);var v=r(6279);var b=r(467);var x=r(4175);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:true,get:function(){return e[r]}})}}))}t["default"]=e;return Object.freeze(t)}var w=_interopNamespace(n);var S=_interopNamespace(c);var E=_interopNamespace(d);var T=_interopNamespace(u);var N=_interopNamespace(g);var _=_interopDefaultLegacy(v);var P=_interopDefaultLegacy(b);function getHeaderKey(e){return e.toLowerCase()}function isHttpHeadersLike(e){if(e&&typeof e==="object"){const t=e;if(typeof t.rawHeaders==="function"&&typeof t.clone==="function"&&typeof t.get==="function"&&typeof t.set==="function"&&typeof t.contains==="function"&&typeof t.remove==="function"&&typeof t.headersArray==="function"&&typeof t.headerValues==="function"&&typeof t.headerNames==="function"&&typeof t.toJson==="function"){return true}}return false}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let r=0;r{r=r.then(e)}));return r}function promiseToCallback(e){if(typeof e.then!=="function"){throw new Error("The provided input is not a Promise.")}return t=>{e.then((e=>t(undefined,e))).catch((e=>{t(e)}))}}function promiseToServiceCallback(e){if(typeof e.then!=="function"){throw new Error("The provided input is not a Promise.")}return t=>{e.then((e=>process.nextTick(t,undefined,e.parsedBody,e.request,e))).catch((e=>{process.nextTick(t,e)}))}}function prepareXMLRootList(e,t,r,i){if(!Array.isArray(e)){e=[e]}if(!r||!i){return{[t]:e}}const s={[t]:e};s[O]={[r]:i};return s}function applyMixins(e,t){const r=e;t.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((t=>{r.prototype[t]=e.prototype[t]}))}))}const I=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return I.test(e)}function replaceAll(e,t,r){return!e||!t?e:e.split(t).join(r||"")}function isPrimitiveType(e){return typeof e!=="object"&&typeof e!=="function"||e===null}function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}class Serializer{constructor(e={},t){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,r){const failValidation=(e,i)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${i}.`)};if(e.constraints&&t!=undefined){const r=t;const{ExclusiveMaximum:i,ExclusiveMinimum:s,InclusiveMaximum:a,InclusiveMinimum:n,MaxItems:o,MaxLength:p,MinItems:l,MinLength:c,MultipleOf:d,Pattern:u,UniqueItems:h}=e.constraints;if(i!=undefined&&r>=i){failValidation("ExclusiveMaximum",i)}if(s!=undefined&&r<=s){failValidation("ExclusiveMinimum",s)}if(a!=undefined&&r>a){failValidation("InclusiveMaximum",a)}if(n!=undefined&&ro){failValidation("MaxItems",o)}if(p!=undefined&&g.length>p){failValidation("MaxLength",p)}if(l!=undefined&&g.lengthr.indexOf(e)!==t))){failValidation("UniqueItems",h)}}}serialize(e,t,r,i={}){var s,a,n;const o={rootName:(s=i.rootName)!==null&&s!==void 0?s:"",includeRoot:(a=i.includeRoot)!==null&&a!==void 0?a:false,xmlCharKey:(n=i.xmlCharKey)!==null&&n!==void 0?n:R};let p={};const l=e.type.name;if(!r){r=e.serializedName}if(l.match(/^Sequence$/i)!==null){p=[]}if(e.isConstant){t=e.defaultValue}const{required:c,nullable:d}=e;if(c&&d&&t===undefined){throw new Error(`${r} cannot be undefined.`)}if(c&&!d&&t==undefined){throw new Error(`${r} cannot be null or undefined.`)}if(!c&&d===false&&t===null){throw new Error(`${r} cannot be null.`)}if(t==undefined){p=t}else{if(l.match(/^any$/i)!==null){p=t}else if(l.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){p=serializeBasicTypes(l,r,t)}else if(l.match(/^Enum$/i)!==null){const i=e;p=serializeEnumType(r,i.type.allowedValues,t)}else if(l.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){p=serializeDateTypes(l,t,r)}else if(l.match(/^ByteArray$/i)!==null){p=serializeByteArrayType(r,t)}else if(l.match(/^Base64Url$/i)!==null){p=serializeBase64UrlType(r,t)}else if(l.match(/^Sequence$/i)!==null){p=serializeSequenceType(this,e,t,r,Boolean(this.isXML),o)}else if(l.match(/^Dictionary$/i)!==null){p=serializeDictionaryType(this,e,t,r,Boolean(this.isXML),o)}else if(l.match(/^Composite$/i)!==null){p=serializeCompositeType(this,e,t,r,Boolean(this.isXML),o)}}return p}deserialize(e,t,r,i={}){var s,a,n;const o={rootName:(s=i.rootName)!==null&&s!==void 0?s:"",includeRoot:(a=i.includeRoot)!==null&&a!==void 0?a:false,xmlCharKey:(n=i.xmlCharKey)!==null&&n!==void 0?n:R};if(t==undefined){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let p;const l=e.type.name;if(!r){r=e.serializedName}if(l.match(/^Composite$/i)!==null){p=deserializeCompositeType(this,e,t,r,o)}else{if(this.isXML){const e=o.xmlCharKey;const r=t;if(r[O]!=undefined&&r[e]!=undefined){t=r[e]}}if(l.match(/^Number$/i)!==null){p=parseFloat(t);if(isNaN(p)){p=t}}else if(l.match(/^Boolean$/i)!==null){if(t==="true"){p=true}else if(t==="false"){p=false}else{p=t}}else if(l.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){p=t}else if(l.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){p=new Date(t)}else if(l.match(/^UnixTime$/i)!==null){p=unixTimeToDate(t)}else if(l.match(/^ByteArray$/i)!==null){p=decodeString(t)}else if(l.match(/^Base64Url$/i)!==null){p=base64UrlToByteArray(t)}else if(l.match(/^Sequence$/i)!==null){p=deserializeSequenceType(this,e,t,r,o)}else if(l.match(/^Dictionary$/i)!==null){p=deserializeDictionaryType(this,e,t,r,o)}}if(e.isConstant){p=e.defaultValue}return p}}function trimEnd(e,t){let r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let r="";if(e){const i=e.split(".");for(const e of i){if(e.charAt(e.length-1)==="\\"){r+=e.substr(0,e.length-1)+"."}else{r+=e;t.push(r);r=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error(`${t} with value ${r} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error(`${t} with value "${r}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&isValidUuid(r))){throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error(`${t} with value ${r} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof r;if(e!=="string"&&e!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return r}function serializeEnumType(e,t,r){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const i=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!i){throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return r}function serializeByteArrayType(e,t){let r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}r=encodeByteArray(t)}return r}function serializeBase64UrlType(e,t){let r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}r=bufferToBase64Url(t)||""}return r}function serializeDateTypes(e,t,r){if(t!=undefined){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} 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 new Error(`${r} 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 new Error(`${r} 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 new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,r,i,s,a){if(!Array.isArray(r)){throw new Error(`${i} must be of type Array.`)}const n=t.type.element;if(!n||typeof n!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}.`)}const o=[];for(let t=0;te!==s));if(o){n[s]=e.serialize(p,r[s],i+'["'+s+'"]',a)}}}return n}return r}function getXmlObjectValue(e,t,r,i){if(!r||!e.xmlNamespace){return t}const s=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const a={[s]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[O]){return t}else{const e=Object.assign({},t);e[O]=a;return e}}const n={};n[i.xmlCharKey]=t;n[O]=a;return n}function isSpecialXmlProperty(e,t){return[O,t.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,r,i,s){var a,n;const o=(a=s.xmlCharKey)!==null&&a!==void 0?a:R;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,r,"serializedName")}const p=resolveModelProperties(e,t,i);let l={};const c=[];for(const a of Object.keys(p)){const d=p[a];const u=splitSerializeName(p[a].serializedName);c.push(u[0]);const{serializedName:h,xmlName:g,xmlElementName:y}=d;let v=i;if(h!==""&&h!==undefined){v=i+"."+h}const b=d.headerCollectionPrefix;if(b){const t={};for(const i of Object.keys(r)){if(i.startsWith(b)){t[i.substring(b.length)]=e.deserialize(d.type.value,r[i],v,s)}c.push(i)}l[a]=t}else if(e.isXML){if(d.xmlIsAttribute&&r[O]){l[a]=e.deserialize(d,r[O][g],v,s)}else if(d.xmlIsMsText){if(r[o]!==undefined){l[a]=r[o]}else if(typeof r==="string"){l[a]=r}}else{const t=y||g||h;if(d.xmlIsWrapped){const t=r[g];const i=(n=t===null||t===void 0?void 0:t[y])!==null&&n!==void 0?n:[];l[a]=e.deserialize(d,i,v,s);c.push(g)}else{const i=r[t];l[a]=e.deserialize(d,i,v,s);c.push(t)}}}else{let i;let n=r;for(const e of u){if(!n)break;n=n[e]}i=n;const o=t.type.polymorphicDiscriminator;if(o&&a===o.clientName&&i==undefined){i=t.serializedName}let c;if(Array.isArray(r[a])&&p[a].serializedName===""){i=r[a];const t=e.deserialize(d,i,v,s);for(const[e,r]of Object.entries(l)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=r}}l=t}else if(i!==undefined||d.defaultValue!==undefined){c=e.deserialize(d,i,v,s);l[a]=c}}}const d=t.type.additionalProperties;if(d){const isAdditionalProperty=e=>{for(const t in p){const r=splitSerializeName(p[t].serializedName);if(r[0]===e){return false}}return true};for(const t in r){if(isAdditionalProperty(t)){l[t]=e.deserialize(d,r[t],i+'["'+t+'"]',s)}}}else if(r){for(const e of Object.keys(r)){if(l[e]===undefined&&!c.includes(e)&&!isSpecialXmlProperty(e,s)){l[e]=r[e]}}}return l}function deserializeDictionaryType(e,t,r,i,s){const a=t.type.value;if(!a||typeof a!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(r){const t={};for(const n of Object.keys(r)){t[n]=e.deserialize(a,r[n],i,s)}return t}return r}function deserializeSequenceType(e,t,r,i,s){const a=t.type.element;if(!a||typeof a!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(r){if(!Array.isArray(r)){r=[r]}const t=[];for(let n=0;n0}keys(){return Object.keys(this._rawQuery)}set(e,t){const r=t;if(e){if(r!==undefined&&r!==null){const t=Array.isArray(r)?r:r.toString();this._rawQuery[e]=t}else{delete this._rawQuery[e]}}}get(e){return e?this._rawQuery[e]:undefined}toString(){let e="";for(const t in this._rawQuery){if(e){e+="&"}const r=this._rawQuery[t];if(Array.isArray(r)){const i=[];for(const e of r){i.push(`${t}=${e}`)}e+=i.join("&")}else{e+=`${t}=${r}`}}return e}static parse(e){const t=new URLQuery;if(e){if(e.startsWith("?")){e=e.substring(1)}let r="ParameterName";let i="";let s="";for(let a=0;aisAlphaNumericCharacter(e)))}function readUntilCharacter(e,...t){return readWhile(e,(e=>t.indexOf(e)===-1))}function nextScheme(e){const t=readWhileLetterOrDigit(e);e._currentToken=URLToken.scheme(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else{e._currentState="HOST"}}function nextSchemeOrHost(e){const t=readUntilCharacter(e,":","/","?");if(!hasCurrentCharacter(e)){e._currentToken=URLToken.host(t);e._currentState="DONE"}else if(getCurrentCharacter(e)===":"){if(peekCharacters(e,3)==="://"){e._currentToken=URLToken.scheme(t);e._currentState="HOST"}else{e._currentToken=URLToken.host(t);e._currentState="PORT"}}else{e._currentToken=URLToken.host(t);if(getCurrentCharacter(e)==="/"){e._currentState="PATH"}else{e._currentState="QUERY"}}}function nextHost(e){if(peekCharacters(e,3)==="://"){nextCharacter(e,3)}const t=readUntilCharacter(e,":","/","?");e._currentToken=URLToken.host(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else if(getCurrentCharacter(e)===":"){e._currentState="PORT"}else if(getCurrentCharacter(e)==="/"){e._currentState="PATH"}else{e._currentState="QUERY"}}function nextPort(e){if(getCurrentCharacter(e)===":"){nextCharacter(e)}const t=readUntilCharacter(e,"/","?");e._currentToken=URLToken.port(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else if(getCurrentCharacter(e)==="/"){e._currentState="PATH"}else{e._currentState="QUERY"}}function nextPath(e){const t=readUntilCharacter(e,"?");e._currentToken=URLToken.path(t);if(!hasCurrentCharacter(e)){e._currentState="DONE"}else{e._currentState="QUERY"}}function nextQuery(e){if(getCurrentCharacter(e)==="?"){nextCharacter(e)}const t=readRemaining(e);e._currentToken=URLToken.query(t);e._currentState="DONE"}function createProxyAgent(e,t,r){const i=URLBuilder.parse(t.host).getHost();if(!i){throw new Error("Expecting a non-empty host in proxy settings.")}if(!isValidPort(t.port)){throw new Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.")}const s={proxy:{host:i,port:t.port,headers:r&&r.rawHeaders()||{}}};if(t.username&&t.password){s.proxy.proxyAuth=`${t.username}:${t.password}`}else if(t.username){s.proxy.proxyAuth=`${t.username}`}const a=isUrlHttps(e);const n=isUrlHttps(t.host);const o={isHttps:a,agent:createTunnel(a,n,s)};return o}function isUrlHttps(e){const t=URLBuilder.parse(e).getScheme()||"";return t.toLowerCase()==="https"}function createTunnel(e,t,r){if(e&&t){return N.httpsOverHttps(r)}else if(e&&!t){return N.httpsOverHttp(r)}else if(!e&&t){return N.httpOverHttps(r)}else{return N.httpOverHttp(r)}}function isValidPort(e){return 0<=e&&e<=65535}const L="REDACTED";const M=["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"];const B=["api-version"];class Sanitizer{constructor({allowedHeaderNames:e=[],allowedQueryParameters:t=[]}={}){e=Array.isArray(e)?M.concat(e):M;t=Array.isArray(t)?B.concat(t):B;this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if(r instanceof Error){return Object.assign(Object.assign({},r),{name:r.name,message:r.message})}if(e==="_headersMap"){return this.sanitizeHeaders(r)}else if(e==="url"){return this.sanitizeUrl(r)}else if(e==="query"){return this.sanitizeQuery(r)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(r)||isObject(r)){if(t.has(r)){return"[Circular]"}t.add(r)}return r}),2)}sanitizeHeaders(e){return this.sanitizeObject(e,this.allowedHeaderNames,((e,t)=>e[t].value))}sanitizeQuery(e){return this.sanitizeObject(e,this.allowedQueryParameters,((e,t)=>e[t]))}sanitizeObject(e,t,r){if(typeof e!=="object"||e===null){return e}const i={};for(const s of Object.keys(e)){if(t.has(s.toLowerCase())){i[s]=r(e,s)}else{i[s]=L}}return i}sanitizeUrl(e){if(typeof e!=="string"||e===null){return e}const t=URLBuilder.parse(e);const r=t.getQuery();if(!r){return e}const i=URLQuery.parse(r);for(const e of i.keys()){if(!this.allowedQueryParameters.has(e.toLowerCase())){i.set(e,L)}}t.setQuery(i.toString());return t.toString()}}const j=s.inspect.custom;const z=new Sanitizer;class RestError extends Error{constructor(e,t,r,i,s){super(e);this.name="RestError";this.code=t;this.statusCode=r;this.request=i;this.response=s;Object.setPrototypeOf(this,RestError.prototype)}[j](){return`RestError: ${this.message} \n ${z.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const q=p.createClientLogger("core-http");function getCachedAgent(e,t){return e?t.httpsAgent:t.httpAgent}class ReportTransform extends y.Transform{constructor(e){super();this.progressCallback=e;this.loadedBytes=0}_transform(e,t,r){this.push(e);this.loadedBytes+=e.length;this.progressCallback({loadedBytes:this.loadedBytes});r(undefined)}}function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e,t){return new Promise((r=>{e.once("close",(()=>{t===null||t===void 0?void 0:t.abort();r()}));e.once("end",r);e.once("error",r)}))}function parseHeaders(e){const t=new HttpHeaders;e.forEach(((e,r)=>{t.set(r,e)}));return t}class NodeFetchHttpClient{constructor(){this.proxyAgentMap=new Map;this.keepAliveAgents={}}async sendRequest(e){var t;if(!e&&typeof e!=="object"){throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.")}const r=new h.AbortController;let i;if(e.abortSignal){if(e.abortSignal.aborted){throw new h.AbortError("The operation was aborted.")}i=e=>{if(e.type==="abort"){r.abort()}};e.abortSignal.addEventListener("abort",i)}if(e.timeout){setTimeout((()=>{r.abort()}),e.timeout)}if(e.formData){const t=e.formData;const r=new _["default"];const appendFormValue=(e,t)=>{if(typeof t==="function"){t=t()}if(t&&Object.prototype.hasOwnProperty.call(t,"value")&&Object.prototype.hasOwnProperty.call(t,"options")){r.append(e,t.value,t.options)}else{r.append(e,t)}};for(const e of Object.keys(t)){const r=t[e];if(Array.isArray(r)){for(let t=0;t{var t;(t=e.abortSignal)===null||t===void 0?void 0:t.removeEventListener("abort",i);return})).catch((e=>{q.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}getOrCreateAgent(e){var t;const r=isUrlHttps(e.url);if(e.proxySettings){const{host:i,port:s,username:a,password:n}=e.proxySettings;const o=`${i}:${s}:${a}:${n}`;const p=(t=this.proxyAgentMap.get(o))!==null&&t!==void 0?t:{};let l=getCachedAgent(r,p);if(l){return l}const c=createProxyAgent(e.url,e.proxySettings,e.headers);l=c.agent;if(c.isHttps){p.httpsAgent=c.agent}else{p.httpAgent=c.agent}this.proxyAgentMap.set(o,p);return l}else if(e.keepAlive){let t=getCachedAgent(r,this.keepAliveAgents);if(t){return t}const i={keepAlive:e.keepAlive};if(r){t=this.keepAliveAgents.httpsAgent=new T.Agent(i)}else{t=this.keepAliveAgents.httpAgent=new E.Agent(i)}return t}else{return r?T.globalAgent:E.globalAgent}}async fetch(e,t){return P["default"](e,t)}async prepareRequest(e){const t={};t.agent=this.getOrCreateAgent(e);t.compress=e.decompressResponse;return t}async processRequest(e){}}t.HttpPipelineLogLevel=void 0;(function(e){e[e["OFF"]=0]="OFF";e[e["ERROR"]=1]="ERROR";e[e["WARNING"]=2]="WARNING";e[e["INFO"]=3]="INFO"})(t.HttpPipelineLogLevel||(t.HttpPipelineLogLevel={}));function operationOptionsToRequestOptionsBase(e){const{requestOptions:t,tracingOptions:r}=e,i=a.__rest(e,["requestOptions","tracingOptions"]);let s=i;if(t){s=Object.assign(Object.assign({},s),t)}if(r){s.tracingContext=r.tracingContext;s.spanOptions=r===null||r===void 0?void 0:r.spanOptions}return s}class BaseRequestPolicy{constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}class RequestPolicyOptions{constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==t.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,t){if(this._logger&&this.shouldLog(e)){this._logger.log(e,t)}}}const U={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:O,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:undefined,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:undefined,attrValueProcessors:undefined,tagNameProcessors:undefined,valueProcessors:undefined,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:undefined,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false};const G=Object.assign({},U);G.explicitArray=false;const H=Object.assign({},U);H.explicitArray=false;H.renderOpts={pretty:false};function stringifyXML(e,t={}){var r;H.rootName=t.rootName;H.charkey=(r=t.xmlCharKey)!==null&&r!==void 0?r:R;const i=new w.Builder(H);return i.buildObject(e)}function parseXML(e,t={}){var r;G.explicitRoot=!!t.includeRoot;G.charkey=(r=t.xmlCharKey)!==null&&r!==void 0?r:R;const i=new w.Parser(G);return new Promise(((t,r)=>{if(!e){r(new Error("Document is empty"))}else{i.parseString(e,((e,i)=>{if(e){r(e)}else{t(i)}}))}}))}function deserializationPolicy(e,t){return{create:(r,i)=>new DeserializationPolicy(r,i,e,t)}}const V=["application/json","text/json"];const $=["application/xml","application/atom+xml"];const X={expectedContentTypes:{json:V,xml:$}};class DeserializationPolicy extends BaseRequestPolicy{constructor(e,t,r,i={}){var s;super(e,t);this.jsonContentTypes=r&&r.json||V;this.xmlContentTypes=r&&r.xml||$;this.xmlCharKey=(s=i.xmlCharKey)!==null&&s!==void 0?s:R}async sendRequest(e){return this._nextPolicy.sendRequest(e).then((e=>deserializeResponseBody(this.jsonContentTypes,this.xmlContentTypes,e,{xmlCharKey:this.xmlCharKey})))}}function getOperationResponse(e){let t;const r=e.request;const i=r.operationSpec;if(i){const s=r.operationResponseGetter;if(!s){t=i.responses[e.status]}else{t=s(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request.shouldDeserialize;let r;if(t===undefined){r=true}else if(typeof t==="boolean"){r=t}else{r=t(e)}return r}function deserializeResponseBody(e,t,r,i={}){var s,a,n;const o={rootName:(s=i.rootName)!==null&&s!==void 0?s:"",includeRoot:(a=i.includeRoot)!==null&&a!==void 0?a:false,xmlCharKey:(n=i.xmlCharKey)!==null&&n!==void 0?n:R};return parse(e,t,r,o).then((e=>{if(!shouldDeserializeResponse(e)){return e}const t=e.request.operationSpec;if(!t||!t.responses){return e}const s=getOperationResponse(e);const{error:a,shouldReturnResponse:n}=handleErrorResponse(e,t,s);if(a){throw a}else if(n){return e}if(s){if(s.bodyMapper){let r=e.parsedBody;if(t.isXML&&s.bodyMapper.type.name===k.Sequence){r=typeof r==="object"?r[s.bodyMapper.xmlElementName]:[]}try{e.parsedBody=t.serializer.deserialize(s.bodyMapper,r,"operationRes.parsedBody",i)}catch(t){const r=new RestError(`Error ${t} occurred in deserializing the responseBody - ${e.bodyAsText}`,undefined,e.status,e.request,e);throw r}}else if(t.httpMethod==="HEAD"){e.parsedBody=r.status>=200&&r.status<300}if(s.headersMapper){e.parsedHeaders=t.serializer.deserialize(s.headersMapper,e.headers.toJson(),"operationRes.parsedHeaders",i)}}return e}))}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,r){var i;const s=200<=e.status&&e.status<300;const a=isOperationSpecEmpty(t)?s:!!r;if(a){if(r){if(!r.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const n=r!==null&&r!==void 0?r:t.responses.default;const o=((i=e.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(e.status))||e.request.streamResponseBody;const p=o?`Unexpected status code: ${e.status}`:e.bodyAsText;const l=new RestError(p,undefined,e.status,e.request,e);if(!n){throw l}const c=n.bodyMapper;const d=n.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let i;if(c){let e=r;if(t.isXML&&c.type.name===k.Sequence){e=typeof r==="object"?r[c.xmlElementName]:[]}i=t.serializer.deserialize(c,e,"error.response.parsedBody")}const s=r.error||i||r;l.code=s.code;if(s.message){l.message=s.message}if(c){l.response.parsedBody=i}}if(e.headers&&d){l.response.parsedHeaders=t.serializer.deserialize(d,e.headers.toJson(),"operationRes.parsedHeaders")}}catch(t){l.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:false}}function parse(e,t,r,i){var s;const errorHandler=e=>{const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`;const i=e.code||RestError.PARSE_ERROR;const s=new RestError(t,i,r.status,r.request,r);return Promise.reject(s)};const a=((s=r.request.streamResponseStatusCodes)===null||s===void 0?void 0:s.has(r.status))||r.request.streamResponseBody;if(!a&&r.bodyAsText){const s=r.bodyAsText;const a=r.headers.get("Content-Type")||"";const n=!a?[]:a.split(";").map((e=>e.toLowerCase()));if(n.length===0||n.some((t=>e.indexOf(t)!==-1))){return new Promise((e=>{r.parsedBody=JSON.parse(s);e(r)})).catch(errorHandler)}else if(n.some((e=>t.indexOf(e)!==-1))){return parseXML(s,i).then((e=>{r.parsedBody=e;return r})).catch(errorHandler)}}return Promise.resolve(r)}const W={enable:true};function keepAlivePolicy(e){return{create:(t,r)=>new KeepAlivePolicy(t,r,e||W)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this.keepAliveOptions=r}async sendRequest(e){e.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(e)}}const K=["GET","HEAD"];const Q={handleRedirects:true,maxRetries:20};function redirectPolicy(e=20){return{create:(t,r)=>new RedirectPolicy(t,r,e)}}class RedirectPolicy extends BaseRequestPolicy{constructor(e,t,r=20){super(e,t);this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendRequest(e).then((e=>handleRedirect(this,e,0)))}}function handleRedirect(e,t,r){const{request:i,status:s}=t;const a=t.headers.get("location");if(a&&(s===300||s===301&&K.includes(i.method)||s===302&&K.includes(i.method)||s===303&&i.method==="POST"||s===307)&&(!e.maxRetries||rhandleRedirect(e,t,r+1)))}return Promise.resolve(t)}const Y=3;const J=1e3*30;const Z=1e3*90;const ee=1e3*3;function isNumber(e){return typeof e==="number"}function shouldRetry(e,t,r,i,s){if(!t(i,s)){return false}return r.retryCountnew ExponentialRetryPolicy(i,s,e,t,r)}}t.RetryMode=void 0;(function(e){e[e["Exponential"]=0]="Exponential"})(t.RetryMode||(t.RetryMode={}));const te={maxRetries:Y,retryDelayInMs:J,maxRetryDelayInMs:Z};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(e,t,r,i,s){super(e,t);this.retryCount=isNumber(r)?r:Y;this.retryInterval=isNumber(i)?i:J;this.maxRetryInterval=isNumber(s)?s:Z}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then((t=>retry$1(this,e,t))).catch((t=>retry$1(this,e,t.response,undefined,t)))}}async function retry$1(e,t,r,i,s){function shouldPolicyRetry(e){const t=e===null||e===void 0?void 0:e.status;if(t===503&&(r===null||r===void 0?void 0:r.headers.get(C.HeaderConstants.RETRY_AFTER))){return false}if(t===undefined||t<500&&t!==408||t===501||t===505){return false}return true}i=updateRetryData({retryInterval:e.retryInterval,minRetryInterval:0,maxRetryInterval:e.maxRetryInterval},i,s);const a=t.abortSignal&&t.abortSignal.aborted;if(!a&&shouldRetry(e.retryCount,shouldPolicyRetry,i,r)){q.info(`Retrying request in ${i.retryInterval}`);try{await o.delay(i.retryInterval);const r=await e._nextPolicy.sendRequest(t.clone());return retry$1(e,t,r,i)}catch(s){return retry$1(e,t,r,i,s)}}else if(a||s||!r){const e=i.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,r&&r.status,r&&r.request,r);throw e}else{return r}}function logPolicy(e={}){return{create:(t,r)=>new LogPolicy(t,r,e)}}class LogPolicy extends BaseRequestPolicy{constructor(e,t,{logger:r=q.info,allowedHeaderNames:i=[],allowedQueryParameters:s=[]}={}){super(e,t);this.logger=r;this.sanitizer=new Sanitizer({allowedHeaderNames:i,allowedQueryParameters:s})}get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(e){this.sanitizer.allowedHeaderNames=e}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(e){this.sanitizer.allowedQueryParameters=e}sendRequest(e){if(!this.logger.enabled)return this._nextPolicy.sendRequest(e);this.logRequest(e);return this._nextPolicy.sendRequest(e).then((e=>this.logResponse(e)))}logRequest(e){this.logger(`Request: ${this.sanitizer.sanitize(e)}`)}logResponse(e){this.logger(`Response status code: ${e.status}`);this.logger(`Headers: ${this.sanitizer.sanitize(e.headers)}`);return e}}function getPathStringFromParameter(e){return getPathStringFromParameterPath(e.parameterPath,e.mapper)}function getPathStringFromParameterPath(e,t){let r;if(typeof e==="string"){r=e}else if(Array.isArray(e)){r=e.join(".")}else{r=t.serializedName}return r}function getStreamResponseStatusCodes(e){const t=new Set;for(const r in e.responses){const i=e.responses[r];if(i.bodyMapper&&i.bodyMapper.type.name===k.Stream){t.add(Number(r))}}return t}function getDefaultUserAgentKey(){return C.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const e={key:"Node",value:process.version};const t={key:"OS",value:`(${S.arch()}-${S.type()}-${S.release()})`};return[e,t]}function getRuntimeInfo(){const e={key:"core-http",value:C.coreHttpVersion};return[e]}function getUserAgentString(e,t=" ",r="/"){return e.map((e=>{const t=e.value?`${r}${e.value}`:"";return`${e.key}${t}`})).join(t)}const re=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const e=getRuntimeInfo();const t=getPlatformSpecificData();const r=getUserAgentString(e.concat(t));return r}function userAgentPolicy(e){const t=!e||e.key===undefined||e.key===null?getDefaultUserAgentKey():e.key;const r=!e||e.value===undefined||e.value===null?getDefaultUserAgentValue():e.value;return{create:(e,i)=>new UserAgentPolicy(e,i,t,r)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(e,t,r,i){super(e,t);this._nextPolicy=e;this._options=t;this.headerKey=r;this.headerValue=i}sendRequest(e){this.addUserAgentHeader(e);return this._nextPolicy.sendRequest(e)}addUserAgentHeader(e){if(!e.headers){e.headers=new HttpHeaders}if(!e.headers.get(this.headerKey)&&this.headerValue){e.headers.set(this.headerKey,this.headerValue)}}}t.QueryCollectionFormat=void 0;(function(e){e["Csv"]=",";e["Ssv"]=" ";e["Tsv"]="\t";e["Pipes"]="|";e["Multi"]="Multi"})(t.QueryCollectionFormat||(t.QueryCollectionFormat={}));const ie={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,r);i=beginRefresh(tryGetAccessToken,a.retryIntervalInMs,(o=s===null||s===void 0?void 0:s.expiresOnTimestamp)!==null&&o!==void 0?o:Date.now()).then((e=>{i=null;s=e;return s})).catch((e=>{i=null;s=null;throw e}))}return i}return async e=>{if(n.mustRefresh)return refresh(e);if(n.shouldRefresh){refresh(e)}return s}}function bearerTokenAuthenticationPolicy(e,t){const r=createTokenCycler(e,t);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:t}=await r({abortSignal:e.abortSignal,tracingOptions:{tracingContext:e.tracingContext}});e.headers.set(C.HeaderConstants.AUTHORIZATION,`Bearer ${t}`);return this._nextPolicy.sendRequest(e)}}return{create:(e,t)=>new BearerTokenAuthenticationPolicy(e,t)}}function disableResponseDecompressionPolicy(){return{create:(e,t)=>new DisableResponseDecompressionPolicy(e,t)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){e.decompressResponse=false;return this._nextPolicy.sendRequest(e)}}function generateClientRequestIdPolicy(e="x-ms-client-request-id"){return{create:(t,r)=>new GenerateClientRequestIdPolicy(t,r,e)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this._requestIdHeaderName=r}sendRequest(e){if(!e.headers.contains(this._requestIdHeaderName)){e.headers.set(this._requestIdHeaderName,e.requestId)}return this._nextPolicy.sendRequest(e)}}let se;function getCachedDefaultHttpClient(){if(!se){se=new NodeFetchHttpClient}return se}function ndJsonPolicy(){return{create:(e,t)=>new NdJsonPolicy(e,t)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return this._nextPolicy.sendRequest(e)}}const ae=[];let ne=false;const oe=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(C.HTTPS_PROXY);const t=getEnvironmentValue(C.ALL_PROXY);const r=getEnvironmentValue(C.HTTP_PROXY);return e||t||r}function isBypassed(e,t,r){if(t.length===0){return false}const i=URLBuilder.parse(e).getHost();if(r===null||r===void 0?void 0:r.has(i)){return r.get(i)}let s=false;for(const e of t){if(e[0]==="."){if(i.endsWith(e)){s=true}else{if(i.length===e.length-1&&i===e.slice(1)){s=true}}}else{if(i===e){s=true}}}r===null||r===void 0?void 0:r.set(i,s);return s}function loadNoProxy(){const e=getEnvironmentValue(C.NO_PROXY);ne=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const{username:t,password:r,urlWithoutAuth:i}=extractAuthFromUrl(e);const s=URLBuilder.parse(i);const a=s.getScheme()?s.getScheme()+"://":"";return{host:a+s.getHost(),port:Number.parseInt(s.getPort()||"80"),username:t,password:r}}function proxyPolicy(e,t){if(!e){e=getDefaultProxySettings()}if(!ne){ae.push(...loadNoProxy())}return{create:(r,i)=>new ProxyPolicy(r,i,e,t===null||t===void 0?void 0:t.customNoProxyList)}}function extractAuthFromUrl(e){const t=e.indexOf("@");if(t===-1){return{urlWithoutAuth:e}}const r=e.indexOf("://");const i=r!==-1?r+3:0;const s=e.substring(i,t);const a=s.indexOf(":");const n=a!==-1;const o=n?s.substring(0,a):s;const p=n?s.substring(a+1):undefined;const l=e.substring(0,i)+e.substring(t+1);return{username:o,password:p,urlWithoutAuth:l}}class ProxyPolicy extends BaseRequestPolicy{constructor(e,t,r,i){super(e,t);this.proxySettings=r;this.customNoProxyList=i}sendRequest(e){var t;if(!e.proxySettings&&!isBypassed(e.url,(t=this.customNoProxyList)!==null&&t!==void 0?t:ae,this.customNoProxyList?undefined:oe)){e.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(e)}}function rpRegistrationPolicy(e=30){return{create:(t,r)=>new RPRegistrationPolicy(t,r,e)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(e,t,r=30){super(e,t);this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then((t=>registerIfNeeded(this,e,t)))}}function registerIfNeeded(e,t,r){if(r.status===409){const i=checkRPNotRegisteredError(r.bodyAsText);if(i){const s=extractSubscriptionUrl(t.url);return registerRP(e,s,i,t).catch((()=>false)).then((i=>{if(i){t.headers.set("x-ms-client-request-id",generateUuid());return e._nextPolicy.sendRequest(t.clone())}return r}))}}return Promise.resolve(r)}function getRequestEssentials(e,t=false){const r=e.clone();if(t){r.url=e.url}r.headers.set("x-ms-client-request-id",generateUuid());r.headers.set("Content-Type","application/json; charset=utf-8");return r}function checkRPNotRegisteredError(e){let t,r;if(e){try{r=JSON.parse(e)}catch(e){}if(r&&r.error&&r.error.message&&r.error.code&&r.error.code==="MissingSubscriptionRegistration"){const e=r.error.message.match(/.*'(.*)'/i);if(e){t=e.pop()}}}return t}function extractSubscriptionUrl(e){let t;const r=e.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(r&&r[0]){t=r[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${e}.`)}return t}async function registerRP(e,t,r,i){const s=`${t}providers/${r}/register?api-version=2016-02-01`;const a=`${t}providers/${r}?api-version=2016-02-01`;const n=getRequestEssentials(i);n.method="POST";n.url=s;const o=await e._nextPolicy.sendRequest(n);if(o.status!==200){throw new Error(`Autoregistration of ${r} failed. Please try registering manually.`)}return getRegistrationStatus(e,a,i)}async function getRegistrationStatus(e,t,r){const i=getRequestEssentials(r);i.url=t;i.method="GET";const s=await e._nextPolicy.sendRequest(i);const a=s.parsedBody;if(s.parsedBody&&a.registrationState&&a.registrationState==="Registered"){return true}else{await o.delay(e._retryTimeout*1e3);return getRegistrationStatus(e,t,r)}}function signingPolicy(e){return{create:(t,r)=>new SigningPolicy(t,r,e)}}class SigningPolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then((e=>this._nextPolicy.sendRequest(e)))}}function systemErrorRetryPolicy(e,t,r,i){return{create:(s,a)=>new SystemErrorRetryPolicy(s,a,e,t,r,i)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(e,t,r,i,s,a){super(e,t);this.retryCount=isNumber(r)?r:Y;this.retryInterval=isNumber(i)?i:J;this.minRetryInterval=isNumber(s)?s:ee;this.maxRetryInterval=isNumber(a)?a:Z}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch((t=>retry(this,e,t.response,t)))}}async function retry(e,t,r,i,s){s=updateRetryData(e,s,i);function shouldPolicyRetry(e,t){if(t&&t.code&&(t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT")){return true}return false}if(shouldRetry(e.retryCount,shouldPolicyRetry,s,r,i)){try{await o.delay(s.retryInterval);return e._nextPolicy.sendRequest(t.clone())}catch(i){return retry(e,t,r,i,s)}}else{if(i){return Promise.reject(s.error)}return r}}const pe=3;const le=C.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(e,t)=>new ThrottlingRetryPolicy(e,t)}}const ce="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(e,t,r){super(e,t);this.numberOfRetries=0;this._handleResponse=r||this._defaultResponseHandler}async sendRequest(e){const t=await this._nextPolicy.sendRequest(e.clone());if(t.status!==le.TooManyRequests&&t.status!==le.ServiceUnavailable){return t}else{return this._handleResponse(e,t)}}async _defaultResponseHandler(e,t){var r;const i=t.headers.get(C.HeaderConstants.RETRY_AFTER);if(i){const t=ThrottlingRetryPolicy.parseRetryAfterHeader(i);if(t){this.numberOfRetries+=1;await o.delay(t,{abortSignal:e.abortSignal,abortErrorMsg:ce});if((r=e.abortSignal)===null||r===void 0?void 0:r.aborted){throw new h.AbortError(ce)}if(this.numberOfRetries{let r=undefined;const i=this;const s=t;return{create(t,a){const n=getCredentialScopes(s,i.baseUri);if(!n){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(r===undefined||r===null){r=bearerTokenAuthenticationPolicy(e,n)}return r.create(t,a)}}};i=wrappedPolicyFactory()}else if(e&&typeof e.signRequest==="function"){q.info("ServiceClient: creating signing policy from provided credentials");i=signingPolicy(e)}else if(e!==undefined&&e!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}q.info("ServiceClient: using default request policies");r=createDefaultRequestPolicyFactories(i,t);if(t.requestPolicyFactories){const e=t.requestPolicyFactories(r);if(e){r=e}}}this._requestPolicyFactories=r}sendRequest(e){if(e===null||e===undefined||typeof e!=="object"){throw new Error("options cannot be null or undefined and it must be of type object.")}let t;try{if(isWebResourceLike(e)){e.validateRequestProperties();t=e}else{t=new WebResource;t=t.prepare(e)}}catch(e){return Promise.reject(e)}let r=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let e=this._requestPolicyFactories.length-1;e>=0;--e){r=this._requestPolicyFactories[e].create(r,this._requestPolicyOptions)}}return r.sendRequest(t)}async sendOperationRequest(e,r,i){var s;if(typeof e.options==="function"){i=e.options;e.options=undefined}const a=(s=e.options)===null||s===void 0?void 0:s.serializerOptions;const n=new WebResource;let o;try{const i=r.baseUrl||this.baseUri;if(!i){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.")}n.method=r.httpMethod;n.operationSpec=r;const s=URLBuilder.parse(i);if(r.path){s.appendPath(r.path)}if(r.urlParameters&&r.urlParameters.length>0){for(const t of r.urlParameters){let i=getOperationArgumentValueFromParameter(this,e,t,r.serializer);i=r.serializer.serialize(t.mapper,i,getPathStringFromParameter(t),a);if(!t.skipEncoding){i=encodeURIComponent(i)}s.replaceAll(`{${t.mapper.serializedName||getPathStringFromParameter(t)}}`,i)}}if(r.queryParameters&&r.queryParameters.length>0){for(const i of r.queryParameters){let n=getOperationArgumentValueFromParameter(this,e,i,r.serializer);if(n!==undefined&&n!==null){n=r.serializer.serialize(i.mapper,n,getPathStringFromParameter(i),a);if(i.collectionFormat!==undefined&&i.collectionFormat!==null){if(i.collectionFormat===t.QueryCollectionFormat.Multi){if(n.length===0){continue}else{for(const e in n){const t=n[e];n[e]=t===undefined||t===null?"":t.toString()}}}else if(i.collectionFormat===t.QueryCollectionFormat.Ssv||i.collectionFormat===t.QueryCollectionFormat.Tsv){n=n.join(i.collectionFormat)}}if(!i.skipEncoding){if(Array.isArray(n)){for(const e in n){if(n[e]!==undefined&&n[e]!==null){n[e]=encodeURIComponent(n[e])}}}else{n=encodeURIComponent(n)}}if(i.collectionFormat!==undefined&&i.collectionFormat!==null&&i.collectionFormat!==t.QueryCollectionFormat.Multi&&i.collectionFormat!==t.QueryCollectionFormat.Ssv&&i.collectionFormat!==t.QueryCollectionFormat.Tsv){n=n.join(i.collectionFormat)}s.setQueryParameter(i.mapper.serializedName||getPathStringFromParameter(i),n)}}}n.url=s.toString();const p=r.contentType||this.requestContentType;if(p&&r.requestBody){n.headers.set("Content-Type",p)}if(r.headerParameters){for(const t of r.headerParameters){let i=getOperationArgumentValueFromParameter(this,e,t,r.serializer);if(i!==undefined&&i!==null){i=r.serializer.serialize(t.mapper,i,getPathStringFromParameter(t),a);const e=t.mapper.headerCollectionPrefix;if(e){for(const t of Object.keys(i)){n.headers.set(e+t,i[t])}}else{n.headers.set(t.mapper.serializedName||getPathStringFromParameter(t),i)}}}}const l=e.options;if(l){if(l.customHeaders){for(const e in l.customHeaders){n.headers.set(e,l.customHeaders[e])}}if(l.abortSignal){n.abortSignal=l.abortSignal}if(l.timeout){n.timeout=l.timeout}if(l.onUploadProgress){n.onUploadProgress=l.onUploadProgress}if(l.onDownloadProgress){n.onDownloadProgress=l.onDownloadProgress}if(l.spanOptions){n.spanOptions=l.spanOptions}if(l.tracingContext){n.tracingContext=l.tracingContext}if(l.shouldDeserialize!==undefined&&l.shouldDeserialize!==null){n.shouldDeserialize=l.shouldDeserialize}}n.withCredentials=this._withCredentials;serializeRequestBody(this,n,e,r);if(n.streamResponseStatusCodes===undefined){n.streamResponseStatusCodes=getStreamResponseStatusCodes(r)}let c;let d;try{c=await this.sendRequest(n)}catch(e){d=e}if(d){if(d.response){d.details=flattenResponse(d.response,r.responses[d.statusCode]||r.responses["default"])}o=Promise.reject(d)}else{o=Promise.resolve(flattenResponse(c,r.responses[c.status]))}}catch(e){o=Promise.reject(e)}const p=i;if(p){o.then((e=>p(null,e._response.parsedBody,e._response.request,e._response))).catch((e=>p(e)))}return o}}function serializeRequestBody(e,t,r,i){var s,a,n,o,p,l;const c=(a=(s=r.options)===null||s===void 0?void 0:s.serializerOptions)!==null&&a!==void 0?a:{};const d={rootName:(n=c.rootName)!==null&&n!==void 0?n:"",includeRoot:(o=c.includeRoot)!==null&&o!==void 0?o:false,xmlCharKey:(p=c.xmlCharKey)!==null&&p!==void 0?p:R};const u=c.xmlCharKey;if(i.requestBody&&i.requestBody.mapper){t.body=getOperationArgumentValueFromParameter(e,r,i.requestBody,i.serializer);const s=i.requestBody.mapper;const{required:a,xmlName:n,xmlElementName:o,serializedName:p,xmlNamespace:c,xmlNamespacePrefix:h}=s;const g=s.type.name;try{if(t.body!==undefined&&t.body!==null||a){const e=getPathStringFromParameter(i.requestBody);t.body=i.serializer.serialize(s,t.body,e,d);const r=g===k.Stream;if(i.isXML){const e=h?`xmlns:${h}`:"xmlns";const i=getXmlValueWithNamespace(c,e,g,t.body,d);if(g===k.Sequence){t.body=stringifyXML(prepareXMLRootList(i,o||n||p,e,c),{rootName:n||p,xmlCharKey:u})}else if(!r){t.body=stringifyXML(i,{rootName:n||p,xmlCharKey:u})}}else if(g===k.String&&(((l=i.contentType)===null||l===void 0?void 0:l.match("text/plain"))||i.mediaType==="text")){return}else if(!r){t.body=JSON.stringify(t.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(p,undefined," ")}.`)}}else if(i.formDataParameters&&i.formDataParameters.length>0){t.formData={};for(const s of i.formDataParameters){const a=getOperationArgumentValueFromParameter(e,r,s,i.serializer);if(a!==undefined&&a!==null){const e=s.mapper.serializedName||getPathStringFromParameter(s);t.formData[e]=i.serializer.serialize(s.mapper,a,getPathStringFromParameter(s),d)}}}}function getXmlValueWithNamespace(e,t,r,i,s){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};r[s.xmlCharKey]=i;r[O]={[t]:e};return r}return i}function getValueOrFunctionResult(e,t){let r;if(typeof e==="string"){r=e}else{r=t();if(typeof e==="function"){r=e(r)}}return r}function createDefaultRequestPolicyFactories(e,t){const r=[];if(t.generateClientRequestIdHeader){r.push(generateClientRequestIdPolicy(t.clientRequestIdHeaderName))}if(e){r.push(e)}const i=getValueOrFunctionResult(t.userAgentHeaderName,re);const s=getValueOrFunctionResult(t.userAgent,getDefaultUserAgentValue);if(i&&s){r.push(userAgentPolicy({key:i,value:s}))}r.push(redirectPolicy());r.push(rpRegistrationPolicy(t.rpRegistrationRetryTimeout));if(!t.noRetryPolicy){r.push(exponentialRetryPolicy());r.push(systemErrorRetryPolicy());r.push(throttlingRetryPolicy())}r.push(deserializationPolicy(t.deserializationContentTypes));if(D){r.push(proxyPolicy(t.proxySettings))}r.push(logPolicy({logger:q.info}));return r}function createPipelineFromOptions(e,t){const r=[];if(e.sendStreamingJson){r.push(ndJsonPolicy())}let i=undefined;if(e.userAgentOptions&&e.userAgentOptions.userAgentPrefix){const t=[];t.push(e.userAgentOptions.userAgentPrefix);const r=getDefaultUserAgentValue();if(t.indexOf(r)===-1){t.push(r)}i=t.join(" ")}const s=Object.assign(Object.assign({},W),e.keepAliveOptions);const a=Object.assign(Object.assign({},te),e.retryOptions);const n=Object.assign(Object.assign({},Q),e.redirectOptions);if(D){r.push(proxyPolicy(e.proxyOptions))}const o=Object.assign(Object.assign({},X),e.deserializationOptions);const p=Object.assign({},e.loggingOptions);r.push(tracingPolicy({userAgent:i}),keepAlivePolicy(s),userAgentPolicy({value:i}),generateClientRequestIdPolicy(),deserializationPolicy(o.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(a.maxRetries,a.retryDelayInMs,a.maxRetryDelayInMs));if(n.handleRedirects){r.push(redirectPolicy(n.maxRetries))}if(t){r.push(t)}r.push(logPolicy(p));if(D&&e.decompressResponse===false){r.push(disableResponseDecompressionPolicy())}return{httpClient:e.httpClient,requestPolicyFactories:r}}function getOperationArgumentValueFromParameter(e,t,r,i){return getOperationArgumentValueFromParameterPath(e,t,r.parameterPath,r.mapper,i)}function getOperationArgumentValueFromParameterPath(e,t,r,i,s){var a;let n;if(typeof r==="string"){r=[r]}const o=(a=t.options)===null||a===void 0?void 0:a.serializerOptions;if(Array.isArray(r)){if(r.length>0){if(i.isConstant){n=i.defaultValue}else{let s=getPropertyFromParameterPath(t,r);if(!s.propertyFound){s=getPropertyFromParameterPath(e,r)}let a=false;if(!s.propertyFound){a=i.required||r[0]==="options"&&r.length===2}n=a?i.defaultValue:s.propertyValue}const a=getPathStringFromParameterPath(r,i);s.serialize(i,n,a,o)}}else{if(i.required){n={}}for(const a in r){const p=i.type.modelProperties[a];const l=r[a];const c=getOperationArgumentValueFromParameterPath(e,t,l,p,s);const d=getPathStringFromParameterPath(l,p);s.serialize(p,c,d,o);if(c!==undefined&&c!==null){if(!n){n={}}n[a]=c}}}return n}function getPropertyFromParameterPath(e,t){const r={propertyFound:false};let i=0;for(;iObject.defineProperty(t,"_response",{value:e});if(i){const t=i.type.name;if(t==="Stream"){return addOperationResponse(Object.assign(Object.assign({},r),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}))}const s=t==="Composite"&&i.type.modelProperties||{};const a=Object.keys(s).some((e=>s[e].serializedName===""));if(t==="Sequence"||a){const t=[...e.parsedBody||[]];for(const r of Object.keys(s)){if(s[r].serializedName){t[r]=e.parsedBody[r]}}if(r){for(const e of Object.keys(r)){t[e]=r[e]}}addOperationResponse(t);return t}if(t==="Composite"||t==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},r),e.parsedBody))}}if(i||e.request.method==="HEAD"||isPrimitiveType(e.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},r),{body:e.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},r),e.parsedBody))}function getCredentialScopes(e,t){if(e===null||e===void 0?void 0:e.credentialScopes){const t=e.credentialScopes;return Array.isArray(t)?t.map((e=>new URL(e).toString())):new URL(t).toString()}if(t){return`${t}/.default`}return undefined}function createSpanFunction(e){return x.createSpanFunction(e)}const ue=2*60*1e3;class ExpiringAccessTokenCache{constructor(e=ue){this.cachedToken=undefined;this.tokenRefreshBufferMs=e}setCachedToken(e){this.cachedToken=e}getCachedToken(){if(this.cachedToken&&Date.now()+this.tokenRefreshBufferMs>=this.cachedToken.expiresOnTimestamp){this.cachedToken=undefined}return this.cachedToken}}class AccessTokenRefresher{constructor(e,t,r=3e4){this.credential=e;this.scopes=t;this.requiredMillisecondsBeforeNewRefresh=r;this.lastCalled=0}isReady(){return!this.lastCalled||Date.now()-this.lastCalled>this.requiredMillisecondsBeforeNewRefresh}async getToken(e){this.lastCalled=Date.now();const t=await this.credential.getToken(this.scopes,e);this.promise=undefined;return t||undefined}refresh(e){if(!this.promise){this.promise=this.getToken(e)}return this.promise}}const me=C.HeaderConstants;const he="Basic";class BasicAuthenticationCredentials{constructor(e,t,r=he){this.authorizationScheme=he;if(e===null||e===undefined||typeof e.valueOf()!=="string"){throw new Error("userName cannot be null or undefined and must be of type string.")}if(t===null||t===undefined||typeof t.valueOf()!=="string"){throw new Error("password cannot be null or undefined and must be of type string.")}this.userName=e;this.password=t;this.authorizationScheme=r}signRequest(e){const t=`${this.userName}:${this.password}`;const r=`${this.authorizationScheme} ${encodeString(t)}`;if(!e.headers)e.headers=new HttpHeaders;e.headers.set(me.AUTHORIZATION,r);return Promise.resolve(e)}}class ApiKeyCredentials{constructor(e){if(!e||e&&!e.inHeader&&!e.inQuery){throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`)}this.inHeader=e.inHeader;this.inQuery=e.inQuery}signRequest(e){if(!e){return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`))}if(this.inHeader){if(!e.headers){e.headers=new HttpHeaders}for(const t in this.inHeader){e.headers.set(t,this.inHeader[t])}}if(this.inQuery){if(!e.url){return Promise.reject(new Error(`url cannot be null in the request object.`))}if(e.url.indexOf("?")<0){e.url+="?"}for(const t in this.inQuery){if(!e.url.endsWith("?")){e.url+="&"}e.url+=`${t}=${this.inQuery[t]}`}}return Promise.resolve(e)}}class TopicCredentials extends ApiKeyCredentials{constructor(e){if(!e||e&&typeof e!=="string"){throw new Error("topicKey cannot be null or undefined and must be of type string.")}const t={inHeader:{"aeg-sas-key":e}};super(t)}}Object.defineProperty(t,"delay",{enumerable:true,get:function(){return o.delay}});Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return l.isTokenCredential}});t.AccessTokenRefresher=AccessTokenRefresher;t.ApiKeyCredentials=ApiKeyCredentials;t.BaseRequestPolicy=BaseRequestPolicy;t.BasicAuthenticationCredentials=BasicAuthenticationCredentials;t.Constants=C;t.DefaultHttpClient=NodeFetchHttpClient;t.ExpiringAccessTokenCache=ExpiringAccessTokenCache;t.HttpHeaders=HttpHeaders;t.MapperType=k;t.RequestPolicyOptions=RequestPolicyOptions;t.RestError=RestError;t.Serializer=Serializer;t.ServiceClient=ServiceClient;t.TopicCredentials=TopicCredentials;t.URLBuilder=URLBuilder;t.URLQuery=URLQuery;t.WebResource=WebResource;t.XML_ATTRKEY=O;t.XML_CHARKEY=R;t.applyMixins=applyMixins;t.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;t.createPipelineFromOptions=createPipelineFromOptions;t.createSpanFunction=createSpanFunction;t.deserializationPolicy=deserializationPolicy;t.deserializeResponseBody=deserializeResponseBody;t.disableResponseDecompressionPolicy=disableResponseDecompressionPolicy;t.encodeUri=encodeUri;t.executePromisesSequentially=executePromisesSequentially;t.exponentialRetryPolicy=exponentialRetryPolicy;t.flattenResponse=flattenResponse;t.generateClientRequestIdPolicy=generateClientRequestIdPolicy;t.generateUuid=generateUuid;t.getDefaultProxySettings=getDefaultProxySettings;t.getDefaultUserAgentValue=getDefaultUserAgentValue;t.isDuration=isDuration;t.isNode=D;t.isValidUuid=isValidUuid;t.keepAlivePolicy=keepAlivePolicy;t.logPolicy=logPolicy;t.operationOptionsToRequestOptionsBase=operationOptionsToRequestOptionsBase;t.parseXML=parseXML;t.promiseToCallback=promiseToCallback;t.promiseToServiceCallback=promiseToServiceCallback;t.proxyPolicy=proxyPolicy;t.redirectPolicy=redirectPolicy;t.serializeObject=serializeObject;t.signingPolicy=signingPolicy;t.stringifyXML=stringifyXML;t.stripRequest=stripRequest;t.stripResponse=stripResponse;t.systemErrorRetryPolicy=systemErrorRetryPolicy;t.throttlingRetryPolicy=throttlingRetryPolicy;t.tracingPolicy=tracingPolicy;t.userAgentPolicy=userAgentPolicy},6279:(e,t,r)=>{var i=r(5443);var s=r(3837);var a=r(1017);var n=r(3685);var o=r(5687);var p=r(7310).parse;var l=r(7147);var c=r(2781).Stream;var d=r(3583);var u=r(4812);var h=r(3971);e.exports=FormData;s.inherits(FormData,i);function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];i.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,r){r=r||{};if(typeof r=="string"){r={filename:r}}var a=i.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(s.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r);var o=this._multiPartFooter();a(n);a(t);a(o);this._trackLength(n,t,r)};FormData.prototype._trackLength=function(e,t,r){var i=0;if(r.knownLength!=null){i+=+r.knownLength}else if(Buffer.isBuffer(t)){i=t.length}else if(typeof t==="string"){i=Buffer.byteLength(t)}this._valueLength+=i;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))&&!(t instanceof c)){return}if(!r.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{l.stat(e.path,(function(r,i){var s;if(r){t(r);return}s=i.size-(e.start?e.start:0);t(null,s)}))}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",(function(r){e.pause();t(null,+r.headers["content-length"])}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string"){return r.header}var i=this._getContentDisposition(t,r);var s=this._getContentType(t,r);var a="";var n={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(s||[])};if(typeof r.header=="object"){h(n,r.header)}var o;for(var p in n){if(!n.hasOwnProperty(p))continue;o=n[p];if(o==null){continue}if(!Array.isArray(o)){o=[o]}if(o.length){a+=p+": "+o.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+a+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var r,i;if(typeof t.filepath==="string"){r=a.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){r=a.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){r=a.basename(e.client._httpMessage.path||"")}if(r){i='filename="'+r+'"'}return i};FormData.prototype._getContentType=function(e,t){var r=t.contentType;if(!r&&e.name){r=d.lookup(e.name)}if(!r&&e.path){r=d.lookup(e.path)}if(!r&&e.readable&&e.hasOwnProperty("httpVersion")){r=e.headers["content-type"]}if(!r&&(t.filepath||t.filename)){r=d.lookup(t.filepath||t.filename)}if(!r&&typeof e=="object"){r=FormData.DEFAULT_CONTENT_TYPE}return r};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var r=this._streams.length===0;if(r){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){r[t.toLowerCase()]=e[t]}}return r};FormData.prototype.setBoundary=function(e){this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var r=0,i=this._streams.length;r{e.exports=function(e,t){Object.keys(t).forEach((function(r){e[r]=e[r]||t[r]}));return e}},2107:e=>{var t;var r;var i;var s;var a;var n;var o;var p;var l;var c;var d;var u;var h;var g;var y;var v;var b;var x;var w;var S;var E;var T;var N;var _;var P;var C;var O;var R;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,i){return e[r]=t?t(r,i):i}}})((function(e){var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;o--)if(n=e[o])a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a;return s>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,i){t(r,i,e)}};n=function(e,t,r,i,s,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var n=i.kind,o=n==="getter"?"get":n==="setter"?"set":"value";var p=!t&&e?i["static"]?e:e.prototype:null;var l=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{});var c,d=false;for(var u=r.length-1;u>=0;u--){var h={};for(var g in i)h[g]=g==="access"?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var y=(0,r[u])(n==="accessor"?{get:l.get,set:l.set}:l[o],h);if(n==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(c=accept(y.get))l.get=c;if(c=accept(y.set))l.set=c;if(c=accept(y.init))s.push(c)}else if(c=accept(y)){if(n==="field")s.push(c);else l[o]=c}}if(p)Object.defineProperty(p,i.name,l);d=true};o=function(e,t,r){var i=arguments.length>2;for(var s=0;s0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],n;try{while((t===void 0||t-- >0)&&!(s=i.next()).done)a.push(s.value)}catch(e){n={error:e}}finally{try{if(s&&!s.done&&(r=i["return"]))r.call(i)}finally{if(n)throw n.error}}return a};v=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof w?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};E=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(r=!r)?{value:w(e[i](t)),done:false}:s?s(t):t}:s}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof g==="function"?g(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};N=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);I(t,e);return t};P=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};O=function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};R=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",r);e("__rest",i);e("__decorate",s);e("__param",a);e("__esDecorate",n);e("__runInitializers",o);e("__propKey",p);e("__setFunctionName",l);e("__metadata",c);e("__awaiter",d);e("__generator",u);e("__exportStar",h);e("__createBinding",A);e("__values",g);e("__read",y);e("__spread",v);e("__spreadArrays",b);e("__spreadArray",x);e("__await",w);e("__asyncGenerator",S);e("__asyncDelegator",E);e("__asyncValues",T);e("__makeTemplateObject",N);e("__importStar",_);e("__importDefault",P);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",O);e("__classPrivateFieldIn",R)}))},7094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(3233);var s=r(2557);const a=i.createClientLogger("core-lro");const n=2e3;const o=["succeeded","canceled","failed"];function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:r,isOperationError:i}=e;return e=>{if(i(e)){r.setError(t,e);r.setFailed(t)}throw e}}function processOperationStatus(e){const{state:t,stateProxy:r,status:i,isDone:s,processResult:a,response:n,setErrorAsResult:o}=e;switch(i){case"succeeded":{r.setSucceeded(t);break}case"failed":{r.setError(t,new Error(`The long-running operation has failed`));r.setFailed(t);break}case"canceled":{r.setCanceled(t);break}}if((s===null||s===void 0?void 0:s(n,t))||s===undefined&&["succeeded","canceled"].concat(o?[]:["failed"]).includes(i)){r.setResult(t,buildResult({response:n,state:t,processResult:a}))}}function buildResult(e){const{processResult:t,response:r,state:i}=e;return t?t(r,i):r}async function initOperation(e){const{init:t,stateProxy:r,processResult:i,getOperationStatus:s,withOperationLocation:n,setErrorAsResult:o}=e;const{operationLocation:p,resourceLocation:l,metadata:c,response:d}=await t();if(p)n===null||n===void 0?void 0:n(p,false);const u={metadata:c,operationLocation:p,resourceLocation:l};a.verbose(`LRO: Operation description:`,u);const h=r.initState(u);const g=s({response:d,state:h,operationLocation:p});processOperationStatus({state:h,status:g,stateProxy:r,response:d,setErrorAsResult:o,processResult:i});return h}async function pollOperationHelper(e){const{poll:t,state:r,stateProxy:i,operationLocation:s,getOperationStatus:n,getResourceLocation:p,isOperationError:l,options:c}=e;const d=await t(s,c).catch(setStateError({state:r,stateProxy:i,isOperationError:l}));const u=n(d,r);a.verbose(`LRO: Status:\n\tPolling from: ${r.config.operationLocation}\n\tOperation status: ${u}\n\tPolling status: ${o.includes(u)?"Stopped":"Running"}`);if(u==="succeeded"){const e=p(d,r);if(e!==undefined){return{response:await t(e).catch(setStateError({state:r,stateProxy:i,isOperationError:l})),status:u}}}return{response:d,status:u}}async function pollOperation(e){const{poll:t,state:r,stateProxy:i,options:s,getOperationStatus:a,getResourceLocation:n,getOperationLocation:p,isOperationError:l,withOperationLocation:c,getPollingInterval:d,processResult:u,updateState:h,setDelay:g,isDone:y,setErrorAsResult:v}=e;const{operationLocation:b}=r.config;if(b!==undefined){const{response:e,status:x}=await pollOperationHelper({poll:t,getOperationStatus:a,state:r,stateProxy:i,operationLocation:b,getResourceLocation:n,isOperationError:l,options:s});processOperationStatus({status:x,response:e,state:r,stateProxy:i,isDone:y,processResult:u,setErrorAsResult:v});if(!o.includes(x)){const t=d===null||d===void 0?void 0:d(e);if(t)g(t);const i=p===null||p===void 0?void 0:p(e,r);if(i!==undefined){const e=b!==i;r.config.operationLocation=i;c===null||c===void 0?void 0:c(i,e)}else c===null||c===void 0?void 0:c(b,false)}h===null||h===void 0?void 0:h(r,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:r}=e;return r!==null&&r!==void 0?r:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){const{location:t,requestMethod:r,requestPath:i,resourceLocationConfig:s}=e;switch(r){case"PUT":{return i}case"DELETE":{return undefined}default:{switch(s){case"azure-async-operation":{return undefined}case"original-uri":{return i}case"location":default:{return t}}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:r,requestPath:i,resourceLocationConfig:s}=e;const a=getOperationLocationHeader(t);const n=getAzureAsyncOperationHeader(t);const o=getOperationLocationPollingUrl({operationLocation:a,azureAsyncOperation:n});const p=getLocationHeader(t);const l=r===null||r===void 0?void 0:r.toLocaleUpperCase();if(o!==undefined){return{mode:"OperationLocation",operationLocation:o,resourceLocation:findResourceLocation({requestMethod:l,location:p,requestPath:i,resourceLocationConfig:s})}}else if(p!==undefined){return{mode:"ResourceLocation",operationLocation:p}}else if(l==="PUT"&&i){return{mode:"Body",operationLocation:i}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:r}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{a.warning(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:r}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:r,statusCode:e.statusCode})}function getProvisioningState(e){var t,r;const{properties:i,provisioningState:s}=(t=e.body)!==null&&t!==void 0?t:{};const a=(r=i===null||i===void 0?void 0:i.provisioningState)!==null&&r!==void 0?r:s;return transformStatus({status:a,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const r=e.getTime();if(t{const e=await s.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:a})}function getOperationLocation({rawResponse:e},t){var r;const i=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(i){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:e},t){var r;const i=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(i){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function getResourceLocation({flatResponse:e},t){if(typeof e==="object"){const r=e.resourceLocation;if(r!==undefined){t.config.resourceLocation=r}}return t.config.resourceLocation}function isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:r,options:i,processResult:s,updateState:a,setDelay:n,state:o,setErrorAsResult:p}=e;return pollOperation({state:o,stateProxy:r,setDelay:n,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e,updateState:a,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:i,poll:async(e,r)=>t.sendPollRequest(e,r),setErrorAsResult:p})}const maybemap=(e,t)=>e===undefined?undefined:t(e);const p=new Error("The poller is already stopped");function delayMs(e){let t=false;let r;return Object.assign(new Promise(((i,s)=>{let a;r=()=>{maybemap(a,clearTimeout);s(p)};if(t){r()}else{a=setTimeout(i,e)}})),{cancel:()=>{t=true;r===null||r===void 0?void 0:r()}})}const createStateProxy$1=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:r,getStatusFromPollResponse:i,isOperationError:a,getResourceLocation:o,getPollingInterval:p,resolveOnUnsuccessful:l}=e;return async({init:e,poll:c},d)=>{const{processResult:u,updateState:h,withOperationLocation:g,intervalInMs:y=n,restoreFrom:v}=d||{};const b=createStateProxy$1();const x=g?(()=>{let e=false;return(t,r)=>{if(r)g(t);else if(!e)g(t);e=true}})():undefined;const w=v?deserializeState(v):await initOperation({init:e,stateProxy:b,processResult:u,getOperationStatus:r,withOperationLocation:x,setErrorAsResult:!l});let S;let E;const T=new s.AbortController;const N=new Map;const handleProgressEvents=async()=>N.forEach((e=>e(w)));const _="Operation was canceled";let P=y;const C={getOperationState:()=>w,getResult:()=>w.result,isDone:()=>["succeeded","failed","canceled"].includes(w.status),isStopped:()=>S===undefined,stopPolling:()=>{T.abort();E===null||E===void 0?void 0:E()},toString:()=>JSON.stringify({state:w}),onProgress:e=>{const t=Symbol();N.set(t,e);return()=>N.delete(t)},pollUntilDone:e=>S!==null&&S!==void 0?S:S=(async()=>{const{abortSignal:t}=e||{};const{signal:r}=t?new s.AbortController([t,T.signal]):T;if(!C.isDone()){await C.poll({abortSignal:r});while(!C.isDone()){const e=delayMs(P);E=e.cancel;await e;await C.poll({abortSignal:r})}}if(l){return C.getResult()}else{switch(w.status){case"succeeded":return C.getResult();case"canceled":throw new Error(_);case"failed":throw w.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{S=undefined})),async poll(e){if(l){if(C.isDone())return}else{switch(w.status){case"succeeded":return;case"canceled":throw new Error(_);case"failed":throw w.error}}await pollOperation({poll:c,state:w,stateProxy:b,getOperationLocation:t,isOperationError:a,withOperationLocation:x,getPollingInterval:p,getOperationStatus:i,getResourceLocation:o,processResult:u,updateState:h,options:e,setDelay:e=>{P=e},setErrorAsResult:!l});await handleProgressEvents();if(!l){switch(w.status){case"canceled":throw new Error(_);case"failed":throw w.error}}}};return C}}async function createHttpPoller(e,t){const{resourceLocationConfig:r,intervalInMs:i,processResult:s,restoreFrom:a,updateState:n,withOperationLocation:o,resolveOnUnsuccessful:p=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,resolveOnUnsuccessful:p})({init:async()=>{const t=await e.sendInitialRequest();const i=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:r});return Object.assign({response:t,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:i,withOperationLocation:o,restoreFrom:a,updateState:n,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e})}const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,r,i,s,a,n){this.state=e;this.lro=t;this.setErrorAsResult=r;this.lroResourceLocationConfig=i;this.processResult=s;this.updateState=a;this.isDone=n}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const r=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:r,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const i=this.updateState;const s=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:r,processResult:this.processResult,updateState:i?(e,{rawResponse:t})=>i(e,t):undefined,isDone:s?({flatResponse:e},t)=>s(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){a.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const 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);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:r=n,resumeFrom:i,resolveOnUnsuccessful:s=false,isDone:a,lroResourceLocationConfig:o,processResult:p,updateState:l}=t||{};const c=i?deserializeState(i):{};const d=new GenericPollOperation(c,e,!s,o,p,l,a);super(d);this.resolveOnUnsuccessful=s;this.config={intervalInMs:r};d.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine;t.Poller=Poller;t.PollerCancelledError=PollerCancelledError;t.PollerStoppedError=PollerStoppedError;t.createHttpPoller=createHttpPoller},4559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(6429);function getPagedAsyncIterator(e){var t;const r=getItemAsyncIterator(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(t=e===null||e===void 0?void 0:e.byPage)!==null&&t!==void 0?t:t=>{const{continuationToken:r,maxPageSize:i}=t!==null&&t!==void 0?t:{};return getPageAsyncIterator(e,{pageLink:r,maxPageSize:i})}}}function getItemAsyncIterator(e){return i.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var t,r,s,a;const n=getPageAsyncIterator(e);const o=yield i.__await(n.next());if(!Array.isArray(o.value)){const{toElements:s}=e;if(s){yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(s(o.value))));try{for(var p=i.__asyncValues(n),l;l=yield i.__await(p.next()),!l.done;){const e=l.value;yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(s(e))))}}catch(e){t={error:e}}finally{try{if(l&&!l.done&&(r=p.return))yield i.__await(r.call(p))}finally{if(t)throw t.error}}}else{yield yield i.__await(o.value);yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(n)))}}else{yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(o.value)));try{for(var c=i.__asyncValues(n),d;d=yield i.__await(c.next()),!d.done;){const e=d.value;yield i.__await(yield*i.__asyncDelegator(i.__asyncValues(e)))}}catch(e){s={error:e}}finally{try{if(d&&!d.done&&(a=c.return))yield i.__await(a.call(c))}finally{if(s)throw s.error}}}}))}function getPageAsyncIterator(e,t={}){return i.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:r,maxPageSize:s}=t;let a=yield i.__await(e.getPage(r!==null&&r!==void 0?r:e.firstPageLink,s));if(!a){return yield i.__await(void 0)}yield yield i.__await(a.page);while(a.nextPageLink){a=yield i.__await(e.getPage(a.nextPageLink,s));if(!a){return yield i.__await(void 0)}yield yield i.__await(a.page)}}))}t.getPagedAsyncIterator=getPagedAsyncIterator},6429:e=>{var t;var r;var i;var s;var a;var n;var o;var p;var l;var c;var d;var u;var h;var g;var y;var v;var b;var x;var w;var S;var E;var T;var N;var _;var P;var C;var O;var R;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,i){return e[r]=t?t(r,i):i}}})((function(e){var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;o--)if(n=e[o])a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a;return s>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,i){t(r,i,e)}};n=function(e,t,r,i,s,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var n=i.kind,o=n==="getter"?"get":n==="setter"?"set":"value";var p=!t&&e?i["static"]?e:e.prototype:null;var l=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{});var c,d=false;for(var u=r.length-1;u>=0;u--){var h={};for(var g in i)h[g]=g==="access"?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var y=(0,r[u])(n==="accessor"?{get:l.get,set:l.set}:l[o],h);if(n==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(c=accept(y.get))l.get=c;if(c=accept(y.set))l.set=c;if(c=accept(y.init))s.push(c)}else if(c=accept(y)){if(n==="field")s.push(c);else l[o]=c}}if(p)Object.defineProperty(p,i.name,l);d=true};o=function(e,t,r){var i=arguments.length>2;for(var s=0;s0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],n;try{while((t===void 0||t-- >0)&&!(s=i.next()).done)a.push(s.value)}catch(e){n={error:e}}finally{try{if(s&&!s.done&&(r=i["return"]))r.call(i)}finally{if(n)throw n.error}}return a};v=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof w?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};E=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(r=!r)?{value:w(e[i](t)),done:false}:s?s(t):t}:s}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof g==="function"?g(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};N=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);I(t,e);return t};P=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};O=function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};R=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",r);e("__rest",i);e("__decorate",s);e("__param",a);e("__esDecorate",n);e("__runInitializers",o);e("__propKey",p);e("__setFunctionName",l);e("__metadata",c);e("__awaiter",d);e("__generator",u);e("__exportStar",h);e("__createBinding",A);e("__values",g);e("__read",y);e("__spread",v);e("__spreadArrays",b);e("__spreadArray",x);e("__await",w);e("__asyncGenerator",S);e("__asyncDelegator",E);e("__asyncValues",T);e("__makeTemplateObject",N);e("__importStar",_);e("__importDefault",P);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",O);e("__classPrivateFieldIn",R)}))},4175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(5163);(function(e){e[e["INTERNAL"]=0]="INTERNAL";e[e["SERVER"]=1]="SERVER";e[e["CLIENT"]=2]="CLIENT";e[e["PRODUCER"]=3]="PRODUCER";e[e["CONSUMER"]=4]="CONSUMER"})(t.SpanKind||(t.SpanKind={}));function getSpan(e){return i.trace.getSpan(e)}function setSpan(e,t){return i.trace.setSpan(e,t)}function setSpanContext(e,t){return i.trace.setSpanContext(e,t)}function getSpanContext(e){return i.trace.getSpanContext(e)}function isSpanContextValid(e){return i.trace.isSpanContextValid(e)}function getTracer(e,t){return i.trace.getTracer(e||"azure/core-tracing",t)}const s=i.context;(function(e){e[e["UNSET"]=0]="UNSET";e[e["OK"]=1]="OK";e[e["ERROR"]=2]="ERROR"})(t.SpanStatusCode||(t.SpanStatusCode={}));function isTracingDisabled(){var e;if(typeof process==="undefined"){return false}const t=(e=process.env.AZURE_TRACING_DISABLED)===null||e===void 0?void 0:e.toLowerCase();if(t==="false"||t==="0"){return false}return Boolean(t)}function createSpanFunction(e){return function(r,a){const n=getTracer();const o=(a===null||a===void 0?void 0:a.tracingOptions)||{};const p=Object.assign({kind:t.SpanKind.INTERNAL},o.spanOptions);const l=e.packagePrefix?`${e.packagePrefix}.${r}`:r;let c;if(isTracingDisabled()){c=i.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT)}else{c=n.startSpan(l,p,o.tracingContext)}if(e.namespace){c.setAttribute("az.namespace",e.namespace)}let d=o.spanOptions||{};if(c.isRecording()&&e.namespace){d=Object.assign(Object.assign({},o.spanOptions),{attributes:Object.assign(Object.assign({},p.attributes),{"az.namespace":e.namespace})})}const u=Object.assign(Object.assign({},o),{spanOptions:d,tracingContext:setSpan(o.tracingContext||s.active(),c)});const h=Object.assign(Object.assign({},a),{tracingOptions:u});return{span:c,updatedOptions:h}}}const a="00";function extractSpanContextFromTraceParentHeader(e){const t=e.split("-");if(t.length!==4){return}const[r,i,s,n]=t;if(r!==a){return}const o=parseInt(n,16);const p={spanId:s,traceId:i,traceFlags:o};return p}function getTraceParentHeader(e){const t=[];if(!e.traceId){t.push("traceId")}if(!e.spanId){t.push("spanId")}if(t.length){return}const r=e.traceFlags||0;const i=r.toString(16);const s=i.length===1?`0${i}`:i;return`${a}-${e.traceId}-${e.spanId}-${s}`}t.context=s;t.createSpanFunction=createSpanFunction;t.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;t.getSpan=getSpan;t.getSpanContext=getSpanContext;t.getTraceParentHeader=getTraceParentHeader;t.getTracer=getTracer;t.isSpanContextValid=isSpanContextValid;t.setSpan=setSpan;t.setSpanContext=setSpanContext},1333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(2557);var s=r(6113);var a;const n=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((a=process.versions)===null||a===void 0?void 0:a.node);function createAbortablePromise(e,t){const{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:a}=t!==null&&t!==void 0?t:{};return new Promise(((t,n)=>{function rejectOnAbort(){n(new i.AbortError(a!==null&&a!==void 0?a:"The operation was aborted."))}function removeListeners(){s===null||s===void 0?void 0:s.removeEventListener("abort",onAbort)}function onAbort(){r===null||r===void 0?void 0:r();removeListeners();rejectOnAbort()}if(s===null||s===void 0?void 0:s.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();n(e)}))}catch(e){n(e)}s===null||s===void 0?void 0:s.addEventListener("abort",onAbort)}))}const o="The delay was aborted.";function delay(e,t){let r;const{abortSignal:i,abortErrorMsg:s}=t!==null&&t!==void 0?t:{};return createAbortablePromise((t=>{r=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:s!==null&&s!==void 0?s:o})}function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const r=Math.floor(Math.random()*(t-e+1));return r+e}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const r=typeof e.message==="string";return t&&r}return false}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}async function computeSha256Hmac(e,t,r){const i=Buffer.from(e,"base64");return s.createHmac("sha256",i).update(t).digest(r)}async function computeSha256Hash(e,t){return s.createHash("sha256").update(e).digest(t)}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const r of t){if(!objectHasProperty(e,r)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.createAbortablePromise=createAbortablePromise;t.delay=delay;t.getErrorMessage=getErrorMessage;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isDefined=isDefined;t.isError=isError;t.isNode=n;t.isObject=isObject;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty},3233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(2037);var s=r(3837);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var a=_interopDefaultLegacy(s);function log(e,...t){process.stderr.write(`${a["default"].format(e,...t)}${i.EOL}`)}const n=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let o;let p=[];let l=[];const c=[];if(n){enable(n)}const d=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){o=e;p=[];l=[];const t=/\*/g;const r=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of r){if(e.startsWith("-")){l.push(new RegExp(`^${e.substr(1)}$`))}else{p.push(new RegExp(`^${e}$`))}}for(const e of c){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of l){if(t.test(e)){return false}}for(const t of p){if(t.test(e)){return true}}return false}function disable(){const e=o||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:d.log,namespace:e,extend:extend});function debug(...r){if(!t.enabled){return}if(r.length>0){r[0]=`${e} ${r[0]}`}t.log(...r)}c.push(t);return t}function destroy(){const e=c.indexOf(this);if(e>=0){c.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var u=d;const h=new Set;const g=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let y;const v=u("azure");v.log=(...e)=>{u.log(...e)};const b=["verbose","info","warning","error"];if(g){if(isAzureLogLevel(g)){setLogLevel(g)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${g}'; logging is not enabled. Acceptable values: ${b.join(", ")}.`)}}function setLogLevel(e){if(e&&!isAzureLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${b.join(",")}`)}y=e;const t=[];for(const e of h){if(shouldEnable(e)){t.push(e.namespace)}}u.enable(t.join(","))}function getLogLevel(){return y}const x={verbose:400,info:300,warning:200,error:100};function createClientLogger(e){const t=v.extend(e);patchLogMethod(v,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function createLogger(e,t){const r=Object.assign(e.extend(t),{level:t});patchLogMethod(e,r);if(shouldEnable(r)){const e=u.disable();u.enable(e+","+r.namespace)}h.add(r);return r}function shouldEnable(e){return Boolean(y&&x[e.level]<=x[y])}function isAzureLogLevel(e){return b.includes(e)}t.AzureLogger=v;t.createClientLogger=createClientLogger;t.getLogLevel=getLogLevel;t.setLogLevel=setLogLevel},4100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(4607);var s=r(679);var a=r(4175);var n=r(3233);var o=r(2557);var p=r(2037);var l=r(6113);var c=r(2781);r(4559);var d=r(7094);var u=r(2361);var h=r(7147);var g=r(3837);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:true,get:function(){return e[r]}})}}))}t["default"]=e;return Object.freeze(t)}var y=_interopNamespace(i);var v=_interopNamespace(p);var b=_interopNamespace(h);var x=_interopNamespace(g);const w={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:true,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"}}}}};const S={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const E={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const T={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const N={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const _={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,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"}}}}};const P={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const C={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const O={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const R={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,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:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const A={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,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"}}}}}}};const D={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,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"}}}}};const I={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const k={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const L={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const M={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const B={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const j={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const z={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const q={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"}}}}};const U={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,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"}}}}};const G={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const H={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,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"}}}}};const V={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const $={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:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,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"]}},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"}}}}};const X={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,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"}}}}};const W={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:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const K={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Q={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"}}}}}}};const Y={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const J={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Z={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"}}}}};const ee={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const te={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const re={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,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"}}}}};const ie={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const se={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,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:"any"}}}}};const ae={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"}}}}};const ne={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const oe={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const pe={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,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"}}}}};const le={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"}}}}};const ce={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const de={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"}}}}};const ue={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={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"}}}}};const he={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={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"}}}}};const ge={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={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"}}}}};const ve={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={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"}}}}};const xe={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={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"}}}}};const Se={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={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"}}}}};const Te={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={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"}}}}};const _e={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},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"}}}}};const Ce={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={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"}}}}};const Re={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ae={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"}}}}};const De={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={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"}}}}};const ke={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={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"}}}}};const Me={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={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"}}}}};const je={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={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"}}}}};const Fe={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={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"}}}}};const Ue={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={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"}}}}};const He={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={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"}}}}};const $e={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={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"}}}}};const We={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={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"}}}}};const Qe={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ye={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"}}}}};const Je={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ze={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"}}}}};const et={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tt={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"}}}}};const rt={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const it={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"}}}}};const st={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nt={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"]}}}}};const ot={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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"}}}}};const ct={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dt={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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"}}}}};const ut={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mt={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"}}}}};const ht={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={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"}}}}};const yt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={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"}}}}};const bt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={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"}}}}};const wt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const St={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"]}}}}};const Et={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={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"}}}}};const Nt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={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"}}}}};const Pt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={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"}}}}};const Ot={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rt={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"}}}}};const At={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={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"}}}}};const It={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kt={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"}}}}};const Lt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={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"}}}}};const Bt={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={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"}}}}};const zt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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"}}}}};const qt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={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"}}}}};const Gt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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:true,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"}}}}};const Vt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $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"}}}}};const Xt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={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"}}}}};const Kt={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={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"]}}}}};const Yt={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"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"}}}}};const Zt={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const er={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"}}}}};const tr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rr={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"}}}}};const ir={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sr={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"}}}}};const ar={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={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"}}}}};const or={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={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"}}}}};const lr={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={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"}}}}};const dr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={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"}}}}};const mr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={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"}}}}};const fr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={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"}}}}};const yr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={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"}}}}};const br={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={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"}}}}};const wr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={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"}}}}};const Er={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={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"}}}}};const Nr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={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"}}}}};const Pr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={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"}}}}};const Or={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={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"}}}}};const Ar={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={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"}}}}};const Ir={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={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"}}}}};const Lr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={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"}}}}};const Br={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={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"}}}}};const zr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={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"}}}}};const qr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Ur=Object.freeze({__proto__:null,BlobServiceProperties:w,Logging:S,RetentionPolicy:E,Metrics:T,CorsRule:N,StaticWebsite:_,StorageError:P,BlobServiceStatistics:C,GeoReplication:O,ListContainersSegmentResponse:R,ContainerItem:A,ContainerProperties:D,KeyInfo:I,UserDelegationKey:k,FilterBlobSegment:L,FilterBlobItem:M,BlobTags:B,BlobTag:j,SignedIdentifier:z,AccessPolicy:q,ListBlobsFlatSegmentResponse:U,BlobFlatListSegment:G,BlobItemInternal:H,BlobName:V,BlobPropertiesInternal:$,ListBlobsHierarchySegmentResponse:X,BlobHierarchyListSegment:W,BlobPrefix:K,BlockLookupList:Q,BlockList:Y,Block:J,PageList:Z,PageRange:ee,ClearRange:te,QueryRequest:re,QuerySerialization:ie,QueryFormat:se,DelimitedTextConfiguration:ae,JsonTextConfiguration:ne,ArrowConfiguration:oe,ArrowField:pe,ServiceSetPropertiesHeaders:le,ServiceSetPropertiesExceptionHeaders:ce,ServiceGetPropertiesHeaders:de,ServiceGetPropertiesExceptionHeaders:ue,ServiceGetStatisticsHeaders:me,ServiceGetStatisticsExceptionHeaders:he,ServiceListContainersSegmentHeaders:fe,ServiceListContainersSegmentExceptionHeaders:ge,ServiceGetUserDelegationKeyHeaders:ye,ServiceGetUserDelegationKeyExceptionHeaders:ve,ServiceGetAccountInfoHeaders:be,ServiceGetAccountInfoExceptionHeaders:xe,ServiceSubmitBatchHeaders:we,ServiceSubmitBatchExceptionHeaders:Se,ServiceFilterBlobsHeaders:Ee,ServiceFilterBlobsExceptionHeaders:Te,ContainerCreateHeaders:Ne,ContainerCreateExceptionHeaders:_e,ContainerGetPropertiesHeaders:Pe,ContainerGetPropertiesExceptionHeaders:Ce,ContainerDeleteHeaders:Oe,ContainerDeleteExceptionHeaders:Re,ContainerSetMetadataHeaders:Ae,ContainerSetMetadataExceptionHeaders:De,ContainerGetAccessPolicyHeaders:Ie,ContainerGetAccessPolicyExceptionHeaders:ke,ContainerSetAccessPolicyHeaders:Le,ContainerSetAccessPolicyExceptionHeaders:Me,ContainerRestoreHeaders:Be,ContainerRestoreExceptionHeaders:je,ContainerRenameHeaders:ze,ContainerRenameExceptionHeaders:Fe,ContainerSubmitBatchHeaders:qe,ContainerSubmitBatchExceptionHeaders:Ue,ContainerFilterBlobsHeaders:Ge,ContainerFilterBlobsExceptionHeaders:He,ContainerAcquireLeaseHeaders:Ve,ContainerAcquireLeaseExceptionHeaders:$e,ContainerReleaseLeaseHeaders:Xe,ContainerReleaseLeaseExceptionHeaders:We,ContainerRenewLeaseHeaders:Ke,ContainerRenewLeaseExceptionHeaders:Qe,ContainerBreakLeaseHeaders:Ye,ContainerBreakLeaseExceptionHeaders:Je,ContainerChangeLeaseHeaders:Ze,ContainerChangeLeaseExceptionHeaders:et,ContainerListBlobFlatSegmentHeaders:tt,ContainerListBlobFlatSegmentExceptionHeaders:rt,ContainerListBlobHierarchySegmentHeaders:it,ContainerListBlobHierarchySegmentExceptionHeaders:st,ContainerGetAccountInfoHeaders:nt,ContainerGetAccountInfoExceptionHeaders:ot,BlobDownloadHeaders:pt,BlobDownloadExceptionHeaders:ct,BlobGetPropertiesHeaders:dt,BlobGetPropertiesExceptionHeaders:ut,BlobDeleteHeaders:mt,BlobDeleteExceptionHeaders:ht,BlobUndeleteHeaders:ft,BlobUndeleteExceptionHeaders:yt,BlobSetExpiryHeaders:vt,BlobSetExpiryExceptionHeaders:bt,BlobSetHttpHeadersHeaders:xt,BlobSetHttpHeadersExceptionHeaders:wt,BlobSetImmutabilityPolicyHeaders:St,BlobSetImmutabilityPolicyExceptionHeaders:Et,BlobDeleteImmutabilityPolicyHeaders:Tt,BlobDeleteImmutabilityPolicyExceptionHeaders:Nt,BlobSetLegalHoldHeaders:_t,BlobSetLegalHoldExceptionHeaders:Pt,BlobSetMetadataHeaders:Ct,BlobSetMetadataExceptionHeaders:Ot,BlobAcquireLeaseHeaders:Rt,BlobAcquireLeaseExceptionHeaders:At,BlobReleaseLeaseHeaders:Dt,BlobReleaseLeaseExceptionHeaders:It,BlobRenewLeaseHeaders:kt,BlobRenewLeaseExceptionHeaders:Lt,BlobChangeLeaseHeaders:Mt,BlobChangeLeaseExceptionHeaders:Bt,BlobBreakLeaseHeaders:jt,BlobBreakLeaseExceptionHeaders:zt,BlobCreateSnapshotHeaders:Ft,BlobCreateSnapshotExceptionHeaders:qt,BlobStartCopyFromURLHeaders:Ut,BlobStartCopyFromURLExceptionHeaders:Gt,BlobCopyFromURLHeaders:Ht,BlobCopyFromURLExceptionHeaders:Vt,BlobAbortCopyFromURLHeaders:$t,BlobAbortCopyFromURLExceptionHeaders:Xt,BlobSetTierHeaders:Wt,BlobSetTierExceptionHeaders:Kt,BlobGetAccountInfoHeaders:Qt,BlobGetAccountInfoExceptionHeaders:Yt,BlobQueryHeaders:Jt,BlobQueryExceptionHeaders:Zt,BlobGetTagsHeaders:er,BlobGetTagsExceptionHeaders:tr,BlobSetTagsHeaders:rr,BlobSetTagsExceptionHeaders:ir,PageBlobCreateHeaders:sr,PageBlobCreateExceptionHeaders:ar,PageBlobUploadPagesHeaders:nr,PageBlobUploadPagesExceptionHeaders:or,PageBlobClearPagesHeaders:pr,PageBlobClearPagesExceptionHeaders:lr,PageBlobUploadPagesFromURLHeaders:cr,PageBlobUploadPagesFromURLExceptionHeaders:dr,PageBlobGetPageRangesHeaders:ur,PageBlobGetPageRangesExceptionHeaders:mr,PageBlobGetPageRangesDiffHeaders:hr,PageBlobGetPageRangesDiffExceptionHeaders:fr,PageBlobResizeHeaders:gr,PageBlobResizeExceptionHeaders:yr,PageBlobUpdateSequenceNumberHeaders:vr,PageBlobUpdateSequenceNumberExceptionHeaders:br,PageBlobCopyIncrementalHeaders:xr,PageBlobCopyIncrementalExceptionHeaders:wr,AppendBlobCreateHeaders:Sr,AppendBlobCreateExceptionHeaders:Er,AppendBlobAppendBlockHeaders:Tr,AppendBlobAppendBlockExceptionHeaders:Nr,AppendBlobAppendBlockFromUrlHeaders:_r,AppendBlobAppendBlockFromUrlExceptionHeaders:Pr,AppendBlobSealHeaders:Cr,AppendBlobSealExceptionHeaders:Or,BlockBlobUploadHeaders:Rr,BlockBlobUploadExceptionHeaders:Ar,BlockBlobPutBlobFromUrlHeaders:Dr,BlockBlobPutBlobFromUrlExceptionHeaders:Ir,BlockBlobStageBlockHeaders:kr,BlockBlobStageBlockExceptionHeaders:Lr,BlockBlobStageBlockFromURLHeaders:Mr,BlockBlobStageBlockFromURLExceptionHeaders:Br,BlockBlobCommitBlockListHeaders:jr,BlockBlobCommitBlockListExceptionHeaders:zr,BlockBlobGetBlockListHeaders:Fr,BlockBlobGetBlockListExceptionHeaders:qr});const Gr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Hr={parameterPath:"blobServiceProperties",mapper:w};const Vr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const $r={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Xr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Wr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kr={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Qr={parameterPath:"version",mapper:{defaultValue:"2021-12-02",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const Yr={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const Jr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Zr={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ei={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ti={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const ri={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const ii={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const si={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:i.QueryCollectionFormat.Csv};const ai={parameterPath:"keyInfo",mapper:I};const ni={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const oi={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const pi={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const li={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ci={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const di={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const ui={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mi={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const hi={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const fi={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const gi={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const yi={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const vi={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const bi={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const xi={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const wi={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Si={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ei={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _i={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Pi={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Ci={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oi={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Ri={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Ai={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Di={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Ii={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const ki={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Li={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Mi={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Bi={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ji={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const zi={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Fi={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const qi={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Ui={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:i.QueryCollectionFormat.Csv};const Gi={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Hi={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Vi={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const $i={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Xi={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Wi={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Ki={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Qi={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const Yi={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Ji={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Zi={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const es={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const ts={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const rs={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const is={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ss={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const as={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const ns={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const os={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const ps={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const ls={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const cs={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const ds={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const us={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ms={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const hs={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const fs={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gs={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ys={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const vs={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bs={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"]}}};const xs={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const ws={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Ss={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Es={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Ts={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Ns={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const _s={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Ps={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Cs={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Os={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Rs={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const As={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Ds={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Is={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const ks={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ls={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const Ms={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Bs={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const js={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const zs={parameterPath:["options","queryRequest"],mapper:re};const Fs={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const qs={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Us={parameterPath:["options","tags"],mapper:B};const Gs={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Hs={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Vs={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const $s={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Xs={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Ws={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ks={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Qs={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ys={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Js={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Zs={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ea={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const ta={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const ra={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ia={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const sa={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const aa={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const na={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const oa={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const pa={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const la={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const ca={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const da={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ua={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ma={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ha={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const fa={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const ga={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const ya={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const va={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ba={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const xa={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wa={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Sa={parameterPath:"blocks",mapper:Q};const Ea={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ta={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(e){this.client=e}setProperties(e,t){const r={blobServiceProperties:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,_a)}getProperties(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Pa)}getStatistics(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ca)}listContainersSegment(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Oa)}getUserDelegationKey(e,t){const r={keyInfo:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ra)}getAccountInfo(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Aa)}submitBatch(e,t,r,i){const s={contentLength:e,multipartContentType:t,body:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Da)}filterBlobs(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ia)}}const Na=new y.Serializer(Ur,true);const _a={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:le},default:{bodyMapper:P,headersMapper:ce}},requestBody:Hr,queryParameters:[Xr,Wr,Kr],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Na};const Pa={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:w,headersMapper:de},default:{bodyMapper:P,headersMapper:ue}},queryParameters:[Xr,Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};const Ca={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:C,headersMapper:me},default:{bodyMapper:P,headersMapper:he}},queryParameters:[Xr,Kr,Zr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};const Oa={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:R,headersMapper:fe},default:{bodyMapper:P,headersMapper:ge}},queryParameters:[Kr,ei,ti,ri,ii,si],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};const Ra={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:k,headersMapper:ye},default:{bodyMapper:P,headersMapper:ve}},requestBody:ai,queryParameters:[Xr,Kr,ni],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Na};const Aa={path:"/",httpMethod:"GET",responses:{200:{headersMapper:be},default:{bodyMapper:P,headersMapper:xe}},queryParameters:[Wr,oi],urlParameters:[$r],headerParameters:[Qr,Jr],isXML:true,serializer:Na};const Da={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:we},default:{bodyMapper:P,headersMapper:Se}},requestBody:pi,queryParameters:[Kr,li],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,ci,di],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Na};const Ia={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:L,headersMapper:Ee},default:{bodyMapper:P,headersMapper:Te}},queryParameters:[Kr,ri,ii,ui,mi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Na};class Container{constructor(e){this.client=e}create(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,La)}getProperties(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ma)}delete(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ba)}setMetadata(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,ja)}getAccessPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,za)}setAccessPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Fa)}restore(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,qa)}rename(e,t){const r={sourceContainerName:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ua)}submitBatch(e,t,r,i){const s={contentLength:e,multipartContentType:t,body:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ga)}filterBlobs(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ha)}acquireLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Va)}releaseLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,$a)}renewLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Xa)}breakLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Wa)}changeLease(e,t,r){const i={leaseId:e,proposedLeaseId:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ka)}listBlobFlatSegment(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Qa)}listBlobHierarchySegment(e,t){const r={delimiter:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ya)}getAccountInfo(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Ja)}}const ka=new y.Serializer(Ur,true);const La={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ne},default:{bodyMapper:P,headersMapper:_e}},queryParameters:[Kr,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,gi,yi,vi],isXML:true,serializer:ka};const Ma={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Pe},default:{bodyMapper:P,headersMapper:Ce}},queryParameters:[Kr,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi],isXML:true,serializer:ka};const Ba={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Oe},default:{bodyMapper:P,headersMapper:Re}},queryParameters:[Kr,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi],isXML:true,serializer:ka};const ja={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ae},default:{bodyMapper:P,headersMapper:De}},queryParameters:[Kr,hi,Si],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi],isXML:true,serializer:ka};const za={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Ie},default:{bodyMapper:P,headersMapper:ke}},queryParameters:[Kr,hi,Ei],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi],isXML:true,serializer:ka};const Fa={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Le},default:{bodyMapper:P,headersMapper:Me}},requestBody:Ti,queryParameters:[Kr,hi,Ei],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,gi,bi,xi,wi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const qa={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Be},default:{bodyMapper:P,headersMapper:je}},queryParameters:[Kr,hi,Ni],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,_i,Pi],isXML:true,serializer:ka};const Ua={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ze},default:{bodyMapper:P,headersMapper:Fe}},queryParameters:[Kr,hi,Ci],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,Oi,Ri],isXML:true,serializer:ka};const Ga={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:qe},default:{bodyMapper:P,headersMapper:Ue}},requestBody:pi,queryParameters:[Kr,li,hi],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,ci,di],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const Ha={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:L,headersMapper:Ge},default:{bodyMapper:P,headersMapper:He}},queryParameters:[Kr,ri,ii,ui,mi,hi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:ka};const Va={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ve},default:{bodyMapper:P,headersMapper:$e}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Di,Ii,ki],isXML:true,serializer:ka};const $a={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Xe},default:{bodyMapper:P,headersMapper:We}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Li,Mi],isXML:true,serializer:ka};const Xa={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ke},default:{bodyMapper:P,headersMapper:Qe}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Bi],isXML:true,serializer:ka};const Wa={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Ye},default:{bodyMapper:P,headersMapper:Je}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,ji,zi],isXML:true,serializer:ka};const Ka={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ze},default:{bodyMapper:P,headersMapper:et}},queryParameters:[Kr,hi,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Fi,qi],isXML:true,serializer:ka};const Qa={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:tt},default:{bodyMapper:P,headersMapper:rt}},queryParameters:[Kr,ei,ti,ri,ii,hi,Ui],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:ka};const Ya={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:X,headersMapper:it},default:{bodyMapper:P,headersMapper:st}},queryParameters:[Kr,ei,ti,ri,ii,hi,Ui,Gi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:ka};const Ja={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:nt},default:{bodyMapper:P,headersMapper:ot}},queryParameters:[Wr,oi],urlParameters:[$r],headerParameters:[Qr,Jr],isXML:true,serializer:ka};class Blob$1{constructor(e){this.client=e}download(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,en)}getProperties(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,tn)}delete(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,rn)}undelete(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,sn)}setExpiry(e,t){const r={expiryOptions:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,an)}setHttpHeaders(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,nn)}setImmutabilityPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,on)}deleteImmutabilityPolicy(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,pn)}setLegalHold(e,t){const r={legalHold:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,ln)}setMetadata(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,cn)}acquireLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,dn)}releaseLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,un)}renewLease(e,t){const r={leaseId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,mn)}changeLease(e,t,r){const i={leaseId:e,proposedLeaseId:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,hn)}breakLease(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,fn)}createSnapshot(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,gn)}startCopyFromURL(e,t){const r={copySource:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,yn)}copyFromURL(e,t){const r={copySource:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,vn)}abortCopyFromURL(e,t){const r={copyId:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,bn)}setTier(e,t){const r={tier:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,xn)}getAccountInfo(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,wn)}query(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Sn)}getTags(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,En)}setTags(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Tn)}}const Za=new y.Serializer(Ur,true);const en={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:pt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:pt},default:{bodyMapper:P,headersMapper:ct}},queryParameters:[Kr,Hi,Vi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,$i,Xi,Wi,Ki,Qi,Yi,Ji,Zi,es],isXML:true,serializer:Za};const tn={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:dt},default:{bodyMapper:P,headersMapper:ut}},queryParameters:[Kr,Hi,Vi],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es],isXML:true,serializer:Za};const rn={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:mt},default:{bodyMapper:P,headersMapper:ht}},queryParameters:[Kr,Hi,Vi,rs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,es,ts],isXML:true,serializer:Za};const sn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ft},default:{bodyMapper:P,headersMapper:yt}},queryParameters:[Kr,Ni],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Za};const an={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vt},default:{bodyMapper:P,headersMapper:bt}},queryParameters:[Kr,is],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ss,as],isXML:true,serializer:Za};const nn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xt},default:{bodyMapper:P,headersMapper:wt}},queryParameters:[Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,es,ns,os,ps,ls,cs,ds],isXML:true,serializer:Za};const on={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:St},default:{bodyMapper:P,headersMapper:Et}},queryParameters:[Kr,us],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,wi,ms,hs],isXML:true,serializer:Za};const pn={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Tt},default:{bodyMapper:P,headersMapper:Nt}},queryParameters:[Kr,us],urlParameters:[$r],headerParameters:[Qr,Yr,Jr],isXML:true,serializer:Za};const ln={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:P,headersMapper:Pt}},queryParameters:[Kr,fs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,gs],isXML:true,serializer:Za};const cn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ct},default:{bodyMapper:P,headersMapper:Ot}},queryParameters:[Kr,Si],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys],isXML:true,serializer:Za};const dn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rt},default:{bodyMapper:P,headersMapper:At}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Di,Ii,ki,Ji,Zi,es],isXML:true,serializer:Za};const un={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Dt},default:{bodyMapper:P,headersMapper:It}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Li,Mi,Ji,Zi,es],isXML:true,serializer:Za};const mn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kt},default:{bodyMapper:P,headersMapper:Lt}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Bi,Ji,Zi,es],isXML:true,serializer:Za};const hn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Mt},default:{bodyMapper:P,headersMapper:Bt}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Mi,Fi,qi,Ji,Zi,es],isXML:true,serializer:Za};const fn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jt},default:{bodyMapper:P,headersMapper:zt}},queryParameters:[Kr,Ai],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,ji,zi,Ji,Zi,es],isXML:true,serializer:Za};const gn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ft},default:{bodyMapper:P,headersMapper:qt}},queryParameters:[Kr,vs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys],isXML:true,serializer:Za};const yn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ut},default:{bodyMapper:P,headersMapper:Gt}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ji,Zi,es,ms,hs,bs,xs,ws,Ss,Es,Ts,Ns,_s,Ps,Cs,Os],isXML:true,serializer:Za};const vn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ht},default:{bodyMapper:P,headersMapper:Vt}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,fi,bi,xi,wi,Ji,Zi,es,ms,hs,ys,bs,ws,Ss,Es,Ts,_s,Ps,Os,Rs,As,Ds,Is],isXML:true,serializer:Za};const bn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:$t},default:{bodyMapper:P,headersMapper:Xt}},queryParameters:[Kr,ks,Ms],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,Ls],isXML:true,serializer:Za};const xn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Wt},202:{headersMapper:Wt},default:{bodyMapper:P,headersMapper:Kt}},queryParameters:[Kr,Hi,Vi,Bs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,es,xs,js],isXML:true,serializer:Za};const wn={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Qt},default:{bodyMapper:P,headersMapper:Yt}},queryParameters:[Wr,oi],urlParameters:[$r],headerParameters:[Qr,Jr],isXML:true,serializer:Za};const Sn={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Jt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Jt},default:{bodyMapper:P,headersMapper:Zt}},requestBody:zs,queryParameters:[Kr,Hi,Fs],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Za};const En={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:B,headersMapper:er},default:{bodyMapper:P,headersMapper:tr}},queryParameters:[Kr,Hi,Vi,qs],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,es],isXML:true,serializer:Za};const Tn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:rr},default:{bodyMapper:P,headersMapper:ir}},requestBody:Us,queryParameters:[Kr,Vi,qs],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,bi,es,Gs,Hs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Za};class PageBlob{constructor(e){this.client=e}create(e,t,r){const i={contentLength:e,blobContentLength:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Pn)}uploadPages(e,t,r){const i={contentLength:e,body:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Cn)}clearPages(e,t){const r={contentLength:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,On)}uploadPagesFromURL(e,t,r,i,s){const a={sourceUrl:e,sourceRange:t,contentLength:r,range:i,options:y.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Rn)}getPageRanges(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,An)}getPageRangesDiff(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,Dn)}resize(e,t){const r={blobContentLength:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,In)}updateSequenceNumber(e,t){const r={sequenceNumberAction:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,kn)}copyIncremental(e,t){const r={copySource:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Ln)}}const Nn=new y.Serializer(Ur,true);const _n=new y.Serializer(Ur,false);const Pn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sr},default:{bodyMapper:P,headersMapper:ar}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,bs,Ps,Os,Vs,$s,Xs],isXML:true,serializer:Nn};const Cn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:nr},default:{bodyMapper:P,headersMapper:or}},requestBody:Ks,queryParameters:[Kr,Ys],urlParameters:[$r],headerParameters:[Qr,Yr,ci,bi,xi,wi,$i,Ki,Qi,Yi,Ji,Zi,es,ys,Gs,Hs,Ws,Qs,Js,Zs,ea,ta],mediaType:"binary",serializer:_n};const On={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:P,headersMapper:lr}},queryParameters:[Kr,Ys],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,xi,wi,$i,Ki,Qi,Yi,Ji,Zi,es,ys,Zs,ea,ta,ra],isXML:true,serializer:Nn};const Rn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cr},default:{bodyMapper:P,headersMapper:dr}},queryParameters:[Kr,Ys],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,ws,Ss,Es,Ts,As,Ds,Js,Zs,ea,ta,ia,sa,aa,na],isXML:true,serializer:Nn};const An={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Z,headersMapper:ur},default:{bodyMapper:P,headersMapper:mr}},queryParameters:[Kr,ri,ii,Hi,oa],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,$i,Ji,Zi,es],isXML:true,serializer:Nn};const Dn={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Z,headersMapper:hr},default:{bodyMapper:P,headersMapper:fr}},queryParameters:[Kr,ri,ii,Hi,oa,pa],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,$i,Ji,Zi,es,la],isXML:true,serializer:Nn};const In={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:gr},default:{bodyMapper:P,headersMapper:yr}},queryParameters:[Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,$s],isXML:true,serializer:Nn};const kn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vr},default:{bodyMapper:P,headersMapper:br}},queryParameters:[Wr,Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,es,Xs,ca],isXML:true,serializer:Nn};const Ln={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:xr},default:{bodyMapper:P,headersMapper:wr}},queryParameters:[Kr,da],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,xi,wi,Ji,Zi,es,_s],isXML:true,serializer:Nn};class AppendBlob{constructor(e){this.client=e}create(e,t){const r={contentLength:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,jn)}appendBlock(e,t,r){const i={contentLength:e,body:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,zn)}appendBlockFromUrl(e,t,r){const i={sourceUrl:e,contentLength:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fn)}seal(e){const t={options:y.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,qn)}}const Mn=new y.Serializer(Ur,true);const Bn=new y.Serializer(Ur,false);const jn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sr},default:{bodyMapper:P,headersMapper:Er}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,Ps,Os,ua],isXML:true,serializer:Mn};const zn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Tr},default:{bodyMapper:P,headersMapper:Nr}},requestBody:Ks,queryParameters:[Kr,ma],urlParameters:[$r],headerParameters:[Qr,Yr,ci,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,Gs,Hs,Ws,Qs,ha,fa],mediaType:"binary",serializer:Bn};const Fn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_r},default:{bodyMapper:P,headersMapper:Pr}},queryParameters:[Kr,ma],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ys,ws,Ss,Es,Ts,As,Ds,Gs,ia,aa,ha,fa,ga],isXML:true,serializer:Mn};const qn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Cr},default:{bodyMapper:P,headersMapper:Or}},queryParameters:[Kr,ya],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,xi,wi,Ji,Zi,fa],isXML:true,serializer:Mn};class BlockBlob{constructor(e){this.client=e}upload(e,t,r){const i={contentLength:e,body:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hn)}putBlobFromUrl(e,t,r){const i={contentLength:e,copySource:t,options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Vn)}stageBlock(e,t,r,i){const s={blockId:e,contentLength:t,body:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,$n)}stageBlockFromURL(e,t,r,i){const s={blockId:e,contentLength:t,sourceUrl:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Xn)}commitBlockList(e,t){const r={blocks:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Wn)}getBlockList(e,t){const r={listType:e,options:y.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(r,Kn)}}const Un=new y.Serializer(Ur,true);const Gn=new y.Serializer(Ur,false);const Hn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rr},default:{bodyMapper:P,headersMapper:Ar}},requestBody:Ks,queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,bs,Ps,Os,Gs,Hs,Ws,Qs,va],mediaType:"binary",serializer:Gn};const Vn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:P,headersMapper:Ir}},queryParameters:[Kr],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ys,bs,ws,Ss,Es,Ts,Ns,_s,Ps,As,Ds,Is,Gs,va,ba],isXML:true,serializer:Un};const $n={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:kr},default:{bodyMapper:P,headersMapper:Lr}},requestBody:Ks,queryParameters:[Kr,xa,wa],urlParameters:[$r],headerParameters:[Qr,Yr,ci,bi,Ki,Qi,Yi,ys,Gs,Hs,Ws,Qs],mediaType:"binary",serializer:Gn};const Xn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:P,headersMapper:Br}},queryParameters:[Kr,xa,wa],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,ci,bi,Ki,Qi,Yi,ys,ws,Ss,Es,Ts,As,Ds,ia,aa,ga],isXML:true,serializer:Un};const Wn={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jr},default:{bodyMapper:P,headersMapper:zr}},requestBody:Sa,queryParameters:[Kr,Ea],urlParameters:[$r],headerParameters:[Gr,Vr,Qr,Yr,fi,bi,xi,wi,Ki,Qi,Yi,Ji,Zi,es,ns,os,ps,ls,cs,ds,ms,hs,ys,bs,Ps,Os,Gs,Hs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Un};const Kn={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Y,headersMapper:Fr},default:{bodyMapper:P,headersMapper:qr}},queryParameters:[Kr,Hi,Ea,Ta],urlParameters:[$r],headerParameters:[Qr,Yr,Jr,bi,es],isXML:true,serializer:Un};const Qn=n.createClientLogger("storage-blob");const Yn="12.13.0";const Jn="2021-12-02";const Zn=256*1024*1024;const eo=4e3*1024*1024;const to=5e4;const ro=8*1024*1024;const io=4*1024*1024;const so=5;const ao=100*1e3;const no="https://storage.azure.com/.default";const oo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const po={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const lo={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"};const co="";const uo="*";const mo=1*1024*1024;const ho=256;const fo=4*mo;const go="\r\n";const yo="HTTP/1.1";const vo="AES256";const bo=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const xo=["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-if-tags","x-ms-source-if-tags"];const wo=["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"];const So="BlobUsesCustomerSpecifiedEncryption";const Eo="BlobDoesNotUseCustomerSpecifiedEncryption";const To=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=i.URLBuilder.parse(e);let r=t.getPath();r=r||"/";r=escape(r);t.setPath(r);return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=bo}let r=getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let s="";let a=Buffer.from("accountKey","base64");let n="";s=getValueInConnString(e,"AccountName");a=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!r){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}n=getValueInConnString(e,"EndpointSuffix");if(!n){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${i}://${s}.blob.${n}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(a.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:a,proxyUri:t}}else{const t=getValueInConnString(e,"SharedAccessSignature");const i=getAccountNameFromUrl(r);if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:r,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const r=i.URLBuilder.parse(e);let s=r.getPath();s=s?s.endsWith("/")?`${s}${t}`:`${s}/${t}`:t;r.setPath(s);const a=new URL(r.toString());return a.toString()}function setURLParameter(e,t,r){const s=i.URLBuilder.parse(e);s.setQueryParameter(t,r);return s.toString()}function getURLParameter(e,t){const r=i.URLBuilder.parse(e);return r.getQueryParameterValue(t)}function setURLHost(e,t){const r=i.URLBuilder.parse(e);r.setHost(t);return r.toString()}function getURLPath(e){const t=i.URLBuilder.parse(e);return t.getPath()}function getURLScheme(e){const t=i.URLBuilder.parse(e);return t.getScheme()}function getURLPathAndQuery(e){const t=i.URLBuilder.parse(e);const r=t.getPath();if(!r){throw new RangeError("Invalid url without valid path.")}let s=t.getQuery()||"";s=s.trim();if(s!==""){s=s.startsWith("?")?s:`?${s}`}return`${r}${s}`}function getURLQueries(e){let t=i.URLBuilder.parse(e).getQuery();if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substr(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const a=e+padStart(t.toString(),r-e.length,"0");return base64encode(a)}async function delay(e,t,r){return new Promise(((i,s)=>{let a;const abortHandler=()=>{if(a!==undefined){clearTimeout(a)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};a=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=i.URLBuilder.parse(e);let r;try{if(t.getHost().split(".")[1]==="blob"){r=t.getHost().split(".")[0]}else if(isIpEndpointStyle(t)){r=t.getPath().split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){if(e.getHost()===undefined){return false}const t=e.getHost()+(e.getPort()===undefined?"":":"+e.getPort());return/^.*:.*:.*$|^localhost(:[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.getPort()!==undefined&&To.includes(e.getPort())}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(i)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r];t.blobTagSet.push({key:r,value:i})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const r of e.blobTagSet){t[r.key]=r.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}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||false}}};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 parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const r in e){const i=r.split("_");const s="or-";if(i[0].startsWith(s)){i[0]=i[0].substring(s.length)}const a={ruleId:i[1],replicationStatus:e[r]};const n=t.findIndex((e=>e.policyId===i[0]));if(n>-1){t[n].rules.push(a)}else{t.push({policyId:i[0],rules:[a]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return Object.assign(Object.assign({},e),{segment:{blobItems:e.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name)});return t}))}})}function ConvertInternalResponseOfListBlobHierarchy(e){var t;return Object.assign(Object.assign({},e),{segment:{blobPrefixes:(t=e.segment.blobPrefixes)===null||t===void 0?void 0:t.map((e=>{const t={name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name)});return t}))}})}function*ExtractPageRangeInfoItems(e){let t=[];let r=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)r=e.clearRange;let i=0;let s=0;while(i=1?Math.floor(r.maxTries):No.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:No.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:No.maxRetryDelayInMs):No.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:No.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:No.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,r){const i=e.clone();const s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;if(!s){i.url=setURLHost(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=setURLParameter(i.url,oo.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let a;try{Qn.info(`RetryPolicy: =====> Try=${r} ${s?"Primary":"Secondary"}`);a=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(s,r,a)){return a}t=t||!s&&a.status===404}catch(e){Qn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(s,r,a,e)){throw e}}await this.delay(s,r,e.abortSignal);return this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,i){if(t>=this.retryOptions.maxTries){Qn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of s){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){Qn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(r||i){const t=r?r.status:i?i.statusCode:0;if(!e&&t===404){Qn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){Qn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if((i===null||i===void 0?void 0:i.code)==="PARSE_ERROR"&&(i===null||i===void 0?void 0:i.message.startsWith(`Error "Error: Unclosed root tag`))){Qn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,r,i){let s=0;if(e){switch(this.retryOptions.retryPolicyType){case t.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case t.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}}else{s=Math.random()*1e3}Qn.info(`RetryPolicy: Delay for ${s}ms`);return delay(s,i,_o)}}class StorageRetryPolicyFactory{constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(e,t){super(e,t)}}class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(e,t){return new AnonymousCredentialPolicy(e,t)}}class TelemetryPolicy extends i.BaseRequestPolicy{constructor(e,t,r){super(e,t);this.telemetry=r}async sendRequest(e){if(i.isNode){if(!e.headers){e.headers=new i.HttpHeaders}if(!e.headers.get(lo.USER_AGENT)){e.headers.set(lo.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(e)}}class TelemetryPolicyFactory{constructor(e){const t=[];if(i.isNode){if(e){const r=e.userAgentPrefix||"";if(r.length>0&&t.indexOf(r)===-1){t.push(r)}}const r=`azsdk-js-storageblob/${Yn}`;if(t.indexOf(r)===-1){t.push(r)}let i=`(NODE-VERSION ${process.version})`;if(v){i=`(NODE-VERSION ${process.version}; ${v.type()} ${v.release()})`}if(t.indexOf(i)===-1){t.push(i)}}this.telemetryString=t.join(" ")}create(e,t){return new TelemetryPolicy(e,t,this.telemetryString)}}const Po=new i.DefaultHttpClient;function getCachedDefaultHttpClient(){return Po}const Co={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Oo={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,r);i=beginRefresh(tryGetAccessToken,a.retryIntervalInMs,(o=s===null||s===void 0?void 0:s.expiresOnTimestamp)!==null&&o!==void 0?o:Date.now()).then((e=>{i=null;s=e;return s})).catch((e=>{i=null;s=null;throw e}))}return i}return async e=>{if(n.mustRefresh)return refresh(e);if(n.shouldRefresh){refresh(e)}return s}}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const r=`${t.trim()} `.split(" ").filter((e=>e));const i=r.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}function storageBearerTokenChallengeAuthenticationPolicy(e,t){let r=createTokenCycler(e,t);class StorageBearerTokenChallengeAuthenticationPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(t){if(!t.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const s=r;const a=(await s({abortSignal:t.abortSignal,tracingOptions:{tracingContext:t.tracingContext}})).token;t.headers.set(Co.HeaderConstants.AUTHORIZATION,`Bearer ${a}`);const n=await this._nextPolicy.sendRequest(t);if((n===null||n===void 0?void 0:n.status)===401){const s=getChallenge(n);if(s){const a=parseChallenge(s);const n=a.resource_id+Co.DefaultScope;const o=i.URLBuilder.parse(a.authorization_uri);const p=o.getPath().split("/");const l=p[1];const c=createTokenCycler(e,n);const d=(await c({abortSignal:t.abortSignal,tracingOptions:{tracingContext:t.tracingContext},tenantId:l})).token;r=c;t.headers.set(Co.HeaderConstants.AUTHORIZATION,`Bearer ${d}`);return this._nextPolicy.sendRequest(t)}}return n}}return{create:(e,t)=>new StorageBearerTokenChallengeAuthenticationPolicy(e,t)}}function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{constructor(e,t={}){this.factories=e;this.options=Object.assign(Object.assign({},t),{httpClient:t.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){var r;if(e===undefined){e=new AnonymousCredential}const s=new TelemetryPolicyFactory(t.userAgentOptions);const a=[i.tracingPolicy({userAgent:s.telemetryString}),i.keepAlivePolicy(t.keepAliveOptions),s,i.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(t.retryOptions),i.deserializationPolicy(undefined,{xmlCharKey:"#"}),i.logPolicy({logger:Qn.info,allowedHeaderNames:xo,allowedQueryParameters:wo})];if(i.isNode){a.push(i.proxyPolicy(t.proxyOptions));a.push(i.disableResponseDecompressionPolicy())}a.push(i.isTokenCredential(e)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(e,(r=t.audience)!==null&&r!==void 0?r:no),e):e);return new Pipeline(a,t)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(e,t,r){super(e,t);this.factory=r}signRequest(e){e.headers.set(lo.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(lo.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,lo.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,lo.CONTENT_ENCODING),this.getHeaderValueToSign(e,lo.CONTENT_LENGTH),this.getHeaderValueToSign(e,lo.CONTENT_MD5),this.getHeaderValueToSign(e,lo.CONTENT_TYPE),this.getHeaderValueToSign(e,lo.DATE),this.getHeaderValueToSign(e,lo.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,lo.IF_MATCH),this.getHeaderValueToSign(e,lo.IF_NONE_MATCH),this.getHeaderValueToSign(e,lo.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,lo.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const r=this.factory.computeHMACSHA256(t);e.headers.set(lo.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`);return e}getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===lo.CONTENT_LENGTH&&r==="0"){return""}return r}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(lo.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let r="";r+=`/${this.factory.accountName}${t}`;const i=getURLQueries(e.url);const s={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const r=t.toLowerCase();s[r]=i[t];e.push(r)}}e.sort();for(const t of e){r+=`\n${t}:${decodeURIComponent(s[t])}`}}return r}}class StorageSharedKeyCredential extends Credential{constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return l.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const Ro="azure-storage-blob";const Ao="12.13.0";class StorageClientContext extends y.ServiceClient{constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}if(!t.userAgent){const e=y.getDefaultUserAgentValue();t.userAgent=`${Ro}/${Ao} ${e}`}super(undefined,t);this.requestContentType="application/json; charset=utf-8";this.baseUri=t.endpoint||"{url}";this.url=e;this.version=t.version||"2021-12-02"}}class StorageClient{constructor(e,t){this.url=escapeURLPath(e);this.accountName=getAccountNameFromUrl(e);this.pipeline=t;this.storageClientContext=new StorageClientContext(this.url,t.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const e of this.pipeline.factories){if(i.isNode&&e instanceof StorageSharedKeyCredential||e instanceof AnonymousCredential){this.credential=e}else if(i.isTokenCredential(e.credential)){this.credential=e.credential}}const r=this.storageClientContext;r.requestContentType=undefined}}const Do=a.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(e){var t,r;return{spanOptions:(t=e===null||e===void 0?void 0:e.tracingOptions)===null||t===void 0?void 0:t.spanOptions,tracingContext:(r=e===null||e===void 0?void 0:e.tracingOptions)===null||r===void 0?void 0:r.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(e){const t=new BlobSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${r}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(e){const t=new ContainerSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${r}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}class UserDelegationKeyCredential{constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return l.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}}function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}t.SASProtocol=void 0;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(t.SASProtocol||(t.SASProtocol={}));class SASQueryParameters{constructor(e,t,r,i,s,a,n,o,p,l,c,d,u,h,g,y,v,b,x,w){this.version=e;this.signature=t;if(r!==undefined&&typeof r!=="string"){this.permissions=r.permissions;this.services=r.services;this.resourceTypes=r.resourceTypes;this.protocol=r.protocol;this.startsOn=r.startsOn;this.expiresOn=r.expiresOn;this.ipRangeInner=r.ipRange;this.identifier=r.identifier;this.encryptionScope=r.encryptionScope;this.resource=r.resource;this.cacheControl=r.cacheControl;this.contentDisposition=r.contentDisposition;this.contentEncoding=r.contentEncoding;this.contentLanguage=r.contentLanguage;this.contentType=r.contentType;if(r.userDelegationKey){this.signedOid=r.userDelegationKey.signedObjectId;this.signedTenantId=r.userDelegationKey.signedTenantId;this.signedStartsOn=r.userDelegationKey.signedStartsOn;this.signedExpiresOn=r.userDelegationKey.signedExpiresOn;this.signedService=r.userDelegationKey.signedService;this.signedVersion=r.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=r.preauthorizedAgentObjectId;this.correlationId=r.correlationId}}else{this.services=i;this.resourceTypes=s;this.expiresOn=o;this.permissions=r;this.protocol=a;this.startsOn=n;this.ipRangeInner=p;this.encryptionScope=w;this.identifier=l;this.resource=c;this.cacheControl=d;this.contentDisposition=u;this.contentEncoding=h;this.contentLanguage=g;this.contentType=y;if(v){this.signedOid=v.signedObjectId;this.signedTenantId=v.signedTenantId;this.signedStartsOn=v.signedStartsOn;this.signedExpiresOn=v.signedExpiresOn;this.signedService=v.signedService;this.signedVersion=v.signedVersion;this.preauthorizedAgentObjectId=b;this.correlationId=x}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const t=[];for(const r of e){switch(r){case"sv":this.tryAppendQueryParameter(t,r,this.version);break;case"ss":this.tryAppendQueryParameter(t,r,this.services);break;case"srt":this.tryAppendQueryParameter(t,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,r,this.protocol);break;case"st":this.tryAppendQueryParameter(t,r,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,r,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,r,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,r,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,r,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,r,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,r,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,r,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,r,this.resource);break;case"sp":this.tryAppendQueryParameter(t,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,r,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,r,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,r,this.correlationId);break}}return t.join("&")}tryAppendQueryParameter(e,t,r){if(!r){return}t=encodeURIComponent(t);r=encodeURIComponent(r);if(t.length>0&&r.length>0){e.push(`${t}=${r}`)}}}function generateBlobSASQueryParameters(e,t,r){const i=e.version?e.version:Jn;const s=t instanceof StorageSharedKeyCredential?t:undefined;let a;if(s===undefined&&r!==undefined){a=new UserDelegationKeyCredential(r,t)}if(s===undefined&&a===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(i>="2020-12-06"){if(s!==undefined){return generateBlobSASQueryParameters20201206(e,s)}else{return generateBlobSASQueryParametersUDK20201206(e,a)}}if(i>="2018-11-09"){if(s!==undefined){return generateBlobSASQueryParameters20181109(e,s)}else{if(i>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,a)}else{return generateBlobSASQueryParametersUDK20181109(e,a)}}}if(i>="2015-04-05"){if(s!==undefined){return generateBlobSASQueryParameters20150405(e,s)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";if(e.blobName){r="b"}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const s=[i?i:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(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("\n");const a=t.computeHMACSHA256(s);return new SASQueryParameters(e.version,a,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId)}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let i=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";i=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[s?s:"",e.startsOn?truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,i,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const n=t.computeHMACSHA256(a);return new SASQueryParameters(e.version,n,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope)}function getCanonicalName(e,t,r){const i=[`/blob/${e}/${t}`];if(r){i.push(`/${r}`)}return i.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:Jn;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&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===undefined&&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.")}e.version=t;return e}class BlobLeaseClient{constructor(e,t){const r=new StorageClientContext(e.url,e.pipeline.toServiceClientOptions());this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(r)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(r)}if(!t){t=i.generateUuid()}this._leaseId=t}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,t={}){var r,i,s,n,o,p;const{span:l,updatedOptions:c}=Do("BlobLeaseClient-acquireLease",t);if(this._isContainer&&(((r=t.conditions)===null||r===void 0?void 0:r.ifMatch)&&((i=t.conditions)===null||i===void 0?void 0:i.ifMatch)!==co||((s=t.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((n=t.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==co||((o=t.conditions)===null||o===void 0?void 0:o.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(p=t.conditions)===null||p===void 0?void 0:p.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(c)))}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}async changeLease(e,t={}){var r,i,s,n,o,p;const{span:l,updatedOptions:c}=Do("BlobLeaseClient-changeLease",t);if(this._isContainer&&(((r=t.conditions)===null||r===void 0?void 0:r.ifMatch)&&((i=t.conditions)===null||i===void 0?void 0:i.ifMatch)!==co||((s=t.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((n=t.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==co||((o=t.conditions)===null||o===void 0?void 0:o.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const r=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(p=t.conditions)===null||p===void 0?void 0:p.tagConditions})},convertTracingToRequestOptionsBase(c)));this._leaseId=e;return r}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}async releaseLease(e={}){var t,r,i,s,n,o;const{span:p,updatedOptions:l}=Do("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(((t=e.conditions)===null||t===void 0?void 0:t.ifMatch)&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==co||((i=e.conditions)===null||i===void 0?void 0:i.ifNoneMatch)&&((s=e.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==co||((n=e.conditions)===null||n===void 0?void 0:n.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(o=e.conditions)===null||o===void 0?void 0:o.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(e){p.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{p.end()}}async renewLease(e={}){var t,r,i,s,n,o;const{span:p,updatedOptions:l}=Do("BlobLeaseClient-renewLease",e);if(this._isContainer&&(((t=e.conditions)===null||t===void 0?void 0:t.ifMatch)&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==co||((i=e.conditions)===null||i===void 0?void 0:i.ifNoneMatch)&&((s=e.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==co||((n=e.conditions)===null||n===void 0?void 0:n.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(o=e.conditions)===null||o===void 0?void 0:o.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(e){p.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{p.end()}}async breakLease(e,t={}){var r,i,s,n,o,p;const{span:l,updatedOptions:c}=Do("BlobLeaseClient-breakLease",t);if(this._isContainer&&(((r=t.conditions)===null||r===void 0?void 0:r.ifMatch)&&((i=t.conditions)===null||i===void 0?void 0:i.ifMatch)!==co||((s=t.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((n=t.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==co||((o=t.conditions)===null||o===void 0?void 0:o.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const r=Object.assign({abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(p=t.conditions)===null||p===void 0?void 0:p.tagConditions})},convertTracingToRequestOptionsBase(c));return await this._containerOrBlobOperation.breakLease(r)}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}}class RetriableReadableStream extends c.Readable{constructor(e,t,r,i,s={}){super({highWaterMark:s.highWaterMark});this.retries=0;this.sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};this.sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new 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}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=t;this.source=e;this.start=r;this.offset=r;this.end=r+i-1;this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0;this.onProgress=s.onProgress;this.options=s;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)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{constructor(e,t,r,i,s={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,i,s)}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 i.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Io=16;const ko=new Uint8Array([79,98,106,1]);const Lo="avro.codec";const Mo="avro.schema";class AvroParser{static async readFixedBytes(e,t,r={}){const i=await e.read(t,{abortSignal:r.abortSignal});if(i.length!==t){throw new Error("Hit stream end.")}return i}static async readByte(e,t={}){const r=await AvroParser.readFixedBytes(e,1,t);return r[0]}static async readZigZagLong(e,t={}){let r=0;let i=0;let s,a,n;do{s=await AvroParser.readByte(e,t);a=s&128;r|=(s&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return i}return r>>1^-(r&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const r=await AvroParser.readByte(e,t);if(r===1){return true}else if(r===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const r=await AvroParser.readFixedBytes(e,4,t);const i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.getFloat32(0,true)}static async readDouble(e,t={}){const r=await AvroParser.readFixedBytes(e,8,t);const i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.getFloat64(0,true)}static async readBytes(e,t={}){const r=await AvroParser.readLong(e,t);if(r<0){throw new Error("Bytes size was negative.")}return e.read(r,{abortSignal:t.abortSignal})}static async readString(e,t={}){const r=await AvroParser.readBytes(e,t);const i=new TextDecoder;return i.decode(r)}static async readMapPair(e,t,r={}){const i=await AvroParser.readString(e,r);const s=await t(e,r);return{key:i,value:s}}static async readMap(e,t,r={}){const readPairMethod=(e,r={})=>AvroParser.readMapPair(e,t,r);const i=await AvroParser.readArray(e,readPairMethod,r);const s={};for(const e of i){s[e.key]=e.value}return s}static async readArray(e,t,r={}){const i=[];for(let s=await AvroParser.readLong(e,r);s!==0;s=await AvroParser.readLong(e,r)){if(s<0){await AvroParser.readLong(e,r);s=-s}while(s--){const s=await t(e,r);i.push(s)}}return i}}var Bo;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(Bo||(Bo={}));var jo;(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"})(jo||(jo={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case jo.NULL:case jo.BOOLEAN:case jo.INT:case jo.LONG:case jo.FLOAT:case jo.DOUBLE:case jo.BYTES:case jo.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch(e){}switch(t){case Bo.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const r={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){r[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(r,e.name);case Bo.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case Bo.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case Bo.ARRAY:case Bo.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case jo.NULL:return AvroParser.readNull();case jo.BOOLEAN:return AvroParser.readBoolean(e,t);case jo.INT:return AvroParser.readInt(e,t);case jo.LONG:return AvroParser.readLong(e,t);case jo.FLOAT:return AvroParser.readFloat(e,t);case jo.DOUBLE:return AvroParser.readDouble(e,t);case jo.BYTES:return AvroParser.readBytes(e,t);case jo.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(e){super();this._symbols=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._symbols[r]}}class AvroUnionType extends AvroType{constructor(e){super();this._types=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._types[r].read(e,t)}}class AvroMapType extends AvroType{constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const r={};r["$schema"]=this._name;for(const i in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,i)){r[i]=await this._fields[i].read(e,t)}}return r}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let r=0;r0){for(let t=0;t0}parseObjects(e={}){return s.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield s.__await(this.initialize(e))}while(this.hasNext()){const t=yield s.__await(this._itemType.read(this._dataStream,{abortSignal:e.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=yield s.__await(AvroParser.readFixedBytes(this._dataStream,Io,{abortSignal:e.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield s.__await(AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal}))}catch(e){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield s.__await(AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal}))}}yield yield s.__await(t)}}))}}class AvroReadable{}const zo=new o.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(e){super();this._readable=e;this._position=0}toUint8Array(e){if(typeof e==="string"){return Buffer.from(e)}return e}get position(){return this._position}async read(e,t={}){var r;if((r=t.abortSignal)===null||r===void 0?void 0:r.aborted){throw zo}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const i=this._readable.read(e);if(i){this._position+=i.length;return this.toUint8Array(i)}else{return new Promise(((r,i)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();r(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();i()};const abortHandler=()=>{cleanUp();i(zo)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends c.Readable{constructor(e,t={}){super();this.avroPaused=true;this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const r=t.$schema;if(typeof r!=="string"){throw Error("Missing schema in avro record.")}switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const 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){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const r=t.name;if(typeof r!=="string"){throw Error("Invalid name in avro error record.")}const i=t.description;if(typeof i!=="string"){throw Error("Invalid description in avro error record.")}const s=t.position;if(typeof s!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:s,name:r,isFatal:e,description:i})}break;default:throw Error(`Unknown schema ${r} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}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 undefined}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(){return undefined}get readableStreamBody(){return i.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}t.BlockBlobTier=void 0;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(t.BlockBlobTier||(t.BlockBlobTier={}));t.PremiumPageBlobTier=void 0;(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"})(t.PremiumPageBlobTier||(t.PremiumPageBlobTier={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=vo}}t.StorageBlobAudience=void 0;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(t.StorageBlobAudience||(t.StorageBlobAudience={}));function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const r=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return Object.assign(Object.assign({},e),{pageRange:t,clearRange:r,_response:Object.assign(Object.assign({},e._response),{parsedBody:{pageRange:t,clearRange:r}})})}class BlobBeginCopyFromUrlPoller extends d.Poller{constructor(e){const{blobClient:t,copySource:r,intervalInMs:i=15e3,onProgress:s,resumeFrom:a,startCopyFromURLOptions:n}=e;let o;if(a){o=JSON.parse(a).state}const p=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},o),{blobClient:t,copySource:r,startCopyFromURLOptions:n}));super(p);if(typeof s==="function"){this.onProgress(s)}this.intervalInMs=i}delay(){return i.delay(this.intervalInMs)}}const Fo=async function cancel(e={}){const t=this.state;const{copyId:r}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!r){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const qo=async function update(e={}){const t=this.state;const{blobClient:r,copySource:i,startCopyFromURLOptions:s}=t;if(!t.isStarted){t.isStarted=true;const e=await r.startCopyFromURL(i,s);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:i,copyProgress:s}=r;const a=t.copyProgress;if(s){t.copyProgress=s}if(i==="pending"&&s!==a&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(i==="success"){t.result=r;t.isCompleted=true}else if(i==="failed"){t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const Uo=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:Object.assign({},e),cancel:Fo,toString:Uo,update:qo}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new 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 Go;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(Go||(Go={}));class Batch{constructor(e=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=Go.Good;if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new u.EventEmitter}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(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=Go.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let r=0;while(re-r){const i=this.byteOffsetInCurrentBuffer+e-r;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,i));this.pushedBytesLength+=e-r;this.byteOffsetInCurrentBuffer=i;r=e;break}else{const e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(a===s){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=a;r+=a}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}const Ho=r(4300).constants.MAX_LENGTH;class PooledBuffer{constructor(e,t,r){this.buffers=[];this.capacity=e;this._size=0;const i=Math.ceil(e/Ho);for(let t=0;t0){e[0]=e[0].slice(a)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(e,t,r,i,s,a){this.emitter=new u.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(r<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${r}`)}if(s<=0){throw new RangeError(`concurrency must be larger than 0, current is ${s}`)}this.bufferSize=t;this.maxBuffers=r;this.readable=e;this.outgoingHandler=i;this.concurrency=s;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);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;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.unresolvedLengthr.getReadableStream()),r.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){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(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();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const 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);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(e,t,r,i,s){let a=0;const n=i-r;return new Promise(((i,o)=>{const p=setTimeout((()=>o(new Error(`The operation cannot be completed in timeout.`))),ao);e.on("readable",(()=>{if(a>=n){clearTimeout(p);i();return}let o=e.read();if(!o){return}if(typeof o==="string"){o=Buffer.from(o,s)}const l=a+o.length>n?n-a:o.length;t.fill(o.slice(0,l),r+a,r+a+l);a+=l}));e.on("end",(()=>{clearTimeout(p);if(a{clearTimeout(p);o(e)}))}))}async function streamToBuffer2(e,t,r){let i=0;const s=t.length;return new Promise(((a,n)=>{e.on("readable",(()=>{let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,r)}if(i+a.length>s){n(new Error(`Stream exceeds buffer size. Buffer size: ${s}`));return}t.fill(a,i,i+a.length);i+=a.length}));e.on("end",(()=>{a(i)}));e.on("error",n)}))}async function readStreamToLocalFile(e,t){return new Promise(((r,i)=>{const s=b.createWriteStream(t);e.on("error",(e=>{i(e)}));s.on("error",(e=>{i(e)}));s.on("close",r);e.pipe(s)}))}const Vo=x.promisify(b.stat);const $o=b.createReadStream;class BlobClient extends StorageClient{constructor(e,t,r,s){s=s||{};let a;let n;if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,oo.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,oo.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new BlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(setURLParameter(this.url,oo.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,r={}){var s;r.conditions=r.conditions||{};r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const{span:n,updatedOptions:o}=Do("BlobClient-download",r);try{const a=await this.blobContext.download(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onDownloadProgress:i.isNode?undefined:r.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(o)));const n=Object.assign(Object.assign({},a),{_response:a._response,objectReplicationDestinationPolicyId:a.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(a.objectReplicationRules)});if(!i.isNode){return n}if(r.maxRetryRequests===undefined||r.maxRetryRequests<0){r.maxRetryRequests=so}if(a.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!a.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(n,(async t=>{var i;const s={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||a.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions},range:rangeToString({count:e+a.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:r.abortSignal},s))).readableStreamBody}),e,a.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async exists(e={}){const{span:t,updatedOptions:r}=Do("BlobClient-exists",e);try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===So||e.details.errorCode===Eo)){return true}t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getProperties(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-getProperties",e);try{e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);const r=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},convertTracingToRequestOptionsBase(i)));return Object.assign(Object.assign({},r),{_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationRules)})}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async delete(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async deleteIfExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("BlobClient-deleteIfExists",e);try{const e=await this.delete(s);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobNotFound"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async undelete(e={}){const{span:t,updatedOptions:r}=Do("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setHTTPHeaders(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async setMetadata(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async setTags(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)),{tags:toBlobTags(e)}))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async getTags(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-getTags",e);try{const r=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(i)));const s=Object.assign(Object.assign({},r),{_response:r._response,tags:toTags({blobTagSet:r.blobTagSet})||{}});return s}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){var t;const{span:r,updatedOptions:i}=Do("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async beginCopyFromURL(e,t={}){const r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const i=new BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await i.poll();return i}async abortCopyFromURL(e,t={}){const{span:r,updatedOptions:i}=Do("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async syncCopyFromURL(e,t={}){var r,i,s;const{span:n,updatedOptions:o}=Do("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(s=t.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async setAccessTier(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(toAccessTier(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),rehydratePriority:t.rehydratePriority},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async downloadToBuffer(e,t,r,i={}){let s;let n=0;let o=0;let p=i;if(e instanceof Buffer){s=e;n=t||0;o=typeof r==="number"?r:0}else{n=typeof e==="number"?e:0;o=typeof t==="number"?t:0;p=r||{}}const{span:l,updatedOptions:c}=Do("BlobClient-downloadToBuffer",p);try{if(!p.blockSize){p.blockSize=0}if(p.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(p.blockSize===0){p.blockSize=io}if(n<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!p.conditions){p.conditions={}}if(!o){const e=await this.getProperties(Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(c))}));o=e.contentLength-n;if(o<0){throw new RangeError(`offset ${n} shouldn't be larger than blob size ${e.contentLength}`)}}if(!s){try{s=Buffer.alloc(o)}catch(e){throw new 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(s.length{let t=n+o;if(r+p.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).toString();t(appendToURLQuery(this.url,r))}))}async deleteImmutabilityPolicy(e){const{span:t,updatedOptions:r}=Do("BlobClient-deleteImmutabilityPolicy",e);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:e===null||e===void 0?void 0:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setImmutabilityPolicy(e,t){const{span:r,updatedOptions:i}=Do("BlobClient-setImmutabilityPolicy",t);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:t===null||t===void 0?void 0:t.abortSignal,immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,modifiedAccessConditions:t===null||t===void 0?void 0:t.modifiedAccessCondition},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setLegalHold(e,t){const{span:r,updatedOptions:i}=Do("BlobClient-setLegalHold",t);try{return await this.blobContext.setLegalHold(e,Object.assign({abortSignal:t===null||t===void 0?void 0:t.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}}class AppendBlobClient extends BlobClient{constructor(e,t,r,s){let a;let n;s=s||{};if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(e){return new AppendBlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){var t,r,i;const{span:s,updatedOptions:n}=Do("AppendBlobClient-create",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:(r=e.immutabilityPolicy)===null||r===void 0?void 0:r.expiriesOn,immutabilityPolicyMode:(i=e.immutabilityPolicy)===null||i===void 0?void 0:i.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags)},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async createIfNotExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("AppendBlobClient-createIfNotExists",e);const n={ifNoneMatch:uo};try{const e=await this.create(Object.assign(Object.assign({},s),{conditions:n}));return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobAlreadyExists"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async seal(e={}){var t;const{span:r,updatedOptions:i}=Do("AppendBlobClient-seal",e);e.conditions=e.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async appendBlock(e,t,r={}){var i;const{span:s,updatedOptions:n}=Do("AppendBlobClient-appendBlock",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(t,e,Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async appendBlockFromURL(e,t,r,i={}){var s;const{span:n,updatedOptions:o}=Do("AppendBlobClient-appendBlockFromURL",i);i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(e,0,Object.assign({abortSignal:i.abortSignal,sourceRange:rangeToString({offset:t,count:r}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}}class BlockBlobClient extends BlobClient{constructor(e,t,r,s){let a;let n;s=s||{};if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(e){return new BlockBlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){var r;ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);const{span:s,updatedOptions:n}=Do("BlockBlobClient-query",t);try{if(!i.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);const s=await this._blobContext.query(Object.assign({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey},convertTracingToRequestOptionsBase(n)));return new BlobQueryResponse(s,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async upload(e,t,r={}){var i,s,n;r.conditions=r.conditions||{};const{span:o,updatedOptions:p}=Do("BlockBlobClient-upload",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(t,e,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(s=r.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(n=r.immutabilityPolicy)===null||n===void 0?void 0:n.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(p)))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}async syncUploadFromURL(e,t={}){var r,i,s,n,o;t.conditions=t.conditions||{};const{span:p,updatedOptions:l}=Do("BlockBlobClient-syncUploadFromURL",t);try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,e,Object.assign(Object.assign(Object.assign({},t),{blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:t.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(r=t.sourceConditions)===null||r===void 0?void 0:r.ifMatch,sourceIfModifiedSince:(i=t.sourceConditions)===null||i===void 0?void 0:i.ifModifiedSince,sourceIfNoneMatch:(s=t.sourceConditions)===null||s===void 0?void 0:s.ifNoneMatch,sourceIfUnmodifiedSince:(n=t.sourceConditions)===null||n===void 0?void 0:n.ifUnmodifiedSince,sourceIfTags:(o=t.sourceConditions)===null||o===void 0?void 0:o.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags}),convertTracingToRequestOptionsBase(l)))}catch(e){p.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{p.end()}}async stageBlock(e,t,r,i={}){const{span:s,updatedOptions:n}=Do("BlockBlobClient-stageBlock",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(e,r,t,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async stageBlockFromURL(e,t,r=0,i,s={}){const{span:n,updatedOptions:o}=Do("BlockBlobClient-stageBlockFromURL",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(e,0,t,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:r===0&&!i?undefined:rangeToString({offset:r,count:i}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization)},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async commitBlockList(e,t={}){var r,i,s;t.conditions=t.conditions||{};const{span:n,updatedOptions:o}=Do("BlockBlobClient-commitBlockList",t);try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:e},Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(s=t.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags)},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async getBlockList(e,t={}){var r;const{span:i,updatedOptions:s}=Do("BlockBlobClient-getBlockList",t);try{const i=await this.blockBlobContext.getBlockList(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)));if(!i.committedBlocks){i.committedBlocks=[]}if(!i.uncommittedBlocks){i.uncommittedBlocks=[]}return i}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async uploadData(e,t={}){const{span:r,updatedOptions:s}=Do("BlockBlobClient-uploadData",t);try{if(i.isNode){let t;if(e instanceof Buffer){t=e}else if(e instanceof ArrayBuffer){t=Buffer.from(e)}else{e=e;t=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,r)=>t.slice(e,e+r)),t.byteLength,s)}else{const t=new Blob([e]);return this.uploadSeekableInternal(((e,r)=>t.slice(e,e+r)),t.size,s)}}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async uploadBrowserData(e,t={}){const{span:r,updatedOptions:i}=Do("BlockBlobClient-uploadBrowserData",t);try{const t=new Blob([e]);return await this.uploadSeekableInternal(((e,r)=>t.slice(e,e+r)),t.size,i)}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async uploadSeekableInternal(e,t,r={}){if(!r.blockSize){r.blockSize=0}if(r.blockSize<0||r.blockSize>eo){throw new RangeError(`blockSize option must be >= 0 and <= ${eo}`)}if(r.maxSingleShotSize!==0&&!r.maxSingleShotSize){r.maxSingleShotSize=Zn}if(r.maxSingleShotSize<0||r.maxSingleShotSize>Zn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Zn}`)}if(r.blockSize===0){if(t>eo*to){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>r.maxSingleShotSize){r.blockSize=Math.ceil(t/to);if(r.blockSizeto){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${to}`)}const a=[];const o=i.generateUuid();let p=0;const l=new Batch(r.concurrency);for(let i=0;i{const l=generateBlockID(o,i);const c=r.blockSize*i;const d=i===s-1?t:c+r.blockSize;const u=d-c;a.push(l);await this.stageBlock(l,e(c,u),u,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions});p+=u;if(r.onProgress){r.onProgress({loadedBytes:p})}}))}await l.do();return this.commitBlockList(a,n)}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async uploadFile(e,t={}){const{span:r,updatedOptions:i}=Do("BlockBlobClient-uploadFile",t);try{const r=(await Vo(e)).size;return await this.uploadSeekableInternal(((t,r)=>()=>$o(e,{autoClose:true,end:r?t+r-1:Infinity,start:t})),r,Object.assign(Object.assign({},t),{tracingOptions:Object.assign(Object.assign({},t.tracingOptions),convertTracingToRequestOptionsBase(i))}))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async uploadStream(e,t=ro,r=5,s={}){if(!s.blobHTTPHeaders){s.blobHTTPHeaders={}}if(!s.conditions){s.conditions={}}const{span:n,updatedOptions:o}=Do("BlockBlobClient-uploadStream",s);try{let a=0;const n=i.generateUuid();let p=0;const l=[];const c=new BufferScheduler(e,t,r,(async(e,t)=>{const r=generateBlockID(n,a);l.push(r);a++;await this.stageBlock(r,e,t,{conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions});p+=t;if(s.onProgress){s.onProgress({loadedBytes:p})}}),Math.ceil(r/4*3));await c.do();return await this.commitBlockList(l,Object.assign(Object.assign({},s),{tracingOptions:Object.assign(Object.assign({},s.tracingOptions),convertTracingToRequestOptionsBase(o))}))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}}class PageBlobClient extends BlobClient{constructor(e,t,r,s){let a;let n;s=s||{};if(isPipelineLike(t)){n=e;a=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){n=e;s=r;a=newPipeline(t,s)}else if(!t&&typeof t!=="string"){n=e;a=newPipeline(new AnonymousCredential,s)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const p=r;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(l.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(n,a);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(e){return new PageBlobClient(setURLParameter(this.url,oo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){var r,i,s;t.conditions=t.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-create",t);try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,e,Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(s=t.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags)},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async createIfNotExists(e,t={}){var r,i;const{span:s,updatedOptions:n}=Do("PageBlobClient-createIfNotExists",t);try{const r={ifNoneMatch:uo};const i=await this.create(e,Object.assign(Object.assign({},t),{conditions:r,tracingOptions:n.tracingOptions}));return Object.assign(Object.assign({succeeded:true},i),{_response:i._response})}catch(e){if(((r=e.details)===null||r===void 0?void 0:r.errorCode)==="BlobAlreadyExists"){s.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(i=e.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:e.response})}s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async uploadPages(e,t,r,i={}){var s;i.conditions=i.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-uploadPages",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(r,e,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},range:rangeToString({offset:t,count:r}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async uploadPagesFromURL(e,t,r,i,s={}){var n;s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};const{span:o,updatedOptions:p}=Do("PageBlobClient-uploadPagesFromURL",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:i}),0,rangeToString({offset:r,count:i}),Object.assign({abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(n=s.conditions)===null||n===void 0?void 0:n.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions.ifMatch,sourceIfModifiedSince:s.sourceConditions.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization)},convertTracingToRequestOptionsBase(p)))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}async clearPages(e=0,t,r={}){var i;r.conditions=r.conditions||{};const{span:s,updatedOptions:n}=Do("PageBlobClient-clearPages",r);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async getPageRanges(e=0,t,r={}){var i;r.conditions=r.conditions||{};const{span:s,updatedOptions:n}=Do("PageBlobClient-getPageRanges",r);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),range:rangeToString({offset:e,count:t})},convertTracingToRequestOptionsBase(n))).then(rangeResponseFromModel)}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async listPageRangesSegment(e=0,t,r,i={}){var s;const{span:n,updatedOptions:o}=Do("PageBlobClient-getPageRangesSegment",i);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),range:rangeToString({offset:e,count:t}),marker:r,maxPageSize:i.maxPageSize},convertTracingToRequestOptionsBase(o)))}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}listPageRangeItemSegments(e=0,t,r,i={}){return s.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let a;if(!!r||r===undefined){do{a=yield s.__await(this.listPageRangesSegment(e,t,r,i));r=a.continuationToken;yield yield s.__await(yield s.__await(a))}while(r)}}))}listPageRangeItems(e=0,t,r={}){return s.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var i,a;let n;try{for(var o=s.__asyncValues(this.listPageRangeItemSegments(e,t,n,r)),p;p=yield s.__await(o.next()),!p.done;){const e=p.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(ExtractPageRangeInfoItems(e))))}}catch(e){i={error:e}}finally{try{if(p&&!p.done&&(a=o.return))yield s.__await(a.call(o))}finally{if(i)throw i.error}}}))}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const i=this.listPageRangeItems(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeItemSegments(e,t,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},r))}}async getPageRangesDiff(e,t,r,i={}){var s;i.conditions=i.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-getPageRangesDiff",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),prevsnapshot:r,range:rangeToString({offset:e,count:t})},convertTracingToRequestOptionsBase(o))).then(rangeResponseFromModel)}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async listPageRangesDiffSegment(e,t,r,i,s){var n;const{span:o,updatedOptions:p}=Do("PageBlobClient-getPageRangesDiffSegment",s);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:s===null||s===void 0?void 0:s.abortSignal,leaseAccessConditions:s===null||s===void 0?void 0:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s===null||s===void 0?void 0:s.conditions),{ifTags:(n=s===null||s===void 0?void 0:s.conditions)===null||n===void 0?void 0:n.tagConditions}),prevsnapshot:r,range:rangeToString({offset:e,count:t}),marker:i,maxPageSize:s===null||s===void 0?void 0:s.maxPageSize},convertTracingToRequestOptionsBase(p)))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}listPageRangeDiffItemSegments(e,t,r,i,a){return s.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let n;if(!!i||i===undefined){do{n=yield s.__await(this.listPageRangesDiffSegment(e,t,r,i,a));i=n.continuationToken;yield yield s.__await(yield s.__await(n))}while(i)}}))}listPageRangeDiffItems(e,t,r,i){return s.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var a,n;let o;try{for(var p=s.__asyncValues(this.listPageRangeDiffItemSegments(e,t,r,o,i)),l;l=yield s.__await(p.next()),!l.done;){const e=l.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(ExtractPageRangeInfoItems(e))))}}catch(e){a={error:e}}finally{try{if(l&&!l.done&&(n=p.return))yield s.__await(n.call(p))}finally{if(a)throw a.error}}}))}listPageRangesDiff(e,t,r,i={}){i.conditions=i.conditions||{};const s=this.listPageRangeDiffItems(e,t,r,Object.assign({},i));return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,t,r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},i))}}async getPageRangesDiffForManagedDisks(e,t,r,i={}){var s;i.conditions=i.conditions||{};const{span:n,updatedOptions:o}=Do("PageBlobClient-GetPageRangesDiffForManagedDisks",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),prevSnapshotUrl:r,range:rangeToString({offset:e,count:t})},convertTracingToRequestOptionsBase(o))).then(rangeResponseFromModel)}catch(e){n.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{n.end()}}async resize(e,t={}){var r;t.conditions=t.conditions||{};const{span:i,updatedOptions:s}=Do("PageBlobClient-resize",t);try{return await this.pageBlobContext.resize(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions}),encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async updateSequenceNumber(e,t,r={}){var i;r.conditions=r.conditions||{};const{span:s,updatedOptions:n}=Do("PageBlobClient-updateSequenceNumber",r);try{return await this.pageBlobContext.updateSequenceNumber(e,Object.assign({abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(n)))}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async startCopyIncremental(e,t={}){var r;const{span:i,updatedOptions:s}=Do("PageBlobClient-startCopyIncremental",t);try{return await this.pageBlobContext.copyIncremental(e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(r=t.conditions)===null||r===void 0?void 0:r.tagConditions})},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}}async function getBodyAsText(e){let t=Buffer.alloc(fo);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const Xo=": ";const Wo=" ";const Ko=-1;class BatchResponseParser{constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${go}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==po.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const r=t.length;if(r!==this.subRequests.size&&r!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const s=new Array(r);let a=0;let n=0;for(let e=0;e=0&&u{if(this.keys[e]===undefined||this.keys[e]===Qo.UNLOCKED){this.keys[e]=Qo.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=Qo.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===Qo.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,r){let s;let n;if(typeof e==="string"&&(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t))){s=e;n=t}else if(e instanceof BlobClient){s=e.url;n=e.credential;r=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!r){r={}}const{span:o,updatedOptions:p}=Do("BatchDeleteRequest-addSubRequest",r);try{this.setBatchType("delete");await this.addSubRequestInternal({url:s,credential:n},(async()=>{await new BlobClient(s,this.batchRequest.createPipeline(n)).delete(p)}))}catch(e){o.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{o.end()}}async setBlobAccessTier(e,t,r,s){let n;let o;let p;if(typeof e==="string"&&(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t))){n=e;o=t;p=r}else if(e instanceof BlobClient){n=e.url;o=e.credential;p=t;s=r}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!s){s={}}const{span:l,updatedOptions:c}=Do("BatchSetTierRequest-addSubRequest",s);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:n,credential:o},(async()=>{await new BlobClient(n,this.batchRequest.createPipeline(o)).setAccessTier(p,c)}))}catch(e){l.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{l.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const e=i.generateUuid();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${go}${lo.CONTENT_TYPE}: application/http${go}${lo.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=e instanceof AnonymousCredential;const r=3+(t?0:1);const s=new Array(r);s[0]=i.deserializationPolicy();s[1]=new BatchHeaderFilterPolicyFactory;if(!t){s[2]=i.isTokenCredential(e)?attachCredential(i.bearerTokenAuthenticationPolicy(e,no),e):e}s[r-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(s,{})}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${lo.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${getURLPathAndQuery(e.url)} ${yo}${go}`].join(go);for(const t of e.headers.headersArray()){this.body+=`${t.name}: ${t.value}${go}`}this.body+=go}preAddSubRequest(e){if(this.operationCount>=ho){throw new RangeError(`Cannot exceed ${ho} sub requests in a single batch`)}const t=getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${go}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends i.BaseRequestPolicy{constructor(e,t,r){super(t,r);this.dummyResponse={request:new i.WebResource,status:200,headers:new i.HttpHeaders};this.batchRequest=e}async sendRequest(e){await this.batchRequest.appendSubRequestToBody(e);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(e){this.batchRequest=e}create(e,t){return new BatchRequestAssemblePolicy(this.batchRequest,e,t)}}class BatchHeaderFilterPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){let t="";for(const r of e.headers.headersArray()){if(iEqual(r.name,lo.X_MS_VERSION)){t=r.name}}if(t!==""){e.headers.remove(t)}return this._nextPolicy.sendRequest(e)}}class BatchHeaderFilterPolicyFactory{create(e,t){return new BatchHeaderFilterPolicy(e,t)}}class BlobBatchClient{constructor(e,t,r){let i;if(isPipelineLike(t)){i=t}else if(!t){i=newPipeline(new AnonymousCredential,r)}else{i=newPipeline(t,r)}const s=new StorageClientContext(e,i.toServiceClientOptions());const a=getURLPath(e);if(a&&a!=="/"){this.serviceOrContainerContext=new Container(s)}else{this.serviceOrContainerContext=new Service(s)}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,r){const i=new BlobBatch;for(const s of e){if(typeof s==="string"){await i.deleteBlob(s,t,r)}else{await i.deleteBlob(s,t)}}return this.submitBatch(i)}async setBlobsAccessTier(e,t,r,i){const s=new BlobBatch;for(const a of e){if(typeof a==="string"){await s.setBlobAccessTier(a,t,r,i)}else{await s.setBlobAccessTier(a,t,r)}}return this.submitBatch(s)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:r,updatedOptions:i}=Do("BlobBatchClient-submitBatch",t);try{const r=e.getHttpRequestBody();const s=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(r),e.getMultiPartContentType(),r,Object.assign(Object.assign({},t),convertTracingToRequestOptionsBase(i)));const a=new BatchResponseParser(s,e.getSubRequests());const n=await a.parseBatchResponse();const o={_response:s._response,contentType:s.contentType,errorCode:s.errorCode,requestId:s.requestId,clientRequestId:s.clientRequestId,version:s.version,subResponses:n.subResponses,subResponsesSucceededCount:n.subResponsesSucceededCount,subResponsesFailedCount:n.subResponsesFailedCount};return o}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}}class ContainerClient extends StorageClient{constructor(e,t,r){let s;let a;r=r||{};if(isPipelineLike(t)){a=e;s=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){a=e;s=newPipeline(t,r)}else if(!t&&typeof t!=="string"){a=e;s=newPipeline(new AnonymousCredential,r)}else if(t&&typeof t==="string"){const n=t;const o=extractConnectionStringParts(e);if(o.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(o.accountName,o.accountKey);a=appendToURLPath(o.url,encodeURIComponent(n));if(!r.proxyOptions){r.proxyOptions=i.getDefaultProxySettings(o.proxyUri)}s=newPipeline(e,r)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){a=appendToURLPath(o.url,encodeURIComponent(n))+"?"+o.accountSas;s=newPipeline(new AnonymousCredential,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(a,s);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(e={}){const{span:t,updatedOptions:r}=Do("ContainerClient-create",e);try{return await this.containerContext.create(Object.assign(Object.assign({},e),convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async createIfNotExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("ContainerClient-createIfNotExists",e);try{const e=await this.create(s);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="ContainerAlreadyExists"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async exists(e={}){const{span:t,updatedOptions:r}=Do("ContainerClient-exists",e);try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions});return true}catch(e){if(e.statusCode===404){t.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}getBlobClient(e){return new BlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(appendToURLPath(this.url,EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}const{span:t,updatedOptions:r}=Do("ContainerClient-getProperties",e);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:e.abortSignal},e.conditions),convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async delete(e={}){if(!e.conditions){e.conditions={}}const{span:t,updatedOptions:r}=Do("ContainerClient-delete",e);try{return await this.containerContext.delete(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async deleteIfExists(e={}){var t,r;const{span:i,updatedOptions:s}=Do("ContainerClient-deleteIfExists",e);try{const e=await this.delete(s);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="ContainerNotFound"){i.setStatus({code:a.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(r=e.response)===null||r===void 0?void 0:r.parsedHeaders),{_response:e.response})}i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:r,updatedOptions:i}=Do("ContainerClient-setMetadata",t);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}const{span:t,updatedOptions:r}=Do("ContainerClient-getAccessPolicy",e);try{const t=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions},convertTracingToRequestOptionsBase(r)));const i={_response:t._response,blobPublicAccess:t.blobPublicAccess,date:t.date,etag:t.etag,errorCode:t.errorCode,lastModified:t.lastModified,requestId:t.requestId,clientRequestId:t.clientRequestId,signedIdentifiers:[],version:t.version};for(const e of t){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}i.signedIdentifiers.push({accessPolicy:t,id:e.id})}return i}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setAccessPolicy(e,t,r={}){r.conditions=r.conditions||{};const{span:i,updatedOptions:s}=Do("ContainerClient-setAccessPolicy",r);try{const i=[];for(const e of t||[]){i.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:r.abortSignal,access:e,containerAcl:i,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(s)))}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,r,i={}){const{span:s,updatedOptions:n}=Do("ContainerClient-uploadBlockBlob",i);try{const i=this.getBlockBlobClient(e);const s=await i.upload(t,r,n);return{blockBlobClient:i,response:s}}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async deleteBlob(e,t={}){const{span:r,updatedOptions:i}=Do("ContainerClient-deleteBlob",t);try{let r=this.getBlobClient(e);if(t.versionId){r=r.withVersion(t.versionId)}return await r.delete(i)}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async listBlobFlatSegment(e,t={}){const{span:r,updatedOptions:i}=Do("ContainerClient-listBlobFlatSegment",t);try{const r=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:e},t),convertTracingToRequestOptionsBase(i)));const s=Object.assign(Object.assign({},r),{_response:Object.assign(Object.assign({},r._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(r._response.parsedBody)}),segment:Object.assign(Object.assign({},r.segment),{blobItems:r.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)});return t}))})});return s}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async listBlobHierarchySegment(e,t,r={}){var i;const{span:s,updatedOptions:n}=Do("ContainerClient-listBlobHierarchySegment",r);try{const s=await this.containerContext.listBlobHierarchySegment(e,Object.assign(Object.assign({marker:t},r),convertTracingToRequestOptionsBase(n)));const a=Object.assign(Object.assign({},s),{_response:Object.assign(Object.assign({},s._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(s._response.parsedBody)}),segment:Object.assign(Object.assign({},s.segment),{blobItems:s.segment.blobItems.map((e=>{const t=Object.assign(Object.assign({},e),{name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)});return t})),blobPrefixes:(i=s.segment.blobPrefixes)===null||i===void 0?void 0:i.map((e=>{const t={name:BlobNameToString(e.name)};return t}))})});return a}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}listSegments(e,t={}){return s.__asyncGenerator(this,arguments,(function*listSegments_1(){let r;if(!!e||e===undefined){do{r=yield s.__await(this.listBlobFlatSegment(e,t));e=r.continuationToken;yield yield s.__await(yield s.__await(r))}while(e)}}))}listItems(e={}){return s.__asyncGenerator(this,arguments,(function*listItems_1(){var t,r;let i;try{for(var a=s.__asyncValues(this.listSegments(i,e)),n;n=yield s.__await(a.next()),!n.done;){const e=n.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.segment.blobItems)))}}catch(e){t={error:e}}finally{try{if(n&&!n.done&&(r=a.return))yield s.__await(r.call(a))}finally{if(t)throw t.error}}}))}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const r=Object.assign(Object.assign({},e),t.length>0?{include:t}:{});const i=this.listItems(r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,Object.assign({maxPageSize:e.maxPageSize},r))}}listHierarchySegments(e,t,r={}){return s.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let i;if(!!t||t===undefined){do{i=yield s.__await(this.listBlobHierarchySegment(e,t,r));t=i.continuationToken;yield yield s.__await(yield s.__await(i))}while(t)}}))}listItemsByHierarchy(e,t={}){return s.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var r,i;let a;try{for(var n=s.__asyncValues(this.listHierarchySegments(e,a,t)),o;o=yield s.__await(n.next()),!o.done;){const e=o.value;const t=e.segment;if(t.blobPrefixes){for(const e of t.blobPrefixes){yield yield s.__await(Object.assign({kind:"prefix"},e))}}for(const e of t.blobItems){yield yield s.__await(Object.assign({kind:"blob"},e))}}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(i=n.return))yield s.__await(i.call(n))}finally{if(r)throw r.error}}}))}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const r=[];if(t.includeCopy){r.push("copy")}if(t.includeDeleted){r.push("deleted")}if(t.includeMetadata){r.push("metadata")}if(t.includeSnapshots){r.push("snapshots")}if(t.includeVersions){r.push("versions")}if(t.includeUncommitedBlobs){r.push("uncommittedblobs")}if(t.includeTags){r.push("tags")}if(t.includeDeletedWithVersions){r.push("deletedwithversions")}if(t.includeImmutabilityPolicy){r.push("immutabilitypolicy")}if(t.includeLegalHold){r.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const i=Object.assign(Object.assign({},t),r.length>0?{include:r}:{});const s=this.listItemsByHierarchy(e,i);return{async next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,Object.assign({maxPageSize:t.maxPageSize},i))}}async findBlobsByTagsSegment(e,t,r={}){const{span:i,updatedOptions:s}=Do("ContainerClient-findBlobsByTagsSegment",r);try{const i=await this.containerContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize},convertTracingToRequestOptionsBase(s)));const a=Object.assign(Object.assign({},i),{_response:i._response,blobs:i.blobs.map((e=>{var t;let r="";if(((t=e.tags)===null||t===void 0?void 0:t.blobTagSet.length)===1){r=e.tags.blobTagSet[0].value}return Object.assign(Object.assign({},e),{tags:toTags(e.tags),tagValue:r})}))});return a}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}findBlobsByTagsSegments(e,t,r={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let i;if(!!t||t===undefined){do{i=yield s.__await(this.findBlobsByTagsSegment(e,t,r));i.blobs=i.blobs||[];t=i.continuationToken;yield yield s.__await(i)}while(t)}}))}findBlobsByTagsItems(e,t={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var r,i;let a;try{for(var n=s.__asyncValues(this.findBlobsByTagsSegments(e,a,t)),o;o=yield s.__await(n.next()),!o.done;){const e=o.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.blobs)))}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(i=n.return))yield s.__await(i.call(n))}finally{if(r)throw r.error}}}))}findBlobsByTags(e,t={}){const r=Object.assign({},t);const i=this.findBlobsByTagsItems(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,Object.assign({maxPageSize:t.maxPageSize},r))}}getContainerNameFromUrl(){let e;try{const t=i.URLBuilder.parse(this.url);if(t.getHost().split(".")[1]==="blob"){e=t.getPath().split("/")[1]}else if(isIpEndpointStyle(t)){e=t.getPath().split("/")[2]}else{e=t.getPath().split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},e),this.credential).toString();t(appendToURLQuery(this.url,r))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(e){const t=new AccountSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${r}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(e){const t=new AccountSASResourceTypes;for(const r of e){switch(r){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${r}`)}}return t}toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(e){const t=new AccountSASServices;for(const r of e){switch(r){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${r}`)}}return t}toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){const r=e.version?e.version:Jn;if(e.permissions&&e.permissions.setImmutabilityPolicy&&r<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&r<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const i=AccountSASPermissions.parse(e.permissions.toString());const s=AccountSASServices.parse(e.services).toString();const a=AccountSASResourceTypes.parse(e.resourceTypes).toString();let n;if(r>="2020-12-06"){n=[t.accountName,i,s,a,e.startsOn?truncatedISO8061Date(e.startsOn,false):"",truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{n=[t.accountName,i,s,a,e.startsOn?truncatedISO8061Date(e.startsOn,false):"",truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,""].join("\n")}const o=t.computeHMACSHA256(n);return new SASQueryParameters(r,o,i.toString(),s,a,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(e,t,r){let s;if(isPipelineLike(t)){s=t}else if(i.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||i.isTokenCredential(t)){s=newPipeline(t,r)}else{s=newPipeline(new AnonymousCredential,r)}super(e,s);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(e,t){t=t||{};const r=extractConnectionStringParts(e);if(r.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(r.accountName,r.accountKey);if(!t.proxyOptions){t.proxyOptions=i.getDefaultProxySettings(r.proxyUri)}const s=newPipeline(e,t);return new BlobServiceClient(r.url,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(r.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(r.url+"?"+r.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(e){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-createContainer",t);try{const t=this.getContainerClient(e);const r=await t.create(i);return{containerClient:t,containerCreateResponse:r}}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async deleteContainer(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-deleteContainer",t);try{const t=this.getContainerClient(e);return await t.delete(i)}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async undeleteContainer(e,t,r={}){const{span:i,updatedOptions:s}=Do("BlobServiceClient-undeleteContainer",r);try{const i=this.getContainerClient(r.destinationContainerName||e);const a=new Container(i["storageClientContext"]);const n=await a.restore(Object.assign({deletedContainerName:e,deletedContainerVersion:t},s));return{containerClient:i,containerUndeleteResponse:n}}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}async renameContainer(e,t,r={}){var i;const{span:s,updatedOptions:n}=Do("BlobServiceClient-renameContainer",r);try{const s=this.getContainerClient(t);const a=new Container(s["storageClientContext"]);const o=await a.rename(e,Object.assign(Object.assign({},n),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:s,containerRenameResponse:o}}catch(e){s.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async getProperties(e={}){const{span:t,updatedOptions:r}=Do("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setProperties(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-setProperties",t);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:t.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getStatistics(e={}){const{span:t,updatedOptions:r}=Do("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getAccountInfo(e={}){const{span:t,updatedOptions:r}=Do("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(r)))}catch(e){t.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async listContainersSegment(e,t={}){const{span:r,updatedOptions:i}=Do("BlobServiceClient-listContainersSegment",t);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:t.abortSignal,marker:e},t),{include:typeof t.include==="string"?[t.include]:t.include}),convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async findBlobsByTagsSegment(e,t,r={}){const{span:i,updatedOptions:s}=Do("BlobServiceClient-findBlobsByTagsSegment",r);try{const i=await this.serviceContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize},convertTracingToRequestOptionsBase(s)));const a=Object.assign(Object.assign({},i),{_response:i._response,blobs:i.blobs.map((e=>{var t;let r="";if(((t=e.tags)===null||t===void 0?void 0:t.blobTagSet.length)===1){r=e.tags.blobTagSet[0].value}return Object.assign(Object.assign({},e),{tags:toTags(e.tags),tagValue:r})}))});return a}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}findBlobsByTagsSegments(e,t,r={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let i;if(!!t||t===undefined){do{i=yield s.__await(this.findBlobsByTagsSegment(e,t,r));i.blobs=i.blobs||[];t=i.continuationToken;yield yield s.__await(i)}while(t)}}))}findBlobsByTagsItems(e,t={}){return s.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var r,i;let a;try{for(var n=s.__asyncValues(this.findBlobsByTagsSegments(e,a,t)),o;o=yield s.__await(n.next()),!o.done;){const e=o.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.blobs)))}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(i=n.return))yield s.__await(i.call(n))}finally{if(r)throw r.error}}}))}findBlobsByTags(e,t={}){const r=Object.assign({},t);const i=this.findBlobsByTagsItems(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,Object.assign({maxPageSize:t.maxPageSize},r))}}listSegments(e,t={}){return s.__asyncGenerator(this,arguments,(function*listSegments_1(){let r;if(!!e||e===undefined){do{r=yield s.__await(this.listContainersSegment(e,t));r.containerItems=r.containerItems||[];e=r.continuationToken;yield yield s.__await(yield s.__await(r))}while(e)}}))}listItems(e={}){return s.__asyncGenerator(this,arguments,(function*listItems_1(){var t,r;let i;try{for(var a=s.__asyncValues(this.listSegments(i,e)),n;n=yield s.__await(a.next()),!n.done;){const e=n.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(e.containerItems)))}}catch(e){t={error:e}}finally{try{if(n&&!n.done&&(r=a.return))yield s.__await(r.call(a))}finally{if(t)throw t.error}}}))}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const r=Object.assign(Object.assign({},e),t.length>0?{include:t}:{});const i=this.listItems(r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,Object.assign({maxPageSize:e.maxPageSize},r))}}async getUserDelegationKey(e,t,r={}){const{span:i,updatedOptions:s}=Do("BlobServiceClient-getUserDelegationKey",r);try{const i=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(e,false),expiresOn:truncatedISO8061Date(t,false)},Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)));const a={signedObjectId:i.signedObjectId,signedTenantId:i.signedTenantId,signedStartsOn:new Date(i.signedStartsOn),signedExpiresOn:new Date(i.signedExpiresOn),signedService:i.signedService,signedVersion:i.signedVersion,value:i.value};const n=Object.assign({_response:i._response,requestId:i.requestId,clientRequestId:i.clientRequestId,version:i.version,date:i.date,errorCode:i.errorCode},a);return n}catch(e){i.setStatus({code:a.SpanStatusCode.ERROR,message:e.message});throw e}finally{i.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),r="sco",i={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const s=generateAccountSASQueryParameters(Object.assign({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString()},i),this.credential).toString();return appendToURLQuery(this.url,s)}}t.KnownEncryptionAlgorithmType=void 0;(function(e){e["AES256"]="AES256"})(t.KnownEncryptionAlgorithmType||(t.KnownEncryptionAlgorithmType={}));Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return i.BaseRequestPolicy}});Object.defineProperty(t,"HttpHeaders",{enumerable:true,get:function(){return i.HttpHeaders}});Object.defineProperty(t,"RequestPolicyOptions",{enumerable:true,get:function(){return i.RequestPolicyOptions}});Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return i.RestError}});Object.defineProperty(t,"WebResource",{enumerable:true,get:function(){return i.WebResource}});Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return i.deserializationPolicy}});t.AccountSASPermissions=AccountSASPermissions;t.AccountSASResourceTypes=AccountSASResourceTypes;t.AccountSASServices=AccountSASServices;t.AnonymousCredential=AnonymousCredential;t.AnonymousCredentialPolicy=AnonymousCredentialPolicy;t.AppendBlobClient=AppendBlobClient;t.BlobBatch=BlobBatch;t.BlobBatchClient=BlobBatchClient;t.BlobClient=BlobClient;t.BlobLeaseClient=BlobLeaseClient;t.BlobSASPermissions=BlobSASPermissions;t.BlobServiceClient=BlobServiceClient;t.BlockBlobClient=BlockBlobClient;t.ContainerClient=ContainerClient;t.ContainerSASPermissions=ContainerSASPermissions;t.Credential=Credential;t.CredentialPolicy=CredentialPolicy;t.PageBlobClient=PageBlobClient;t.Pipeline=Pipeline;t.SASQueryParameters=SASQueryParameters;t.StorageBrowserPolicy=StorageBrowserPolicy;t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;t.StorageOAuthScopes=no;t.StorageRetryPolicy=StorageRetryPolicy;t.StorageRetryPolicyFactory=StorageRetryPolicyFactory;t.StorageSharedKeyCredential=StorageSharedKeyCredential;t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.isPipelineLike=isPipelineLike;t.logger=Qn;t.newPipeline=newPipeline},679:e=>{var t;var r;var i;var s;var a;var n;var o;var p;var l;var c;var d;var u;var h;var g;var y;var v;var b;var x;var w;var S;var E;var T;var N;var _;var P;var C;var O;var R;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,i){return e[r]=t?t(r,i):i}}})((function(e){var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;o--)if(n=e[o])a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a;return s>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,i){t(r,i,e)}};n=function(e,t,r,i,s,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var n=i.kind,o=n==="getter"?"get":n==="setter"?"set":"value";var p=!t&&e?i["static"]?e:e.prototype:null;var l=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{});var c,d=false;for(var u=r.length-1;u>=0;u--){var h={};for(var g in i)h[g]=g==="access"?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var y=(0,r[u])(n==="accessor"?{get:l.get,set:l.set}:l[o],h);if(n==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(c=accept(y.get))l.get=c;if(c=accept(y.set))l.set=c;if(c=accept(y.init))s.push(c)}else if(c=accept(y)){if(n==="field")s.push(c);else l[o]=c}}if(p)Object.defineProperty(p,i.name,l);d=true};o=function(e,t,r){var i=arguments.length>2;for(var s=0;s0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],n;try{while((t===void 0||t-- >0)&&!(s=i.next()).done)a.push(s.value)}catch(e){n={error:e}}finally{try{if(s&&!s.done&&(r=i["return"]))r.call(i)}finally{if(n)throw n.error}}return a};v=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof w?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};E=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(r=!r)?{value:w(e[i](t)),done:false}:s?s(t):t}:s}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof g==="function"?g(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(i,s){r=e[t](r),settle(i,s,r.done,r.value)}))}}function settle(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}};N=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);I(t,e);return t};P=function(e){return e&&e.__esModule?e:{default:e}};C=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};O=function(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};R=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",r);e("__rest",i);e("__decorate",s);e("__param",a);e("__esDecorate",n);e("__runInitializers",o);e("__propKey",p);e("__setFunctionName",l);e("__metadata",c);e("__awaiter",d);e("__generator",u);e("__exportStar",h);e("__createBinding",A);e("__values",g);e("__read",y);e("__spread",v);e("__spreadArrays",b);e("__spreadArray",x);e("__await",w);e("__asyncGenerator",S);e("__asyncDelegator",E);e("__asyncValues",T);e("__makeTemplateObject",N);e("__importStar",_);e("__importDefault",P);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",O);e("__classPrivateFieldIn",R)}))},334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=/^v1\./;const i=/^ghs_/;const s=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const a=r.test(e)||i.test(e);const n=s.test(e);const o=t?"app":a?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:o}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,i){const s=t.endpoint.merge(r,i);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}const a=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=a},6762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(5030);var s=r(3682);var a=r(6234);var n=r(8467);var o=r(334);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var i=Object.keys(e);var s,a;for(a=0;a=0)continue;r[s]=e[s]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,i))continue;r[i]=e[i]}}return r}const p="3.6.0";const l=["authStrategy"];class Octokit{constructor(e={}){const t=new s.Collection;const r={baseUrl:a.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${p} ${i.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=a.request.defaults(r);this.graphql=n.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=o.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,i=_objectWithoutProperties(e,l);const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));t.wrap("request",s.hook);this.auth=s}const c=this.constructor;c.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const i=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return i}}Octokit.VERSION=p;Octokit.plugins=[];t.Octokit=Octokit},9440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(3287);var s=r(5030);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((s=>{if(i.isPlainObject(t[s])){if(!(s in e))Object.assign(r,{[s]:t[s]});else r[s]=mergeDeep(e[s],t[s])}else{Object.assign(r,{[s]:t[s]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const i=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){i.mediaType.previews=e.mediaType.previews.filter((e=>!i.mediaType.previews.includes(e))).concat(i.mediaType.previews)}i.mediaType.previews=i.mediaType.previews.map((e=>e.replace(/-preview/,"")));return i}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const i=Object.keys(t);if(i.length===0){return e}return e+r+i.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const a=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(a);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,i){var s=e[r],a=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(i&&i!=="*"){s=s.substring(0,parseInt(i,10))}a.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(i==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){a.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){a.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){a.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){a.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){a.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){a.push(encodeUnreserved(r)+"=")}else if(s===""){a.push("")}}return a}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,i,s){if(i){let e="";const s=[];if(r.indexOf(i.charAt(0))!==-1){e=i.charAt(0);i=i.substr(1)}i.split(/,/g).forEach((function(r){var i=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,i[1],i[2]||i[3]))}));if(e&&e!=="+"){var a=",";if(e==="?"){a="&"}else if(e!=="#"){a=e}return(s.length!==0?e:"")+s.join(a)}else{return s.join(",")}}else{return encodeReserved(s)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let i=Object.assign({},e.headers);let s;let a=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const n=extractUrlVariableNames(r);r=parseUrl(r).expand(a);if(!/^http/.test(r)){r=e.baseUrl+r}const o=Object.keys(e).filter((e=>n.includes(e))).concat("baseUrl");const p=omit(a,o);const l=/application\/octet-stream/i.test(i.accept);if(!l){if(e.mediaType.format){i.accept=i.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=i.accept.match(/[\w-]+(?=-preview)/g)||[];i.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,p)}else{if("data"in p){s=p.data}else{if(Object.keys(p).length){s=p}else{i["content-length"]=0}}}if(!i["content-type"]&&typeof s!=="undefined"){i["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:i},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const i=endpointWithDefaults.bind(null,r);return Object.assign(i,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const n="6.0.12";const o=`octokit-endpoint.js/${n} ${s.getUserAgent()}`;const p={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":o},mediaType:{format:"",previews:[]}};const l=withDefaults(null,p);t.endpoint=l},8467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(6234);var s=r(5030);const a="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const n=["method","baseUrl","url","headers","request","query","mediaType"];const o=["query","method","url"];const p=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!o.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const i=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(i).reduce(((e,t)=>{if(n.includes(t)){e[t]=i[t];return e}if(!e.variables){e.variables={}}e.variables[t]=i[t];return e}),{});const a=i.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(p.test(a)){s.url=a.replace(p,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlResponseError(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:i.request.endpoint})}const l=withDefaults(i.request,{headers:{"user-agent":`octokit-graphql.js/${a} ${s.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=l;t.withCustomRequest=withCustomRequest},4193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.21.3";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t({async next(){if(!o)return{done:true};try{const e=await s({method:a,url:o,headers:n});const t=normalizePaginatedListResponse(e);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;o="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,i){if(typeof r==="function"){i=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),i)}function gather(e,t,r,i){return r.next().then((s=>{if(s.done){return t}let a=false;function done(){a=true}t=t.concat(i?i(s.value,done):s.value.data);if(a){return t}return gather(e,t,r,i)}))}const i=Object.assign(paginate,{iterator:iterator});const s=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return s.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=i;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=s},3044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t){i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(8932);var s=_interopDefault(r(1223));const a=s((e=>console.warn(e)));const n=s((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let s;if("headers"in r&&typeof r.headers!=="undefined"){s=r.headers}if("response"in r){this.response=r.response;s=r.response.headers}const o=Object.assign({},r.request);if(r.request.headers.authorization){o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o;Object.defineProperty(this,"code",{get(){a(new i.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){n(new i.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return s||{}}})}}t.RequestError=RequestError},6234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(9440);var s=r(5030);var a=r(3287);var n=_interopDefault(r(467));var o=r(537);const p="5.6.3";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(a.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let r={};let i;let s;const p=e.request&&e.request.fetch||n;return p(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async a=>{s=a.url;i=a.status;for(const e of a.headers){r[e[0]]=e[1]}if("deprecation"in r){const i=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/);const s=i&&i.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${s?`. See ${s}`:""}`)}if(i===204||i===205){return}if(e.method==="HEAD"){if(i<400){return}throw new o.RequestError(a.statusText,i,{response:{url:s,status:i,headers:r,data:undefined},request:e})}if(i===304){throw new o.RequestError("Not modified",i,{response:{url:s,status:i,headers:r,data:await getResponseData(a)},request:e})}if(i>=400){const t=await getResponseData(a);const n=new o.RequestError(toErrorMessage(t),i,{response:{url:s,status:i,headers:r,data:t},request:e});throw n}return getResponseData(a)})).then((e=>({status:i,url:s,headers:r,data:e}))).catch((t=>{if(t instanceof o.RequestError)throw t;throw new o.RequestError(t.message,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const i=r.merge(e,t);if(!i.request||!i.request.hook){return fetchWrapper(r.parse(i))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return i.request.hook(request,i)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const l=withDefaults(i.endpoint,{headers:{"user-agent":`octokit-request.js/${p} ${s.getUserAgent()}`}});t.request=l},7171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContextAPI=void 0;const i=r(4118);const s=r(5135);const a=r(1877);const n="context";const o=new i.NoopContextManager;class ContextAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new ContextAPI}return this._instance}setGlobalContextManager(e){return(0,s.registerGlobal)(n,e,a.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...i){return this._getContextManager().with(e,t,r,...i)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,s.getGlobal)(n)||o}disable(){this._getContextManager().disable();(0,s.unregisterGlobal)(n,a.DiagAPI.instance())}}t.ContextAPI=ContextAPI},1877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagAPI=void 0;const i=r(7978);const s=r(9639);const a=r(8077);const n=r(5135);const o="diag";class DiagAPI{constructor(){function _logProxy(e){return function(...t){const r=(0,n.getGlobal)("diag");if(!r)return;return r[e](...t)}}const e=this;const setLogger=(t,r={logLevel:a.DiagLogLevel.INFO})=>{var i,o,p;if(t===e){const t=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");e.error((i=t.stack)!==null&&i!==void 0?i:t.message);return false}if(typeof r==="number"){r={logLevel:r}}const l=(0,n.getGlobal)("diag");const c=(0,s.createLogLevelDiagLogger)((o=r.logLevel)!==null&&o!==void 0?o:a.DiagLogLevel.INFO,t);if(l&&!r.suppressOverrideMessage){const e=(p=(new Error).stack)!==null&&p!==void 0?p:"";l.warn(`Current logger will be overwritten from ${e}`);c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,n.registerGlobal)("diag",c,e,true)};e.setLogger=setLogger;e.disable=()=>{(0,n.unregisterGlobal)(o,e)};e.createComponentLogger=e=>new i.DiagComponentLogger(e);e.verbose=_logProxy("verbose");e.debug=_logProxy("debug");e.info=_logProxy("info");e.warn=_logProxy("warn");e.error=_logProxy("error")}static instance(){if(!this._instance){this._instance=new DiagAPI}return this._instance}}t.DiagAPI=DiagAPI},7696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MetricsAPI=void 0;const i=r(2647);const s=r(5135);const a=r(1877);const n="metrics";class MetricsAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new MetricsAPI}return this._instance}setGlobalMeterProvider(e){return(0,s.registerGlobal)(n,e,a.DiagAPI.instance())}getMeterProvider(){return(0,s.getGlobal)(n)||i.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,s.unregisterGlobal)(n,a.DiagAPI.instance())}}t.MetricsAPI=MetricsAPI},9909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PropagationAPI=void 0;const i=r(5135);const s=r(2368);const a=r(865);const n=r(7682);const o=r(8136);const p=r(1877);const l="propagation";const c=new s.NoopTextMapPropagator;class PropagationAPI{constructor(){this.createBaggage=o.createBaggage;this.getBaggage=n.getBaggage;this.getActiveBaggage=n.getActiveBaggage;this.setBaggage=n.setBaggage;this.deleteBaggage=n.deleteBaggage}static getInstance(){if(!this._instance){this._instance=new PropagationAPI}return this._instance}setGlobalPropagator(e){return(0,i.registerGlobal)(l,e,p.DiagAPI.instance())}inject(e,t,r=a.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=a.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,i.unregisterGlobal)(l,p.DiagAPI.instance())}_getGlobalPropagator(){return(0,i.getGlobal)(l)||c}}t.PropagationAPI=PropagationAPI},1539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TraceAPI=void 0;const i=r(5135);const s=r(2285);const a=r(9745);const n=r(3326);const o=r(1877);const p="trace";class TraceAPI{constructor(){this._proxyTracerProvider=new s.ProxyTracerProvider;this.wrapSpanContext=a.wrapSpanContext;this.isSpanContextValid=a.isSpanContextValid;this.deleteSpan=n.deleteSpan;this.getSpan=n.getSpan;this.getActiveSpan=n.getActiveSpan;this.getSpanContext=n.getSpanContext;this.setSpan=n.setSpan;this.setSpanContext=n.setSpanContext}static getInstance(){if(!this._instance){this._instance=new TraceAPI}return this._instance}setGlobalTracerProvider(e){const t=(0,i.registerGlobal)(p,this._proxyTracerProvider,o.DiagAPI.instance());if(t){this._proxyTracerProvider.setDelegate(e)}return t}getTracerProvider(){return(0,i.getGlobal)(p)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,i.unregisterGlobal)(p,o.DiagAPI.instance());this._proxyTracerProvider=new s.ProxyTracerProvider}}t.TraceAPI=TraceAPI},7682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;const i=r(7171);const s=r(8242);const a=(0,s.createContextKey)("OpenTelemetry Baggage Key");function getBaggage(e){return e.getValue(a)||undefined}t.getBaggage=getBaggage;function getActiveBaggage(){return getBaggage(i.ContextAPI.getInstance().active())}t.getActiveBaggage=getActiveBaggage;function setBaggage(e,t){return e.setValue(a,t)}t.setBaggage=setBaggage;function deleteBaggage(e){return e.deleteValue(a)}t.deleteBaggage=deleteBaggage},4811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaggageImpl=void 0;class BaggageImpl{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){const t=this._entries.get(e);if(!t){return undefined}return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map((([e,t])=>[e,t]))}setEntry(e,t){const r=new BaggageImpl(this._entries);r._entries.set(e,t);return r}removeEntry(e){const t=new BaggageImpl(this._entries);t._entries.delete(e);return t}removeEntries(...e){const t=new BaggageImpl(this._entries);for(const r of e){t._entries.delete(r)}return t}clear(){return new BaggageImpl}}t.BaggageImpl=BaggageImpl},3542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.baggageEntryMetadataSymbol=void 0;t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},8136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.baggageEntryMetadataFromString=t.createBaggage=void 0;const i=r(1877);const s=r(4811);const a=r(3542);const n=i.DiagAPI.instance();function createBaggage(e={}){return new s.BaggageImpl(new Map(Object.entries(e)))}t.createBaggage=createBaggage;function baggageEntryMetadataFromString(e){if(typeof e!=="string"){n.error(`Cannot create baggage metadata from unknown type: ${typeof e}`);e=""}return{__TYPE__:a.baggageEntryMetadataSymbol,toString(){return e}}}t.baggageEntryMetadataFromString=baggageEntryMetadataFromString},7393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.context=void 0;const i=r(7171);t.context=i.ContextAPI.getInstance()},4118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopContextManager=void 0;const i=r(8242);class NoopContextManager{active(){return i.ROOT_CONTEXT}with(e,t,r,...i){return t.call(r,...i)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=NoopContextManager},8242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ROOT_CONTEXT=t.createContextKey=void 0;function createContextKey(e){return Symbol.for(e)}t.createContextKey=createContextKey;class BaseContext{constructor(e){const t=this;t._currentContext=e?new Map(e):new Map;t.getValue=e=>t._currentContext.get(e);t.setValue=(e,r)=>{const i=new BaseContext(t._currentContext);i._currentContext.set(e,r);return i};t.deleteValue=e=>{const r=new BaseContext(t._currentContext);r._currentContext.delete(e);return r}}}t.ROOT_CONTEXT=new BaseContext},9721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diag=void 0;const i=r(1877);t.diag=i.DiagAPI.instance()},7978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagComponentLogger=void 0;const i=r(5135);class DiagComponentLogger{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return logProxy("debug",this._namespace,e)}error(...e){return logProxy("error",this._namespace,e)}info(...e){return logProxy("info",this._namespace,e)}warn(...e){return logProxy("warn",this._namespace,e)}verbose(...e){return logProxy("verbose",this._namespace,e)}}t.DiagComponentLogger=DiagComponentLogger;function logProxy(e,t,r){const s=(0,i.getGlobal)("diag");if(!s){return}r.unshift(t);return s[e](...r)}},3041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagConsoleLogger=void 0;const r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class DiagConsoleLogger{constructor(){function _consoleFunc(e){return function(...t){if(console){let r=console[e];if(typeof r!=="function"){r=console.log}if(typeof r==="function"){return r.apply(console,t)}}}}for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLogLevelDiagLogger=void 0;const i=r(8077);function createLogLevelDiagLogger(e,t){if(ei.DiagLogLevel.ALL){e=i.DiagLogLevel.ALL}t=t||{};function _filterFunc(r,i){const s=t[r];if(typeof s==="function"&&e>=i){return s.bind(t)}return function(){}}return{error:_filterFunc("error",i.DiagLogLevel.ERROR),warn:_filterFunc("warn",i.DiagLogLevel.WARN),info:_filterFunc("info",i.DiagLogLevel.INFO),debug:_filterFunc("debug",i.DiagLogLevel.DEBUG),verbose:_filterFunc("verbose",i.DiagLogLevel.VERBOSE)}}t.createLogLevelDiagLogger=createLogLevelDiagLogger},8077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiagLogLevel=void 0;var r;(function(e){e[e["NONE"]=0]="NONE";e[e["ERROR"]=30]="ERROR";e[e["WARN"]=50]="WARN";e[e["INFO"]=60]="INFO";e[e["DEBUG"]=70]="DEBUG";e[e["VERBOSE"]=80]="VERBOSE";e[e["ALL"]=9999]="ALL"})(r=t.DiagLogLevel||(t.DiagLogLevel={}))},5163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trace=t.propagation=t.metrics=t.diag=t.context=t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=t.isValidSpanId=t.isValidTraceId=t.isSpanContextValid=t.createTraceState=t.TraceFlags=t.SpanStatusCode=t.SpanKind=t.SamplingDecision=t.ProxyTracerProvider=t.ProxyTracer=t.defaultTextMapSetter=t.defaultTextMapGetter=t.ValueType=t.createNoopMeter=t.DiagLogLevel=t.DiagConsoleLogger=t.ROOT_CONTEXT=t.createContextKey=t.baggageEntryMetadataFromString=void 0;var i=r(8136);Object.defineProperty(t,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return i.baggageEntryMetadataFromString}});var s=r(8242);Object.defineProperty(t,"createContextKey",{enumerable:true,get:function(){return s.createContextKey}});Object.defineProperty(t,"ROOT_CONTEXT",{enumerable:true,get:function(){return s.ROOT_CONTEXT}});var a=r(3041);Object.defineProperty(t,"DiagConsoleLogger",{enumerable:true,get:function(){return a.DiagConsoleLogger}});var n=r(8077);Object.defineProperty(t,"DiagLogLevel",{enumerable:true,get:function(){return n.DiagLogLevel}});var o=r(4837);Object.defineProperty(t,"createNoopMeter",{enumerable:true,get:function(){return o.createNoopMeter}});var p=r(9999);Object.defineProperty(t,"ValueType",{enumerable:true,get:function(){return p.ValueType}});var l=r(865);Object.defineProperty(t,"defaultTextMapGetter",{enumerable:true,get:function(){return l.defaultTextMapGetter}});Object.defineProperty(t,"defaultTextMapSetter",{enumerable:true,get:function(){return l.defaultTextMapSetter}});var c=r(3503);Object.defineProperty(t,"ProxyTracer",{enumerable:true,get:function(){return c.ProxyTracer}});var d=r(2285);Object.defineProperty(t,"ProxyTracerProvider",{enumerable:true,get:function(){return d.ProxyTracerProvider}});var u=r(3209);Object.defineProperty(t,"SamplingDecision",{enumerable:true,get:function(){return u.SamplingDecision}});var h=r(1424);Object.defineProperty(t,"SpanKind",{enumerable:true,get:function(){return h.SpanKind}});var g=r(8845);Object.defineProperty(t,"SpanStatusCode",{enumerable:true,get:function(){return g.SpanStatusCode}});var y=r(6905);Object.defineProperty(t,"TraceFlags",{enumerable:true,get:function(){return y.TraceFlags}});var v=r(2615);Object.defineProperty(t,"createTraceState",{enumerable:true,get:function(){return v.createTraceState}});var b=r(9745);Object.defineProperty(t,"isSpanContextValid",{enumerable:true,get:function(){return b.isSpanContextValid}});Object.defineProperty(t,"isValidTraceId",{enumerable:true,get:function(){return b.isValidTraceId}});Object.defineProperty(t,"isValidSpanId",{enumerable:true,get:function(){return b.isValidSpanId}});var x=r(1760);Object.defineProperty(t,"INVALID_SPANID",{enumerable:true,get:function(){return x.INVALID_SPANID}});Object.defineProperty(t,"INVALID_TRACEID",{enumerable:true,get:function(){return x.INVALID_TRACEID}});Object.defineProperty(t,"INVALID_SPAN_CONTEXT",{enumerable:true,get:function(){return x.INVALID_SPAN_CONTEXT}});const w=r(7393);Object.defineProperty(t,"context",{enumerable:true,get:function(){return w.context}});const S=r(9721);Object.defineProperty(t,"diag",{enumerable:true,get:function(){return S.diag}});const E=r(2601);Object.defineProperty(t,"metrics",{enumerable:true,get:function(){return E.metrics}});const T=r(7591);Object.defineProperty(t,"propagation",{enumerable:true,get:function(){return T.propagation}});const N=r(8989);Object.defineProperty(t,"trace",{enumerable:true,get:function(){return N.trace}});t["default"]={context:w.context,diag:S.diag,metrics:E.metrics,propagation:T.propagation,trace:N.trace}},5135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;const i=r(9957);const s=r(8996);const a=r(1522);const n=s.VERSION.split(".")[0];const o=Symbol.for(`opentelemetry.js.api.${n}`);const p=i._globalThis;function registerGlobal(e,t,r,i=false){var a;const n=p[o]=(a=p[o])!==null&&a!==void 0?a:{version:s.VERSION};if(!i&&n[e]){const t=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);r.error(t.stack||t.message);return false}if(n.version!==s.VERSION){const t=new Error(`@opentelemetry/api: Registration of version v${n.version} for ${e} does not match previously registered API v${s.VERSION}`);r.error(t.stack||t.message);return false}n[e]=t;r.debug(`@opentelemetry/api: Registered a global for ${e} v${s.VERSION}.`);return true}t.registerGlobal=registerGlobal;function getGlobal(e){var t,r;const i=(t=p[o])===null||t===void 0?void 0:t.version;if(!i||!(0,a.isCompatible)(i)){return}return(r=p[o])===null||r===void 0?void 0:r[e]}t.getGlobal=getGlobal;function unregisterGlobal(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${s.VERSION}.`);const r=p[o];if(r){delete r[e]}}t.unregisterGlobal=unregisterGlobal},1522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCompatible=t._makeCompatibilityCheck=void 0;const i=r(8996);const s=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(e){const t=new Set([e]);const r=new Set;const i=e.match(s);if(!i){return()=>false}const a={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(a.prerelease!=null){return function isExactmatch(t){return t===e}}function _reject(e){r.add(e);return false}function _accept(e){t.add(e);return true}return function isCompatible(e){if(t.has(e)){return true}if(r.has(e)){return false}const i=e.match(s);if(!i){return _reject(e)}const n={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(n.prerelease!=null){return _reject(e)}if(a.major!==n.major){return _reject(e)}if(a.major===0){if(a.minor===n.minor&&a.patch<=n.patch){return _accept(e)}return _reject(e)}if(a.minor<=n.minor){return _accept(e)}return _reject(e)}}t._makeCompatibilityCheck=_makeCompatibilityCheck;t.isCompatible=_makeCompatibilityCheck(i.VERSION)},2601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.metrics=void 0;const i=r(7696);t.metrics=i.MetricsAPI.getInstance()},9999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValueType=void 0;var r;(function(e){e[e["INT"]=0]="INT";e[e["DOUBLE"]=1]="DOUBLE"})(r=t.ValueType||(t.ValueType={}))},4837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class NoopMeter{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=NoopMeter;class NoopMetric{}t.NoopMetric=NoopMetric;class NoopCounterMetric extends NoopMetric{add(e,t){}}t.NoopCounterMetric=NoopCounterMetric;class NoopUpDownCounterMetric extends NoopMetric{add(e,t){}}t.NoopUpDownCounterMetric=NoopUpDownCounterMetric;class NoopHistogramMetric extends NoopMetric{record(e,t){}}t.NoopHistogramMetric=NoopHistogramMetric;class NoopObservableMetric{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=NoopObservableMetric;class NoopObservableCounterMetric extends NoopObservableMetric{}t.NoopObservableCounterMetric=NoopObservableCounterMetric;class NoopObservableGaugeMetric extends NoopObservableMetric{}t.NoopObservableGaugeMetric=NoopObservableGaugeMetric;class NoopObservableUpDownCounterMetric extends NoopObservableMetric{}t.NoopObservableUpDownCounterMetric=NoopObservableUpDownCounterMetric;t.NOOP_METER=new NoopMeter;t.NOOP_COUNTER_METRIC=new NoopCounterMetric;t.NOOP_HISTOGRAM_METRIC=new NoopHistogramMetric;t.NOOP_UP_DOWN_COUNTER_METRIC=new NoopUpDownCounterMetric;t.NOOP_OBSERVABLE_COUNTER_METRIC=new NoopObservableCounterMetric;t.NOOP_OBSERVABLE_GAUGE_METRIC=new NoopObservableGaugeMetric;t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new NoopObservableUpDownCounterMetric;function createNoopMeter(){return t.NOOP_METER}t.createNoopMeter=createNoopMeter},2647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;const i=r(4837);class NoopMeterProvider{getMeter(e,t,r){return i.NOOP_METER}}t.NoopMeterProvider=NoopMeterProvider;t.NOOP_METER_PROVIDER=new NoopMeterProvider},9957:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7200),t)},9406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._globalThis=void 0;t._globalThis=typeof globalThis==="object"?globalThis:global},7200:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9406),t)},7591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.propagation=void 0;const i=r(9909);t.propagation=i.PropagationAPI.getInstance()},2368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopTextMapPropagator=void 0;class NoopTextMapPropagator{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=NoopTextMapPropagator},865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultTextMapSetter=t.defaultTextMapGetter=void 0;t.defaultTextMapGetter={get(e,t){if(e==null){return undefined}return e[t]},keys(e){if(e==null){return[]}return Object.keys(e)}};t.defaultTextMapSetter={set(e,t,r){if(e==null){return}e[t]=r}}},8989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trace=void 0;const i=r(1539);t.trace=i.TraceAPI.getInstance()},1462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NonRecordingSpan=void 0;const i=r(1760);class NonRecordingSpan{constructor(e=i.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return false}recordException(e,t){}}t.NonRecordingSpan=NonRecordingSpan},7606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopTracer=void 0;const i=r(7171);const s=r(3326);const a=r(1462);const n=r(9745);const o=i.ContextAPI.getInstance();class NoopTracer{startSpan(e,t,r=o.active()){const i=Boolean(t===null||t===void 0?void 0:t.root);if(i){return new a.NonRecordingSpan}const p=r&&(0,s.getSpanContext)(r);if(isSpanContext(p)&&(0,n.isSpanContextValid)(p)){return new a.NonRecordingSpan(p)}else{return new a.NonRecordingSpan}}startActiveSpan(e,t,r,i){let a;let n;let p;if(arguments.length<2){return}else if(arguments.length===2){p=t}else if(arguments.length===3){a=t;p=r}else{a=t;n=r;p=i}const l=n!==null&&n!==void 0?n:o.active();const c=this.startSpan(e,a,l);const d=(0,s.setSpan)(l,c);return o.with(d,p,undefined,c)}}t.NoopTracer=NoopTracer;function isSpanContext(e){return typeof e==="object"&&typeof e["spanId"]==="string"&&typeof e["traceId"]==="string"&&typeof e["traceFlags"]==="number"}},3259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoopTracerProvider=void 0;const i=r(7606);class NoopTracerProvider{getTracer(e,t,r){return new i.NoopTracer}}t.NoopTracerProvider=NoopTracerProvider},3503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProxyTracer=void 0;const i=r(7606);const s=new i.NoopTracer;class ProxyTracer{constructor(e,t,r,i){this._provider=e;this.name=t;this.version=r;this.options=i}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,i){const s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)}_getTracer(){if(this._delegate){return this._delegate}const e=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!e){return s}this._delegate=e;return this._delegate}}t.ProxyTracer=ProxyTracer},2285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProxyTracerProvider=void 0;const i=r(3503);const s=r(3259);const a=new s.NoopTracerProvider;class ProxyTracerProvider{getTracer(e,t,r){var s;return(s=this.getDelegateTracer(e,t,r))!==null&&s!==void 0?s:new i.ProxyTracer(this,e,t,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:a}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,t,r)}}t.ProxyTracerProvider=ProxyTracerProvider},3209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SamplingDecision=void 0;var r;(function(e){e[e["NOT_RECORD"]=0]="NOT_RECORD";e[e["RECORD"]=1]="RECORD";e[e["RECORD_AND_SAMPLED"]=2]="RECORD_AND_SAMPLED"})(r=t.SamplingDecision||(t.SamplingDecision={}))},3326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;const i=r(8242);const s=r(1462);const a=r(7171);const n=(0,i.createContextKey)("OpenTelemetry Context Key SPAN");function getSpan(e){return e.getValue(n)||undefined}t.getSpan=getSpan;function getActiveSpan(){return getSpan(a.ContextAPI.getInstance().active())}t.getActiveSpan=getActiveSpan;function setSpan(e,t){return e.setValue(n,t)}t.setSpan=setSpan;function deleteSpan(e){return e.deleteValue(n)}t.deleteSpan=deleteSpan;function setSpanContext(e,t){return setSpan(e,new s.NonRecordingSpan(t))}t.setSpanContext=setSpanContext;function getSpanContext(e){var t;return(t=getSpan(e))===null||t===void 0?void 0:t.spanContext()}t.getSpanContext=getSpanContext},2110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TraceStateImpl=void 0;const i=r(4864);const s=32;const a=512;const n=",";const o="=";class TraceStateImpl{constructor(e){this._internalState=new Map;if(e)this._parse(e)}set(e,t){const r=this._clone();if(r._internalState.has(e)){r._internalState.delete(e)}r._internalState.set(e,t);return r}unset(e){const t=this._clone();t._internalState.delete(e);return t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce(((e,t)=>{e.push(t+o+this.get(t));return e}),[]).join(n)}_parse(e){if(e.length>a)return;this._internalState=e.split(n).reverse().reduce(((e,t)=>{const r=t.trim();const s=r.indexOf(o);if(s!==-1){const a=r.slice(0,s);const n=r.slice(s+1,t.length);if((0,i.validateKey)(a)&&(0,i.validateValue)(n)){e.set(a,n)}else{}}return e}),new Map);if(this._internalState.size>s){this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,s))}}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new TraceStateImpl;e._internalState=new Map(this._internalState);return e}}t.TraceStateImpl=TraceStateImpl},4864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateValue=t.validateKey=void 0;const r="[_0-9a-z-*/]";const i=`[a-z]${r}{0,255}`;const s=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`;const a=new RegExp(`^(?:${i}|${s})$`);const n=/^[ -~]{0,255}[!-~]$/;const o=/,|=/;function validateKey(e){return a.test(e)}t.validateKey=validateKey;function validateValue(e){return n.test(e)&&!o.test(e)}t.validateValue=validateValue},2615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTraceState=void 0;const i=r(2110);function createTraceState(e){return new i.TraceStateImpl(e)}t.createTraceState=createTraceState},1760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;const i=r(6905);t.INVALID_SPANID="0000000000000000";t.INVALID_TRACEID="00000000000000000000000000000000";t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:i.TraceFlags.NONE}},1424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SpanKind=void 0;var r;(function(e){e[e["INTERNAL"]=0]="INTERNAL";e[e["SERVER"]=1]="SERVER";e[e["CLIENT"]=2]="CLIENT";e[e["PRODUCER"]=3]="PRODUCER";e[e["CONSUMER"]=4]="CONSUMER"})(r=t.SpanKind||(t.SpanKind={}))},9745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;const i=r(1760);const s=r(1462);const a=/^([0-9a-f]{32})$/i;const n=/^[0-9a-f]{16}$/i;function isValidTraceId(e){return a.test(e)&&e!==i.INVALID_TRACEID}t.isValidTraceId=isValidTraceId;function isValidSpanId(e){return n.test(e)&&e!==i.INVALID_SPANID}t.isValidSpanId=isValidSpanId;function isSpanContextValid(e){return isValidTraceId(e.traceId)&&isValidSpanId(e.spanId)}t.isSpanContextValid=isSpanContextValid;function wrapSpanContext(e){return new s.NonRecordingSpan(e)}t.wrapSpanContext=wrapSpanContext},8845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SpanStatusCode=void 0;var r;(function(e){e[e["UNSET"]=0]="UNSET";e[e["OK"]=1]="OK";e[e["ERROR"]=2]="ERROR"})(r=t.SpanStatusCode||(t.SpanStatusCode={}))},6905:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TraceFlags=void 0;var r;(function(e){e[e["NONE"]=0]="NONE";e[e["SAMPLED"]=1]="SAMPLED"})(r=t.TraceFlags||(t.TraceFlags={}))},8996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VERSION=void 0;t.VERSION="1.4.1"},4812:(e,t,r)=>{e.exports={parallel:r(8210),serial:r(445),serialOrdered:r(3578)}},1700:e=>{e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},2794:(e,t,r)=>{var i=r(5295);e.exports=async;function async(e){var t=false;i((function(){t=true}));return function async_callback(r,s){if(t){e(r,s)}else{i((function nextTick_callback(){e(r,s)}))}}}},5295:e=>{e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},9023:(e,t,r)=>{var i=r(2794),s=r(1700);e.exports=iterate;function iterate(e,t,r,i){var a=r["keyedList"]?r["keyedList"][r.index]:r.index;r.jobs[a]=runJob(t,a,e[a],(function(e,t){if(!(a in r.jobs)){return}delete r.jobs[a];if(e){s(r)}else{r.results[a]=t}i(e,r.results)}))}function runJob(e,t,r,s){var a;if(e.length==2){a=e(r,i(s))}else{a=e(r,t,i(s))}return a}},2474:e=>{e.exports=state;function state(e,t){var r=!Array.isArray(e),i={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};if(t){i.keyedList.sort(r?t:function(r,i){return t(e[r],e[i])})}return i}},7942:(e,t,r)=>{var i=r(1700),s=r(2794);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;i(this);s(e)(null,this.results)}},8210:(e,t,r)=>{var i=r(9023),s=r(2474),a=r(7942);e.exports=parallel;function parallel(e,t,r){var n=s(e);while(n.index<(n["keyedList"]||e).length){i(e,t,n,(function(e,t){if(e){r(e,t);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}));n.index++}return a.bind(n,r)}},445:(e,t,r)=>{var i=r(3578);e.exports=serial;function serial(e,t,r){return i(e,t,null,r)}},3578:(e,t,r)=>{var i=r(9023),s=r(2474),a=r(7942);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,r,n){var o=s(e,r);i(e,t,o,(function iteratorHandler(r,s){if(r){n(r,s);return}o.index++;if(o.index<(o["keyedList"]||e).length){i(e,t,o,iteratorHandler);return}n(null,o.results)}));return a.bind(o,n)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,s,a,n,o;var p=r.indexOf(e);var l=r.indexOf(t,p+1);var c=p;if(p>=0&&l>0){if(e===t){return[p,l]}i=[];a=r.length;while(c>=0&&!o){if(c==p){i.push(c);p=r.indexOf(e,c+1)}else if(i.length==1){o=[i.pop(),l]}else{s=i.pop();if(s=0?p:l}if(i.length){o=[a,n]}}return o}},3682:(e,t,r)=>{var i=r(4670);var s=r(5549);var a=r(6819);var n=Function.bind;var o=n.bind(n);function bindApi(e,t,r){var i=o(a,null).apply(null,r?[t,r]:[t]);e.api={remove:i};e.remove=i;["before","error","after","wrap"].forEach((function(i){var a=r?[t,i,r]:[t,i];e[i]=e.api[i]=o(s,null).apply(null,a)}))}function HookSingular(){var e="h";var t={registry:{}};var r=i.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=i.bind(null,e);bindApi(t,e);return t}var p=false;function Hook(){if(!p){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');p=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},5549:e=>{e.exports=addHook;function addHook(e,t,r,i){var s=i;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){i=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){i=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:i,orig:s})}},4670:e=>{e.exports=register;function register(e,t,r,i){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!i){i={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,i)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(i)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,i)}),r)()}))}},6819:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var i=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(i===-1){return}e.registry[t].splice(i,1)}},3717:(e,t,r)=>{var i=r(6891);var s=r(9417);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var n="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var p="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(n).split("\\}").join(o).split("\\,").join(p).split("\\.").join(l)}function unescapeBraces(e){return e.split(a).join("\\").split(n).join("{").split(o).join("}").split(p).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var i=r.pre;var a=r.body;var n=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var p=parseCommaParts(n);if(n.length){o[o.length-1]+=p.shift();o.push.apply(o,p)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var a=s("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=n||p;var c=a.body.indexOf(",")>=0;if(!l&&!c){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+o+a.post;return expand(e)}return[e]}var d;if(l){d=a.body.split(/\.\./)}else{d=parseCommaParts(a.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var u=a.post.length?expand(a.post,false):[""];return u.map((function(e){return a.pre+d[0]+e}))}}}var h=a.pre;var u=a.post.length?expand(a.post,false):[""];var g;if(l){var y=numeric(d[0]);var v=numeric(d[1]);var b=Math.max(d[0].length,d[1].length);var x=d.length==3?Math.abs(numeric(d[2])):1;var w=lte;var S=v0){var P=new Array(_+1).join("0");if(T<0)N="-"+P+N.slice(1);else N=P+N}}}g.push(N)}}else{g=i(d,(function(e){return expand(e,false)}))}for(var C=0;C{var i=r(3837);var s=r(2781).Stream;var a=r(8611);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}i.inherits(CombinedStream,s);CombinedStream.create=function(e){var t=new this;e=e||{};for(var r in e){t[r]=e[r]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof a)){var r=a.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=r}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){s.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var r=e;this.write(r);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},6891:e=>{e.exports=function(e,r){var i=[];for(var s=0;s{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.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"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let i=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){s=i}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}a++;const s=createDebug.formatters[i];if(typeof s==="function"){const i=e[a];t=s.call(r,i);e.splice(a,1);a--}return t}));createDebug.formatArgs.call(r,e);const n=r.log||createDebug.log;n.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(i!==createDebug.namespaces){i=createDebug.namespaces;s=createDebug.enabled(e)}return s},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const i=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(4874)}},4874:(e,t,r)=>{const i=r(6224);const s=r(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.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){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[r]=i;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:i}=this;if(i){const i=this.color;const s="[3"+(i<8?i:"8;5;"+i);const a=` ${s};1m${r} `;t[0]=a+t[0].split("\n").join("\n"+a);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let i=0;ie.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},8611:(e,t,r)=>{var i=r(2781).Stream;var s=r(3837);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}s.inherits(DelayedStream,i);DelayedStream.create=function(e,t){var r=new this;t=t||{};for(var i in t){r[i]=t[i]}r.source=e;var s=e.emit;e.emit=function(){r._handleEmit(arguments);return s.apply(e,arguments)};e.on("error",(function(){}));if(r.pauseStream){e.pause()}return r};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},8932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},3138:(e,t,r)=>{const i=r(6113),s=r(8237),a=r(7422),n=r(1017);const o={algo:"sha1",encoding:"base64",files:{exclude:[],include:[],matchBasename:true,matchPath:false,ignoreBasename:false,ignoreRootName:false},folders:{exclude:[],include:[],matchBasename:true,matchPath:false,ignoreBasename:false,ignoreRootName:false},symbolicLinks:{include:true,ignoreBasename:false,ignoreTargetPath:true,ignoreTargetContent:false,ignoreTargetContentAfterError:false}};const p={match:s("fhash:match"),params:e=>{s("fhash:parameters")(e);return e},err:s("fhash:err"),symlink:s("fhash:symlink"),queue:s("fhash:queue")};function prep(e){let t=[];let r=undefined;function hashElement(t,r,i,s){s=arguments[arguments.length-1];return parseParameters(arguments).then((({basename:t,dir:r,options:i})=>{i.skipMatching=true;return e.promises.lstat(n.join(r,t)).then((e=>{e.name=t;return e})).then((e=>hashElementPromise(e,r,i,true)))})).then((e=>{if(isFunction(s)){return s(undefined,e)}else{return e}})).catch((e=>{p.err("Fatal error:",e);if(isFunction(s)){return s(e)}else{throw e}}))}function hashElementPromise(e,i,s,a=false){const n=e.name;let o=undefined;if(e.isDirectory()){o=hashFolderPromise(n,i,s,a)}else if(e.isFile()){o=hashFilePromise(n,i,s,a)}else if(e.isSymbolicLink()){o=hashSymLinkPromise(n,i,s,a)}else{p.err("hashElementPromise cannot handle ",e);return Promise.resolve({name:n,hash:"Error: unknown element type"})}return o.catch((o=>{if(o.code&&(o.code==="EMFILE"||o.code==="ENFILE")){p.queue(`queued ${i}/${n} because of ${o.code}`);const l=new Promise(((r,o)=>{t.push((()=>{p.queue(`Will processs queued ${i}/${n}`);return hashElementPromise(e,i,s,a).then((e=>r(e))).catch((e=>o(e)))}))}));if(r===undefined){r=setTimeout(processQueue,0)}return l}throw o}))}function processQueue(){r=undefined;const e=t;t=[];e.forEach((e=>e()))}async function hashFolderPromise(t,r,i,s=false){const a=n.join(r,t);let o=i.ignoreBasenameOnce;delete i.ignoreBasenameOnce;if(i.skipMatching){p.match(`skipped '${a}'`);delete i.skipMatching}else if(ignore(t,a,i.folders)){return undefined}const c=await e.promises.readdir(a,{withFileTypes:true});const d=await Promise.all(c.sort(((e,t)=>e.name.localeCompare(t.name))).map((e=>hashElementPromise(e,a,i))));if(o)i.ignoreBasenameOnce=true;const u=new l(t,d.filter(notUndefined),i,s);return u}function hashFilePromise(t,r,s,a=false){const o=n.join(r,t);if(s.skipMatching){p.match(`skipped '${o}'`);delete s.skipMatching}else if(ignore(t,o,s.files)){return Promise.resolve(undefined)}return new Promise(((r,n)=>{try{const l=i.createHash(s.algo);if(s.files.ignoreBasename||s.ignoreBasenameOnce||a&&s.files.ignoreRootName){delete s.ignoreBasenameOnce;p.match(`omitted name of ${o} from hash`)}else{l.update(t)}const d=e.createReadStream(o);d.on("error",(e=>{n(e)}));d.pipe(l,{end:false});d.on("end",(()=>{const e=new c(t,l,s.encoding);return r(e)}))}catch(e){return n(e)}}))}async function hashSymLinkPromise(t,r,i,s=false){const a=await e.promises.readlink(n.join(r,t));p.symlink(`handling symbolic link ${t} -> ${a}`);if(i.symbolicLinks.include){if(i.symbolicLinks.ignoreTargetContent){return symLinkIgnoreTargetContent(t,a,i,s)}else{return symLinkResolve(t,r,a,i,s)}}else{p.symlink("skipping symbolic link");return Promise.resolve(undefined)}}function symLinkIgnoreTargetContent(e,t,r,s){delete r.skipMatching;p.symlink("ignoring symbolic link target content");const a=i.createHash(r.algo);if(!r.symbolicLinks.ignoreBasename&&!(s&&r.files.ignoreRootName)){p.symlink("hash basename");a.update(e)}if(!r.symbolicLinks.ignoreTargetPath){p.symlink("hash targetpath");a.update(t)}return Promise.resolve(new c(e,a,r.encoding))}async function symLinkResolve(t,r,s,a,o){delete a.skipMatching;if(a.symbolicLinks.ignoreBasename){a.ignoreBasenameOnce=true}try{const l=await e.promises.stat(n.join(r,t));l.name=t;const c=await hashElementPromise(l,r,a,o);if(!a.symbolicLinks.ignoreTargetPath){const e=i.createHash(a.algo);e.update(c.hash);p.symlink("hash targetpath");e.update(s);c.hash=e.digest(a.encoding)}return c}catch(e){if(a.symbolicLinks.ignoreTargetContentAfterError){p.symlink(`Ignoring error "${e.code}" when hashing symbolic link ${t}`,e);const r=i.createHash(a.algo);if(!a.symbolicLinks.ignoreBasename&&!(o&&a.files.ignoreRootName)){r.update(t)}if(!a.symbolicLinks.ignoreTargetPath){r.update(s)}return new c(t,r,a.encoding)}else{p.symlink(`Error "${e.code}": When hashing symbolic link ${t}`,e);throw e}}}function ignore(e,t,r){if(r.exclude){if(r.matchBasename&&r.exclude(e)){p.match(`exclude basename '${e}'`);return true}else if(r.matchPath&&r.exclude(t)){p.match(`exclude path '${t}'`);return true}}if(r.include){if(r.matchBasename&&r.include(e)){p.match(`include basename '${e}'`);return false}else if(r.matchPath&&r.include(t)){p.match(`include path '${t}'`);return false}else{p.match(`include rule failed for path '${t}'`);return true}}p.match(`Will not ignore unmatched '${t}'`);return false}return hashElement}function parseParameters(e){let t=e[0],r=e[1],i=e[2];if(!isString(t)){return Promise.reject(new TypeError("First argument must be a string"))}if(!isString(r)){r=n.dirname(t);t=n.basename(t);i=e[1]}if(!isObject(i))i={};const s={algo:i.algo||o.algo,encoding:i.encoding||o.encoding,files:Object.assign({},o.files,i.files),folders:Object.assign({},o.folders,i.folders),match:Object.assign({},o.match,i.match),symbolicLinks:Object.assign({},o.symbolicLinks,i.symbolicLinks)};s.files.exclude=reduceGlobPatterns(s.files.exclude);s.files.include=reduceGlobPatterns(s.files.include);s.folders.exclude=reduceGlobPatterns(s.folders.exclude);s.folders.include=reduceGlobPatterns(s.folders.include);return Promise.resolve(p.params({basename:t,dir:r,options:s}))}const l=function HashedFolder(e,t,r,s=false){this.name=e;this.children=t;const a=i.createHash(r.algo);if(r.folders.ignoreBasename||r.ignoreBasenameOnce||s&&r.folders.ignoreRootName){delete r.ignoreBasenameOnce;p.match(`omitted name of folder ${e} from hash`)}else{a.update(e)}t.forEach((e=>{if(e.hash){a.update(e.hash)}}));this.hash=a.digest(r.encoding)};l.prototype.toString=function(e=""){const t=`${e}{ name: '${this.name}', hash: '${this.hash}',\n`;e+=" ";return`${t}${e}children: ${this.childrenToString(e)}}`};l.prototype.childrenToString=function(e=""){if(this.children.length===0){return"[]"}else{const t=e+" ";const r=this.children.map((e=>e.toString(t))).join("\n");return`[\n${r}\n${e}]`}};const c=function HashedFile(e,t,r){this.name=e;this.hash=t.digest(r)};c.prototype.toString=function(e=""){return e+"{ name: '"+this.name+"', hash: '"+this.hash+"' }"};function isFunction(e){return typeof e==="function"}function isString(e){return typeof e==="string"||e instanceof String}function isObject(e){return e!==null&&typeof e==="object"}function notUndefined(e){return typeof e!=="undefined"}function reduceGlobPatterns(e){if(isFunction(e)){return e}else if(!e||!Array.isArray(e)||e.length===0){return undefined}else{const t=new RegExp(e.reduce(((e,t)=>e+"|"+a.makeRe(t).source),"").substr(1));return e=>t.test(e)}}e.exports={defaults:o,hashElement:prep(r(7147)),prep:prep,parseParameters:parseParameters}},1566:(e,t,r)=>{var i=r(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var n="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(n).split("\\,").join(o).split("\\.").join(p)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(n).join("}").split(o).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var s=r.pre;var a=r.body;var n=r.post;var o=s.split(",");o[o.length-1]+="{"+a+"}";var p=parseCommaParts(n);if(n.length){o[o.length-1]+=p.shift();o.push.apply(o,p)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s)return[e];var a=s.pre;var o=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var p=0;p=0;if(!u&&!h){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+n+s.post;return expand(e)}return[e]}var g;if(u){g=s.body.split(/\.\./)}else{g=parseCommaParts(s.body);if(g.length===1){g=expand(g[0],false).map(embrace);if(g.length===1){return o.map((function(e){return s.pre+g[0]+e}))}}}var y;if(u){var v=numeric(g[0]);var b=numeric(g[1]);var x=Math.max(g[0].length,g[1].length);var w=g.length==3?Math.abs(numeric(g[2])):1;var S=lte;var E=b0){var C=new Array(P+1).join("0");if(N<0)_="-"+C+_.slice(1);else _=C+_}}}y.push(_)}}else{y=[];for(var O=0;O{const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},7422:(e,t,r)=>{const i=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=i;const s=r(9629);i.sep=s.sep;const a=Symbol("globstar **");i.GLOBSTAR=a;const n=r(1566);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const p="[^/]";const l=p+"*?";const c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const d="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const u=charSet("().*{}+?[]^$\\!");const h=charSet("[.(");const g=/\/+/;i.filter=(e,t={})=>(r,s,a)=>i(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};i.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return i}const t=i;const m=(r,i,s)=>t(r,i,ext(e,s));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,i)=>t.filter(r,ext(e,i));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,i)=>t.makeRe(r,ext(e,i));m.braceExpand=(r,i)=>t.braceExpand(r,ext(e,i));m.match=(r,i,s)=>t.match(r,i,ext(e,s));return m};i.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return n(e)};const y=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>y){throw new TypeError("pattern is too long")}};const v=Symbol("subparse");i.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();i.match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(g)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i>> no match, partial?",e,d,t,u);if(d===o)return true}return false}var g;if(typeof l==="string"){g=c===l;this.debug("string match",l,c,g)}else{g=c.match(l);this.debug("pattern match",l,c,g)}if(!g)return false}if(s===o&&n===p){return true}else if(s===o){return r}else if(n===p){return s===o-1&&e[s]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return a;else e="*"}if(e==="")return"";let i="";let s=false;let n=false;const c=[];const d=[];let g;let y=false;let b=-1;let x=-1;let w;let S;let E;let T=e.charAt(0)===".";let N=r.dot||T;const patternStart=()=>T?"":N?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(g){switch(g){case"*":i+=l;s=true;break;case"?":i+=p;s=true;break;default:i+="\\"+g;break}this.debug("clearStateChar %j %j",g,i);g=false}};for(let t=0,a;t{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,S,i);const t=S.type==="*"?l:S.type==="?"?p:"\\"+S.type;s=true;i=i.slice(0,S.reStart)+t+"\\("+e}clearStateChar();if(n){i+="\\\\"}const _=h[i.charAt(0)];for(let e=d.length-1;e>-1;e--){const r=d[e];const s=i.slice(0,r.reStart);const a=i.slice(r.reStart,r.reEnd-8);let n=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+n;const p=s.split(")").length;const l=s.split("(").length-p;let c=n;for(let e=0;e{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===a?a:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===a&&t===a)){e.push(t)}return e}),[]);e.forEach(((t,i)=>{if(t!==a||e[i-1]===a){return}if(i===0){if(e.length>1){e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]}else{e[i]=r}}else if(i===e.length-1){e[i-1]+="(?:\\/|"+r+")?"}else{e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1];e[i+1]=a}}));return e.filter((e=>e!==a)).join("/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,i)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(s.sep!=="/"){e=e.split(s.sep).join("/")}e=e.split(g);this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let a;for(let t=e.length-1;t>=0;t--){a=e[t];if(a)break}for(let s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Glob=void 0;const i=r(266);const s=r(9569);const a=r(7310);const n=r(4887);const o=r(671);const p=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(e,t){this.withFileTypes=!!t.withFileTypes;this.signal=t.signal;this.follow=!!t.follow;this.dot=!!t.dot;this.dotRelative=!!t.dotRelative;this.nodir=!!t.nodir;this.mark=!!t.mark;if(!t.cwd){this.cwd=""}else if(t.cwd instanceof URL||t.cwd.startsWith("file://")){t.cwd=(0,a.fileURLToPath)(t.cwd)}this.cwd=t.cwd||"";this.root=t.root;this.magicalBraces=!!t.magicalBraces;this.nobrace=!!t.nobrace;this.noext=!!t.noext;this.realpath=!!t.realpath;this.absolute=t.absolute;this.noglobstar=!!t.noglobstar;this.matchBase=!!t.matchBase;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:Infinity;this.stat=!!t.stat;this.ignore=t.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof e==="string"){e=[e]}this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){e=e.map((e=>e.replace(/\\/g,"/")))}if(this.matchBase){if(t.noglobstar){throw new TypeError("base matching requires globstar")}e=e.map((e=>e.includes("/")?e:`./**/${e}`))}this.pattern=e;this.platform=t.platform||p;this.opts={...t,platform:this.platform};if(t.scurry){this.scurry=t.scurry;if(t.nocase!==undefined&&t.nocase!==t.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const e=t.platform==="win32"?s.PathScurryWin32:t.platform==="darwin"?s.PathScurryDarwin:t.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:true,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const o=this.pattern.map((e=>new i.Minimatch(e,r)));const[l,c]=o.reduce(((e,t)=>{e[0].push(...t.set);e[1].push(...t.globParts);return e}),[[],[]]);this.patterns=l.map(((e,t)=>new n.Pattern(e,c[t],0,this.platform)))}async walk(){return[...await new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=Glob},9099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasMagic=void 0;const i=r(266);const hasMagic=(e,t={})=>{if(!Array.isArray(e)){e=[e]}for(const r of e){if(new i.Minimatch(r,t).hasMagic())return true}return false};t.hasMagic=hasMagic},469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Ignore=void 0;const i=r(266);const s=r(4887);const a=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;constructor(e,{nobrace:t,nocase:r,noext:n,noglobstar:o,platform:p=a}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];const l={dot:true,nobrace:t,nocase:r,noext:n,noglobstar:o,optimizationLevel:2,platform:p,nocomment:true,nonegate:true};for(const t of e){const e=new i.Minimatch(t,l);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.glob=t.hasMagic=t.Glob=t.unescape=t.escape=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.globIterate=t.globIterateSync=t.globSync=t.globStream=t.globStreamSync=void 0;const i=r(266);const s=r(8596);const a=r(9099);function globStreamSync(e,t={}){return new s.Glob(e,t).streamSync()}t.globStreamSync=globStreamSync;function globStream(e,t={}){return new s.Glob(e,t).stream()}t.globStream=globStream;function globSync(e,t={}){return new s.Glob(e,t).walkSync()}t.globSync=globSync;async function glob_(e,t={}){return new s.Glob(e,t).walk()}function globIterateSync(e,t={}){return new s.Glob(e,t).iterateSync()}t.globIterateSync=globIterateSync;function globIterate(e,t={}){return new s.Glob(e,t).iterate()}t.globIterate=globIterate;t.streamSync=globStreamSync;t.stream=Object.assign(globStream,{sync:globStreamSync});t.iterateSync=globIterateSync;t.iterate=Object.assign(globIterate,{sync:globIterateSync});t.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});var n=r(266);Object.defineProperty(t,"escape",{enumerable:true,get:function(){return n.escape}});Object.defineProperty(t,"unescape",{enumerable:true,get:function(){return n.unescape}});var o=r(8596);Object.defineProperty(t,"Glob",{enumerable:true,get:function(){return o.Glob}});var p=r(9099);Object.defineProperty(t,"hasMagic",{enumerable:true,get:function(){return p.hasMagic}});t.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:t.sync,globStream:globStream,stream:t.stream,globStreamSync:globStreamSync,streamSync:t.streamSync,globIterate:globIterate,iterate:t.iterate,globIterateSync:globIterateSync,iterateSync:t.iterateSync,Glob:s.Glob,hasMagic:a.hasMagic,escape:i.escape,unescape:i.unescape});t.glob.glob=t.glob},4887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const i=r(266);const isPatternList=e=>e.length>=1;const isGlobList=e=>e.length>=1;class Pattern{#e;#t;#r;length;#i;#s;#a;#n;#o;#p;#l=true;constructor(e,t,r,i){if(!isPatternList(e)){throw new TypeError("empty pattern list")}if(!isGlobList(t)){throw new TypeError("empty glob list")}if(t.length!==e.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=e.length;if(r<0||r>=this.length){throw new TypeError("index out of range")}this.#e=e;this.#t=t;this.#r=r;this.#i=i;if(this.#r===0){if(this.isUNC()){const[e,t,r,i,...s]=this.#e;const[a,n,o,p,...l]=this.#t;if(s[0]===""){s.shift();l.shift()}const c=[e,t,r,i,""].join("/");const d=[a,n,o,p,""].join("/");this.#e=[c,...s];this.#t=[d,...l];this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#e;const[r,...i]=this.#t;if(t[0]===""){t.shift();i.shift()}const s=e+"/";const a=r+"/";this.#e=[s,...t];this.#t=[a,...i];this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]==="string"}isGlobstar(){return this.#e[this.#r]===i.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#a=this.#a||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){if(this.#s!==undefined)return this.#s;if(!this.hasMore())return this.#s=null;this.#s=new Pattern(this.#e,this.#t,this.#r+1,this.#i);this.#s.#p=this.#p;this.#s.#o=this.#o;this.#s.#n=this.#n;return this.#s}isUNC(){const e=this.#e;return this.#o!==undefined?this.#o:this.#o=this.#i==="win32"&&this.#r===0&&e[0]===""&&e[1]===""&&typeof e[2]==="string"&&!!e[2]&&typeof e[3]==="string"&&!!e[3]}isDrive(){const e=this.#e;return this.#n!==undefined?this.#n:this.#n=this.#i==="win32"&&this.#r===0&&this.length>1&&typeof e[0]==="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#e;return this.#p!==undefined?this.#p:this.#p=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#e[0];return typeof e==="string"&&this.isAbsolute()&&this.#r===0?e:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){if(this.#r===0||!this.isGlobstar()||!this.#l)return false;this.#l=false;return true}}t.Pattern=Pattern},9107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const i=r(266);class HasWalkedCache{store;constructor(e=new Map){this.store=e}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath();const i=this.store.get(r);if(i)i.add(t.globString());else this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(e,t,r){const i=(t?2:0)|(r?1:0);const s=this.store.get(e);this.store.set(e,s===undefined?i:i&s)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(t&2),!!(t&1)]))}}t.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(e,t){if(!e.canReaddir()){return}const r=this.store.get(e);if(r){if(!r.find((e=>e.globString()===t.globString()))){r.push(t)}}else this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t){throw new Error("attempting to walk unknown path")}return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(e,t){this.opts=e;this.follow=!!e.follow;this.dot=!!e.dot;this.hasWalkedCache=t?t.copy():new HasWalkedCache}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root();const s=t.isAbsolute()&&this.opts.absolute!==false;if(r){e=e.resolve(r==="/"&&this.opts.root!==undefined?this.opts.root:r);const i=t.rest();if(!i){this.matches.add(e,true,false);continue}else{t=i}}if(e.isENOENT())continue;let a;let n;let o=false;while(typeof(a=t.pattern())==="string"&&(n=t.rest())){const r=e.resolve(a);if(r.isUnknown()&&a!=="..")break;e=r;t=n;o=true}a=t.pattern();n=t.rest();if(o){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if(typeof a==="string"){if(!n){const t=a===".."||a===""||a===".";this.matches.add(e.resolve(a),s,t)}else{this.subwalks.add(e,t)}continue}else if(a===i.GLOBSTAR){if(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar()){this.subwalks.add(e,t)}const r=n?.pattern();const i=n?.rest();if(!n||(r===""||r===".")&&!i){this.matches.add(e,s,r===""||r===".")}else{if(r===".."){const t=e.parent||e;if(!i)this.matches.add(t,s,true);else if(!this.hasWalkedCache.hasWalked(t,i)){this.subwalks.add(t,i)}}}}else if(a instanceof RegExp){this.subwalks.add(e,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e);const s=this.child();for(const e of t){for(const t of r){const r=t.isAbsolute();const a=t.pattern();const n=t.rest();if(a===i.GLOBSTAR){s.testGlobstar(e,t,n,r)}else if(a instanceof RegExp){s.testRegExp(e,a,n,r)}else{s.testString(e,a,n,r)}}}return s}testGlobstar(e,t,r,i){if(this.dot||!e.name.startsWith(".")){if(!t.hasMore()){this.matches.add(e,i,false)}if(e.canReaddir()){if(this.follow||!e.isSymbolicLink()){this.subwalks.add(e,t)}else if(e.isSymbolicLink()){if(r&&t.checkFollowGlobstar()){this.subwalks.add(e,r)}else if(t.markFollowGlobstar()){this.subwalks.add(e,t)}}}}if(r){const t=r.pattern();if(typeof t==="string"&&t!==".."&&t!==""&&t!=="."){this.testString(e,t,r.rest(),i)}else if(t===".."){const t=e.parent||e;this.subwalks.add(t,r)}else if(t instanceof RegExp){this.testRegExp(e,t,r.rest(),i)}}}testRegExp(e,t,r,i){if(!t.test(e.name))return;if(!r){this.matches.add(e,i,false)}else{this.subwalks.add(e,r)}}testString(e,t,r,i){if(!e.isNamed(t))return;if(!r){this.matches.add(e,i,false)}else{this.subwalks.add(e,r)}}}t.Processor=Processor},671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const i=r(1077);const s=r(469);const a=r(9107);const makeIgnore=(e,t)=>typeof e==="string"?new s.Ignore([e],t):Array.isArray(e)?new s.Ignore(e,t):e;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#c=[];#d;#u;signal;maxDepth;constructor(e,t,r){this.patterns=e;this.path=t;this.opts=r;this.#u=!r.posix&&r.platform==="win32"?"\\":"/";if(r.ignore){this.#d=makeIgnore(r.ignore,r)}this.maxDepth=r.maxDepth||Infinity;if(r.signal){this.signal=r.signal;this.signal.addEventListener("abort",(()=>{this.#c.length=0}))}}#m(e){return this.seen.has(e)||!!this.#d?.ignored?.(e)}#h(e){return!!this.#d?.childrenIgnored?.(e)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let e=undefined;while(!this.paused&&(e=this.#c.shift())){e()}}onResume(e){if(this.signal?.aborted)return;if(!this.paused){e()}else{this.#c.push(e)}}async matchCheck(e,t){if(t&&this.opts.nodir)return undefined;let r;if(this.opts.realpath){r=e.realpathCached()||await e.realpath();if(!r)return undefined;e=r}const i=e.isUnknown()||this.opts.stat;return this.matchCheckTest(i?await e.lstat():e,t)}matchCheckTest(e,t){return e&&(this.maxDepth===Infinity||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&!this.#m(e)?e:undefined}matchCheckSync(e,t){if(t&&this.opts.nodir)return undefined;let r;if(this.opts.realpath){r=e.realpathCached()||e.realpathSync();if(!r)return undefined;e=r}const i=e.isUnknown()||this.opts.stat;return this.matchCheckTest(i?e.lstatSync():e,t)}matchFinish(e,t){if(this.#m(e))return;const r=this.opts.absolute===undefined?t:this.opts.absolute;this.seen.add(e);const i=this.opts.mark&&e.isDirectory()?this.#u:"";if(this.opts.withFileTypes){this.matchEmit(e)}else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+i)}else{const t=this.opts.posix?e.relativePosix():e.relative();const r=this.opts.dotRelative&&!t.startsWith(".."+this.#u)?"."+this.#u:"";this.matchEmit(!t?"."+i:r+t+i)}}async match(e,t,r){const i=await this.matchCheck(e,r);if(i)this.matchFinish(i,t)}matchSync(e,t,r){const i=this.matchCheckSync(e,r);if(i)this.matchFinish(i,t)}walkCB(e,t,r){if(this.signal?.aborted)r();this.walkCB2(e,t,new a.Processor(this.opts),r)}walkCB2(e,t,r,i){if(this.#h(e))return i();if(this.signal?.aborted)i();if(this.paused){this.onResume((()=>this.walkCB2(e,t,r,i)));return}r.processPatterns(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;s++;this.match(e,t,i).then((()=>next()))}for(const e of r.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}s++;const t=e.readdirCached();if(e.calledReaddir())this.walkCB3(e,t,r,next);else{e.readdirCB(((t,i)=>this.walkCB3(e,i,r,next)),true)}}next()}walkCB3(e,t,r,i){r=r.filterEntries(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;s++;this.match(e,t,i).then((()=>next()))}for(const[e,t]of r.subwalks.entries()){s++;this.walkCB2(e,t,r.child(),next)}next()}walkCBSync(e,t,r){if(this.signal?.aborted)r();this.walkCB2Sync(e,t,new a.Processor(this.opts),r)}walkCB2Sync(e,t,r,i){if(this.#h(e))return i();if(this.signal?.aborted)i();if(this.paused){this.onResume((()=>this.walkCB2Sync(e,t,r,i)));return}r.processPatterns(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;this.matchSync(e,t,i)}for(const e of r.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}s++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,next)}next()}walkCB3Sync(e,t,r,i){r=r.filterEntries(e,t);let s=1;const next=()=>{if(--s===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#m(e))continue;this.matchSync(e,t,i)}for(const[e,t]of r.subwalks.entries()){s++;this.walkCB2Sync(e,t,r.child(),next)}next()}}t.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches;constructor(e,t,r){super(e,t,r);this.matches=new Set}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){t(this.signal.reason)}else{e(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}t.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(e,t,r){super(e,t,r);this.results=new i.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e);if(!this.results.flowing)this.pause()}stream(){const e=this.path;if(e.isUnknown()){e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(e,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}t.GlobStream=GlobStream},1046:(e,t,r)=>{var i=r(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var n="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(n).split("\\,").join(o).split("\\.").join(p)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(n).join("}").split(o).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var s=r.pre;var a=r.body;var n=r.post;var o=s.split(",");o[o.length-1]+="{"+a+"}";var p=parseCommaParts(n);if(n.length){o[o.length-1]+=p.shift();o.push.apply(o,p)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s)return[e];var a=s.pre;var o=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var p=0;p=0;if(!u&&!h){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+n+s.post;return expand(e)}return[e]}var g;if(u){g=s.body.split(/\.\./)}else{g=parseCommaParts(s.body);if(g.length===1){g=expand(g[0],false).map(embrace);if(g.length===1){return o.map((function(e){return s.pre+g[0]+e}))}}}var y;if(u){var v=numeric(g[0]);var b=numeric(g[1]);var x=Math.max(g[0].length,g[1].length);var w=g.length==3?Math.abs(numeric(g[2])):1;var S=lte;var E=b0){var C=new Array(P+1).join("0");if(N<0)_="-"+C+_.slice(1);else _=C+_}}}y.push(_)}}else{y=[];for(var O=0;O{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const i=t.indexOf(r+e);const s=t.indexOf("--");return i!==-1&&(s===-1||i{"use strict";Object.defineProperty(t,"__esModule",{value:true}); /*! * is-plain-object * diff --git a/package-lock.json b/package-lock.json index 35aa45c..c01890c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,16 +22,25 @@ "devDependencies": { "@types/folder-hash": "^4.0.2", "@types/jest": "^29.5.1", - "@types/node": "^18.11.18", - "@typescript-eslint/eslint-plugin": "^5.53.0", - "@typescript-eslint/parser": "^5.53.0", - "@vercel/ncc": "^0.36.1", - "eslint": "^8.34.0", - "eslint-config-prettier": "^8.6.0", + "@types/node": "^20.11.30", + "@typescript-eslint/eslint-plugin": "^7.3.1", + "@typescript-eslint/parser": "^7.3.1", + "@vercel/ncc": "^0.38.1", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", "jest": "^29.5.0", - "prettier": "^2.8.4", + "prettier": "^3.2.5", "ts-jest": "^29.1.0", - "typescript": "^4.9.5" + "typescript": "^5.4.2" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, "node_modules/@actions-rs/core": { @@ -1055,15 +1064,39 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -1078,14 +1111,23 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" }, "engines": { @@ -1106,9 +1148,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, "node_modules/@istanbuljs/load-nyc-config": { @@ -1858,15 +1900,18 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, "node_modules/@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==" + "version": "20.11.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", + "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/node-fetch": { "version": "2.6.2", @@ -1884,9 +1929,9 @@ "dev": true }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "version": "7.5.8", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", "dev": true }, "node_modules/@types/stack-utils": { @@ -1919,32 +1964,33 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.53.0.tgz", - "integrity": "sha512-alFpFWNucPLdUOySmXCJpzr6HKC3bu7XooShWM+3w/EL6J2HIoB2PFxpLnq4JauWVk6DiVeNKzQlFEaE+X9sGw==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.3.1.tgz", + "integrity": "sha512-STEDMVQGww5lhCuNXVSQfbfuNII5E08QWkvAw5Qwf+bj2WT+JkG1uc+5/vXA3AOYMDHVOSpL+9rcbEUiHIm2dw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.53.0", - "@typescript-eslint/type-utils": "5.53.0", - "@typescript-eslint/utils": "5.53.0", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "7.3.1", + "@typescript-eslint/type-utils": "7.3.1", + "@typescript-eslint/utils": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1", "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -1953,9 +1999,9 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -1968,25 +2014,26 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.53.0.tgz", - "integrity": "sha512-MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.3.1.tgz", + "integrity": "sha512-Rq49+pq7viTRCH48XAbTA+wdLRrB/3sRq4Lpk0oGDm0VmnjBrAOVXH/Laalmwsv2VpekiEfVFwJYVk6/e8uvQw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.53.0", - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/typescript-estree": "5.53.0", + "@typescript-eslint/scope-manager": "7.3.1", + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/typescript-estree": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1", "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -1995,16 +2042,16 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz", - "integrity": "sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.3.1.tgz", + "integrity": "sha512-fVS6fPxldsKY2nFvyT7IP78UO1/I2huG+AYu5AMjCT9wtl6JFiDnsv4uad4jQ0GTFzcUV5HShVeN96/17bTBag==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/visitor-keys": "5.53.0" + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2012,25 +2059,25 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.53.0.tgz", - "integrity": "sha512-HO2hh0fmtqNLzTAme/KnND5uFNwbsdYhCZghK2SoxGp3Ifn2emv+hi0PBUjzzSh0dstUIFqOj3bp0AwQlK4OWw==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.3.1.tgz", + "integrity": "sha512-iFhaysxFsMDQlzJn+vr3OrxN8NmdQkHks4WaqD4QBnt5hsq234wcYdyQ9uquzJJIDAj5W4wQne3yEsYA6OmXGw==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.53.0", - "@typescript-eslint/utils": "5.53.0", + "@typescript-eslint/typescript-estree": "7.3.1", + "@typescript-eslint/utils": "7.3.1", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -2039,12 +2086,12 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.53.0.tgz", - "integrity": "sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.3.1.tgz", + "integrity": "sha512-2tUf3uWggBDl4S4183nivWQ2HqceOZh1U4hhu4p1tPiIJoRRXrab7Y+Y0p+dozYwZVvLPRI6r5wKe9kToF9FIw==", "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2052,21 +2099,22 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz", - "integrity": "sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.3.1.tgz", + "integrity": "sha512-tLpuqM46LVkduWP7JO7yVoWshpJuJzxDOPYIVWUUZbW+4dBpgGeUdl/fQkhuV0A8eGnphYw3pp8d2EnvPOfxmQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/visitor-keys": "5.53.0", + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -2078,10 +2126,34 @@ } } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2094,35 +2166,34 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.53.0.tgz", - "integrity": "sha512-VUOOtPv27UNWLxFwQK/8+7kvxVC+hPHNsJjzlJyotlaHjLSIgOCKj9I0DBUjwOOA64qjBwx5afAPjksqOxMO0g==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.3.1.tgz", + "integrity": "sha512-jIERm/6bYQ9HkynYlNZvXpzmXWZGhMbrOvq3jJzOSOlKXsVjrrolzWBjDW6/TvT5Q3WqaN4EkmcfdQwi9tDjBQ==", "dev": true, "dependencies": { - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.53.0", - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/typescript-estree": "5.53.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "7.3.1", + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/typescript-estree": "7.3.1", + "semver": "^7.5.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" } }, "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2135,26 +2206,32 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz", - "integrity": "sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.3.1.tgz", + "integrity": "sha512-9RMXwQF8knsZvfv9tdi+4D/j7dMG28X/wMJ8Jj6eOHyHWwDW4ngQJcqEczSsqIKKjFiLFr40Mnr7a5ulDD3vmw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.53.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "7.3.1", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "node_modules/@vercel/ncc": { - "version": "0.36.1", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz", - "integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -2172,9 +2249,9 @@ } }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2774,49 +2851,48 @@ } }, "node_modules/eslint": { - "version": "8.34.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz", - "integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.4.1", - "@humanwhocodes/config-array": "^0.11.8", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", - "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, "bin": { @@ -2830,9 +2906,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz", - "integrity": "sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -2842,58 +2918,9 @@ } }, "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", @@ -2901,26 +2928,32 @@ }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { - "node": ">=4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "dependencies": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2954,15 +2987,6 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -2975,7 +2999,7 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { + "node_modules/estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", @@ -2984,15 +3008,6 @@ "node": ">=4.0" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -3079,9 +3094,9 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -3378,9 +3393,9 @@ } }, "node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -3418,10 +3433,10 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, "node_modules/has": { @@ -4332,16 +4347,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/js-sdsl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", - "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -4593,12 +4598,6 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, "node_modules/node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", @@ -4675,17 +4674,17 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -4925,15 +4924,15 @@ } }, "node_modules/prettier": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", - "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -5041,18 +5040,6 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -5466,6 +5453,18 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "dev": true, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-jest": { "version": "29.1.0", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.0.tgz", @@ -5529,21 +5528,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, "node_modules/tunnel": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", @@ -5586,18 +5570,23 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", + "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -5707,15 +5696,6 @@ "node": ">= 8" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -5845,6 +5825,12 @@ } }, "dependencies": { + "@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true + }, "@actions-rs/core": { "version": "0.1.6", "resolved": "https://npm.pkg.github.com/download/@actions-rs/core/0.1.6/a31ee28db21827c6f9b5f342293ea1257dedf645", @@ -6695,15 +6681,30 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" + } + }, + "@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true + }, "@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -6712,14 +6713,20 @@ "strip-json-comments": "^3.1.1" } }, + "@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true + }, "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dev": true, "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" } }, @@ -6730,9 +6737,9 @@ "dev": true }, "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, "@istanbuljs/load-nyc-config": { @@ -7365,15 +7372,18 @@ } }, "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, "@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==" + "version": "20.11.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", + "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", + "requires": { + "undici-types": "~5.26.4" + } }, "@types/node-fetch": { "version": "2.6.2", @@ -7391,9 +7401,9 @@ "dev": true }, "@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "version": "7.5.8", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", "dev": true }, "@types/stack-utils": { @@ -7426,27 +7436,28 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.53.0.tgz", - "integrity": "sha512-alFpFWNucPLdUOySmXCJpzr6HKC3bu7XooShWM+3w/EL6J2HIoB2PFxpLnq4JauWVk6DiVeNKzQlFEaE+X9sGw==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.3.1.tgz", + "integrity": "sha512-STEDMVQGww5lhCuNXVSQfbfuNII5E08QWkvAw5Qwf+bj2WT+JkG1uc+5/vXA3AOYMDHVOSpL+9rcbEUiHIm2dw==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.53.0", - "@typescript-eslint/type-utils": "5.53.0", - "@typescript-eslint/utils": "5.53.0", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "7.3.1", + "@typescript-eslint/type-utils": "7.3.1", + "@typescript-eslint/utils": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1", "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "dependencies": { "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -7455,64 +7466,84 @@ } }, "@typescript-eslint/parser": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.53.0.tgz", - "integrity": "sha512-MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.3.1.tgz", + "integrity": "sha512-Rq49+pq7viTRCH48XAbTA+wdLRrB/3sRq4Lpk0oGDm0VmnjBrAOVXH/Laalmwsv2VpekiEfVFwJYVk6/e8uvQw==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.53.0", - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/typescript-estree": "5.53.0", + "@typescript-eslint/scope-manager": "7.3.1", + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/typescript-estree": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz", - "integrity": "sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.3.1.tgz", + "integrity": "sha512-fVS6fPxldsKY2nFvyT7IP78UO1/I2huG+AYu5AMjCT9wtl6JFiDnsv4uad4jQ0GTFzcUV5HShVeN96/17bTBag==", "dev": true, "requires": { - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/visitor-keys": "5.53.0" + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1" } }, "@typescript-eslint/type-utils": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.53.0.tgz", - "integrity": "sha512-HO2hh0fmtqNLzTAme/KnND5uFNwbsdYhCZghK2SoxGp3Ifn2emv+hi0PBUjzzSh0dstUIFqOj3bp0AwQlK4OWw==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.3.1.tgz", + "integrity": "sha512-iFhaysxFsMDQlzJn+vr3OrxN8NmdQkHks4WaqD4QBnt5hsq234wcYdyQ9uquzJJIDAj5W4wQne3yEsYA6OmXGw==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "5.53.0", - "@typescript-eslint/utils": "5.53.0", + "@typescript-eslint/typescript-estree": "7.3.1", + "@typescript-eslint/utils": "7.3.1", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.0.1" } }, "@typescript-eslint/types": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.53.0.tgz", - "integrity": "sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.3.1.tgz", + "integrity": "sha512-2tUf3uWggBDl4S4183nivWQ2HqceOZh1U4hhu4p1tPiIJoRRXrab7Y+Y0p+dozYwZVvLPRI6r5wKe9kToF9FIw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz", - "integrity": "sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.3.1.tgz", + "integrity": "sha512-tLpuqM46LVkduWP7JO7yVoWshpJuJzxDOPYIVWUUZbW+4dBpgGeUdl/fQkhuV0A8eGnphYw3pp8d2EnvPOfxmQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/visitor-keys": "5.53.0", + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/visitor-keys": "7.3.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -7521,25 +7552,24 @@ } }, "@typescript-eslint/utils": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.53.0.tgz", - "integrity": "sha512-VUOOtPv27UNWLxFwQK/8+7kvxVC+hPHNsJjzlJyotlaHjLSIgOCKj9I0DBUjwOOA64qjBwx5afAPjksqOxMO0g==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.3.1.tgz", + "integrity": "sha512-jIERm/6bYQ9HkynYlNZvXpzmXWZGhMbrOvq3jJzOSOlKXsVjrrolzWBjDW6/TvT5Q3WqaN4EkmcfdQwi9tDjBQ==", "dev": true, "requires": { - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.53.0", - "@typescript-eslint/types": "5.53.0", - "@typescript-eslint/typescript-estree": "5.53.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "7.3.1", + "@typescript-eslint/types": "7.3.1", + "@typescript-eslint/typescript-estree": "7.3.1", + "semver": "^7.5.4" }, "dependencies": { "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -7548,19 +7578,25 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "5.53.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz", - "integrity": "sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w==", + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.3.1.tgz", + "integrity": "sha512-9RMXwQF8knsZvfv9tdi+4D/j7dMG28X/wMJ8Jj6eOHyHWwDW4ngQJcqEczSsqIKKjFiLFr40Mnr7a5ulDD3vmw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.53.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "7.3.1", + "eslint-visitor-keys": "^3.4.1" } }, + "@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "@vercel/ncc": { - "version": "0.36.1", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz", - "integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true }, "abort-controller": { @@ -7572,9 +7608,9 @@ } }, "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true }, "acorn-jsx": { @@ -8002,119 +8038,83 @@ "dev": true }, "eslint": { - "version": "8.34.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz", - "integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.4.1", - "@humanwhocodes/config-array": "^0.11.8", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", - "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" - }, - "dependencies": { - "eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "eslint-config-prettier": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz", - "integrity": "sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, "requires": {} }, "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "requires": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } + "estraverse": "^5.2.0" } }, "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true }, "espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "requires": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.1" } }, "esprima": { @@ -8130,14 +8130,6 @@ "dev": true, "requires": { "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "esrecurse": { @@ -8147,20 +8139,12 @@ "dev": true, "requires": { "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true }, "esutils": { @@ -8230,9 +8214,9 @@ "dev": true }, "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", @@ -8456,9 +8440,9 @@ } }, "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -8484,10 +8468,10 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, "has": { @@ -9171,12 +9155,6 @@ } } }, - "js-sdsl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", - "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", - "dev": true - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -9368,12 +9346,6 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, "node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", @@ -9427,17 +9399,17 @@ } }, "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "requires": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" } }, "p-limit": { @@ -9603,9 +9575,9 @@ "dev": true }, "prettier": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", - "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true }, "pretty-format": { @@ -9670,12 +9642,6 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -9971,6 +9937,13 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, + "ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "dev": true, + "requires": {} + }, "ts-jest": { "version": "29.1.0", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.0.tgz", @@ -10003,15 +9976,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - } - }, "tunnel": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", @@ -10039,11 +10003,16 @@ "dev": true }, "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", + "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "dev": true }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -10123,12 +10092,6 @@ "isexe": "^2.0.0" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index f1c42d0..c8cb490 100644 --- a/package.json +++ b/package.json @@ -36,15 +36,15 @@ "devDependencies": { "@types/folder-hash": "^4.0.2", "@types/jest": "^29.5.1", - "@types/node": "^18.11.18", - "@typescript-eslint/eslint-plugin": "^5.53.0", - "@typescript-eslint/parser": "^5.53.0", - "@vercel/ncc": "^0.36.1", - "eslint": "^8.34.0", - "eslint-config-prettier": "^8.6.0", + "@types/node": "^20.11.30", + "@typescript-eslint/eslint-plugin": "^7.3.1", + "@typescript-eslint/parser": "^7.3.1", + "@vercel/ncc": "^0.38.1", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", "jest": "^29.5.0", - "prettier": "^2.8.4", + "prettier": "^3.2.5", "ts-jest": "^29.1.0", - "typescript": "^4.9.5" + "typescript": "^5.4.2" } } diff --git a/src/main.ts b/src/main.ts index 99e3b59..35666b3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -156,7 +156,7 @@ async function run(): Promise { const cache = new RustdocCache( cargo, path.join(CARGO_TARGET_DIR, "semver-checks", "cache"), - manifestDir + manifestDir, ); await cache.restore();