diff --git a/dist/index.js b/dist/index.js
index ffc4135..bc5bba8 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,4 +1,4 @@
-(()=>{var __webpack_modules__={5116: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(7484));const p=a(r(6928));const c=a(r(680));const l=a(r(5552));const A=r(5321);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 c.getCompressionMethod();let d="";try{const t=yield l.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}d=p.join(yield c.createTempDirectory(),c.getCacheFileName(n));o.debug(`Archive Path: ${d}`);yield l.downloadCache(t.archiveLocation,d,i);if(o.isDebug()){yield(0,A.listTar)(d,n)}const r=c.getArchiveFileSizeInBytes(d);o.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield(0,A.extractTar)(d,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 c.unlinkFile(d)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return undefined}))}t.restoreCache=restoreCache;function saveCache(e,t,r,i=false){var s,a,d,u,m;return n(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const n=yield c.getCompressionMethod();let g=-1;const h=yield c.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(h)}`);if(h.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 E=yield c.createTempDirectory();const y=p.join(E,c.getCacheFileName(n));o.debug(`Archive Path: ${y}`);try{yield(0,A.createTar)(E,h,n);if(o.isDebug()){yield(0,A.listTar)(y,n)}const p=10*1024*1024*1024;const C=c.getArchiveFileSizeInBytes(y);o.debug(`File Size: ${C}`);if(C>p&&!c.isGhes()){throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`)}o.debug("Reserving Cache");const I=yield l.reserveCache(t,e,{compressionMethod:n,enableCrossOsArchive:i,cacheSize:C});if((s=I===null||I===void 0?void 0:I.result)===null||s===void 0?void 0:s.cacheId){g=(a=I===null||I===void 0?void 0:I.result)===null||a===void 0?void 0:a.cacheId}else if((I===null||I===void 0?void 0:I.statusCode)===400){throw new Error((u=(d=I===null||I===void 0?void 0:I.error)===null||d===void 0?void 0:d.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} 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: ${(m=I===null||I===void 0?void 0:I.error)===null||m===void 0?void 0:m.message}`)}o.debug(`Saving Cache (ID: ${g})`);yield l.saveCache(g,y,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 c.unlinkFile(y)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return g}))}t.saveCache=saveCache},5552: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(7484));const p=r(4844);const c=r(4552);const l=a(r(6982));const A=a(r(9896));const d=r(7016);const u=a(r(680));const m=r(5067);const g=r(8356);const h=r(2846);const E="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 c.BearerCredentialHandler(e);return new p.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t,r=false){const i=e.slice();if(t){i.push(t)}if(process.platform==="win32"&&!r){i.push("windows-only")}i.push(E);return l.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,h.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,h.isSuccessStatusCode)(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const c=p.result;const l=c===null||c===void 0?void 0:c.archiveLocation;if(!l){throw new Error("Cache not found.")}o.setSecret(l);o.debug(`Cache Result:`);o.debug(JSON.stringify(c));return c}))}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,h.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 d.URL(e);const s=(0,g.getDownloadOptions)(r);if(i.hostname.endsWith(".blob.core.windows.net")){if(s.useAzureSdk){yield(0,m.downloadCacheStorageSDK)(e,t,s)}else if(s.concurrentBlobDownloads){yield(0,m.downloadCacheHttpClientConcurrent)(e,t,s)}else{yield(0,m.downloadCacheHttpClient)(e,t)}}else{yield(0,m.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,h.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,h.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${s})`,(()=>n(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),a)}))));if(!(0,h.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=u.getArchiveFileSizeInBytes(r);const a=getCacheApiUrl(`caches/${t.toString()}`);const p=A.openSync(r,"r");const c=(0,g.getUploadOptions)(i);const l=u.assertDefined("uploadConcurrency",c.uploadConcurrency);const d=u.assertDefined("uploadChunkSize",c.uploadChunkSize);const m=[...new Array(l).keys()];o.debug("Awaiting all uploads");let h=0;try{yield Promise.all(m.map((()=>n(this,void 0,void 0,(function*(){while(hA.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{A.closeSync(p)}return}))}function commitCache(e,t,r){return n(this,void 0,void 0,(function*(){const i={size:r};return yield(0,h.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=u.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const a=yield commitCache(i,e,s);if(!(0,h.isSuccessStatusCode)(a.statusCode)){throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`)}o.info("Cache saved successfully")}))}t.saveCache=saveCache},680: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(7484));const c=a(r(5236));const l=a(r(9688));const A=a(r(4994));const d=a(r(6982));const u=a(r(9896));const m=a(r(6928));const g=a(r(3272));const h=a(r(9023));const E=r(8287);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=m.join(r,"actions","temp")}const r=m.join(t,d.randomUUID());yield A.mkdirP(r);return r}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return u.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,r,i,s;var a;return n(this,void 0,void 0,(function*(){const n=[];const c=(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const A=yield l.create(e.join("\n"),{implicitDescendants:false});try{for(var d=true,u=o(A.globGenerator()),g;g=yield u.next(),t=g.done,!t;d=true){s=g.value;d=false;const e=s;const t=m.relative(c,e).replace(new RegExp(`\\${m.sep}`,"g"),"/");p.debug(`Matched: ${t}`);if(t===""){n.push(".")}else{n.push(`${t}`)}}}catch(e){r={error:e}}finally{try{if(!d&&!t&&(i=u.return))yield i.call(u)}finally{if(r)throw r.error}}return n}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return n(this,void 0,void 0,(function*(){return h.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 c.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 E.CompressionMethod.Gzip}else{return E.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===E.CompressionMethod.Gzip?E.CacheFilename.Gzip:E.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return n(this,void 0,void 0,(function*(){if(u.existsSync(E.GnuTarPathOnWindows)){return E.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?A.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");const t=e.hostname.trimEnd().toUpperCase();const r=t==="GITHUB.COM";const i=t.endsWith(".GHE.COM")||t.endsWith(".GHE.LOCALHOST");return!r&&!i}t.isGhes=isGhes},8287:(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=r={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i||(t.CompressionMethod=i={}));var s;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(s||(t.ArchiveToolType=s={}));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"},5067: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.downloadCacheHttpClientConcurrent=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const o=a(r(7484));const p=r(4844);const c=r(1012);const l=a(r(181));const A=a(r(9896));const d=a(r(2203));const u=a(r(9023));const m=a(r(680));const g=r(8287);const h=r(2846);const E=r(8110);function pipeResponseToStream(e,t){return n(this,void 0,void 0,(function*(){const r=u.promisify(d.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=A.createWriteStream(t);const i=new p.HttpClient("actions/cache");const s=yield(0,h.retryHttpClientResponse)("downloadCache",(()=>n(this,void 0,void 0,(function*(){return i.get(e)}))));s.message.socket.setTimeout(g.SocketTimeout,(()=>{s.message.destroy();o.debug(`Aborting download, socket timed out after ${g.SocketTimeout} ms`)}));yield pipeResponseToStream(s,r);const a=s.message.headers["content-length"];if(a){const e=parseInt(a);const r=m.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 downloadCacheHttpClientConcurrent(e,t,r){var i;return n(this,void 0,void 0,(function*(){const s=yield A.promises.open(t,"w");const a=new p.HttpClient("actions/cache",undefined,{socketTimeout:r.timeoutInMs,keepAlive:true});try{const t=yield(0,h.retryHttpClientResponse)("downloadCacheMetadata",(()=>n(this,void 0,void 0,(function*(){return yield a.request("HEAD",e,null,{})}))));const o=t.message.headers["content-length"];if(o===undefined||o===null){throw new Error("Content-Length not found on blob response")}const p=parseInt(o);if(Number.isNaN(p)){throw new Error(`Could not interpret Content-Length: ${p}`)}const c=[];const l=4*1024*1024;for(let t=0;t
n(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(a,e,t,r)}))})}c.reverse();let A=0;let d=0;const u=new DownloadProgress(p);u.startDisplayTimer();const m=u.onProgress();const g=[];let E;const waitAndWrite=()=>n(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(g));yield s.write(e.buffer,0,e.count,e.offset);A--;delete g[e.offset];d+=e.count;m({loadedBytes:d})}));while(E=c.pop()){g[E.offset]=E.promiseGetter();A++;if(A>=((i=r.downloadConcurrency)!==null&&i!==void 0?i:10)){yield waitAndWrite()}}while(A>0){yield waitAndWrite()}}finally{a.dispose();yield s.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,r,i){return n(this,void 0,void 0,(function*(){const s=5;let a=0;while(true){try{const s=3e4;const a=yield promiseWithTimeout(s,downloadSegment(e,t,r,i));if(typeof a==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return a}catch(e){if(a>=s){throw e}a++}}}))}function downloadSegment(e,t,r,i){return n(this,void 0,void 0,(function*(){const s=yield(0,h.retryHttpClientResponse)("downloadCachePart",(()=>n(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${r}-${r+i-1}`})}))));if(!s.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:r,count:i,buffer:yield s.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,r){var i;return n(this,void 0,void 0,(function*(){const s=new c.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,l.constants.MAX_LENGTH);const i=new DownloadProgress(n);const a=A.openSync(t,"w");try{i.startDisplayTimer();const t=new E.AbortController;const o=t.signal;while(!i.isDone()){const p=i.segmentOffset+i.segmentSize;const c=Math.min(e,n-p);i.nextSegment(c);const l=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(p,c,{abortSignal:o,concurrency:r.downloadConcurrency,onProgress:i.onProgress()}));if(l==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(l)){A.writeFileSync(a,l)}}}finally{i.stopDisplayTimer();A.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}))}))},2846: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(7484));const p=r(4844);const c=r(8287);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=c.DefaultRetryAttempts,s=c.DefaultRetryDelay,a=undefined){return n(this,void 0,void 0,(function*(){let n="";let p=1;while(p<=i){let c=undefined;let l=undefined;let A=false;try{c=yield t()}catch(e){if(a){c=a(e)}A=true;n=e.message}if(c){l=r(c);if(!isServerErrorStatusCode(l)){return c}}if(l){A=isRetryableStatusCode(l);n=`Cache service responded with ${l}`}o.debug(`${e} - Attempt ${p} of ${i} failed with error: ${n}`);if(!A){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=c.DefaultRetryAttempts,i=c.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=c.DefaultRetryAttempts,i=c.DefaultRetryDelay){return n(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),r,i)}))}t.retryHttpClientResponse=retryHttpClientResponse},5321: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(5236);const p=a(r(4994));const c=r(9896);const l=a(r(6928));const A=a(r(680));const d=r(8287);const u=process.platform==="win32";function getTarPath(){return n(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield A.getGnuTarPathOnWindows();const t=d.SystemTarPathOnWindows;if(e){return{path:e,type:d.ArchiveToolType.GNU}}else if((0,c.existsSync)(t)){return{path:t,type:d.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:d.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:d.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:d.ArchiveToolType.GNU}}))}function getTarArgs(e,t,r,i=""){return n(this,void 0,void 0,(function*(){const s=[`"${e.path}"`];const a=A.getCacheFileName(t);const n="cache.tar";const o=getWorkingDirectory();const p=e.type===d.ArchiveToolType.BSD&&t!==d.CompressionMethod.Gzip&&u;switch(r){case"create":s.push("--posix","-cf",p?n:a.replace(new RegExp(`\\${l.sep}`,"g"),"/"),"--exclude",p?n:a.replace(new RegExp(`\\${l.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${l.sep}`,"g"),"/"),"--files-from",d.ManifestFilename);break;case"extract":s.push("-xf",p?n:i.replace(new RegExp(`\\${l.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${l.sep}`,"g"),"/"));break;case"list":s.push("-tf",p?n:i.replace(new RegExp(`\\${l.sep}`,"g"),"/"),"-P");break}if(e.type===d.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===d.ArchiveToolType.BSD&&e!==d.CompressionMethod.Gzip&&u;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===d.ArchiveToolType.BSD&&t!==d.CompressionMethod.Gzip&&u;switch(t){case d.CompressionMethod.Zstd:return i?["zstd -d --long=30 --force -o",d.TarFilename,r.replace(new RegExp(`\\${l.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d --long=30"':"unzstd --long=30"];case d.CompressionMethod.ZstdWithoutLong:return i?["zstd -d --force -o",d.TarFilename,r.replace(new RegExp(`\\${l.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return n(this,void 0,void 0,(function*(){const r=A.getCacheFileName(t);const i=e.type===d.ArchiveToolType.BSD&&t!==d.CompressionMethod.Gzip&&u;switch(t){case d.CompressionMethod.Zstd:return i?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${l.sep}`,"g"),"/"),d.TarFilename]:["--use-compress-program",u?'"zstd -T0 --long=30"':"zstdmt --long=30"];case d.CompressionMethod.ZstdWithoutLong:return i?["zstd -T0 --force -o",r.replace(new RegExp(`\\${l.sep}`,"g"),"/"),d.TarFilename]:["--use-compress-program",u?'"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,c.writeFileSync)(l.join(e,d.ManifestFilename),t.join("\n"));const i=yield getCommands(r,"create");yield execCommands(i,e)}))}t.createTar=createTar},8356: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(7484));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:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}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},9688: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(7698);function create(e,t){return i(this,void 0,void 0,(function*(){return yield s.DefaultGlobber.create(e,t)}))}t.create=create},8462: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(7484));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},7698: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 c=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 l=a(r(7484));const A=a(r(9896));const d=a(r(8462));const u=a(r(6928));const m=a(r(637));const g=r(9222);const h=r(8188);const E=r(768);const y=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=d.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 c(this,arguments,(function*globGenerator_1(){const e=d.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 h.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of m.getSearchPaths(t)){l.debug(`Search path '${e}'`);try{yield p(A.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new E.SearchState(e,1))}const i=[];while(r.length){const s=r.pop();const a=m.match(t,s.path);const n=!!a||m.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&g.MatchKind.Directory){yield yield p(s.path)}else if(!n){continue}const e=s.level+1;const t=(yield p(A.promises.readdir(s.path))).map((t=>new E.SearchState(u.join(s.path,t),e)));r.push(...t.reverse())}else if(a&g.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(y){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 h.Pattern(e))}}r.searchPaths.push(...m.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 A.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){l.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 A.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield A.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){l.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},9222:(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={}))},1256: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(6928));const p=n(r(2613));const c=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(c&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(c&&/^\\\\[^\\]+\\[^\\]+\\$/.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(c){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("/")||c&&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(c){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(c){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(c){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(c&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},279: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(6928));const p=a(r(1256));const c=n(r(2613));const l=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){c.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{c.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let 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 y=/^[0-9]+$/;function compareIdentifiers(e,t){var r=y.test(e);var i=y.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e=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 y=/^[0-9]+$/;function compareIdentifiers(e,t){var r=y.test(e);var i=y.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e{const c=generateBlockID(o,i);const l=r.blockSize*i;const A=i===s-1?t:l+r.blockSize;const d=A-l;a.push(c);await this.stageBlock(c,e(l,d),d,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions});p+=d;if(r.onProgress){r.onProgress({loadedBytes:p})}}))}await c.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}=ko("BlockBlobClient-uploadFile",t);try{const r=(await jo(e)).size;return await this.uploadSeekableInternal(((t,r)=>()=>Yo(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}=ko("BlockBlobClient-uploadStream",s);try{let a=0;const n=i.generateUuid();let p=0;const c=[];const l=new BufferScheduler(e,t,r,(async(e,t)=>{const r=generateBlockID(n,a);c.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 l.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 c=extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(i.isNode){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);n=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=i.getDefaultProxySettings(c.proxyUri)}a=newPipeline(e,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){n=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+c.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,po.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}=ko("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}=ko("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}=ko("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}=ko("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}=ko("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}=ko("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}=ko("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}=ko("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}=ko("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)),c;c=yield s.__await(p.next()),!c.done;){const e=c.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(ExtractPageRangeInfoItems(e))))}}catch(e){a={error:e}}finally{try{if(c&&!c.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}=ko("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}=ko("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}=ko("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}=ko("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(ho);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const Jo=": ";const Wo=" ";const Xo=-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}${fo}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==co.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?c:l}if(i.length){o=[s,a]}}return o}},2732:(e,t,r)=>{var i=r(1063);var n=r(2027);var s=r(9934);var a=Function.bind;var o=a.bind(a);function bindApi(e,t,r){var i=o(s,null).apply(null,r?[t,r]:[t]);e.api={remove:i};e.remove=i;["before","error","after","wrap"].forEach((function(i){var s=r?[t,i,r]:[t,i];e[i]=e.api[i]=o(n,null).apply(null,s)}))}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 c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=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},2027:e=>{e.exports=addHook;function addHook(e,t,r,i){var n=i;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){i=function(e,t){return Promise.resolve().then(n.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 n(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 n(e,t)}))}}e.registry[r].push({hook:i,orig:n})}},1063: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)()}))}},9934: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)}},4691:(e,t,r)=>{var i=r(7087);var n=r(9380);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\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(s).split("\\{").join(a).split("\\}").join(o).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(o).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var s=r.body;var a=r.post;var o=i.split(",");o[o.length-1]+="{"+s+"}";var c=parseCommaParts(a);if(a.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}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 s=n("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=a||c;var p=s.body.indexOf(",")>=0;if(!l&&!p){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+o+s.post;return expand(e)}return[e]}var d;if(l){d=s.body.split(/\.\./)}else{d=parseCommaParts(s.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var A=s.post.length?expand(s.post,false):[""];return A.map((function(e){return s.pre+d[0]+e}))}}}var u=s.pre;var A=s.post.length?expand(s.post,false):[""];var m;if(l){var h=numeric(d[0]);var g=numeric(d[1]);var E=Math.max(d[0].length,d[1].length);var y=d.length==3?Math.abs(numeric(d[2])):1;var C=lte;var b=g1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let a=s===undefined?0:s;var n=r.timeout;let o=n===undefined?0:n;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof i);else{e=Buffer.from(String(e))}this[u]={body:e,disturbed:false,error:null};this.size=a;this.timeout=o;if(e instanceof i){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[u].error=r}))}}Body.prototype={get body(){return this[u].body},get bodyUsed(){return this[u].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[u].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[u].disturbed=true;if(this[u].error){return Body.Promise.reject(this[u].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof i)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let a=false;return new Body.Promise((function(i,n){let o;if(e.timeout){o=setTimeout((function(){a=true;n(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){a=true;n(t)}else{n(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(a||t===null){return}if(e.size&&s+t.length>e.size){a=true;n(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=t.length;r.push(t)}));t.on("end",(function(){if(a){return}clearTimeout(o);try{i(Buffer.concat(r,s))}catch(t){n(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let i="utf-8";let s,a;if(r){s=/charset=([^;]*)/i.exec(r)}a=e.slice(0,1024).toString();if(!s&&a){s=/